Friday, September 26, 2008

Key Mapper

I wrote an open-source scancode mapping program for Windows - a program which lets you remap and disable your keyboard keys. A sample usage (i.e. my own) disables the Num Lock key, disables the Insert key and remaps Caps Lock to Left Shift. What this means is the Num Lock and Insert keys now do nothing, instead of being subversively annoying (I never want to turn Num Lock or Insert off) and when I press Caps Lock it's as if I have pressed Left Shift (although I occasionally might want to turn Caps Lock on, 99% of the times I do turn it on it's not what I want, I just mashed the A key with my fat finger). Also, I got so fed up with not being able to remember how to get the hash symbol using Windows under Parallels on my MacBook that I remapped the ±/§ button on the MacBook keyboard to it the other day. Much easier to remember. Plus I remap "Left Windows" to "Left Control" under Parallels so I can still use Command-C to copy.

You can find the program's website here - there's an auto-updating version available from the Install page, or alternatively get a standalone build from the project's downloads page on Google Code.

You can also use it to assign keys to things that you may want but which aren't on your keyboard, like starting your email program or browser, or controlling your computer's sound volume.

I'm quite pleased with it as it handles all different keyboard layouts - all different languages, US vs European vs Mac keyboard layout: it has a drag-and-drop interface, lets you browse through the different keyboard languages installed on your computer, and even explores new ground for the (admittedly small) world of scancode mapping programs - you can have per-user mappings (as opposed to mappings which apply to every user) and remap your Pause key to a command which requires two keystrokes (e.g. Windows-L or Alt-F4 or Right-Alt 4 for the Euro symbol)

Here's a screenshot of the program with it's child windows open:

It's funny how such a seemingly shallow subject as keyboards becomes so deep when you get right into it.

Saturday, September 20, 2008

Parallels Tools for Ubuntu 8.0.4 Hardy Heron

Parallels have finally released a build which allows the Parallels Tools for Linux to be installed in Ubuntu 8.0.4 Hardy Heron: get build 5624 from here. Mouse synchronization and desktop resizing make for a much nicer experience. I still have to click the Network icon and select 'Wired Network' to get a network connection, but that's easy enough to do on each VM reboot, as there aren't many of them.

Tuesday, September 16, 2008

Points Per Game

It seems to me that ordering the football league tables by the average number of points per game is a better indication of how a team is doing than simply by points scored, especially when the variance in number of games played by each team gets beyond one or two. Teams generally go through the season getting the same average number of points per game (or, to put it another way, it takes a big change in form to achieve any significant change in the average).

I've got fed up figuring it out manually so I've done a web page where you can look at any English or Scottish division ordered by points per game. I'm thinking of adding to it so only home or away results can be shown as well as the total.

The tables are scraped from the BBC website, so fingers crossed they don't change their format.