Re-introducing pydmtx
Just a quick note: pydmtx is now included with libdmtx. The project had been on hiatus to avoid any legal/patent problems, but is back and better than ever. Check out what's new here.
Read the rest of this entry...
Introducing pydmtx
pydmtx is a thin python wrapper around libdmtx. It does one and only one thing (for now) -- it creates DataMatrix barcode images.
Read the rest of this entry...
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 the rest of this entry...
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!
Read the rest of this entry...
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 the rest of this entry...
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 the rest of this entry...
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 the rest of this entry...
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 the rest of this entry...
Flickr API
I'll spare you the boring "Hello World" post (which I typed at least twice) and jump straight into things. Chances are, if you've ever tried calling into the Flickr API from python, you've run across FlickrClient and flickr.py. I tried both, and both worked as advertised. The former, while very cleverly implemented, felt un-pythonic from the underscores in all the calls. Also, the use of xmltramp seemed like overkill. The latter was basically a lot of [IMHO] unnecessary wrapper code.

