With no normal job to take care of and with a few encouraging words from friends and users, I’ve managed to find some time to update Premus a bit. It’s nice to finally be back in the code to give it a bit of the cleanup it’s needed. There’s still lots of cleaning up left to do, but I at least got rid of the table layout and the onload attribute… These changes include CSS and javascript changes, so if things look and behave a bit funny, make sure to shift-refresh.
Apart from the cleanup, I’ve also had time to add a few things. I’ve always hated the popup UA string selection, so now I took the opportunity to add an autocomplete when you type the string instead. I hope you prefer it to the old way, I certainly do. I also got a newer PML spec (version 1.13.5, if you have a newer one please let me know) sent to me and started implementing some of the features in it. I didn’t get all of it done, but thought it was best to get a release out with at least parts of it, before the wedding next week starts interfering with my ability to sit for hours in front of the computer. =)
A more detailed list of what’s been changed can be seen in the change log.
Update: Now it’s 1.1.1, because I completely forgot about testing in good old Internet Explorer before.
I was looking into a bug with Premus and discovered that it was caused by the page requested starting out with a BOM (Byte Order Marker). I’d seen BOMs many times before in UTF-16 documents, but I’ve never actually seen a UTF-8 BOM before, which I now find quite amazing since they’re completely valid and have been around for a long time.
Now, the problem with the UTF-8 BOM in particular is that Python doesn’t automatically strip it out if it’s there. And it looks like other languages have the same problem. Python 2.5 does add a specific encoding for UTF-8 with a BOM, but that seems to imply that you should know if you’ll be getting a BOM from the start. Another problem is of course that only one of my machines is running 2.5 so far.
I solved my problem by better keeping track of what input encoding I get and with the help of Evan Jones’ very helpful notes on UTF-8 and Python, but this really seems to me like a problem that shouldn’t have been there in the first place.
I’ve never really liked the word mashup, and never really understood the point of the whole thing. But here we are, now I’ve made one myself. I played around with the new Ajax API for the Y! Maps beta now that they’ve added the rest of the world to it and tried to find something to do with the API. Since photo.dlade.net has just displayed a big error message the last weeks, I figured I should do something with that. So I combined the Maps API with the flickr API and got myself a map that lays out our photo albums based on their geographical locations. So here it is. The trouble is, now I have to travel around the world to fill up the map a bit more…