News for hackers. Stuff that matters.
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by daliusd on Friday July 13, 2012 @03:36AM (#4238646)
Very good proposal. There are more unicode symbols to choice from: http://www.alanwood.net/unicode/geometric_shapes.html

Down arrow/triangle: ▼

It is not only matter of resolution but I personally like bigger fonts and have zoomed in HN so triangles look bad:

http://i.imgur.com/fpA7N.png

Re:HN: Please replace grayarrow.gif with Unicode character ▲ by jawr on Friday July 13, 2012 @04:21AM (#4238805)
I also zoom in to 125%, not sure if it's just me, but for a textual site the default font size seems too small. Maybe my eyes are just giving up.

Out of curiosity, I was wondering why the triangle wasn't a CSS triangle.. wouldn't that be more efficient than a gif?

Re:HN: Please replace grayarrow.gif with Unicode character ▲ by lucaspiller on Friday July 13, 2012 @04:26AM (#4238826)
> for a textual site the default font size seems too small. Maybe my eyes are just giving up.

++, although my eyes are giving up, and getting a high resolution / small screen size MBA didn't help.

Re:HN: Please replace grayarrow.gif with Unicode character ▲ by sudonim on Friday July 13, 2012 @08:25AM (#4239490)
There are a few Chrome plugins to improve the readability of HN. I personally use Georgify: https://chrome.google.com/webstore/detail/ofjfdfaleomlfanfeh...
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by coffeedrinker on Friday July 13, 2012 @10:35AM (#4239967)
I use AutoZoom for Chrome. Although the fonts here are too small for me, so too at some other sites.

It is amazing how many sites have css that does not work properly when zoomed.

I can't even read HN on my iPad because of the font issue.

Re:HN: Please replace grayarrow.gif with Unicode character ▲ by kodisha on Friday July 13, 2012 @09:06AM (#4239626)
+1000 for Georgify chrome plugin!
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by goostavos on Friday July 13, 2012 @10:54AM (#4240044)
I just tried it out. This font is... massive! It's pretty to look at, but tough to quickly parse, IMHO. I think I prefer HN's micro font.

Also, the margins are way too big for my taste. I feel like 1/2 of the screen is unused white space. Is there any way to tweak it?

Re:HN: Please replace grayarrow.gif with Unicode character ▲ by lucian1900 on Friday July 13, 2012 @04:23AM (#4238814)
Not necessarily. The gif is requested once and cached, and then rendered once and cached.

The CSS triangle would get rendered over and over again.

Re:HN: Please replace grayarrow.gif with Unicode character ▲ by nslater on Friday July 13, 2012 @05:07AM (#4238953)
Rendered once and cached? The cached GIF is rendered each time as well. As far as I know, it's not possible to cache a rendering. There are still calculations to do each time you want to convert the cached data into an image. The question then becomes, which calculations take longer. The calculations needed to convert the CSS into a bitmap for the screen, or the calculations needed to convert the GIF data into a bitmap for the screen. I'm betting the difference is negligible.

(If I have misunderstood some step of the rendering process, I would love to know how, or what. I don't know much about graphics processing, so I am unaware of any caches beyond what the browser maintains.)

Re:HN: Please replace grayarrow.gif with Unicode character ▲ by lucian1900 on Friday July 13, 2012 @06:51AM (#4239204)
Afaik, the browser will read GIF once and keep the bitmap in memory, then composite it into the right place when it needs it, which is a lot cheaper.

With SVG, the browser will render it once and keep a bitmap, then composite it.

With a CSS icon, there is no way for the browser to know that it's an icon at all. There is no clear delimitation between it and the rest of the page. The browser has no choice but to re-render it every single time.

Images or SVG are much better choices for icons than a bunch of CSS.

Re:HN: Please replace grayarrow.gif with Unicode character ▲ by jrmuizel on Friday July 13, 2012 @07:36AM (#4239321)
The rasterization of the Unicode character will be cached in the glyph cache just like the rest of the glyphs, so the GIF is not really any cheaper.
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by lucian1900 on Friday July 13, 2012 @08:13AM (#4239446)
Ok, SVG, character and GIF are better than a bunch of CSS :)
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by hei_zen on Friday July 13, 2012 @08:53AM (#4239582)
You misunderstood a lot of things. Most importantly that replacing a graphic with a unicode char has something to do with CSS :-)
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by lucian1900 on Friday July 13, 2012 @09:29AM (#4239693)
My original comment is a reply to the suggestion to use a CSS icon.
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by user-id on Friday July 13, 2012 @09:33AM (#4239711)
Well, using the :before or :after pseudo-selector and content property is a possibility.
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by megablast on Friday July 13, 2012 @05:43AM (#4239055)
Of course there are way to cache renderings, this is the reasons firefox used to use so much memory, it would cache the uncompressed images. Why would you think that was not possible?
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by entropy_ on Friday July 13, 2012 @06:15AM (#4239135)
All that for a difference that would be negligible anyway. I'd say that's a premature optimization if I've ever seen one.
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by sp332 on Friday July 13, 2012 @08:00AM (#4239393)
The GIF is 111 bytes. A CSS triangle might be smaller, but it's probably not much of a win.
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by humaknlght on Friday July 13, 2012 @11:13AM (#4240118)
While 111 bytes is small, it is actually 111 bytes + size of the image HTML tag (82 bytes) = 193. When I checked (at 08:08 PST on Friday) there were 163 instances of the image tag in the code. That means that the way it is today 11 bytes the first time and 13,366 (82 * 163) bytes of extra HTML every time. If we changed it to the unicode character if would be 163 * 2 (2 bytes for the unicode character) which is 326. 326 is way less than the 13,366 bytes currently being served.
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by tunnuz on Friday July 13, 2012 @05:11AM (#4238972)
We could use the "pile of poo" (http://www.fileformat.info/info/unicode/char/1f4a9/index.htm) character for downvote instead!
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by mkl on Friday July 13, 2012 @06:36AM (#4239172)
This seems like a bad idea, since at small font sizes it will be a similar shape to the up-triangle, especially in fonts which (mostly) fill it in.
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by Charles__L on Friday July 13, 2012 @07:12AM (#4239267)
And the fact that it's a pile of poo.
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by obtu on Friday July 13, 2012 @06:45AM (#4239193)
♥ and 💩 have a nice symmetry.
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by unwiredben on Friday July 13, 2012 @08:51AM (#4239578)
yes, a heart and the box with 01f489 look very similar (Firefox on Snow Leopard)
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by obtu on Friday July 13, 2012 @09:52AM (#4239776)
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by taftster on Friday July 13, 2012 @08:58AM (#4239604)
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by Inversechi on Friday July 13, 2012 @05:58AM (#4239090)
How does one get down-vote?
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by obtu on Friday July 13, 2012 @06:43AM (#4239188)
500 karma according to this infrequently-updated FAQ: http://jacquesmattheij.com/The+Unofficial+HN+FAQ#karma
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by mayneack on Friday July 13, 2012 @08:25AM (#4239494)
As of 3 weeks ago, this is true. I checked mine at 501
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by delinka on Friday July 13, 2012 @09:01AM (#4239616)
Replying beside untog because I'm not permitted to reply to untog.

You don't downvote submissions. You just don't upvote if you don't like it.

Re:HN: Please replace grayarrow.gif with Unicode character ▲ by srbloom on Friday July 13, 2012 @09:53AM (#4239783)
So upvote every submission except for the one you don't like.
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by untog on Friday July 13, 2012 @08:57AM (#4239596)
Anyone know when you get to downvote submissions? I still don't have that yet.
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by JshWright on Friday July 13, 2012 @09:29AM (#4239694)
You can flag submissions, you can't downvote them.
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by LeafStorm on Friday July 13, 2012 @06:01AM (#4239098)
I'm pretty sure you get downvoting powers at 500 karma. (At least, that's about when I got them. I have heard rumors that it fluctuates, and like all the mechanics of Hacker News, the precise rules are proprietary secret sauce.)
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by pbhjpbhj on Friday July 13, 2012 @06:36AM (#4239176)
I have downvote in this thread but not always. I find the removal of edit, reply and voting privelege at seemingly arbitrary conditions to be very annoying.
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by sesqu on Friday July 13, 2012 @08:12AM (#4239442)
Downvoting is disabled for very new comments and for replies to comments you've upvoted, iirc. Editing is disabled after a "reasonable" time. I don't think replying is ever disabled.
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by scott_s on Friday July 13, 2012 @09:25AM (#4239678)
New comments have a brief time without a reply link - although you can still get to it by going to the comment itself through the "link" URL. The purpose is to slow down the back-and-forth arguments between two people that become "Nu-huh!" "Yeah-huh!"
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by qw on Friday July 13, 2012 @08:34AM (#4239520)
I think that downvotes are also disabled for old comments
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by tokenadult on Friday July 13, 2012 @10:21AM (#4239907)
I think that downvotes are also disabled for old comments

Downvotes are disabled for any comment more than 24 hours old, but upvotes are still allowed after more than a day. Emphasize the positive.

Re:HN: Please replace grayarrow.gif with Unicode character ▲ by pbhjpbhj on Friday July 13, 2012 @10:42AM (#4239994)
Ha, and there we go, so I couldn't reply to you (no reply link) within the discussion but I can by following the "link" link and then replying. What's that all about?

My main point would have to be that you have to work all of this out. Shouldn't it just be written in the FAQs. You could make the UI more helpful, like keep the reply link but disable it (eg with strike through) or have it popup a note "new comment: reply disabled for 5 minutes" or whatever. Or on pages with no downvote have a header comment in a box saying "downvoting disabled; all stories have down-voting disabled after 24 hours".

Gah, I have to stop before I get on to not having collapsible threads and the lameness of greying out comments and not having vote count displayed and ...

Re:HN: Please replace grayarrow.gif with Unicode character ▲ by pyre on Friday July 13, 2012 @08:52AM (#4239580)
You also can't downvote people that reply to your comments, though you can upvote them.
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by growt on Friday July 13, 2012 @08:55AM (#4239590)
Commenting is disabled for the job-ads that are mixed with the stories on the homepage. Maybe thats what pbhjpbhj meant with reply?
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by jurre on Friday July 13, 2012 @06:35AM (#4239171)
I think it might be 550 nowadays (I think I got it at that mark a couple of months ago)
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by jgeralnik on Friday July 13, 2012 @06:54AM (#4239211)
Nope. I got it recently and can say for sure that it happened at exactly 500.
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by munchor on Friday July 13, 2012 @05:38AM (#4239039)
I have no downvote :S
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by rmc on Friday July 13, 2012 @05:15AM (#4238981)
or for flag
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by silon3 on Friday July 13, 2012 @05:50AM (#4239074)
I use Firefox "Zoom text only" which only zooms text.
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by Doches on Friday July 13, 2012 @06:15AM (#4239136)
I like how you felt the need to explain the meaning of the phrase "zoom text only."
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by obtu on Friday July 13, 2012 @07:00AM (#4239234)
NoSquint is pretty good for this as well.
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by mark-r on Friday July 13, 2012 @10:44AM (#4240003)
How does simple zooming produce that horribly mangled graphic on the left of that screenshot? That seems like a deficiency in your browser.
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by amalcon on Friday July 13, 2012 @10:49AM (#4240020)
It's because the GIF arrow is anti-aliased. You always want to anti-alias after sizing, lest it look like that, but you can't do that in a bitmapped image.
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by mark-r on Friday July 13, 2012 @11:08AM (#4240093)
I don't think anti-aliasing is the explanation. I had a look at the GIF zoomed up in Paint.NET and there's nothing unusual about it, just the gray triangle with some lighter-shade pixels around the edges. I think the browser has a flaw when enlarging images with transparency - eliminating the transparency around the arrow would probably fix everything.
Re:HN: Please replace grayarrow.gif with Unicode character ▲ by maggit on Friday July 13, 2012 @06:24AM (#4239152)
It is also a matter of subpixel anti-aliasing, and that makes a surprisingly big difference in my experience!

http://i.imgur.com/sFrFT.png