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…

Fun with counting

This entry is more of a note to myself, as any SQL guru will probably read it and think less of me for just now realizing it. My problem was as follows.

Read more…

On Indentation

I don't understand why so many otherwise intelligent programmers insist on using spaces to indent lines of code. The whole purpose of a tab is to advance the cursor to a specific position. These positions are customizable in every capable editor out there. Why force your formatting on everyone who has to read or edit your code? It's not like you sit there and hit the spacebar 2, 3, 4, or 8 times; you hit tab and tell your editor to translate it to spaces. In fact, you go to great lengths to have your editor pretend a group of spaces at the beginning of a line is one unit – a tab, if you will. What's the point? A tab is the semantically correct equivalent.

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…

mod_python and strife

Allow me to share my woeful experience with Apache and mod_python, in the hopes that I can spare at least one person from the same ordeal. Don't worry, it has an almost-happy ending.

Read more…