HNHacker News
TopNewBestAskShowJobs

wonginator1221

116 karma · joined July 22, 2009

submissionscomments
wonginator1221··on Illustrated Jq Tutorial
Nice! I struggled to learn jq initially and I made a similar page for my team.

One suggestion is to use with_entries as a replacement for the 'to_entries | map(...) | from_entries' pattern. For example:

  jq '.metadata.annotations | with_entries(select(.key == "label1"))'
is equivalent to

  jq '.metadata.annotations | to_entries | map(select(.key == "label1")) | from_entries'
wonginator1221··on MacBook Air Flash Storage Drive Replacement Program
I personally had my Macbook Air that I bought in August 2012 have its 128GB SSD fail on me this past August. The data was not recoverable and I had to get the SSD replaced by an Apple technician for free as my Air was still under warranty.

Fortunately, I was mostly backed up, but it is definitely aggravating to see a < 12 month old SSD fail.

wonginator1221··on Show HN: Nightcode, the Clojure IDE, just hit 0.1.0
I'm a huge fan of vim-fireplace[1] (and almost every other tpope vim plugin). vim-fireplace provides essentially all of the functionality listed above through a lein nREPL connection.

[1] https://github.com/tpope/vim-fireplace

wonginator1221··on The entrepreneurial adventures of a coder living in a tent in the forest
My friend also runs the ListServe Archive. It's quite interesting to dig through some of the older submissions and see the variety of the content.

http://thelistservearchive.com/

wonginator1221··on Poll: How do you rate your coding skill compared to your peers?
A relevant post by Derek Sivers regarding averages: http://sivers.org/below-average
wonginator1221··on Resistor hack turns a Nvidia GTX690 into a Quadro K5000 or Tesla K10
I suspect it might be possible by modifying the device field in the pci_dev struct [1] in include/linux/pci.h when the device is initialized.

[1] http://www.makelinux.net/ldd3/chp-14-sect-6

wonginator1221··on A proposal for improving HN : it should cost a user Karma to post
I think that there's also a chance that charging karma for a comment could also alter the quality of discussion here on HN. Although it may reduce comment "spam", commenters would have a stronger incentive to follow popular opinion to ensure that the cost of posting a comment is recouped. This could potentially reduce the number of dissenting (yet still intellectually provoking) comments.

This hivemind mentality is a major problem in many online communities, but I do think that the hiding a karma on is definitely a step in the right direction.

wonginator1221··on Tmux, for fun and profit
You could enable the mouse for mouse interaction with a supported terminal. In my tmux config:

  set -g mode-mouse on
  setw -g mouse-select-window on
  setw -g mouse-select-pane on
This particular configuration will allow you to scroll, select text and focus windows and panes with just a mouse click.
wonginator1221··on Logging out of Facbook is not enough
Even after deleting FB cookies, what prevents them from tracking you (with reasonably good accuracy) using your IP address. In that case, you might as well just blacklist all of facebook.com.

In my opinion, internet users must be aware that there is no easy way to be totally anonymous, whether it be Facebook, Google, etc. If you require complete anonymity, you might as well unplug your internet cable.

wonginator1221··on Show HN: I wrote a co-founder equity calculator over the weekend
Joel Spolsky wrote a little on founder equity and a potential method to divide ownership.

http://answers.onstartups.com/questions/6949/forming-a-new-s...

wonginator1221··on Boot a linux kernel right inside your browser.
Well, It's a great way to try out rm -rf /
wonginator1221··on Ubuntu 11.04 (Natty Narwhal)
I can't even say that my macbook sleeps reliably. There are some times where closing the lid fails to put my computer to sleep and manages to kill it's battery while it's in my bag. Occasionally, I'll open the lid and my macbook will not come out of sleep mode.
wonginator1221··on Square's Disruptive Payment Service About to Get A Huge Retail Boost from Apple
It feels a little flimsy and does sin around in the headphone jack, however, it's a neat little dongle and I have yet to have any problems reading cards. I generally keep the dongle in my bag so that I have easy access to it when I need it.
wonginator1221··on Square's Disruptive Payment Service About to Get A Huge Retail Boost from Apple
Although, I was initially skeptical of Square's success, I have found Square to be great for splitting small charges such as a dinner or a gas bill between my friends and I. The little card reader gizmo is a great conversation starter.
wonginator1221··on L-Theanine: a 4,000 Year Old Mind-Hack
Do any of you buy your tea online? I've heard good things about Adagio, but haven't had a need to buy from them.
wonginator1221··on Remind HN: November is Launch an App Month
Is the idea behind this to launch an app in a month or to create and launch an app in just a month? The latter sounds much more intriguing.
wonginator1221··on Innovative Android/iPhone app uses camera and flash to check your heart rate
On the android app, the heart pulses to your heartbeat. I checked my pulse simultaneously and it seems pretty accurate.
wonginator1221··on No, You can't retire rich at 30 if you sell your startup
The second major programming assignment I was given during my freshman year of college was a retirement calculator. Although the main goal of the assignment was to implement a interest compounding program, I believe my professor used this assignment to get us out of the get rich retire early mentality.

If I recall correctly, an average single person would need to save well over $1 million USD by retirement if they wanted to live comfortably for the next 10 years.

wonginator1221··on A few fun python lines for your deploy script if you're on a mac
Shell script version

  #!/bin/bash
  VOICES=("agnes" "kathy" "princess" "vicki" "victoria" "bruce" "fred" "junior" "ralph" "albert" "bad" "bahh" "bells" "boing" "bubbles" "cellos" "deranged" "good" "hysterical" "pipe" "trinoids" "whisper")
  MSGS=("deploy is now complete" "deploy complete" "deploy completed" "sir the deployment has finished" "hey the deploy is done" "look at this cool deploy" "deployment completeed")
  VOICE=$RANDOM%${#VOICES[@]}
  MSG=$RANDOM%${#MSGS[@]}
  say -v ${VOICES[VOICE]} ${MSGS[MSG]}
wonginator1221··on Rate my startup: Feedlooks, a web-based RSS reader
How about a live demo?
wonginator1221··on What To Do When A Hard Drive Fails
I have tried the freezer trick before with varying success.

On one occasion, my friend's laptop hard drive kicked the bucket and failed when I tried to use Spinrite.

However, a few weeks ago, a Aeagate hard drive from my brother's Macbook failed. Throwing it in the freezer for a few hours did the trick and we were able to make a full copy of the data.

wonginator1221··on Kevin Rose is killing the DiggBar
Digg, back in its prime, use to be a thriving tech community. However, since its expansion, it has attracted all types of internet users who seek infographics, videos of cats and political commentary rather than tech articles.