Summer at DMP

The Summer Journal of a participant in DMP 2006

Monday, June 05, 2006

Disaster Strikes (well, nearly)

I had one heck of a scare today. I was typing very fast in bash, when, absentmindedly, I typed in the following:

g++ -o matrix matrix.cpp
./matrix > matrix.cpp

This command would have (and in fact, did) effectively overwrite the source with the output to the program. Thankfully, I was able to recover the orignal code from the buffer, which was a very good thing. Else, I would have lost over two days worth of coding (a good 200 lines of code).

I had to get up and leave my computer for a short while, realizing the magnitude of what would have happened had I not been able to recover the code. I was close to tears; it had been a very close call.

Coding went pretty well besides that today. I'm completely on schedule. The distance matrix implementation is nearly complete; with that out of the way, I will be able to start the second phase of my algorithm before the end of the week. Who knows? Maybe I'll even have it done.

I think I need a hug from Dan bear.

0 Comments:

Post a Comment

<< Home