Convert hexadecimal to binary in your head
lukerissacher.com
lukerissacher.com
I don't know if there's still a use for such a skill, but if you care, I learned it as a set of 8 pairs: first, 0 and F are easy, right? 9 and 6 are 1001 and 0110, and a 9 looks like an upside-down 6 so hopefully you can remember that pair.
That leaves 12 digits, and they come in mirror-image pairs: 1/8, 2/4, 3/C, 5/A, 7/E, B/D. You know which hex digit is larger, and the larger binary is heavier on the left side, e.g. D is 1101 and B is 1011.
CALL CHAR(128,"3C4299A1A199423C")mirror pairs
(1) 0001/1000 (8)
(2) 0010/0100 (4)
(3) 0011/1100 (C)
(5) 0101/1010 (A)
(7) 0111/1110 (E)
(B) 1011/1101 (D)
(0) 0000/1111 (F)
Program exited.
I also have some freebie groups that I just know, like 0001 0011 0111 1111, the powers of two, 5 and 6 from working with chmod, etc.
A B D E still give me trouble, but that's what a tool like this hex quiz is good for!
> In the 1960s, the term double dabble was also used for a different mental algorithm, used by programmers to convert a binary number to decimal. It is performed by reading the binary number from left to right, doubling if the next bit is zero, and doubling and adding one if the next bit is one.[4] In the example above, 11110011, the thought process would be: "one, three, seven, fifteen, thirty, sixty, one hundred twenty-one, two hundred forty-three," the same result as that obtained above.
UPDATE: seems like the game is broken now. It used to work and it was quite fun.
[1] https://web.archive.org/web/20150101030559/http://games.usvs...
Free version: https://play.google.com/store/apps/details?id=me.akeel.baseg...
For me this has been the case with images in particular. Why have some Photoshop operative spend all day cropping images to (say) 2000 pixels square when you could have Imagemagick just do all of them to 2048 pixels square in a lot less time than it takes to have a cup of tea?
Many, many micro-managers prefer the former option, thinking that the Photoshop operative will not have the ability to type '2048' on their Wacom tablet. Sure, those images are not going to be OpenGL rendered but they might be shown on a web page with OpenSeaDragon (what?) and those 8x8 pixel tiles in the JPEG will survive making the thumbnails better. What is not to like? Why go for the computing equivalent of 'imperial measurements'???
The odd thing about these scenarios is that these micro-manager types get hung up on things like image dimensions whereas programmers just let the computer do the work, to 'abstract out' those little details and let the code do it.
I know these things myself since I started writing code 30 years ago and they were a necessity back then.
I'd love to justify all the obsolete stuff I have in my head (systems and microprocessor assembly languages that are long dead) but I cannot.