Better HN
topnewbestaskshowjobs
Log inSign up

nburger

94 karma · joined Jun 16, 2010 (16y ago) · 19 submissions

Submissions

1.

Alexa supports deeper integration with iOS and Android apps(theverge.com ↗)

1 points · by nburger · 6y ago · discuss

2.

The Alexa Prize(developer.amazon.com ↗)

129 points · by nburger · 10y ago · 53 comments

comment 10y ago · link · parent

The tail number is a prime number (in reference to Prime customers) and is also the year AMZN went public.

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

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

comment 12y ago · link · parent

Have you taken a look at BookVibe? [ http://www.bookvibe.com/ ]

comment 12y ago · link · parent

Congratulations on the launch! Also an Atlanta native and signed up!

comment 12y ago · link · parent

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.

9.

An army of robot baristas competes with Starbucks(qz.com ↗)

6 points · by nburger · 13y ago · 2 comments

comment 14y ago · link · parent

or "sort -R"...

comment 14y ago · link · parent

Good luck -- looks interesting. "Documentary" misspelled, fwiw.

12.

Storm team develops new abstraction for real-time computing(github.com ↗)

2 points · by nburger · 14y ago · discuss

comment 14y ago · link · parent

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.

comment 15y ago · link · parent

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.

comment 15y ago · link · parent

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.

comment 16y ago · link · parent

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.

comment 16y ago · link · parent

Ahh.. you're right, of course. What I wrote has an undefined termination condition, besides not being consistent with the original algo. Thanks.

comment 16y ago · link · parent

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.