Skip to content

{ Tag Archives } code

Maintaining localization between Python and PHP (it’s not fun)

I reached my hand into the barrel of problems our migration to Python is going to cause and came up with Localization. It figures.
First out of the chute was the .po files. It turns out the actual formatting is different between the two languages. PHP uses %1$s for its substitutions, but python [...]

Also tagged , , , ,

Automating “Thinking of you”

I had an idea a few weeks ago. I’ve got a bunch of great photos on my computer that no one ever sees unless we meet in person. Sure, we’ve got flickr and social networking sites, but I’m talking about an old photo that someone only saw once in passing, or a favorite [...]

Also tagged ,

Committing to SVN securely from a web application

Verbatim is the second project I’ve been the lead on recently where the requirements included people committing to SVN as themselves via the application. At first glance this means storing the authentication tokens of the user in plain text since we’ll need to pass them along to SVN whenever they commit. I wasn’t [...]

Also tagged , , ,

Planning your API is important

I’m upgrading some code I wrote to talk to a new version of the Citrix NetScaler’s API. The NetScaler’s manuals (that’s right, plural) weigh in at a combined 1114 pages so documentation isn’t a problem and their implementation is a breeze using WSDL over SOAP. However, some of the core changes left me [...]

Also tagged , ,

CakePHP makes upgrading easy

Laura attended CakeFest a couple months ago and got to meet some core Cake developers in person. In doing so she let slip that AMO was running on a pretty old version (1.1.12 – Released in December of 2006). Apparently 1.1.15 had some major performance boosts and since we melted the cluster a [...]

Also tagged , ,

When is a TINYINT(1) not a TINYINT(1)?

When you’re using CakePHP!
Turns out CakePHP considers a TINYINT(1) to be a Boolean. Judging from all the support tickets that have been filed, I’m not the first person to get taken off guard by this behavior. When I asked about it on IRC, the response was that since MySQL considers a TINYINT(1) to [...]

Also tagged , ,

Frameworks that start sessions for every visitor make me sad

I might have played the devil’s advocate when Lars was hating on frameworks at the barcamp last weekend, but that doesn’t mean I don’t see his point. The latest in a series of frustrations with frameworks kept me up until 3am last night. What better way to cap it off than complaining on [...]

Also tagged , , , ,

10000 commits and going strong

Mozilla’s SVN repository was started on September 2nd, 2006 and just hit 10000 commits. That’s an average of over 19 commits a day for 520 days straight!
After my positive experience with python I was gearing up for a script to do some repository analysis when I ran across MPY SVN Stats. After a [...]

Also tagged , ,

CakePHP’s cache that wouldn’t quit

I had the joy of debugging some unit tests the other day on AMO and ran into caching trouble. Turns out the bug for this was filed over a year ago, but I tested it in the latest build of Cake (1.1.18.5850) and it’s still not fixed.

Cake’s models have a Boolean variable called $cacheQueries [...]

Also tagged , ,

The most worthless bot on IRC

I’m not one to jump on bandwagons just because they’re rolling by (even with great companions), but I started using Python in one of my projects and I’ve got to say that I’m pretty happy with it. I think their documentation leaves something to be desired but overall the language is pretty intuitive and [...]

Also tagged