News for hackers. Stuff that matters.
Re:Show HN: Buy stuff through your terminal by jason_wang on Friday January 24, 2014 @08:38PM (#7119425)
This is awesome! Great example app for the Zinc API.

Now you just need to integrate with those smart fridges so an order with Amazon Fresh is automatically placed when I run low on something.

Re:Show HN: Buy stuff through your terminal by samatman on Saturday January 25, 2014 @12:41AM (#7119988)
Cute!

You can get a significantly higher resolution with Unicode Block Elements[1] and a half tone foreground-background algorithm.

http://en.wikipedia.org/wiki/Block_Elements

Re:Show HN: Buy stuff through your terminal by FriedPickles on Saturday January 25, 2014 @02:05AM (#7120132)
Ahh very cool. I'll have to add support for this to ihmage.com
Re:Show HN: Buy stuff through your terminal by heptal on Saturday January 25, 2014 @11:10PM (#7123841)
Thanks for the credit. I've also got animated gif support somewhere in those gists (and a server for generating them written in Julia).
Re:Show HN: Buy stuff through your terminal by lazyjones on Friday January 24, 2014 @11:30PM (#7119855)
Why does this even access a server (i.e. the hosted zinc api)? This could be done purely on the client side (= better privacy, security and performance), so I assume it's because zinc wants to add its affiliate id and earn a commission.
Re:Show HN: Buy stuff through your terminal by FriedPickles on Friday January 24, 2014 @11:44PM (#7119884)
I'm one of the guys working on this.

We don't add an affiliate ID. A totally client-side solution would be really cool--we're thinking about making one but it does present a few more challenges. If it wasn't clear, this is more of a proof-of-concept than a practical solution.

If you have an idea that requires a fully client-side library, let us know and we can help!

Re:Show HN: Buy stuff through your terminal by mrjaeger on Friday January 24, 2014 @09:06PM (#7119507)
I don't mean to use HN like SO but I keep getting the error:

"IOError: [Errno 2] No such file or directory: '/private/tmp/pip-build-root/zinc/setup.py'"

Any idea why this might be? Looks awesome and wish I could try it!

Re:Show HN: Buy stuff through your terminal by mkx on Friday January 24, 2014 @09:08PM (#7119512)
Which version of pip are you using? It should work if you upgrade to 1.5.1.
Re:Show HN: Buy stuff through your terminal by dec0dedab0de on Friday January 24, 2014 @09:12PM (#7119525)
I was getting the same error on 1.0, looks like I need to upgrade.
Re:Show HN: Buy stuff through your terminal by dec0dedab0de on Friday January 24, 2014 @09:09PM (#7119516)
The install failed from PyPI using pip. Missing setup.py. Works fine from github though. https://github.com/wangjohn/zinc_cli/archive/master.tar.gz
Re:Show HN: Buy stuff through your terminal by mkx on Friday January 24, 2014 @09:13PM (#7119530)
Make sure to use pip 1.5.1 and it should work.
Re:Show HN: Buy stuff through your terminal by Sir_Cmpwn on Friday January 24, 2014 @10:43PM (#7119749)
Does this only support Python 2? I'm fully updated for pip, but I had to put it in a virtualenv and point it to python 2. You might want to mention that if it doesn't support 3.
Re:Show HN: Buy stuff through your terminal by Ryel on Friday January 24, 2014 @11:36PM (#7119869)
I was hooked when I saw cheetos
Re:Show HN: Buy stuff through your terminal by Aloha on Friday January 24, 2014 @10:20PM (#7119697)
It presumes one is using whatever pip is - its not in debian's repository .
Re:Show HN: Buy stuff through your terminal by rahimnathwani on Friday January 24, 2014 @10:57PM (#7119785)
Re:Show HN: Buy stuff through your terminal by gonnakillme on Friday January 24, 2014 @10:51PM (#7119772)
Installing python libraries and programs through pip is pretty standard.