Ensuring epatch works correctly on embedded Gentoo
November 11th, 2009
On my BeagleBoard, the ebuild messages were telling me that the patches had been applied successfully, but inspection of the code showed they hadn't. It was a nasty problem to fix - it seems like a epatch wasn't liking the cross-compiled bash.
After compiling bash natively and getting a another shell, the epatching was successful.
Ruby process management with Jobby
April 10th, 2009
Jobby is a generic forking process manager written in Ruby, built with robustness as a primary goal from the start. It was initially developed for offloading long running background tasks from the webserver in Rails applications, but it turned out to be useful in its own right, so we extracted it to work more generally. It uses Unix sockets and a call to fork(), so won't work on Windows or JRuby, but has been tested on several flavours of Linux and OS X. It is also copy-on-write friendly, should the Ruby interpretter that's used support it.
If you prefer to read code than blog posts, server.rb does most of the heavy lifting.
After a long struggle of using the old BackgrounDRb, last year we finally threw in the towel. We checked out the alternatives, but nothing really fitted the bill. Since background job processing is quite central to some of our applications, we built our own. From the start we had some requirements:
- Run jobs in parallel up to a maximum number or processes, then start queuing
- Robust - it just had to be solid
- Easy to manage - we hated those BackDRb scripts
- Reliable logging
- Able to get messages from the background processes
Jobby itself does not provide a mechanism for getting messages from the child processes. I'll detail a jobby_rails plugin that handles that some other time.
Installing Jobby
gem install jobby will do the trick. You can also check out the source from GitHub.
Gentoo users can install Jobby from the Gentoo Ruby overlay.
How does it work?
Jobby is a command line program. It consists of a daemon that listens on a Unix socket and will fork when it receives a connection. The forked child either runs some Ruby code or executes some shell code, depending on how the daemon was started. When you call Jobby, you pass a single parameter to STDIN - this string is passed to the forked child. It could be an ID of some sort, a whole email, a marshalled object or whatever.
There is only one command used, jobby. When this is run it first checks for the existence of the daemon process listening on the socket. If it's not there, it starts one (and then executes the child command). This is great because it makes daemon startup totally automatic and if the daemon should go down (this hasn't happened to us yet in the months that we've been using it), the next request will start up a new one.
Stopping Jobby
There are two ways to stop the daemon, both using Unix signals. Issuing a USR1 initiates a "very friendly shutdown", which will stop the daemon accepting any new connections but will allow it to finish the jobs in the queue before terminating. Issuing a TERM signal will stop the daemon forking, then issue a TERM signal to the child processes and terminate the daemon.
Other nifty stuff
When using Jobby to run Ruby code, you might want to have the children load a few libraries before they do any work. Repeating this every time is a pain, so you can instead pass a --prerun parameter to prerun some Ruby code in the daemon before any forking takes place. This will load the libraries (at least in this example) so that they are immediately available in the children when the fork occurs. If you're using a copy-on-write friendly interpretter, like Ruby Enterprise Edition, you'll get the memory saving benefits of that too.
You can run multiple Jobby daemons - just call each one by passing a different socket parameter. This is how you can run different code for different job types that you have.
To make your debugging life easier, the forked children will show up in process listings as jobby: /path/to/socket. The actual daemon process will show up as jobbyd: /path/to/socket.
Using Jobby with Rails
Jobby was designed for use in Rails applications, but was extracted since it is generally useful. This post only describes Jobby itself, which you can happilly use from a Rails app using a system call. Sometime I'll get round to releasing and detailing a Rails plugin for Jobby that adds a communication layer to Jobby and makes Rails intergration nicer. We're using it just now, but it's not really releasable as it is. I decided that since the main Jobby code has been so stable for us, it made sense to release it now.
Injuries
January 10th, 2009
I always find Dave MacLeod’s writing very good. From his blog:
Dealing with an injury is as much about the psychological aspects of adjusting to the new reality as implementing a course of physical rehabilitation work for the tendon.
This is one of the best sentences I’ve read on a blog and has been ringing so very true for me this year.
On a positive note, I’ve just been out for the longest and hilliest (admittedly, not much of either) run I’ve done since hurting myself at the start of the season last year - ace!
Sansa Clip
December 18th, 2008
I’m not a huge listener of music, but since my way to work usually involves a 30 minute walk through the center of the city these days, some media is nice to have. Graham from work spotted a SanDisk Sansa Clip 4GB for £35 at the airport. I’d never heard of the clip, but a quick play with his was enough to convince me to get one!
It’s very small, weighs very little, has a nice (if small) screen, an unnaturally good battery life and uses a standard USB cable for power and access. The developers also added OGG Theora support at the request of users.
Add to that an FM radio (not particularly great quality in limited my experience) and a voice recorder and it seems like a really nice little late Christmas present. Shame Sarah’s iPod was mysteriously resurrected.
Broken voice
November 3rd, 2008
My voice breaking was largely a non-event. I think I croaked a little for five minutes, but then couldn’t really tell too much of a difference. By far the biggest news of the whole thing was me realising that I could no longer squeal at the same pitch as before.
Until then I had a fun, very high pitched squeal. I used to entertain myself by hiding behind walls when dog walkers were near and letting out a few bursts. The results were varied, but usually amusing - some dogs loved it and immediately tried to find me, sometimes dragging their owners behind them, some ignored it altogether while some would bark furiously at me, a tree or their owners. Heehee. If you’re of a suitable age, I recommend giving it a go, you might be able to do it too.
Rannoch to Fort William
July 24th, 2008
I rode from Rannoch to Fort William at the weekend and caught the train back at the end of the day. It was a magic day out and I can totally recommend it. I crossed over the bog to Loch Treig and went up the river to the base of the Grey Corries before heading along the fireroad past Loch Eilde Mor to finish on the final section of the West Highland Way.
It took me 7.5 hours with pretty wet conditions underfoot and with a very noticable headwind all the way. Next time I would probably leave myself more time and head along the Ciaran Path, which I haven’t ridden, to Blackwater Reseviour (taking in the technical downhill to Kinlockleven) instead of going up the Abhainn Rath.
Wow - check out all the links in this post! I’m starting to get to know the area pretty well.
Potter's birthday and Glen Kinglass
July 17th, 2008
I’ve had a pretty rubbish start to the summer overall. Some annoying niggly injuries and then shingles. On top of that, the weather has been pretty crap. I seem to be coming out of the other side of it now though, which is great, so it’s time to make the most of what’s left of the summer.
Stuart called on Friday night and wanted to get out on the bike for his birthday. Nice timing Potter - a great way to begin getting a little fitness back. He’s described the ride, which turned out a bit longer than expected, on his blog. I had a top weekend, just what I needed - a nice long ride (but not very hilly) in a new place, top company and some lovely whisky too. Magic.
Happy birthday Stuart!
An interesting week
June 25th, 2008
Last week was a varied one. Last weekend (Sat 14th), I headed up to the Angus Glens for my first proper mountain bike ride this year. I've been plauged this spring by some niggly injuries (hip and knee) that have been so frustrating and have stopped me running and cycling. Last Saturday was great though - I squeezed in 31km in the southern Cairngorms (Glen Doll to Loch Muick, up to Dubh Loch and back over Capel Mounth) with plenty of physical singletrack and some pushing thrown in. That was a little more like it and fired me up for some solid riding for the rest of the season.
Then on the 19th Sarah and I got the keys to our excellent new flat. It's right in the middle of town and we love it to bits - woohoo! Dealing with the bank and all the associated crap that goes with buying a house was rubbish, but the end result was worth it. The next day I went to the doctors to ask about the rash that had appeared on my armpit and chest during the week and was diagnosed with shingles. Fuck. It didn't stop me moving our stuff in the next day (massive thanks to all our friends who helped out - you made life much easier), but that evening I suddenly felt pretty crap. It was really sore, hot, itchy and stingy and I felt wasted. Yuck!
A couple of days on and the pain has subsided a fair bit - I'm even sleeping pretty well. My rashes are blistering and it's as itchy as it is sore now, but the worst part is the weakness - I'm shattered all the time! From what I've read been reading, this can last for quite a while and is what worries me the most. Bleh - surely after this I can get mountain biking done?
Nibbles 0.1 released
April 2nd, 2008
I'm pleased to say that I've just released version 0.1 of Nibbles, an alternative RSS and Atom feed reader for Maemo. A big thanks to the people who were kind enough to help out with the pre-release testing, you've been (and hopefully continue to be!) a great help.
Nibbles is quite stable, can parse a wide variety of feeds and is pretty bandwidth efficient. Nibbles is finger-friendly and does aim to be a good mobile feed reader, but things like downloading of full offline articles didn't make it into this initial release (I have some working code for that, but it's not working enough!). New users might want to know that the zoom in/out hardware buttons hide and show the feed and article lists.
Of course, since this is a first release, things aren't perfect. The biggest problem for me that I think people should be aware of is that Nibbles uses too much battery power. This is detailed in bug #2342 and is really a problem with ruby-gtk2 rather than Nibbles. As I said, with some luck, the next ruby-gtk2 release will fix this.
You can install Nibbles from the project page.
Does anyone have the ruby-maemo source?
March 27th, 2008
Tom Swindell (AKA alterego) created the Maemo bindings for Ruby and they're great. I'm writing a couple of programs with them, including Nibbles, my feed reader. Unfortunately, Tom seems to have vanished and I've not been able to find the source code for the bindings anywhere. Does anyone have it? I'd really like a copy.
In other news, I hear that a new release of ruby-gtk2 is near. This is excellent as it will hopefully fix the battery life problem with the current bindings where Ruby/GTK programs (and, therefore, Ruby/Maemo programs) wake up 100 times a second regardless of what they're doing. Happy days.
Nibbles, a feed reader for Maemo
February 15th, 2008
I don't really get on with the supplied RSS reader on my N800. It doesn't work like I expect and it lacks mobile features like offline reading that I'd like. So, I'm writing a feed reader for Maemo called Nibbles. It's still very early stages, but there's enough for a development release now, I think. Below is a screenshot of the current preview version, 0.0.4:

It seems to cope nicely with a wide variety of RSS and Atom feeds, despite my proof-of-concept code somehow making it into the app ;).
Currently it's quite bare of features and can be considered the simplest app that could work (for example, the feeds update at a fixed 30 mins). It will likely stay that way until I get a few bugs worked out and 0.1, the first 'stable' version, released. After that, I'll work on some more interesting new features. I'm still very open to suggestions though and all feedback is welcome, so please don't be shy!
If you'd like to play along and help the development of a better feed reader for your internet tablet, use the .install file. Please report issues to the Maemo Garage tracker.
You can make Nibbles the default feed reader by editing /usr/share/applications/defaults.list. You need to set hildon-news_reader=nibbles.install. This will allow you to tap on the feed icon in a browser window and have the feed added to Nibbles.
I've only specified that the app will work in OS2008, but I'm pretty sure it'll work in OS2007 too. Since I only have an OS2008 machine, I can't test it easily. If anyone is still using OS2007 and would like to help, please do get in touch.
Creating RubyGems .debs for Maemo
January 21st, 2008
I'm writing an application (more on that sometime soon) using the very nice Ruby bindings for Maemo. I've got some dependencies that are packaged as RubyGems that I wanted to be managed through the Application Manager, so I created some .debs for them. Here is their temporary home The rake, hpricot, feed-normalizer, simple-rss, atom and htmlentities gems are available in my repository. I didn't create the rubygems and librubygems packages themselves - I was sent them, but couldn't find them hosted elsewhere.
It took me a little while to suss out how to create the .debs so I've included the steps here in case anyone finds themselves in the same boat. This works for native Ruby gems and compiled C extensions.
- Install the gem inside Scratchbox. Irritatingly, "gem install example" doesn't always want to do very much, so you may need to dowload the gem file and "gem install example-0.1.gem".
- Make a new directory with the rubygems-<package>-<version> syntax (the rubygems- prefix seemed to make sense to me):
mkdir rubygems-example-0.1 cd rubygems-example-0.1/ ; mkdir gems specifications bincp -r /targets/CHINOOK_ARMEL/var/lib/gems/1.8/gems/example-0.1/ gemscp /targets/CHINOOK_ARMEL/var/lib/gems/1.8/specifications/example-0.1.gemspec specifications/cp /targets/CHINOOK_ARMEL/var/lib/gems/1.8/bin/example bin/(if there are any bins)- Create a Makefile with this content (you will need to replace the spaces at the start of the lines with tabs):
all: clean: install: mkdir -p $(DESTDIR)/var/lib/gems/1.8/gems/ mkdir -p $(DESTDIR)/var/lib/gems/1.8/bin/ <------ REMOVE THIS LINE IF THERE ARE NO BINS mkdir -p $(DESTDIR)/var/lib/gems/1.8/specifications/ cp -r gems/* $(DESTDIR)/var/lib/gems/1.8/gems/ cp bin/* $(DESTDIR)/var/lib/gems/1.8/bin/ <------ REMOVE THIS LINE IF THERE ARE NO BINS cp specifications/* $(DESTDIR)/var/lib/gems/1.8/specifications/ dh_make -e you@example.comthen choose the type of package.- Edit debian/control to suit. Make sure the section is something like user/Utilities, not just Utilities if you want the package to show in the Application Manager.
dpkg-buildpackage -rfakeroot -b- The parent directory should now contain rubygems-example_0.1-1_armel.deb
As a final note, /var/lib/gems/1.8/bin/ may not be in $PATH, so you'll need to deal with that if you have files in bin/.
A Ruby binding to cracklib
December 28th, 2007
Just released rubylibcrack as a gem (0.1.1). I developed this teeny-weeny binding to the *nix password strength checking library cracklib at my work. Big props to my work, they totally get open source and the way things should be done.
The gem has only been tested on Redhat, Fedora, Gentoo and Ubuntu (all 64bit, I think), but I'd love to hear how it fares on other platforms. Here's a Gentoo ebuild for the package.
Mercurial 0.9.5 for Maemo
December 1st, 2007
I'm using Mercurial to track changes in my latest project, a GTK mapping application. I couldn't find a build for my N800, so I made one myself. I'll host a .deb until I get around to putting it on the garage or creating a repository.
Edit: I've started a garage project.
To install python2.5-runtime I needed to add repository.maemo.org to the application catalogue to satisfy some dependencies. Tested with OS2008 beta on an N800 only.
Gleneagles
August 22nd, 2007
So I’m writing this in some rare glorious sunshine in the gardens of the Gleneagles hotel while Sarah is inside getting a Swedish massage. Her birthday treat has gone down rather well. But, of course, how could it not? The whole experience has been as luxurious as you’d expect.
Between playing petanque and croquet, swimming, lounging around in the hot tubs, eating, walking around the grounds and enjoying the lovely room, it has been an awesome couple of days. The breakfast menu said the buffet was an experience in its self and it was right - we spent and hour and a half gorging ourselves. It lived up to the standard set by the lamb and wild salmon we ate last night. The whole thing is a far cry from the climbing trips I’m used to - eating bread and cheese and sleeping under the trolleys outside Morrison’s in Fort William - and I’ve enjoyed it just as much!
Everything is excellent here (except the enormous price of a round of drinks) - from the bedroom to the flower beds to the staff going a hundred times out of their way to be nice to you and help you out. It’s nice to see how the other half live and it’s a great treat (although I wouldn’t want to pay full whack!).
I’m off to play hacky sack now to a great backdrop. Then we’re going for a drive about to eat pastries and perhaps look at the Fortingall Yew. Magic.
Toast
August 16th, 2007
Madness - our managed offices have just removed the toaster from the kitchen because it was deemed to be a fire hazard. Yes, just a normal toaster. The insanity has reached a new level. Euan said it nicely: “A toaster in a kitchen, I’ve never heard of such a thing!”.
As you might have guessed, I’ve just tried to toast something.
Rules of climbing hills
July 16th, 2007
I love climbing hills on a mountain bike. It ranks as highly as awesome twisty singletrack in Spain. I especially enjoy climbs that feel right at my limit. It’s all pretty obvious, but just so that there are no disputes, here are my rules for going up hills:
- If you dab (put a foot down), you’ve failed
- If you grab the scenery, you’ve failed
- If you trackstand, you’ve failed - I really mean trackstands to make up for not enough fitness; brief pauses on steep and technical hills aren’t always trackstands!
What's up with the ScottishClimbs server?
June 13th, 2007
In case anyone has been wondering "What's up with the ScottishClimbs server recently?", here's a wee explanation (I guess I'm saying, bear with us!):
Yesterday was interesting. I was up and about at 04:30 to catch a flight to London for a conference related to my work. With ten minutes until my taxi was due, I logged into the server to check my mail. BOOM - something was up! Funky "read-only filesystem" errors and more strange behavior all over the place - can't do anything. Check the logs, unmount the drive, remount it but still no joy. Five minutes to taxi. Reboot into maintenance mode and start running fsck. Answer "y", "y", y"... - should've used the "-y" option! Taxi rings, "y", "y", "y"; shit, he's going to leave! "y", "y"... done! Type "reboot"and run out the door. Phew!
Fortunately, it was all good (at least, as far as I'm aware - I wasn't online yesterday) - I'm pretty sure we didn't lose mail (the most important thing, IMO) and I'm assuming SC was OK too. I do think that this filesystem corruption ties into a deeper problem we have though.
You may notice that the server is slow to respond to things sometimes. The lucky devils with @sc mail accounts might have noticed similar slowdowns too. This is usually because the app that runs whatever you're trying to do is busy hauling itself out of swap space. I've spent the last few weeks tweaking the server in various ways - this is part of why things have been up and down recently. The sys admin at work and I have been trying to work out ways to optimise the system, but we're starting to run out of ideas. The fact of the matter is, the server needs more RAM. Put simply, 256Mb isn't cutting it. I'm going to continue to try to find ways to trim the RAM usage and stabilise the system (it's already a lot better than it was), partly becuase I'm really enjoying learning about this stuff but also because we don't want to spend any money we don't have to. I suppose ultimately though, we might need to just upgrade our service.
Note: yes, I realise RAM is very cheap. However, since we use a virtual machine we can't simply upgrade the RAM and need to upgrade our whole service proportionally. In this case it's pretty much doubling our costs which is why we're trying some other stuff first.
Some running in the coe
May 3rd, 2007
I got out and about on the hills at the weekend. Buachaille Etive Mòr is really a ridge of four tops and Buachaille Etive Beag, the smaller twin, is a couple of tops. They are probably normally tackled as two day walks, but they aren’t too savage and fit quite nicely together.
Since this was one of my first days out this year I was keen to make sure I felt strong, so I took it pretty easy up the tourist path. A few weeks ago I felt awful on an abortive Arrochar run and I wasn’t keen for that again. It’s pretty straightforward, if rocky, climbing which pops you out just below the top of Stob Dearg. Feeling fit, I cruised along the tops on the ridge (more likely because there’s hardly any ascent…) and back again to the Allt Coire Altruim for dropping down to the Lairig Gartain.
From here, I headed up on some wetter ground to get the Wee Buachaille’s tops. My lazy winter legs were feeling tired, but some food sorted that out and I was soon enjoying the awesome views to the north, taking in the Ben, the Grey Corries and the Mamores which are all part of a big day out I’m wanting to do later this year: Tranter’s Round. More on that later, but for now - see the note.
After absorbing the views for a while (and a few Penguin bars), I had a nice cruise back down to the Lairig and then more gently back to the car, all the while feeling like a fit mountain machine. I can’t kid myself, this was a pretty easy paced and gentle run, but that was point after the dismal attempt in Arrochar and things just felt right. In fact, I was totally psyched all the way home, marred only by getting yet more tick bites - I hate those little bastards.
Note: I’ve shelved plans to run Ramsay’s Round this year. I could say that since I’ve started going out with my totally snazzy new girlfriend, I haven’t been out as much, and I guess that is true, but to be honest I think realism has taken hold. Or is this all just a handy excuse to be soft?
Heard in the pub
April 30th, 2007
I walked into a pub toilet at the weekend to overhear some guy doing a pee saying this to another punter:
Do you get a lot of people from Papua New Guinea here?
[pretending to be from PNG]: We eat each other, but we're generally small.
I'm cool with that man - I'm not from Edinburgh, I'm not from Glasgow. I'm from Crieff; small town, big people.
Then he walked out.
SC changes
April 13th, 2007
We've finally migrated the ScottishClimbs forums. We had been running PhpBB2.x for five and a half years and been getting increasingly frustrated with it for the last three! We've moved to Simple Machines and so far (somewhere around a whopping 48 hours) we're really impressed. Unfortunately, permalinks to the old forums have been broken by this change. Ah well, I have at least tried to keep old links working for SC over the years (sometimes more enthusiatically than others).
We have also migrated all of the written content to the wiki, which is better for everyone. Au revior SC2, you have served us very well. The NRDB and media sections haven't changed at the moment.
Since my work were nice and gave me a free afternoon off I've just spent a very pleasurable few hours browsing around some of the articles on the wiki and posts on the forums. I doubt our enthusiasm will ever be as strong as it once was, but this afternoon has reminded me of one thing: ScottishClimbs is pretty damn cool and definitely worth everything we've invested in it.
For me, the most consistently funny posts are from Pure Ned Brilliant. Here are some particularly choice parts for me:
From:
Don't do it. Keep your work and your re creation separate.Al is absolutely right. After much deliberation, I started a job shagging supermodels at a thousand quid a day, and it put me right off gloriously abandoned heterosexual lovemaking. So much so, that apparently I am now one of Al's increasingly recurring homosexual fantasies.
From:
Imagine if you have been working a route for two years, and are just about to go for the lead when a passing orang utan cruises up it and then tries to shag the camera man.
From:
I struggle to see how you can find 'utter bollocks' in that statement.A huge huge congratulations to pete Johnston for he has been moved from squad to team status on the Junior British Climbing team Awesome job pete well done mate keep up the good workDavid, I think you're right, it may well be impossible. The best I can do is 'utter bollok'.
I'll have a consonant please, Norrie.
Class.
Geotagging my Flickr photos
October 24th, 2006
Tonight I finally got round to adding my photos to the Flickr mapping feature. I guess I got inspired by taking and uploading my first photo using Zonetags with my phone (Nokia 6680) and my Holux bluetooth GPS receiver.
Zonetags
Zonetags is a trivially easy-to-use beta-ish application for Series 60 Nokia smartphones that acts as a wrapper for the standard camera software. It can record the cell id (I think it uses the last known value if you’re not in reception) and attach it to each photo you take. You can also connect an external GPS device to add much more accurate longitude and latitude information to the photo. Once you have taken a photo you’re asked if you want to upload it to Flickr. If you do, Zonetags can optionally add action tags to do things like rotate your photos as well as suggestting extra tags based on your location and the tags that other people have given to nearby photos.
For example, when I uploaded a photo coming down from Snowdown at the weekend, “Caernarfon” and “United Kingdom” tags were added along with the geotagging and celltagging ones. Over time, this could get really smart.
Unfortunately, my camera can’t use my bluetooth GPS. I think as a workaround way of geotagging those photos, I might also take one with my phone and upload it with private permissions via Zonetags (to get the geotags into Flickr) and just replace the photo with the better camera shot when I get back to a computer. We’ll need to wait and see if that is too much of a pain in the arse to be practical when out in the hills though.
Flickr map
I’ve wanted something like this for a while now - being able to browse photos by location is nifty stuff. It’s super easy to get photos on the map (if you’re using a supported browser, of course…), but I find it is limited by the poor quality of the maps, at least for most of Scotland. Of course, Flickr can’t help this and it will improve given time, but it would all be so much cooler if the maps I use most were worth looking at! There are 3rd party apps that are more accurate or you can hand geotag the photos with the lat/longs yourself and import them instead, but I haven’t bothered looking at any of those options yet since my priority was to just get them all geotagged.
In some crazy alternate reality where I actually have some spare time, I will use the Flickr API in my desktop mapping software to give the same functionality in a faster and much more detailed environment. That’s after re-writing it so that it’s not just a prototype, adding in GPS tracklogging and a million other neat things… sigh.
The good
- Flickr map is very cool, I like it
- Zonetags is very cool, I like it
The bad
- Yahoo! Maps isn’t as good as Google Maps
- Yahoo! Maps is vastly inferior to Google Maps
- Scotland has pish quality maps - ces’t la vie
- Zonetags doesn’t allow you to change your mind and upload a photo you previously took with it - pretty poor
- My phone/bluetooth/software combination only allows one phone -> bluetooth connection at a time
The ugly
- The admin map interface doesn’t work in Opera - boo
From that list it looks like I’m not too positive about this stuff, but that couldn’t be further from the truth - it’s excellent and is going to keep getting better.
Update (26/10/2006)
I forgot to mention that I was a little annoyed that Flickr didn’t add geotag tags to my photos when I added them to the map. Last night I found this excellent bookmarklet which embeds Google Maps into Flickr, giving you much more accuracy. It totally rocks. Or, it will totally rock if it starts to work in Opera. For now it just rocks. It adds the geotags as well as giving your photos a link to Google Maps (you can see the singletrack!). There is a little discrepancy between Yahoo! and Google Maps (about 100-200m), but it is definitely preferable for me to use Google Maps for the forseeable future. Now I need to go back through my photos again…
Loch Treig hills
September 17th, 2006
Another weekend, another day in the hills. The weather was awesome for a round of the Loch Treig munros - I got a suntan while my friends in Edinburgh were contending with fog. Wicked.
The second third of Ramsay’s Round was a total contrast to last weekend. Setting off from Fersit, I trudged up the pathless, boggy and heather covered Stob Coire Sgriodain (which has lovely views to Loch Treig, once you get to the top), then nipped over to Chno Dearg. I descended by the stream near Meall Garbh, but I think I will try just dropping down the ridge, or maybe the stream, from the top of Chno Dearg next time - it would probably be about the same and would shave a little off the distance. Climbing to Beinn na Lap was gentle and straightforward and I expected to have the top to myself. Instead, I arrived at the same time as a party of about fifteen who went on to celerbrate someone’s last munro. I politely declined the champagne and headed down through more bog towards the fireroad and rail tracks below.
From there, a lovely few kilometres of scenic track got me to the bottom of the vague ridge that climbs Stob Coire Easain. Really, I was a bit dumb - I should have carried on along the track until I got to the bottom of the Stob Ban descent, so that I could have climbed the same route as when running the whole round, but I was starting to feel it a bit and I just wanted to get back to the car. As it turned out, I was hit with a severe bout of tiredness on the climb, like I experienced on Ben Macdui a few months ago. After some food and five minutes off (and some digestion time) I felt a bit better, but it felt like a long climb up into the clouds. Stob a’ Choire Mheadhoin, the final hill, was nice and easy but the descent was not. It involved far too much traversing for my liking, which game me a really sore ankle. Eventually, enough was enough and I dropped down to the east and ran round the dismantled tramway back to the carpark.
So, mixed reactions to the day but generally all positive - made me realise that I really, really need to sort out the eating/food situation for longer runs and I would like to work out a better descent route to Fersit too. On the other hand, I wasn’t that tired when I got back to the car, having done a little over twenty miles and about 7500 feet of ascent, so I’m definitely getting fitter. Which is just aswell, because I’m starting to realise that this Ramsay’s Round thing, even without a time limit, is an absolute monster!

I suspect the distance is over-estimated. I should really be using an SVG here, but some folks use IE (and I doubt they’d want to install the plugin).
Ben Nevis to the Grey Corries
September 13th, 2006
Last weekend was glorious weather so I dodged home early from the pub and went running in Lochaber on Saturday. The plan was to run about a third of the Ramsay Round as a recce for next summer and just a good day in the hills.
I woke later than planned (didn’t dodge away that early) and only managed to start running from the Ben Nevis car park around 11am. The Ben seemed even busier than usual, with around a hundred people on the summit who were hip-hip-hooraying about something, so I was really glad to start dropping down to Carn Mor Dearg. After going off in a spak direction, I got to the arete which was rocky so I took it easy (I’m a bit soft when it comes to running on rocks). Steeper terrain leads down and then back up to Aonach Mor and Aonach Beag (water available at the bealach), which provided a great view of the approaching Grey Corries and the Mamores, which are the final stage of the round. Descending from Aonach Beag provided a bit of steepness and could perhaps be tricky to find in poor weather, but the Grey Corries involved less vertical action and were straightforward, despite the rockier ground and me feeling tired, until coming down from Stob Choire Claurigh when I got lost on a grim boulder field. Climbing Stob Ban was short but a three steps forward, two steps back affair and I was very glad it was the last hill. On the home stretch now, dropping down to the lairig was a complete joy - soft earth and heather made for a fast and delightful contrast to the rocks from the rest of the day, which just left the 7km downhill firetrack to the road.
As I approached the road, the light was fading fast and my plan to hitch back to the Fort (and the car!) was looking dubious. I was especially concerned as I realised I had left all my money in the car and that my phone had no battery left. I wasn’t really looking forward to having another ten miles to cover. Fortunately, I spied some walkers just getting in their car.
“I wouldn’t normally do this” I lied, “but I was wondering if you can give me a lift to Fort William.”
They were a little taken aback, but fortunately they were cool and had recognised me from the ridge (they were going the other way and had decended from Stob Coire Easain). After a decent chat about hills, I was back at the car and went direct to the chippy then necked a can of Red Bull for the drive home. Forty-five minutes later I was asleep in a lay-by. I woke up at 2am, headed home and sunk into my bed - I was knackered.
Migrated blog software (yet again)
September 12th, 2006
I’m checking out Mephisto just now, RSS/Atom readers might have just got some double posts - sorry! I’ve written some more mod_rewrite rules so most of the important old URLs should work fine and, to be honest, I don’t care about any of the more obscure ones.
Recently, I’ve hardly had any time to write here and I hate switching blog software - so why have I done it yet again? Mostly to abandon the downright abysmal Typo and Mephisto offered a simple migration process away from that. So far so good, but we’re a whole two hours in…
We’re also (thankfully!) at least considering using Rails for some projects at work and every little helps when getting back in the swing of things.
My phone is broken
August 22nd, 2006
If I don’t reply to any calls or messages for the next wee while, I’m not being super-rude. Thanks to a combination of bad luck and me just being an arse, I managed to drop my phone on the road and have a car run over it this morning on the way to work.
What a donkey.
UPDATE: fair play to Orange – they got me a new phone within twelve hours of me reporting it to them. My numbers are backed up to my Mum’s computer, so I should be able to get them this weekend. I’ve only just noticed you can store the numbers to the memory card, which is much more useful than the phone memory.
I don’t spend much of my life crossing the road or dropping my phone. For both to happen at the same time seems a bit unlucky!
Fast forward in Opera
August 13th, 2006
Fast forward is a totally wicked feature in Opera which allows you to use the forward button/gesture/whatever to navigate to the next page in a sequence. Something like the next lot of search results or the next page in a tutorial. You can also use the space bar to page down and it will automatically forward you to the next page when it hits the bottom. Pretty cool.
A file called fastforward.ini provides the config for this (in Gentoo it is in /opt/opera/share/opera/ini/). In order to make fast forward work properly with PHPBB based forums (I want fast forward to go the next page in the thread, not the next thread), I brought the weighting of the next <link> to below 100. This seems to fly in the face of the default setup which ranks it with the highest score. While this is understandable since the link element is for navigation, I’m not that convinced by some of the poor uses of the link element I’ve seen.
Remapping caps lock (again)
August 13th, 2006
I was using xmodmap to re-map the caps lock. I’m not sure why – a better way, which means it also works on the console, is to alter the keymap file. For me (using Gentoo, UK keymap) this was as simple as:
- cd /usr/share/keymaps/i386/qwerty
- gunzip uk.map.gz
- vim uk.map (change “Caps_Lock” to “Escape”)
- gzip uk.map
- loadkeys uk.map.gz
Cairgorm 4000ers
August 7th, 2006
I ran the 4000 foot hills in the Cairngorms yesterday (Braeriach, Cairn Toul, Ben Macdui and Cairn Gorm). It’s the classic and most obvious round in the Cairngorms and was one of the best days I’ve ever had in the mountains. Brilliant running and definitely recommended.
Although it’s far from being a properly long run, it was a spot on introduction to longer distances in the mountains for me. I took it steady, but felt pretty good and definitely had some more miles in my legs (although maybe not too much more ascending…). I’m totally hyped for this stuff and I’ve got some cracking monster days out in the works for next summer.
The Scottish Hill Runners website reckons it is 25 miles and 7600 feet of ascent, but I parked a bit closer and so probably did a couple less (but I also took in Sgor an Lochan Uaine, which I don’t think they counted).
- Google Earth KMZ file – Nodds, please let me know if this works for you
- Online SVG – if you’ve got a crap browser, you’ll probably need a plugin
What an excellent day out.
Arkle and Achnashellach
August 1st, 2006
Stuart and I headed up to the north-west for couple of days biking at the weekend. We made good time to Ullapool on Friday night but then arsed around so much looking for somewhere to sleep that it was 2am before we parked the van on a little pier near Achiltibuie and drank some of Stuart’s very nice, posh whisky. There were some spooky noises coming from below the pier when we were bivvi-ing, which I swear weren’t because of the whisky. As expected, it was a brilliant place to wake up and we were hyped.
We’ve had a route up that way on the hit-list for more than a year and were super excited. It comes recommended on a website as well as a bunch of forums and we also had a personal recommendation. So it was a real pity that it was totally shite. The views were moderate and the trails were dull. And, no, I don’t mind hiking with my bike. Admittedly, I’m a self-confessed mountain bike snob, but I couldn’t really recommend it. Perhaps worth doing if you’re in the area and can’t get to Torridon, but definitely not worth the drive. Still, it was another day in the hills, which is never a bad thing.
In case anyone’s interested (but more importantly, because I’ve got a cool new toy!), here are some files from the route. This sort of stuff would be much cooler if Scotland had decent aerial photos:
- Tracklogs (GPX)
- Google earth/maps (KMZ)
- SVG once GPS Visualizer stops throwing 500 errors
I’ve left the section where we missed a turn in there – it’s tricky to spot (or at least it was for us) and it might help someone.
On the way out we found a large shed/barn which was clean, sheltered from the ever worsening weather and accomodated us, the van and two cheery, chirping birds with acres to spare. After a wash in the river, we managed a quarter of the monster tin of 100 hot-dogs (thank you Phil sandwich!) and a plate of pasta before crashing out. Stuart liked his bivock (bivvi-hammock thing).
On Sunday we headed down to Achnashellach for a route that I had spotted on the map on my last trip up there – Gleann Fhiodhaig, west to east. It’s a nicer route than Arkle – a little climb, then ever so slightly downhill singletrack with just a little too much lumpy grass to have to contend with to be really good. Not as good as some of the other rides up there, but probably still worthwhile and with some fun, muddy singletrack to get you back to the road. No GPS data for that one, I’m afraid – managed to run out of phone battery half-way round.
I felt like I hadn’t been up north for ages and it was a great weekend. I need to see about getting a couple of long weeknds away before the summer is out – this recent rain has got me all keen to squeeze what I can out of the rest of the summer.



