October 22nd, 2010
Dear “web developers” writing Wordpress themes,
I know, CSS can be hard to grasp, especially if you attempt to come up with something that will work moderately well on all major browsers, but please, listen to this one request:
If you have no clue, don’t upload themes that break spectacularly as soon as you stretch the browser window by more than 10 pixels. I am fed up with having to fix themes that are beyond fixing. Thank you.
Posted in General | Comments Off
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)
ac_python_devel.m4 can be downloaded from various sources, for example from this project. pyconstants.c is supposed to be generated with awk -f src/constants.awk src/constants.txt > src/pyconstants.c.
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 | 1 Comment »
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 | 10 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 | 21 Comments »