April 2012

Sorting Entries in a PList by Key

My iOS applications use property list (plist) files to specify configuration parameters and other stuff. I was trying to do some comparison and merging of these plists, but was tripped up because the keys were in different order in different files.

So I whipped up a little Python script to sort the keys in the plists and write them in a canonical format. If you would be interested in such a thing, it's as easy as this:

Cold Science Fiction

I read a lot of science fiction (SF) in my adolescent and teenage years, but I got bored with it in college, and stopped reading it. Actually, I didn't get bored, I got annoyed with it. At the time, I couldn't describe exactly what it was that was annoying me, but I felt that each SF novel I read was following a formula that had stopped entertaining me, and that SF had become a waste of my time.

In the past few years, I've started reading SF again. I've read new stories by new authors, and tried to catch up on some of the SF classics I should have read back in the 80's. A friend loaned me his copy of Robert Heinlein's The Moon is a Harsh Mistress. I looked forward to reading it, as I had heard it was one of the best SF novels ever written.

I hated it. This novel reminded me of everything that made me stop reading science fiction.

Lots of smart people do enjoy this book, so I spent some time thinking about what they see in it, and what it is that I find so repulsive.