Posted in Web Development

iPhone Web App Links

I was working on an iPhone web app recently (my first, actually) and came across an annoyance: any links in a web app with apple-mobile-web-app-capable set to "yes" will open in Safari, not the app itself. I wanted to keep things as simple as possible, and not have to change my code to support AJAX loading. Some research turned up this article which did almost exactly what I wanted, except I didn't want to load a page into a container. I wanted all links to Just Work how you'd expect links to work. So I dropped this bit of jQuery code into my base template, and everything seems to work great:

Read more…

FastCGI, et. al.

I've been wanting to drop mod_python since the day I installed it. After the saga of setting it up, I was left feeling unclean. So I sat down yesterday and started downloading new versions of stuff. Apache, mod_fastcgi, Python, Subversion, PHP… you name it. My biggest concerns were upgrading to Python 2.5, and switching this site (and others) from mod_python to mod_fastcgi. But I sure am glad I did. Deploying a Django site was never my favorite thing to do under mod_python, but with mod_fastcgi, it became an almost joyous experience.

Read more…

Sitemap Redux

Well, that was fast. My sitemap app made it's way into Django proper. I added a couple new convenience classes and fixed up the ping_google function. Adrian took it the rest of the way and cleaned up my code and documentation. You can read about it here, or have a look at the documentation. Viva Django!

Google Sitemaps

Just wanted to share some code that I wrote to generate a sitemap.xml file in Google's sitemap format. It's a django application modeled off of django.contrib.syndication. Here's the rub:

Read more…

AJAX Harmony

Today, I reveal the secrets behind the flickr photo box to your left. Alternately: how easy and fun web programming can be with good tools. Also alternately: a shameless plug for software I like, including my own.

Read more…