February, 2006

20
Feb 06

Are you going to Spain tomorrow? Ah, must be me then!

It’s amazing what £100 and a couple of hours work on your bike can do. I’ve got gears again, I’ve got brakes and I can pedal without feeling like my bottom bracket bearings are shaking the earth’s core.

Dave and I are off to Spain tomorrow for seventeen days of riding dry, dusty singletrack, just like last year. As soon as we land we’re heading straight for the Jesus Trail, then off to El Chorro for a few days. After that we’re going to drive north and explore some of the amazing looking trails up there. Nobody deserves a holiday more than me. I’m all excited now and cannae wait. Wheeeeeeee!


9
Feb 06

The future of web apps summit

My work were kind enough to send me to the Carson Workshops “The Future of Web Apps” conference in London yesterday. It was a really good day, with some excellent talks. I particularly enjoyed listening to Tom Coates (Yahoo) and Cal Henderson (Flickr). Although it was Steffen Meschkat from Google who took quote of the day for me when comparing software to music: “AJAX is pop software”.

Simon Willison seems to have taken better notes than me.

Update: the guys from Carson Workshops still haven’t made the podcasts available, but another attendee has:

I don’t think he bothered with the Flex advert from the guy from Adobe. Don’t blame him – Flash is dire pish.

If you only want to listen to one or two, I’d go for Cal Henderson and Tom Coates.

Update 2: there are also slides from Tom Coates’ talk available.


5
Feb 06

Five days on Vim: Day one – code folding

Although loads of editors have the ability, I’ve never used code folding before. I’ve seen the point, but clicking little arrows or plus signs with the mouse always seemed just a little too annoying. Like most things in Vim, code folding is very customisable, which allowed me to get it just the way I want it. The default behaviour folds code too much (at least when coding Ruby) to be useful for me, so I had to chuck a couple of lines into my .vimrc file to sort that out and tell Vim to automatically define folds by syntax:


set foldmethod=syntax
set foldnestmax=5

Presumably, you need some Ruby syntax highlighting installed for that to work. I compiled in Ruby support when I built Vim.

This is all tickety-boo except that all the folds default to closed when you open a file. To make sure all folds are open when we open a new buffer, I added this auto-command:


autocmd BufEnter * exe "normal zR"

Sorted. The core folding commands for me are:

zo
Open the fold on the same line as the cursor
zc
Close the fold that the cursor is inside
zR
Open all folds
zM
Close all folds

As usual, the docs have way more.


4
Feb 06

Cockroach mind controlling wasps

Cockroach mind controlling wasps.

I’m torn between being amazed and a bit minged-out by this one.