Saturday, May 3, 2008

Hard Drive: Dying (& Python alarm clocks!)

The hard drive on my computer is dying--for certain definitions of "dying". Here's what I've gathered from my knowledge of hard drives (which is not a lot compared to most Mudders but a fair amount compared to the average person):
  • My hard drive is partitioned. This is basically the hard drive equivalent of rooms in a house. Some houses have one room--you can get to all of your stuff without changing rooms, but you have to share a room with all your siblings, and if that room gets messed up, your entire house is a mess. I partitioned my hard drive to have 1 partition (like a "room") for Linux programs, 1 partition for Windows programs, 1 partition for stuff (like music, videos, and schoolwork), and 1 partition as a swap (which artificially extends your computer's memory, but is slower than real memory). For some reason, Windows gave itself a partition of its very own, separate from the one I made for it. From what I've gathered, it has important OS stuff like "how to make sure Windows actually runs."
  • The Windows program partition is destroyed.
  • The Windows OS partition is beyond destroyed. Metaphorically speaking, it was set on fire. Then the fire was put out and it was demolished. Then it was set on fire again.
  • The data partition is sort of working. There's some stability issues leaking through from the Windows program partition, but so far everything seems to be intact.
  • The Linux partition is just fine.
What appears to have happened is that the part of the hard drive that reads the rest of the hard drive can't read most of the Windows stuff. According to some Eastie folks, the entire hard drive will be gone within a week. I have another hard drive in the mail from the friendly folks at Lenovo, but putting all my stuff back on the new drive (& reinstalling Linux) is going to be pretty time-consuming. It's a good thing I don't have class next week, or I'd probably be without a computer until the summer.

--------------

In other news, another Mudd frosh and I have written an alarm clock for Linux in the programming language Python. It takes the time you want to wake up and a file path to a song (or video) as input. Then, it figures out how many seconds it is until you want to wake up, and waits for that many seconds. Then it turns the volume on your computer down to 0, opens a media player, and tells the media player to play the song (or video) you gave it. After that, it increases the volume every few seconds until it gets to maximum volume. Sure, it would be simpler to use a real alarm clock, but this is a lot more fun. Over the week that we don't have class, I'll probably be tinkering with this program to make it work in both Windows and the Mac OS.

No comments: