News for hackers. Stuff that matters.
Re:Hnsh - Hacker News from the command-line by scottjackson on Monday December 07, 2009 @09:08AM (#981162)
hnsh is a program I wrote to let you catch up with HN from the shell. You can browse the front page, open up stories and open up comments. There are a couple other nifty features, but they're all listed on the page for you to read, so there's no use re-posting them here.

Hacker News, all keyboard, no mouse. Let me know what you think, HN.

I'll have to head off in a while (it's just past midnight here in Australia), but I'll definitely get back to any comments I miss.

Re:Hnsh - Hacker News from the command-line by RyanMcGreal on Monday December 07, 2009 @10:43AM (#981336)
Feature request: proxy server support. Right now the script just fails with an urllib2.UrlError. FYI I posted the stack trace here:

http://quandyfactory.com/projects/32/stack_trace_for_hnshpy_...

Re:Hnsh - Hacker News from the command-line by scottjackson on Monday December 07, 2009 @11:14AM (#981406)
Just to be clear, you're trying to run the program from behind a proxy, yeah?

Thanks for the stack trace -- having that makes a big difference :)

I'm not sure I can make it work with an arbitrary proxy, but I'm pretty sure I could get it to work with a proxy you know the address of. Proxies aren't my strong suit, sorry. We'll see what happens!

Re:Hnsh - Hacker News from the command-line by RyanMcGreal on Monday December 07, 2009 @11:48AM (#981476)
> you're trying to run the program from behind a proxy, yeah?

That's right.

> I'm not sure I can make it work with an arbitrary proxy

You could assume that users know their own proxy address (e.g. http://proxy.domain.com:80) and offer a prompt for them to input it. Then you can just save it in the config file.

I added an update to the stack trace page with some code for working with proxies:

http://quandyfactory.com/projects/32/stack_trace_for_hnshpy_...

Hope that helps!

Re:Hnsh - Hacker News from the command-line by scottjackson on Monday December 07, 2009 @12:02PM (#981511)
Thanks a bunch!

It's getting pretty late now (just hit 3am), but check back at http://github.com/scottjacksonx/hnsh (or http://scottjackson.org/software/hnsh/) some time late tomorrow and the project should be hosted there, as well as your proxy fix.

Re:Hnsh - Hacker News from the command-line by RyanMcGreal on Monday December 07, 2009 @12:21PM (#981553)
Great stuff! I'll follow your github repository.