21 ms·
You can use numbers to extend the range a bit (0=O, 1=L, 6=G, 5=S). I used "0xdebac1e" as a magic number for a (terrible) file format once, no one noticed. Pro
by kabdib 4y ago
You can use numbers to extend the range a bit (0=O, 1=L, 6=G, 5=S).
I used "0xdebac1e" as a magic number for a (terrible) file format once, no one noticed. Probably helped that my constant was declared byte-reversed...
- JoshTriplett 4y agoWhat was the file format?
- watchdogtimer 4y agoThere's also leet speak's 3=E and 7=T.
- dahart 4y agoThere’s a long history of readable & funny magic numbers in file formats[1] especially 0xcafebabe and 0xdeadbeef[2] [1] https://en.wikipedia.org/wiki/Magic_number_(programming)#In_files https://en.wikipedia.org/wiki/Magic_number_(programming)#In_... [2] https://en.wikipedia.org/wiki/Deadbeef https://en.wikipedia.org/wiki/Deadbeef And yea, if you allow numbers, the list of words you can make is pretty long, I get 364 words from this (even much longer if you allow both I and L, but I pruned those because I mapped both to the number 1): < /usr/share/dict/words perl -ne 'print if m/^[abcdefilzsbtgo]*$/ && m/^........$/;' | perl -ne 'print if !(m/i/ && m/l/);' | tr 'ilzstgo' '1125790' | tr '[:lower:]' '[:upper:]' | perl -ne 'print "0x$_"' | column