HNHacker News
TopNewBestAskShowJobs

nburger

94 karma · joined June 16, 2010

submissionscomments
nburger··on Amazon launches Prime Air, its own dedicated cargo planes to speed delivery
The tail number is a prime number (in reference to Prime customers) and is also the year AMZN went public.
nburger··on CSV Challenge
Here's a solution using just one instance of jq+awk that handles the "multiple files" scenario and writes proper headers on each:

jq -r '.[]|[.timestamp,.name,.creditcard]|@csv'<data.json|awk -F, '{if ($3!=""){f=substr($1,2,10)".csv";gsub(/-/,"",f);gsub(/"/,"",$0);c="(echo name,creditcard;cat -)>>"f;print $2","$3|c}}'

Strangely, the OP's "solution" actually omits the quotes around the strings, which adds unnecessary complexity.

nburger··on CSV Challenge
If we're going for succinctness, you could combine these all together:

(echo '"Name","Credit Card"'; jq -r '.[] | select(.creditcard) | [.name, .creditcard] | @csv' data.json) >> `date +%Y%m%d`.csv

nburger··on Entitlement issues (2009)
Have you taken a look at BookVibe? [ http://www.bookvibe.com/ ]
nburger··on Started.in Atlanta
Congratulations on the launch! Also an Atlanta native and signed up!
nburger··on Shellconf.py – Simple remote configuration with shell for UNIX/Linux systems
Good stuff. Take a look at Fabric for another (and very commonly-used) example of Python wrapping SSH: http://docs.fabfile.org. Also you might look to Paramiko for a native SSH implementation: https://github.com/paramiko/paramiko.
nburger··on Dimsum is like head or tail, but pulls randomly from the entire file or stream
or "sort -R"...
nburger··on Startup docu teaser #01: Michael Hartl
Good luck -- looks interesting. "Documentary" misspelled, fwiw.
nburger··on AWS Storage Gateway
Note that the $125 "gateway" fee is minor compared with the storage/transfer fees themselves - $0.14/GB/month for storage, for example. At that rate, a small 5 TB volume is already $700/month.
nburger··on Military software predicts Greek default
I stopped reading after glancing at the caption underneath the article's image:

"Wherever Senturion is housed it probably looks a lot like this, but more ominous and with blinkier lights."

That this statement is less than rigorous doesn't speak well for the remainder of the article.

nburger··on Deep Shot: Google, MIT Sync PCs and Smartphones with Snap of Camera [w/ video]
The article seems to imply that you need a desktop app installed to extract fully-qualified URLs from the open application. I wonder why a better alternative wouldn't be to embed an encoded URL as part of the webpage itself, have the phone extract the URL from the image? Essentially a steganography-meets-QR code approach.
nburger··on Ask HN: Who's hiring? (September 2010)
Python/Java/Flash - Atlanta, GA Turner Broadcasting System

We're looking for both entry-level and experienced developers to help in building out existing video frameworks (playback, transcoding, streaming, etc.) that support several large Internet properties. Contact info is in about.

nburger··on The never-ending finite loop
Ahh.. you're right, of course. What I wrote has an undefined termination condition, besides not being consistent with the original algo. Thanks.
nburger··on The never-ending finite loop
And you could save an additional character by changing the loop test to a+b form, i.e.:

int i,x[99];for(x[98]=i=1;x+98;)i*=!++x[i++];

The other array references are l-values.