Skip to content

{ Tag Archives } code

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 ,