I’m not particularly superstitious, but I can’t say that I look forward to the rest of the day, given what happened at midnight.
Coding officially began 3 weeks ago. Last night I finally came up with a piece of code that I felt was deserving of “initial check-in” to my project page. In order to do this, I wanted to move everything out of my working directory except for the source code, but I made series of terrible mistakes. First of all, the working directory shared its name with the executable. Secondly, I chose to move everything that I didn’t want checked in to svn to the next directory up. End result? The directory containing my source code was overwritten by the executable. Or at least, it tried to overwrite it, and choked, and now both of them are gone. Since it was overwritten rather than deleted, I couldn’t find a way to recover it (anyone know any magical methods?).
I find it somewhat ironic that I managed to bork my data while I was more or less in the process of backing it up.
All is not entirely lost, as I have learned a fair bit over the past few weeks and can probably re-write most of the code in the next day or so. Most of it is copied from the algorithm described in George Tzanetakis’ Marsyas submission to MIREX 2007, which came in first in the “Mood Classification” category, and a very close second in the “Similarity and Retrieval” category.
Lesson learned: don’t move things into directories containing important stuff with the same name.