Live data from Hacker News

Add '127.0.0.1 xn–9q8h' to /etc/hosts gives you "localghost"

twitter.com

81–90 of 118 posts

Re: Add '127.0.0.1 xn–9q8h' to /etc/hosts gives you "localghost"

#82

It took me a while to get the joke because I didn't recognize that white ghost on a white background. I take this as another example why these non-ascii urls are a bad idea for security.

It's not white, it's the blueish grey #E1E8ED. You need a better monitor :)

Not everyone has near perfect vision, in which case a better monitor won't fix too much if contrast is bad.

Re: Add '127.0.0.1 xn–9q8h' to /etc/hosts gives you "localghost"

#83

It took me a while to get the joke because I didn't recognize that white ghost on a white background. I take this as another example why these non-ascii urls are a bad idea for security.

It's not white, it's the blueish grey #E1E8ED. You need a better monitor :)

"being a better consumer is the answer" no thanks

Re: Add '127.0.0.1 xn–9q8h' to /etc/hosts gives you "localghost"

#84
post #83

Earlier quoted context omitted.

It's not white, it's the blueish grey #E1E8ED. You need a better monitor :)

"being a better consumer is the answer" no thanks

Yes, being a good consumer (which is not the same as spending much) is important. Research your stuff before buying.

Re: Add '127.0.0.1 xn–9q8h' to /etc/hosts gives you "localghost"

#85

Earlier quoted context omitted.

It's not white, it's the blueish grey #E1E8ED. You need a better monitor :)

Fails all contrast measures abysmally: https://contrast-ratio.com/#%23E1E8ED-on-white And this is despite that fact that the actual "font color" is #14171A with excellent contrast: https://contrast-ratio.com/#%2314171A-on-white But these bizarre characters don't respond the text color and thus utterly unpredictable in their legibility.

The use of the color is quite different from a regular character, so measuring by the same yardstick makes no sense. This is a blob of color, not just some thin lines.

> these bizarre characters

At least on Twitter.com, they're not characters, they're SVG images.

Re: Add '127.0.0.1 xn–9q8h' to /etc/hosts gives you "localghost"

#86

Interesting, both Chrome and Firefox seem to show the Punycode encoding after I enter the emoji in the URL for me. Do browsers always show the Punycode encoding, or do they show the encoded glyphs only in some scenarios? I can't find examples of Punycode in the wild used by normal websites.

I believe the config of which glyphs to show depends on the TLD. There is a hardcoded list of which character ranges are acceptable per TLD, and if any characters are outside those ranges, the xn-- form is shown instead.

Re: Add '127.0.0.1 xn–9q8h' to /etc/hosts gives you "localghost"

#87
post #53

Earlier quoted context omitted.

On Mac, Control+Command+Space brings up the emoji picker. Every OS has something like that these days, I'm pretty sure.

Hmm, so i have to press ctrl+cmd+space then scroll through the picker or type at least "gh" to find that particular emoji. Pretty once or twice I guess.

Until it goes into your frequently accessed sites list, which as a dev, I imagine it would.

Re: Add '127.0.0.1 xn–9q8h' to /etc/hosts gives you "localghost"

#88

Earlier quoted context omitted.

It's not white, it's the blueish grey #E1E8ED. You need a better monitor :)

Fails all contrast measures abysmally: https://contrast-ratio.com/#%23E1E8ED-on-white And this is despite that fact that the actual "font color" is #14171A with excellent contrast: https://contrast-ratio.com/#%2314171A-on-white But these bizarre characters don't respond the text color and thus utterly unpredictable in their legibility.

> Fails all contrast measures abysmally: https://contrast-ratio.com/#%23E1E8ED-on-white

At first, I was thinking that I could see the difference quite clearly between the two colors and I had no clue what you were talking about. Then I hit the "swap colors" button and happened to notice that there was a bunch of text on the left side that I hadn't even seen...

Re: Add '127.0.0.1 xn–9q8h' to /etc/hosts gives you "localghost"

#89
post #53

Earlier quoted context omitted.

Hmm, so i have to press ctrl+cmd+space then scroll through the picker or type at least "gh" to find that particular emoji. Pretty once or twice I guess.

Until it goes into your frequently accessed sites list, which as a dev, I imagine it would.

Only if you're a web dev :)
Post reply on HN