iPhone blog port

28.11.2009 00:59 in blog, mobile

iPhone screenshots

I've finished iPhone "port" of my blog. It was mostly CSS/XHTML task, with few issues. First - clamping images to 300 px width. To do so I visit each XML node, looking for <img>s and change width/height if they are provided. If not -- I download specified file (only if its in my domain: security is important, on the other hand -- why should I hack my own blog?) and calculate width/height ratio and append attributes. Of course I have many XML errors in my posts as I write them by hand, so I've corrected some of them. Navigation buttons (older/newer posts) are done with major hacks like most of the rest of blog server code. Yes, my blog system is probably the biggest application I've written using teleports instead of doors (and other OOP stuff). I know its ugly -- but fun. :)