Old MIT Quotes file

I found these quotes on a random blogger’s site, who in turn found this whole file randomly looking through a Terry Pratchett ftp directory on an MIT machine, back in 1995 or 96. He luckily saved a copy and I’m reposting here because I don’t want to lose them to the fickleness of the Net.

Continue reading


MS-Windows focus-follows-mouse Registry hacks

This post is also available at my personal web site: http://milosophical.me/blog/2010/03/10/ms-windows-focus-follows-mouse-registry-hacks.html

I like the “focus follows mouse” window-focussing model from X11, because

  • I don’t have to click on the window, just move the mouse and the window it’s over is focussed
  • I can focus a window without bringing it to the front, which is sometimes handy. If I want it in front, I can click it.

However MS-Windows follows the old-fashioned, Macintosh/Smalltalk style of having users click on a window to focus it for the keyboard. How do you make MS-Windows behave more like X11?

Continue reading

Stripping tags from ogg Vorbis files

I have a bunch of free Ogg Vorbis audio files that I’ve downloaded from Kahvi.org. They’re great! But recently they’ve been including cover art within the files, which breaks Windows Media Player (it can’t handle the very long tags of binhex-coded JPGs).

Since I rather like WMP’s integration in windows (keyboard shortcuts), and Amarok isn’t quite ready for win32, I thought I’d find a way to strip the troublesome tags from the data files rather than change to another player.

Here’s a quick-and-dirty shell hack to remove the tags from the files and get them playable by daft players such as Windows Media Player

Continue reading

Cascaded revision control strategy

Okay, this isn’t rocket-science, and in fact it’s not even my idea (heard it on the FLOSS POD about Git). A problem with centralised repository systems such as Subversion (which is used on SourceForge) is that you need network access to do many things, and also to just save your work. You can’t do commits to the repo’ while on the train, for instance (which is where I do most of my hacking).

One option is to switch to a distributed revision system, such as Git or Mercurial.  I may do that some day, but right now is not a good time for me to be learning a new revision system. Plus to have SourceForge host my project in Hg (for instance) means installing it myself and blah-blah-blah. Then there’s IDE integration to consider…

I want to have my cake and eat it too.

Continue reading