Skip to content


Heading back down the mountain

Heading back down the mountain


Moose licking her chops

Moose licking her chops


Nathan on the mountain

Nathan on the mountain


Abstract Christmas

Abstract Christmas


WP Comment Notification, take two

I’ve updated the code that I published a couple days ago. It now supports multiple blogs and three notification methods:

  • Growl on Mac OS X
  • DBus on Linux
  • Standard out on any platform

Continued…

Tagged with programming, releases, wordpress.


WP Comment Notification with AppleScript

A more primitive alternative to using a python script for notification about new comments is to just use good ol’ AppleScript. Apparently, it can do XML-RPC calls and Growl notifications out-of-the-box (with Growl installed, at least). The script below will go out and check for new comments on your blog. It’ll only do it once as I didn’t want to dig into this too much, but maybe it’s also possible to sleep in AppleScript.

Continued…

Tagged with programming, wordpress.


WordPress Comment Moderation Notifier for OSX

Matt Mullenweg mentioned earlier today a plugin/application combo that displays a system tray popup on Windows whenever you have comments awaiting moderation. He also expressed a desire to see something like that for OSX. I thought it’d be nice too and given the lovely weather, I had some time on my hands.

Here’s what I came up with. »

Tagged with programming, releases, wordpress.


Using Django’s FormPreview with @login_required

As part of Django’s ‘batteries included’ philosophy, it comes with the FormPreview class to make it easy to automate this workflow: “Display an HTML form, force a preview, then do something with the submission.” Also provided is the @login_required decorator which makes it easy and obvious to mark functions as requiring a logged-in user. Both these features are awesome by themselves, but wouldn’t it be great to combine them and observe how much the awesomeness increases? Let’s give it a shot.

Tagged with django, programming.


Bug patches for django-voting and django-tagging

As part of my top-secret Django project, I’ve enlisted the help of the django-voting and django-tagging packages to provide rating and tagging, respectively, to my models. These work wonders and serve their purpose to a T, however, I’ve come across a couple small bugs that I wanted to document here, in addition to the bug reports I’ve posted.

Continued…

Tagged with django, programming.


Multiple File Uploads in Django

As part of yet-to-be-announced project, I’m working with Django. After only a couple days, I’ve been able to produce some pretty cool results. One of the requirements that I have is that a user be able to upload a bunch of files when editing a form. Using Django’s newforms package, I was able to quickly add the ability to upload 1 file, but I wanted the user to be able to upload as many as they wanted.

Continued…

Tagged with django, programming.