News for hackers. Stuff that matters.
Re: A better mobile version of HN. Please review my weekend ... by andrewljohnson on Saturday May 29, 2010 @06:12PM (#1389367)
Here I am reading hn on a Droid and boy is it terrible. Text too small. Text poorly wrapped. Buttons misclicked all over the place. So bless you sir. With half a billion smart phones sold in just the last couple of years, this is overdue.

You still need to bump up the fonts on the FP about 2 points. On mobile, favor horsey big usable text over any concession to style.

Re: A better mobile version of HN. Please review my weekend ... by Tichy on Saturday May 29, 2010 @04:10PM (#1389207)
For some reason I can not zoom on that page on my Nexus One. Is that intentional, and how is it done? I can zoom on other web sites.

I guess links could be bigger - I tend to zoom on web sites to hit the smaller links, and since it is not possible on your page, it might become an issue.

Re: A better mobile version of HN. Please review my weekend ... by gregschlom on Saturday May 29, 2010 @04:20PM (#1389219)
On the iPhone, and I think also on Android devices, you can prevent a page from being zoomed withe the following meta tag :

<meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>

But this tag isn't being used here, as far I can see.

Re: A better mobile version of HN. Please review my weekend ... by mcav on Saturday May 29, 2010 @05:03PM (#1389267)
(that tag is on the site)
Re: A better mobile version of HN. Please review my weekend ... by franck on Saturday May 29, 2010 @03:29PM (#1389146)
The 'Article Text' is incredibly useful on old mobiles and slow connections.

I will now be able to read actual articles, not just HN comments. Thank you!

Re: A better mobile version of HN. Please review my weekend ... by ronnier on Saturday May 29, 2010 @04:15PM (#1389213)
You're welcome. I'm happy to hear that it's useful.

I'm actually using that for a bigger project that I'm working on. While working on it, and having done so HTML processing with it, I realized that it wouldn't take me to long to wire up a mobile version of HN that uses it.

You can pass any URL through it on this form: http://toadjaw.com/article

Re: A better mobile version of HN. Please review my weekend ... by mmelin on Saturday May 29, 2010 @04:12PM (#1389209)
Thank you! I've been using iCombinator but half the time I get a Python exception when loading comments. Hope this will work better. Cheers.
Re: A better mobile version of HN. Please review my weekend ... by ronnier on Saturday May 29, 2010 @04:22PM (#1389221)
Yes that was some frustration with me too. I do this: if the connection times out (10 seconds) while reading HN, it'll serve the last successful scrape of HN. That's the reason I put the last fetched date on the page, I don't want anybody to be worried that they are receiving a stale version.

The comment pages don't yet serve cached pages if the fetch fails... working on that.

Re: A better mobile version of HN. Please review my weekend ... by knipknap on Saturday May 29, 2010 @02:47PM (#1389087)
Cool, but doesn't look much different than a simple feed in google reader really.
Re: A better mobile version of HN. Please review my weekend ... by ronnier on Saturday May 29, 2010 @03:14PM (#1389127)
Like Jakob pointed out, I added the ability to pull the text of the linked article, which still needs some tweaking but works for most normal blog/news articles. It really makes articles readable on phones. It's based arc90's readability.

In addition, I added in the ability to read the comments and made them collapsible (like reddit).

But yes, if you only want the list of the front page links, the RSS will do.

I plan on adding more features soon: -Make comments sortable by date or points -More extensive caching of the comment pages along with the article text (in case either go down) -Improve the overall look and feel

Re: A better mobile version of HN. Please review my weekend ... by Jakob on Saturday May 29, 2010 @03:02PM (#1389112)
You didn't use the "Article Text" feature, did you? I think that's a really great feature. Especially if you're on a slow connection.
Re: A better mobile version of HN. Please review my weekend ... by phunel on Saturday May 29, 2010 @07:01PM (#1389433)
Would love to see the text displayed inversely - whether in traditional terminal style (green text on black background) or something similar to arc90's readability style.
Re: A better mobile version of HN. Please review my weekend ... by ronnier on Saturday May 29, 2010 @07:19PM (#1389452)
That should be doable with just CSS. I put on a "settings" page on my TODO list to do just that.
Re: A better mobile version of HN. Please review my weekend ... by phunel on Sunday May 30, 2010 @07:06AM (#1390335)
Sounds great. I'll be looking forward to the settings update which I assume will be accessible via a different url (versus user controlled setting)? I.e. toadjaw.com/hninverse Again, nice implementation and it's become my default as of now.
Re: A better mobile version of HN. Please review my weekend ... by johns on Saturday May 29, 2010 @08:51PM (#1389595)
Please add proper support for discussion (Ask HN, etc) posts. This is my #1 annoyance of iCombinator. Too many taps and backs to view the question then view the thread.
Re: A better mobile version of HN. Please review my weekend ... by bdotdub on Saturday May 29, 2010 @11:28PM (#1389877)
Anything in particular you were thinking of? I'm not sure I quite get the feedback.
Re: A better mobile version of HN. Please review my weekend ... by johns on Saturday May 29, 2010 @11:56PM (#1389917)
The OP discussion text is not in the same view as the comments. Otherwise, I love iCombinator!
Re: A better mobile version of HN. Please review my weekend ... by ronnier on Saturday May 29, 2010 @08:54PM (#1389599)
This will be my #1 priority.
Re: A better mobile version of HN. Please review my weekend ... by johns on Saturday May 29, 2010 @09:46PM (#1389675)
Great! One other piece of feedback. There needs to be more contrast between the meta line (points/name/etc) and the text of the comments.
Re: A better mobile version of HN. Please review my weekend ... by ronnier on Sunday May 30, 2010 @11:56AM (#1390637)
Done! Ask HN questions now work. You can also get to the "Ask HN" and "New" questions by clicking the link in the header. I'll work on the contrast problem. I noticed it too, I'm just a horrible designer.
Re: A better mobile version of HN. Please review my weekend ... by gregschlom on Saturday May 29, 2010 @04:24PM (#1389226)
It would be very nice someone purchased a more rememberable url... hnmobile.info is available, for example. I guess that would do the trick. No need of a .com tld here.
Re: A better mobile version of HN. Please review my weekend ... by sjs382 on Saturday May 29, 2010 @02:46PM (#1389085)
http://www.icombinator.net/ I really wish there was a way to comment and vote from the interface, though.
Re: A better mobile version of HN. Please review my weekend ... by ronnier on Saturday May 29, 2010 @03:17PM (#1389133)
I really like icombinator but I wanted to address some problems and add new features (View the article text, collapse/expand comments, and return to the previous position when using the browsers back button).
Re: A better mobile version of HN. Please review my weekend ... by bdotdub on Saturday May 29, 2010 @05:48PM (#1389336)
This is awesome! (iCombinator author here :) Looking forward to the new features coming to your app!
Re: A better mobile version of HN. Please review my weekend ... by ronnier on Saturday May 29, 2010 @08:32PM (#1389569)
Thanks a lot! My first attempt with mobile specific web pages. A lot to learn.
Re: A better mobile version of HN. Please review my weekend ... by twohanded on Sunday May 30, 2010 @09:17AM (#1390426)
I use a mobile browser (Atomic) which has great support for tabs- therefore I liked icombinator because it would by default open artcle links in a new tab.

Is there a way that you could have an option stored in a cookie that would determine whether or not to open those links in a new tab?

Very excited that you are working on this project and nice work so far!

Re: A better mobile version of HN. Please review my weekend ... by ronnier on Sunday May 30, 2010 @10:56AM (#1390564)
That sounds very doable. I'll eventually have a settings page to set those kinds of options. Thanks for using it!
Re: A better mobile version of HN. Please review my weekend ... by buster on Saturday May 29, 2010 @02:25PM (#1389059)
Yes, HN could really need a mobile version. Also, is there some official API? Could people write mobile apps based on HN?
Re: A better mobile version of HN. Please review my weekend ... by mhansen on Saturday May 29, 2010 @11:34PM (#1389882)
The official API is to scrape the HTML
Re: A better mobile version of HN. Please review my weekend ... by buster on Sunday May 30, 2010 @03:55PM (#1391006)
that's no API. It's subject to change whenever they wish.
Re: A better mobile version of HN. Please review my weekend ... by tom_ilsinszki on Saturday May 29, 2010 @04:39PM (#1389241)
An icon for iPhone users would be nice...

EDIT: Oh, and thank you! It really seems to be better than iCombinator.

Re: A better mobile version of HN. Please review my weekend ... by ronnier on Saturday May 29, 2010 @04:45PM (#1389249)
Do you know where to find a HN icon in ico format?

EDIT: Duh... HN itself has one. I'll use it.

EDIT: Ok, I added it. Thanks for reminding me about this.

Re: A better mobile version of HN. Please review my weekend ... by wmf on Saturday May 29, 2010 @03:15PM (#1389132)
I guess by mobile you mean iPhone; it looks pretty poor on Fennec/Maemo or probably any landscape device.
Re: A better mobile version of HN. Please review my weekend ... by omaranto on Saturday May 29, 2010 @07:48PM (#1389502)
If it is any consolation it doesn't look very nice on the iPhone in landscape either.
Re: A better mobile version of HN. Please review my weekend ... by ronnier on Saturday May 29, 2010 @08:33PM (#1389571)
I fixed the landscape problem. It turns out that adding -webkit-text-size-adjust:none; prevents the text from enlarging when rotating the phone to landscape. Adding that appears to have fixed it.
Re: A better mobile version of HN. Please review my weekend ... by omaranto on Saturday May 29, 2010 @07:46PM (#1389498)
Looks nice! You should steal my favorite iCombinator feature, though: the Instapaper links. Also, the Article text links all return errors, but I'll take it on faith they produce or will produce in the future some easy to read version of article text.
Re: A better mobile version of HN. Please review my weekend ... by quizbiz on Saturday May 29, 2010 @03:20PM (#1389135)
How does this work?
Re: A better mobile version of HN. Please review my weekend ... by ronnier on Saturday May 29, 2010 @06:10PM (#1389362)
For the home page, I request the HTML from HN, process it, and create a collection of elements that represent a HN news item: URL, Title, # of comments, ID, Posted By, Date, and so on. Then use that to generate the new HTML. I cache that for 200 seconds and store a copy in the event that I can't read the HTML from HN.

Works just about the same way for the comments , except it adds some additional functionality like collapsing comments. With the nature of comments being nested, a recursive function worked really well on rendering the output.

The article text functionality uses the algorithm from arc 90's readability project, which is in javascript. I used the main idea behind their readability algorithm for this, except mine runs server side (C#) where theirs is all done on the client.

Re: A better mobile version of HN. Please review my weekend ... by gaiusparx on Saturday May 29, 2010 @03:11PM (#1389123)
I actually wish the main site stylesheet can be changed so that the white columns on left and right sides does not show up in mobile screen. This will save spaces, make the text bigger and make navigation/zooming easier on small screen.
Re: A better mobile version of HN. Please review my weekend ... by ronnier on Saturday May 29, 2010 @03:15PM (#1389129)
For the front page or the comment pages?
Re: A better mobile version of HN. Please review my weekend ... by gaiusparx on Sunday May 30, 2010 @02:16AM (#1390107)
Both.
Re: A better mobile version of HN. Please review my weekend ... by joe-mccann on Saturday May 29, 2010 @04:39PM (#1389240)
Was planning on doing something similar using YQL. Nice one.
Re: A better mobile version of HN. Please review my weekend ... by augustl on Saturday May 29, 2010 @04:09PM (#1389205)
Bookmarked. It is now possible to click the comments link on an iPad without missing 70% of the time.

Edit: forget it. The links are target="_blank".

Re: A better mobile version of HN. Please review my weekend ... by ronnier on Saturday May 29, 2010 @04:18PM (#1389215)
I just removed it. I was wondering if that would turn people off. Thanks for the feedback. Now that you mention it, I really don't like links opening in a new window/tab either.
Re: A better mobile version of HN. Please review my weekend ... by steve19 on Sunday May 30, 2010 @08:29AM (#1390389)
Feature request: Add the time that has elapsed since last update. For example:

"Last fetched 5/30/2010 8:23:51 AM PST (17 minutes ago)"

Re: A better mobile version of HN. Please review my weekend ... by s3graham on Saturday May 29, 2010 @08:49PM (#1389592)
I can recommend the HN app on Android market too.
Re: A better mobile version of HN. Please review my weekend ... by underdown on Saturday May 29, 2010 @05:20PM (#1389288)
Works and looks great on my gphone.
Re: A better mobile version of HN. Please review my weekend ... by sdp on Saturday May 29, 2010 @05:33PM (#1389308)
Could you easily add duckduckgo style infinite scrolling?
Re: A better mobile version of HN. Please review my weekend ... by ronnier on Saturday May 29, 2010 @06:11PM (#1389363)
Yeah, shouldn't be hard. I'll add that to my list.
Re: A better mobile version of HN. Please review my weekend ... by eande on Saturday May 29, 2010 @04:50PM (#1389254)
good readable on my iPhone, better than what I have seen so far, nice weekend project. I will keep using it for now. Thank you
Re: A better mobile version of HN. Please review my weekend ... by nikeshhayaran on Saturday May 29, 2010 @02:59PM (#1389108)
nice..but looks little bit dull.... anyways nice work..
Re: A better mobile version of HN. Please review my weekend ... by steve19 on Sunday May 30, 2010 @08:25AM (#1390385)
Looks great!