News for hackers. Stuff that matters.
Re:A List of Hacker News's Undocumented Features and Behavio... by sammorrowdrums on Monday April 19, 2021 @03:10PM (#26866766)
> If a user has 251 Karma, they can set the color of the top bar in their profile settings. The default is #ff6600. Here's the complete set of colors users have set.

It's so close, why isn't the required karma 256?

Re:A List of Hacker News's Undocumented Features and Behavio... by LeoPanthera on Monday April 19, 2021 @05:00PM (#26867935)
I've always wondered why this feature exists and I'm still not sure, nonetheless I've set a custom color (currently a fetching shade of purple - 8185E2), and change it about once a year, previously 00FF91 and FFF200.

If nothing else, I can tell at a glance if I'm logged in or not.

Re:A List of Hacker News's Undocumented Features and Behavio... by koolba on Monday April 19, 2021 @09:04PM (#26869650)
So that each of your sock puppet accounts can have a unique top color. It helps to remind you of which facade to present.
Re:A List of Hacker News's Undocumented Features and Behavio... by blaser-waffle on Tuesday April 20, 2021 @12:47PM (#26877154)
Shoot I do that at work for admin vs non-admin logins, or different gmail accounts (personal vs side-biz). Reddit, too -- leave one permanently on night-mode.

IMO should be an SOP for anywhere that you might log in with different accounts.

How many times have you been logged in as root and didn't realize it?

Re:A List of Hacker News's Undocumented Features and Behavio... by dang on Tuesday April 20, 2021 @01:20PM (#26877560)
Now that you mention it, I do the same for my dev installation of HN.
Re:A List of Hacker News's Undocumented Features and Behavio... by koolba on Tuesday April 20, 2021 @03:13PM (#26879869)
It’s a great visual indicator to remind of your active environment. I use it in just about every app that supports it with custom colors aligned with the environment (e.g. blood red for prod or canary yellow for dev). Gmail supports it as well. If you have multiple accounts with an “official” corporate color, it makes it easy to realize which you’re acting upon.
Re:A List of Hacker News's Undocumented Features and Behavio... by ishjoh on Monday April 19, 2021 @06:54PM (#26868770)
I tried 8185E2 and liked it.

I used a color palette generator with the black text and orange logo and it spit out: CFDBD5, which gives the site a bit of a high desert brush look.

Re:A List of Hacker News's Undocumented Features and Behavio... by kanche on Monday April 19, 2021 @11:08PM (#26870285)
Same with me, I can tell immediately if I am logged in or not.

I use D8D8C0, a slighly darker shade of the background. I find it aesthetically more pleasing than the bright orange bar. Also makes the logo pop.

Re:A List of Hacker News's Undocumented Features and Behavio... by jlg23 on Monday April 19, 2021 @06:22PM (#26868545)
So that I can again drop the link that busts the "8 bits per byte"-myth ;) http://www.lispworks.com/documentation/HyperSpec/Body/f_by_b...
Re:A List of Hacker News's Undocumented Features and Behavio... by samatman on Monday April 19, 2021 @06:43PM (#26868703)
I've been around long enough to have had to roll my eyes and say "fine, octet" in conversation.

But I'm grateful that it's mostly stopped happening, let's not revive it!

Re:A List of Hacker News's Undocumented Features and Behavio... by sammorrowdrums on Monday April 19, 2021 @10:51PM (#26870204)
True, however as you are no doubt aware, one more digit or one less would double / half the karma requirement which is somewhat extreme, and it would no longer be representable by two hex digits.

The CSS colours are specifically 3 octets written as 2 digit hex, so you so while I like the broader idea that "it's a byte of karma" is sufficient, knowledge of 2 digit hex codes also applies to the privilege directly.

Plus, non-standard byte lengths would be a much more niche reference, and I don't think people would get it.

Re:A List of Hacker News's Undocumented Features and Behavio... by FridayoLeary on Monday April 19, 2021 @09:35PM (#26869817)
for fellow dumbells who can't even the their laces may i ask; eh?

Can you elaborate? My older relative who studied computers thought byte= 8 bits. I also thought so. My ego is taking a hit tonight.

Re:A List of Hacker News's Undocumented Features and Behavio... by bombcar on Monday April 19, 2021 @09:47PM (#26869864)
A byte is a collection of bits - now almost universally standardized on 8 bits because of network protocols and encodings - but older computers the byte wasn’t as important as THE WORD which was the bit width the machine could process at once. We now refer to 128bit instructions but those are more properly an instruction with a 128bit word.

Lisp provides the ability for arbitrarily defined bytes.

Re:A List of Hacker News's Undocumented Features and Behavio... by FridayoLeary on Monday April 19, 2021 @10:01PM (#26869939)
so i wasn't totally wrong. It's mainly semantics.

Since i'm here, why do most storage mediums i.e usb, phones sd ostensibly follow this method (1gb 2,4,8!,16,32 etc) and why are they almost always a few hundreds mb off?

Re:A List of Hacker News's Undocumented Features and Behavio... by philwelch on Monday April 19, 2021 @10:50PM (#26870198)
A kilobyte can be defined as either 1024 bytes or 1000 bytes. Similarly, a megabyte could be 1024 kilobytes or 1000 kilobytes, and so forth. Really, 1024 is the number that makes more sense, but hard drive manufacturers promoted the “1000 bytes” interpretation so they could advertise their hard drives as having more megabytes.

Some standards organizations tried to “solve” the issue by defining a “kibibyte” as 1024 bytes and so forth, but you only ever see those in abbreviated forms (ie KiB). I personally hate that convention; the words are aesthetically atrocious and were only invented to please pedants (who annoy me) and dishonest marketing people (whom I detest even more).

Re:A List of Hacker News's Undocumented Features and Behavio... by atat7024 on Tuesday April 20, 2021 @09:49AM (#26874607)
Isn't this the difference between speed notation and size notation?
Re:A List of Hacker News's Undocumented Features and Behavio... by D-Coder on Monday April 19, 2021 @11:32PM (#26870404)
Some older machines had different byte lengths. I believe Burroughs had 7-bit bytes. PDP-10s had 36-bit words which could be divided into any byte size that you liked; 7 bits was common, but if you needed them you could get 1-bit bytes, 6 bit (which was used to encode filenames), 8 bits, whatever.
Re:A List of Hacker News's Undocumented Features and Behavio... by blumomo on Monday April 19, 2021 @03:16PM (#26866824)

    if user.karma > 250:
      css.topbar.bgcolor = (
        user.prefs.topbar.bgcolor
        or “#ff6600”
      )
Re:A List of Hacker News's Undocumented Features and Behavio... by xqyf on Monday April 19, 2021 @03:39PM (#26867057)
CSS only:

    [bgcolor="#ff6600"] {
        background-color: transparent;
    }
Re:A List of Hacker News's Undocumented Features and Behavio... by tchanglington on Monday April 19, 2021 @03:17PM (#26866828)
Error correcting karma
Re:A List of Hacker News's Undocumented Features and Behavio... by blhack on Monday April 19, 2021 @09:55PM (#26869906)
This is my favorite feature of HN. Many, many years ago there was an article posted about how the colors teal and orange go so well together. So I set my topcolor to #00cdcd, and love it.
Re:A List of Hacker News's Undocumented Features and Behavio... by dheera on Monday April 19, 2021 @09:56PM (#26869915)
You don't need karma to set some color, you just need to inject custom CSS.
Re:A List of Hacker News's Undocumented Features and Behavio... by windowojji on Tuesday April 20, 2021 @01:27AM (#26871002)
It should be 0.
Re:A List of Hacker News's Undocumented Features and Behavio... by dang on Tuesday April 20, 2021 @02:15AM (#26871281)
It started here: https://news.ycombinator.com/item?id=97573. I don't think that's so bad.

Here's pg talking about how he wrote the code for it: https://news.ycombinator.com/item?id=98265.

Re:A List of Hacker News's Undocumented Features and Behavio... by wingsingweoij on Monday April 19, 2021 @03:46PM (#26867129)
frankly it's ridiculous that there's a karma limit on a client-side cosmetic feature. I understand one can write a custom CSS rule for this, but if it's already built into the website....
Re:A List of Hacker News's Undocumented Features and Behavio... by Oddskar on Monday April 19, 2021 @04:29PM (#26867617)
It's added flavour, I think. Not every website has to be intuitive or hand people things on a silver platter.
Re:A List of Hacker News's Undocumented Features and Behavio... by leephillips on Monday April 19, 2021 @03:58PM (#26867264)
Unless you have to earn it, you won’t appreciate it.
Re:A List of Hacker News's Undocumented Features and Behavio... by windowojji on Tuesday April 20, 2021 @12:32AM (#26870696)
I appreciate my custom CSS just fine, thanks.
Re:A List of Hacker News's Undocumented Features and Behavio... by pessimizer on Monday April 19, 2021 @05:45PM (#26868281)
Ridiculous that it's so low.
Re:A List of Hacker News's Undocumented Features and Behavio... by blaser-waffle on Tuesday April 20, 2021 @12:48PM (#26877169)
Nice things shouldn't be available for throwaways or sock puppet accounts.
Re:A List of Hacker News's Undocumented Features and Behavio... by windowojji on Monday April 19, 2021 @08:44PM (#26869504)

    [bgcolor="#ff6600"] {
      background: #008 !important;    
    }

    body > center > table > tbody > tr:first-child > td {
      background: #008 !important;
    }

Here's some CSS rules if you want to change it yourself instead of relying on an obviously poor design choice.