Last month the ever-cheerful James Grime (a.k.a. “singingbanana”) of the Enigma Project launched a competition where people were invited to decipher an encrypted message. The prize was a signed copy of The Code Book by Simon Singh (which is an excellent read, by the way).
The encrypted ciphertext was as follows:
VA BT LS EG OT XK PB BH CI FV GA YC QG BP UW IH QD OE DI HL CQ
YC QG BP EI LZ GA GB IZ PS AZ DQ NI CY UY EA AI UA BF BV OV QA
ZS DP QD PG QM PS WL QY DH BD TL VZ PL LW AH GZ BP IM NI KP DZ
QU DH FP CI FV RT SB BP BV XO BE BQ PG KO GE IK KO NA OS DG DG
DA OX PO GE LZ GA OP FL WU PU UT WF BV IC HF EQ SP NA UX DC BV
No information was provided about the type of code being used, except to say that it was a “classic code from history”. However, a crib was available. (A crib is piece of text that is known to be contained somewhere in the original plaintext.) The crib consisted of the phrase “extra large French fries”.
Stop here if you’d like to have a go at cracking this code by yourself. I’ll explain how I did it after the fold.
To cut a long story short — I want to get my MP3 files out of the iPod (5th generation) and on to the hard drive on my laptop. This can be done by re-syncing the iPod, but I’m only taking a brief break from the desktop system and I don’t want the hassle of syncing back again in a couple of weeks.
For some reason, Apple has made it slightly difficult to access my MP3 files by making the directories containing the music invisible. So they don’t appear in the Finder at all.
However, they do show up in the command line terminal. If you want to get your MP3 files out, just connect the iPod to your Mac and open up a Terminal window (click the Spotlight icon and type in “Terminal”; it should be the top hit. If not, look under Utilities in your Applications folder).
At the Unix prompt, type in the following:
cd ~; mkdir mp3-files-from-ipod
This will create a new folder called “mp3-files-from-ipod” in your home directory. Now you need to navigate into your iPod’s file system. Enter the following to list the volumes attached to your computer:
cd /Volumes; ls
Your iPod’s name should be in there somewhere. Let’s suppose it’s “Your iPod” for the sake of argument. Copy it to the clipboard, and then paste it into this command (replacing “Your iPod” with the text you copied):
cd "/Volumes/Your iPod/iPod_Control/Music/"
From here you can enter the following command to find all the MP3 files on your iPod and copy them to the folder you created earlier:
find . -type f -name '*.mp3' |xargs -n1 -I x cp x ~/mp3-files-from-ipod/
The filenames will be garbage, but iTunes should still be able to identify them from the metadata tags stored inside these files. So now you can drag all the files to iTunes and it will file them away for you. Sorted.
It ought to be reasonably simple to implement this algorithm as a texture shader right inside Blender itself. But I still have a lot to learn about how to work the front end of Blender before I start messing around with Python scripts.
In the meantime, you can download the data I used to make the animation shown above. Once unpacked, you should find a set of 256 PNG files that can be imported as a displacement map or bump map in Blender (or any half-decent 3D software for that matter). The images should tile perfectly, and can be looped on the time axis too.
If you find them useful, a link back here would be appreciated.