Monthly Archives: May 2007

Noooooo…..kinda

May 31, 2007 » Geek, Life

My beloved last.fm has been sold to CBS. Not cool, treatment but at least it will still be run by the same people.

Tags:

It’s A Trap!

May 25, 2007 » Geek

This was really funny to me earlier when I jotted it down. It’s a signal trap that calls a function that raises a process abort signal. Get it? Yeah, not as good as it was when I was working on it…

Tags: ,

Really, really, bad.

May 24, 2007 » Geek, Life

So my little freak-out post about my hard drive just proved itself true. WDE, my 320GB drive full of movies, music, books, and (ironically) backups just gave up the ghost. It actually froze up my machine in it’s dying gasps.

I know it wasn’t full of content, but that’s a big hit. It’s also the newest drive in my machine, lasting one day under 8 months. Thats silly. Plus I voided the warranty on it, so no replacement for me. Oh, bonus note, I bought 100 DVD blanks yesterday to start backing things up on from it.

This little fiasco is going to implement some new procedures. I’m making weekly tree listing of my media folders so I can know what I lose from here on out, and I’m going to back important stuff up to disc. This really sucks.

Update (05/24/07)
Here’s a little sample of the script I wrote for my tree listings.
As much as all of this sucks, I really enjoyed learning that much bash scripting.
Another Update (05/24/07)
So, I dug back into the machine and tried the old “hit it with your hand” method, and lo and behold, the drive works again. Dunno why or how, but it’s alive again, and all of that data is coming off of there. (Eeep! 195.21 GB -> 42 DVD’s)

Dangit, dangit, dangit….

May 24, 2007 » Geek, Life

One of my hard drives is making a nasty noise at regular intervals. I’m not sure which one it is either, I can’t work that out. Anyway, I’m backing up everything important right now, I just hope it survives that long…

Tags:

Disappointed In SimpleXML

May 24, 2007 » Geek

So I’m a little disappointed in PHP5’s SimpleXML object. Don’t get me wrong, it works great for accessing XML, but it’s terrible for deep manipulation. The biggest problem is that you can’t append SimpleXMLElement objects to each other.

For instance, I was working on a little project tracker that would use all XML for storage. Here is the var_dump of my XML file.

Long, I know. The point is that even though the structure looks pretty normal, you can’t do this, in this case in a sort function:

You get the error message:

That, my friends, is a bummer. You can’t assign sub-elements into the tree. Bummer. Now I have to switch back to my normal MySQL.