March 10th, 2010
I recently became aware of a Python plugin for irssi, which conveniently resides in the irssi SVN repository. This plugin presumably exposes an API very similar to the one used in the Perl plugin, so creating new scripts should be easy with all those Perl samples out there.
There’s an useful guide for building the plugin here, but I found that some lose ends still needed to be patched up.
For one, the plugin apparently hasn’t been updated in a while, so some function calls still reference old irssi structures and functions. Naturally, these don’t compile with irssi 0.8.15, which is the latest version as of this writing. For those issues, I compiled a patch with various fixes here. This isn’t exactly a perfect fix, but should do in most cases. (The name is still 0.8.14 as that is the version it was originally written for, but it still applies cleanly for 0.8.15)
There is one more catch that isn’t mentioned in above guide: The plugin tries to load irssi_startup.py on startup, which will have to be on a specific path to be found. Without any parameters to ./configure, that will be /usr/local/share/irssi/scripts. So, if you’d rather have it in /usr/share/irssi/scripts (this is where my distribution places scripts, at least), you have to explicitly specify this when calling ./configure:
./configure --with-irssi=<path to irssi sources> \
--datadir=/usr/share
After that, make should (hopefully) work and libpython.so will be placed in src/.libs/. This file should be moved to irssi’s module directory, which should be /usr/lib/irssi/modules or /usr/local/lib/irssi/modules, depending on distribution.
Copy irssi_startup.py and irssi.py from src/ to the data directory you specified above, and irssi should be able to load the Python plugin without problems via /load python.
Posted in Python | No Comments »
July 10th, 2009
Destroyed my theme for the third time now – this time thanks to Wordpress’ automatic update feature, which takes the liberty to overwrite the default theme files.
I’m not going to completely fix it again, so you’ll just have to do with this somewhat faggy style.
Posted in General | 1 Comment »
January 22nd, 2009
Another conversion for 4chan, /b/ackwash, which shows quoted posts in a small hovering window next to the quote link when moving the mouse over it.
Screenshot

Download
4chan Backwash for Opera, Version 1.2c
Read the rest of this entry »
Tags: 4chan, backwash, opera, userscript
Posted in 4chan, Programming | 8 Comments »
January 21st, 2009
Inspired by various Firefox extensions that deal with filtering posts on 4chan, I’ve taken some time to rewrite such a script for Opera. The current version doesn’t yet come with as many features as the original, but provides most of the important functionality. If you are using Opera 10.50 or higher, I encourage you to use the linked script instead of the one in this post. (More features, more maintainance, and so forth).
Sample settings (based on real-life /a/)

Download
4chan Filter for Opera, Version 1.3a
Read the rest of this entry »
Tags: 4chan, opera, thread filter, userscript
Posted in 4chan, Programming | 20 Comments »
January 2nd, 2009
There has been some progress on Comix recently, fixing some slight flaws that prevented the program from starting up correctly on Win32. With that gone, the only issue left is that Comix cannot be directly started on Windows without an .exe file, so I wrote a simple startup script to handle that. It invokes Python and runs the file src\comix.py, so it should be put into the SVN checkout root directory of Comix. C++ source included.
Win32 Comix Starter
Tags: comix, Python
Posted in Programming | 1 Comment »