James McDonald

Stuff I wrote about things

Vag klokke

I localised my awesome fuzzyclock.py script to Norwegian language and, uh, regional time-reading standards. Behold the glory of vagklokke.py! A little terminal in the top right of my screen now proudly proclaims: <br /> Datoen er 2012-11-13<br /> Klokka er fem på elleve<br /> It was fun to work out how to handle “x på/over halv” without too many horrible range conditions. I haven’t bothered to remove stale things like ‘tjuefem’ from the minute list, because it ain’t broke. Read more →

Hardcoded GNOMEish composition

From Ubuntu docs about the Compose key at https://help.ubuntu.com/community/ComposeKey: The compose key sequences used by Gnome are derived from the X compose tables of XFree86 version 4.0 with further modifications to provide a Gnome standard for all locales. They are hard coded into the program in source file gtk+-2.10.7/gtk/gtkimcontextsimple.c Digging into the current Debian gtk+ source verifies this: <br /> /* This file contains the table of the compose sequences,<br /> * static const guint16 gtk_compose_seqs_compact[] = {}<br /> * IT is generated from the compose-parse. Read more →

Diablo III EU “Error 33” Fix

If you had the Diablo III beta installed, you might come across error 33 “battle.net is down for maintenance” while trying to log in. This is because there is an old registry setting pointing at the US rather than EU login server. Take a look in HKEY_CURRENT_USER\Software\Blizzard Entertainment\Battle.net\D3. I solved this by deleting the entire ‘Blizzard Entertainment’ key. From orbit, just to be sure. Works like a charm. Read more →

Get off of my iCloud

Like several people I know, I have two AppleID accounts for personal use. I have one that I set up back when an iPod was my only Apple gadget and they first opened the iTunes Store. This has all my (large number of) iTunes purchases associated with it. I also have a MobileMe account that I set up a while later when I first bought a Mac, which I now largely use for the me. Read more →

Linux locale problems over ssh from a Mac

Most users of Debian/Ubuntu have at some time seen these annoying messages: <br /> perl: warning: Setting locale failed.<br /> perl: warning: Please check that your locale settings:<br /> LANGUAGE = (unset),<br /> LC_ALL = (unset),<br /> LC_CTYPE = "UTF-8",<br /> LANG = "en_GB.UTF-8"<br /> are supported and installed on your system.<br /> perl: warning: Falling back to the standard locale ("C").<br /> There are a variety of causes – usually locales not being generated properly or incorrect environment variables. Read more →

Invert mouse scroll wheel in Debian

I’ve been using the beta of MacOS X Lion for a few weeks now, and after a few days of initial annoyance I’ve grown to really like the inverted sense of the scroll wheel. I recall when I first got one, in fact, and found the direction downright confusing. This seems to have been an easy behaviour to unlearn. My desktop box at work runs Debian, and I wanted the same behaviour there to stop me getting split-brain and dribbling a lot. Read more →


I would appear to have accidentally stirred up the norsktwitterredet. I’d better write something here in case they look. Read more →

Gah, not another bloody blog

I felt the need for a place to put the occasional rant that’s longer than 140 characters. This may not happen very often, but it’ll happen here if you’re interested in that sort of thing. Read more →