What I did on my vacation from reality

Home About RTL8187B Laptop Cam Quotes Login

September 23, 2008

Well, shit.

7:30 pm — Main

xkcd’s forums don’t want to let me log in, so I’ll post here.

I was reading this xkcd strip, and curiousity got the best of me, so I wrote a Perl program to decode it. Initially, I came up with junk, until I realized it was 8-bit ASCII, not 7-bit — odd, because it’s a 483-bit code, and 483/7=69, whereas 483/8=60.375, but whatever.

So. Here’s a transcript of the binary code, and here’s the program I wrote to decode it. (Here’s the first draft of the program, and here’s a more compressed version with some amateur ASCII art touches that I formatted for my girlfriend (all three versions are hereby released into the public domain).)

And here’s what the string decodes to:

[572] cuervo@skull ~ $ perl xkcd.pl < xkcd.txt
iloveyOuilOveyouiloveyOuilOveyOuiloveyouilOveyouilOveyOuilOv



RSS feed | Trackback URI

Comments»

No comments yet.

Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.