News for hackers. Stuff that matters.
Re:Show HN: A CLI for Google distributed as a ruby gem by christiangenco on Thursday May 24, 2012 @10:12AM (#4018484)
This is a fantastic idea! Has some issues that I'll be posting to the github page.

Edit: upon further investigation, the error seems to be with parsing the specific page http://www.test.com (here's the full trace: http://pastebin.com/Lqedy4eN ).

Re:Show HN: A CLI for Google distributed as a ruby gem by Kerrick on Thursday May 24, 2012 @06:48PM (#4020998)
Thanks! Fixed the issue in v1.0.6. One of the libraries I was using, reverse markdown, couldn't handle strings that aren't UTF-8.
Re:Show HN: A CLI for Google distributed as a ruby gem by nasmorn on Thursday May 24, 2012 @11:43AM (#4018938)
This really needs to parse the calculator results as well. That would be so useful.
Re:Show HN: A CLI for Google distributed as a ruby gem by vasco on Thursday May 24, 2012 @02:49PM (#4019891)
echo "1+2" | bc

No need to go online for math. Unless that wasn't what you meant at all in which case, what did you mean?

Re:Show HN: A CLI for Google distributed as a ruby gem by semanticist on Thursday May 24, 2012 @07:23PM (#4021109)
"371633 hours in years" is a Google search I did earlier, because it was quicker than working out the appropriate divisors.

That could be done locally too, but I don't know what tool would do it and if it's installed on my computer by default.

Re:Show HN: A CLI for Google distributed as a ruby gem by vasco on Friday May 25, 2012 @12:32AM (#4021934)
Just for completeness sake:

  units '371633 hours' 'years'
Re:Show HN: A CLI for Google distributed as a ruby gem by ronreiter on Thursday May 24, 2012 @10:10AM (#4018478)
I'm sorry, but didn't Google deprecate the Google Web Search API two years ago?
Re:Show HN: A CLI for Google distributed as a ruby gem by deelowe on Thursday May 24, 2012 @10:49AM (#4018657)
Re:Show HN: A CLI for Google distributed as a ruby gem by Kerrick on Thursday May 24, 2012 @05:12PM (#4020588)
It is deprecated, but the replacement API requires you to have an API key and charges you for more than 100 searches per day. I'm using the deprecated API until it is discontinued, then I'll release a new version of the gem that will, unfortunately, require you to sign up for an API key.
Re:Show HN: A CLI for Google distributed as a ruby gem by sparknlaunch12 on Thursday May 24, 2012 @09:33AM (#4018302)
Cool! Thanks for sharing. How long did it take you to develop?
Re:Show HN: A CLI for Google distributed as a ruby gem by Kerrick on Thursday May 24, 2012 @05:16PM (#4020612)
According to my commit log, 12 hours and 42 minutes.
Re:Show HN: A CLI for Google distributed as a ruby gem by FabPelletier on Thursday May 24, 2012 @09:30AM (#4018287)
Doesn't work really well with RVM. I can see the result list, but can't open one because the gem exits with a segmentation fault on nokogiri.
Re:Show HN: A CLI for Google distributed as a ruby gem by obilgic on Thursday May 24, 2012 @10:25AM (#4018545)
Show "how you present the results" instead of showing the man page on your landing page.
Re:Show HN: A CLI for Google distributed as a ruby gem by Kerrick on Thursday May 24, 2012 @05:14PM (#4020598)
Hmm, good idea. Should I put screenshots up, or a bit of the plaintext output?
Re:Show HN: A CLI for Google distributed as a ruby gem by Tyr42 on Thursday May 24, 2012 @10:23AM (#4018535)
So sad it's only for 1.9
Re:Show HN: A CLI for Google distributed as a ruby gem by darkstalker on Thursday May 24, 2012 @09:57AM (#4018412)
doesn't work with ruby 1.8, undefined method 'require_relative'
Re:Show HN: A CLI for Google distributed as a ruby gem by CharlesPal on Thursday May 24, 2012 @09:37AM (#4018322)
Nice work!
Re:Show HN: A CLI for Google distributed as a ruby gem by lwm on Thursday May 24, 2012 @09:05AM (#4018162)
holllllllly smokes....will have some fun with this!