Hexadecimal Upgraded to Hexadecimal 2.0

I swear I’m not going to comment on every DailyWTF…
I couldn’t help myself this morning when I read this and couldn’t stop giggling. See if you can spot the problem.
One time, out of boredom, I wrote a little utility called BitVerifier. It would loop over a folder and check every bit of each file. If the bit’s value wasn’t one or zero, it would prompt the user for the correct bit. At least in theory. I somehow never encountered a file with a “two” bit. But I got one key component right – an understanding of the valid range of values.
Rob K.’s colleague didn’t even get that far.
private static final String[] HEX_STRING_VALUES = {“0″, “1″, “2″, “3″,
“4″, “5″, “6″, “7″, “8″, “9″, “10″, “A”, “B”, “C”, “D”, “E”, “F”};
Oh it get’s worse and you are going to have to read the entire post because of the wacky “solution” to the problem.
p.s. I was searching for a cool hexadecimal image to include with the article and this one came up on Google Image search. Can someone care to explain why?

p.p.s. I couldn’t find anything good so I made that one above. Amazing what a little Courier New will do…


May 5th, 2009 at 4:23 pm
That’s awesome! I was writing this article about hex conversions in sql for my blog and I came across the same picture (which is how I found your blog).
Next time someone submits a bug report, I’m going to have to tell them that it’s probably because they have some bits in some of their files which are not set to 1 or 0.
May 5th, 2009 at 4:55 pm
Thanks for stopping by and I hope you’ll be back.
Yeah the ol’ check for 2 in a binary stream joke…
Isn’t there a Futurama where Bender has a nightmare about a 2?
September 7th, 2009 at 7:55 pm
lol this is a pic of my ex girl friend name is jynx and the person taking the pics has a web sight and he goes by the name of hex so there you guys go
September 17th, 2009 at 6:21 pm
Well that is an attractive picture and now I’m wondering why you guys are exes! LOL
Thanks Landen!
September 29th, 2010 at 1:51 am
Well thanks a lot, now YOU’RE the reason we see this image!