blarg?

Ladies and gentlemen, demork.py. My first foray into Python. Somebody else’s python, specifically.

Demork.py takes a Mozilla history.db file (in the now-legendary “mork” format) and spits out valid XML. I hope that some of you find it useful now, and that it makes migrating away from Mozilla’s current data format easier.

Thank you, Shaver, for keeping me from starting from scratch, and more generally to the Mozilla Project for their fine, fine browser. I hope this helps a little, maybe. I’ve got one possibly-misguided question, if there is any XML expertise out there – I’ve done a straight-up regex replacement of all the ampersands in the URLs in the history file to “&”; this makes for valid XML, but I foresee broken URLs. Should this be taken care of automagically during the trip back from XML, or should I be replacing them with “%something” instead?

One last word: those of you who are thinking about rolling your own undocumented, one-off data format for whatever job you happen to be doing, don’t. Just don’t. Whether you realize it or not you are playing a nasty, frathouse-grade prank on the future. You are pre-emptively saran-wrapping millions of as-yet-unbuilt toilets, and people will remember your name and hate you for it.

If anybody would like to help me test this (I only have one history file, as you might expect) I’d appreciate it. I hope you can take a minute to run it against your history file like so:

python demork.py history.db > history.xml

and then validate the XML file, either here or the household appliance of your preference. Please let me know if it works, and any details of failure.Many thanks.

I don’t believe that a nation’s culture has a lot to do with art galleries, museums or music festivals, all the things that are typically called “cultural institutions”; these are testaments to and celebrations of the best that the culture has to offer, monuments to great achievements of a culture’s past, yes, but in same way that the Oscars tend to ignore Pauly Shore, they’re not what you’d call a representative sample.

If you were to look at the Ottawa radio spectrum, listen for a bit, from that simple logic would flow one inescapable conclusion: my country’s capital, my hometown of Ottawa, Canada, is a backwater shithole populated largely by doughy, retarded, juvenile fuckheads.

Last week I stumbled out of bed to the tune of Denise Williams’s mall-culture standard, “Let’s Hear It For The Boy”. This song, and believe me I hope you don’t give the tiniest sliver of a damn about this, was released in 1984. This song is one of the worst examples of manufactured bubblegum mall-pop ever overproduced, it should have been strangled in the crib with a bicycle chain, and yet here it is: old enough to vote and still getting air time.

I don’t know how my national capital got turned into a cultural glue factory. Maybe it was when the two-laughing-assholes-in-the-morning “wacky fun” radio became the de-facto standard, or maybe it was when living in soulless cookie-cutter hellholes like Kanata or Nepean suddenly became a good idea. Maybe it was when the CRTC mandated that thirty percent of broadcast radio content be <scare-quotes>Canadian</scare-quotes>, to protect our precious, milquetoast culture, and then broadcasters decided to meet that quota playing Bryan Adams, Celine Dion and Alanis a third of the time.

Jesus Christ, if you’re growing up in Ottawa listening to this stuff you could easily have no idea at all that there’s anything in the world that isn’t top-40 lite-rock. Our only vaguely tolerable alt-rock station caved and turned into a new-country station a few years ago, and now you’ve got virtually no options. CBC, for news and lighter (but not, mercifully, “lite”) jazz, CKCU for, well, whatever the hell whoever is on feels like playing (quality varies from “That’s a brilliant song I’ve never heard before” to “We’ve got a guy here who says he can play the ‘bag'”) and that’s pretty much it. Spin that dial and see if I’m lying; there’s only so many times you need to hear “Takin’ Care Of Business” in one day, Christ.

I have “KissFM” as my alarm clock radio, because the awful, gibbering stupidity of the empty talking heads on the morning show makes me so disgusted at the state of the world that staying in bed is not an option, and my radio is on the other side of the room. As soon as my feet can cover the distance, that audiorrhea is switched off and the home computer puts my music collection on shuffle. “Forty-five minutes of commercial-free music”, you say? I’ve almost six hundred solid hours of music on my hard drive, without a commercial in sight. I win. You see a “no repeat workday”, as in “we will not play the same song twice between 8:30 and 5:30″, as a selling point. I see a coal mine full of dead birds. You lose again.

You may disagree. If you don’t find manufactured pop and laugh tracks as demoralizing, dehumanizing and just generally as soul-destroying as I do, I’m glad for you, because you’re probably a bit happier with the world than I am, but I can feel it rotting my insides. And if you’re one of the people actually purveying it, believe me, if I could distill the hate I feel for what you’ve done into a bottle and pour it into your eyes I’d smile and do it, and I’d have plenty of it left over. Enough for you to swim in.

One of the things about beta software is that it’s very easily abused to comic effect.

Consider Google Maps:

They practically write themselves.

“Your search – “Skinned apps that don’t look like crap” – did not match any documents.”

If anyone you know works on software media players of any kind whatsoever, I’m hoping you can pass on a message for me. Please ask them to stop making UIs that look like Jackson Pollock took a shit on my screen at the tail end of an ecstasy binge.

That’d be great, thanks.

UPDATE: Wanna see what a crazy-good UI looks like, one you know how to use the moment you look at it? Google Maps. Wow.

Now this is awesome. And by awesome, I mean totally sweet.

Dare to compare, the number of times that two phrases appear in President Bush’s State Of The Union addresses. For example:

If this doesn’t rope Madhava and Anatole into some commenting, nothing will.