783 points · by pavel_lishin · 9y ago · 121 comments
TLDR; For legacy reasons, some words produce valid colors even if they don't respect the standard color formats. For example, "chucknorris" produces red.
By the way I didn't see any mention of max length. Is there a limitiation to the length of the color string?
Bonus question: What color would the complete works of Shakespeare be? Take all of his scene play manuscripts found on Project Gutenberg but excluding duplicates if any, sort them in the order they were originally published and concatenate into a single string.
With that said there are some pretty cool ones (e.g. 5afe57 = safest = a green) that do match up. Can't say I can think of many hugely practical uses for this, but it's kinda neat!
https://www.sweetmarias.com/category/green-coffee/others/sam...
Though with the numbers in the beginning it's not as readable as e.g. BADA55.
Still the 57 does not really directly translate to ST in my head at least.
How do you do that?
So:
#FF0000 = 0xFF, 0x00, 0x00, which is pure red
#0000FF = 0x00, 0x00, 0xFF, which is pure blue
#FF00FF = 0xFF, 0x00, 0xFF, which is red and blue mixed, so it's purple (violet)
#FFFFFF = 0xFF, 0xFF, 0xFF, all colors combined is white
etc#C0FFEE = 0xC0, 0xFF, 0xEE, so by 'parsing' it in your head yo can see is mostly green and blue, combined that's cyan.
It probably irritates you to see images scaled to 1000 pixels rather than 1024. What about that jpeg cell that is not 8 pixels square? Think of the computational overhead and the need to go floating point just because someone does not think in bytes. It is too late to tell them now, these kids ain't spending winter typing in hex. Hex to them is like BCD is to you and who needs binary coded decimal these days when emoji's need to be mastered?
I don't mean you personally, just them folk that know their hex from learning to code that way. I think hex is important but it seems most front end developers would prefer not to know.
#ACE71C is quite acetic, on the other hand.
Unfortunately 'secede' is blue rather than gray...
#F0E71D
is the colour of asafoetida: https://www.google.co.uk/search?q=asafoetida&source=lnms&tbm...
And #C0C0A5 is cocoa.
For fitness studio folks who are into hex (of which there are obviously billions) #F17 (bright pink) would be popular too.
https://meyerweb.com/eric/thoughts/2014/06/19/rebeccapurple/
That's really stretching it.
aaaand THAT's why we do code reviews!
Array.from(document.querySelectorAll(".wrap > div"))
.filter(n => n.getAttribute("name").includes("t"))
.forEach(n => n.parentNode.removeChild(n));[0] https://en.wikipedia.org/wiki/Leet
Also, go get from T to 7 is a few degrees of rotation.
Bonus points: named color support for valid CSS colors, such as dodgerblue.
One oddity: for some reason, the site's CSS makes text selection highlights invisible. If you select text, the selection looks identical to unselected text, though copy/paste still works.
Also, the color boxes appear to be editable text areas: if you click on one, you can backspace or Ctrl-U and the text of the color vanishes, until you hover/unhover it again and the text gets reset (because of the 1337/LEET translation going on with hover/unhover).
What really annoys is that browsers still select page text as it lays in HTML, ignoring CSS that places it differently. Also the entire fact that selection spans really different blocks, so you have to aim precisely to start and end it at appropriate places.
The main purpose of browser is to manage hypertext. How could that be implemented wrong?
aspell -d en dump master | aspell -l en expand|grep -e
'^[abcdefABCDEFlLoOsStT]\{6\}$'I didn't think of the other possibilities(like #bada55), but instead opted to shorten it to 3 letter codes. The one I like most is #b00, a nice red.
> BADA55
> not found
> closes tab
With the web, the convention right now is to treat the subdomain as a different security origin (with the exception of www). So the link should show c0ffee.surge.sh, not surge.sh.
If this is a manual setting, it probably also needs to be set for neocities.org. I noticed that wordpress.com domains were being subdomained properly.
It really shouldn't be manual, it should just always show the correct origin domain.
Namely, having your hosting domain on the public suffix list means that browsers will not allow setting cookies on the suffix (similar to how you cannot set a cookie for ".com"), which prevents rogue websites on the same root domain from stealing sensitive cookie values from other subdomains.
- s3.amazonaws.com
- blogspot.com
- githubusercontent.com
but there are many other sites in the list which are less notable.