Skip to content

{ Tag Archives } code

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

Portland Coder Party Tonight

Sorry for the short notice but there is a December Coders Bash tonight that Mozilla is helping sponsor. It starts at 7pm at CubeSpace. Drop by if you get a chance – it’s informal and sounds like a bunch of fun. Stealing from the linked page:
Some of the events we are considering [...]

Also tagged , ,

Ten Tips for Website Localization

This post has some general tips that I’d recommend to anyone wanting to write a multilingual web application. The majority of my code these days is PHP, but I think these tips are applicable to most web programming languages. In no particular order:
UTF-8 is your friend. Use it.
The big step from ASCII [...]

Also tagged , ,

Threadbubble on AMO

I submitted Threadbubble to AMO tonight. I wanted to work out the bugs and get it in a stable state before I put it on there and I think it’s reached that point. Hosting it on AMO will prevent potential security issues, and it has the side benefit of providing automatic updates.
The add-on [...]

Also tagged , ,

If it’s a string, call it a string

This is probably well documented, but it’s a good reminder anyway. If you’ve got a column in MySQL that is textual (like a varchar), you need to make sure MySQL sees the data going into it as a string. Here’s an example I stumbled across today when I left out some quotation marks [...]

Also tagged

Getting notified when new mail arrives in Thunderbird

When writing an extension for Thunderbird, it’s a common goal to be able to tell when new mail has arrived. In versions of Thunderbird before 2.0, the accepted practice was to get a pointer to the nsiMsgMailSession and add a listener that got called when a new mail event happened. The code would [...]

Also tagged ,