Category Archives: Python

Automating stopforumspam.com ASAP (updated!)

In case you need a quick way of getting rid of spammers on your apache server, use this method as a temporary solution until you find a better one. Please take not that it will evaluate EVERY SINGLE REQUEST through … Continue reading

Posted in Python, Ubuntu, Web | Tagged , , | 1 Comment

Automating stopforumspam.com

THIS DOES NOT WORK WITH APACHE SINCE IT DOES NOT USE /etc/hosts.deny – See this post instead Use the following Python script to maintain a file in the hosts.deny syntax so that your Debian/Ubuntu box (or other Linux server) is … Continue reading

Posted in Python, Ubuntu, Web | Leave a comment

Using GtkBuilder and connect_signals

I have been hunting spontaneous crashes with errors from the C GTK libs. The errors looked somewhat like these: Warning: g_object_ref: assertion `G_IS_OBJECT (object)’ failed gtk.main() Warning: instance of invalid non-instantiatable type `AtkSelection’ gtk.main() Warning: g_signal_emit_valist: assertion `G_TYPE_CHECK_INSTANCE (instance)’ failed … Continue reading

Posted in Python | Tagged , , , | Leave a comment

Django localized date template filter

UPDATE! This is going to be redundant in Django 1.2, in which you can add DATE_FORMAT to your django.po files. I’ve often been frustrated that using settings.DATE_FORMAT does not give a localized date. Granted that the name of a month … Continue reading

Posted in Django, Python | Tagged , , | Leave a comment

Presenting: django-simple-wiki

It was bothering me that all the wikis I tried, all had either errors, feature lacks, too many dependencies or were simply unmaintained. So I decided to create yet another one. Curiously, the third hit when googling ‘django wiki’ is … Continue reading

Posted in Django, Python | Tagged , , , , | 1 Comment