More orienteering

It’s been a busy orienteering season this year, with additional “training” events for members only, that made the schedule more interesting.

The June 8 event was fun, even though the heat added to the challenge of overgrown vegetation. I could have done better, since I lost a lot of time on several controls (and the worst one was the last). But exhaustion does play tricks to your mind. Vladimir Stemkovski described his experience on the Brown course, and he has posted the map. I believe that, when trying to hit control 12, I got to the trail (dotted black line) between 11 and 12, right where I was supposed to be, but missed the saddle, then got back on the trail and thought I was on the top of the hill, so my compass bearing dropped me on the paved road instead. Approaching the control from the paved road was easier, the large re-entrant helped me get in the right spot, and even then I had troubles seeing the saddle.

I was 20 minutes late past the 3PM course closing time, but I wasn’t the last one on the course (as I found out later, one orienteer suffered from heat exhaustion). I was pretty happy with the fact that I was able to run large portions of the course, but when I got to finish I probably looked like I stepped out of the pool (although I suspect there was some mud involved too). Long pants are mandatory to protect from bugs and branches, and that doesn’t help much for cooling you down, even though the tech fabric is definitely light and breathable.

In other news, I started working on a PalmOS application to download data from SportIdent  control stations. I didn’t have any time to work on it over the past months, but hopefully I’ll make some progress in a few weeks, when my schedule clears up a bit.

Attaching random commands to a keyboard shortcut

I thought I should share this simple way to run a command with a key combination.

Metacity will let  you configure keyboard shortcuts for generating events it knows about (sound events, window events etc). For that, all you have to do is go to System->Preference->Keyboard Shortcuts.

But what if you wanted to run  an arbitrary command? In my case, if I suspend my laptop while the display is set to use the external monitor, and I resume trying to use the laptop’s LCD screen, I would have to somehow invoke xrandr to get the display back. Sounds like a keyboard shortcut would solve the problem, since I could type it blindly, without anything on the display.

This is the solution I found:

  •  Run gconf-editor
  • Go to apps->metacity->keyboard_commands
  • edit one of the command_N keys to add the command you want to be run (in my case xrandr)
  • go to global_keybindings, edit the run_command_N key and add the keyboard shortcut, like <Ctrl><Alt><Shift>R

No need to restart anything.