All entries from 2011

28 Aug 2011
23 Aug 2011
16 Aug 2011
7 Aug 2011

@getintogaming Maybe "Masters of Doom"? http://t.co/4AE4agl About id software in its heyday.@twitter

0 comments

5 Aug 2011

Leeds crüe: Join us for a spot of national shopkeeping with @danbentley @cmbentley @phoenixrises @catnamedeaster and myself tonight.@twitter

0 comments

4 Aug 2011

@csswizardry Didn't know the 2nd one existed. Cheers, looks interesting.@twitter

0 comments

30 Jul 2011

Toggling relative line-numbering in Vim

With the recent release of Lion, OS X users get access to the latest version of Vim. That includes the new relative line-numbering feature which looks particularly useful given Vim's many line-wise operations (see :help relativenumber for details).

However, it might not be something you want on all the time. Absolute line-numbering is useful in debugging and for providing context, and relative line-numbering could be slightly distracting given that it changes as you move around. So, you might want to toggle between the two modes.

Toggling between absolute and relative isn't as simple as :set relativenumber! though, because norelativenumber just turns off line-numbering rather than falling back to number.

So here's one way of handling things. First set your default numbering:

if exists('+relativenumber')
    set relativenumber
else
    set number
endif

Add a function to toggle between the two modes:

function! ToggleNumbering()
    if exists("+relativenumber")
        if &relativenumber
            set number
        else
            set relativenumber
        endif
    else
        set number!
    endif
endfunc

If the option isn't available, e.g. you're on a version earlier than 7.3, it falls back to toggling line-numbering on or off. If you were so inclined, you could do a version that cycled between the 3 possible states (off, absolute and relative), but I prefer it like this.

Finally, map a keyboard shortcut to trigger the function:

noremap <leader>n :call ToggleNumbering()<cr>

I use <leader> mappings a lot for my own personal shortcuts, but a lot of people seem to prefer the function keys. You can replace <leader>n with <f12> or whatever if that includes you.

Paste that lot into your .vimrc and continue on your merry way.

0 comments

21 Jul 2011

@JoeTheDough A bold statement. I counter with Burts Bloody Mary, Brannigans Smoked Ham & Pickle, and Walkers Worcester Sauce.@twitter

0 comments

14 Jul 2011

@offmessage @mrben @natblundell That's what example.com's for.@twitter

0 comments

11 Jul 2011

@offmessage We got left a pigeon print some years back, complete with a perfect little bird turd at the bottom. It was practically art.@twitter

0 comments

10 Jul 2011

@winjer @bne @JoeTheDough I saw them at a christmas ATP in Camber Sands in 2005. Was worth it despite the cold.@twitter

0 comments

7 Jul 2011

@nofunnyname Is that the M&S snack pack thing? I always leave the beetroot one. Tastes like soil.@twitter

0 comments

4 Jul 2011

@mrben_ Worst. Shortcut. Ever.@twitter

0 comments

11 Jun 2011
1 Jun 2011

@csswizardry @danbentley "They talk by flapping their meat at each other." http://baetzler.de/humor/meatbeings.html@twitter

0 comments

31 May 2011

@iamgaz Not sure that's true across the board. I hear Catherine and Demon's Souls are both genuinely hardcore.@twitter

0 comments

29 May 2011

It's alive!

Wheee, I thought this thing was permanently out of commission thanks to circumstances beyond my control, but it was fixable after all. I was this close to replacing it with one of those single-page placeholder sites.

Anyway. Fear ye, fear ye. I have returned.

0 comments

15 May 2011

@offmessage Not Puerto Rico. But we have San Juan (a trimmed down card game version of it by the same guy) which is great.@twitter

0 comments

12 May 2011

@offmessage as @bne says pushState. Or specifically: https://github.com/defunkt/jquery-pjax@twitter

0 comments

8 Apr 2011
24 Mar 2011

@offmessage I've only played US, so not really in a position to comment. EU has the slight edge rating-wise on BGG, but with fewer votes.@twitter

0 comments


@offmessage The big cards expansions are worth a look (1910 for US and 1912 for EU). The default cards are so small they're awkward to hold.@twitter

0 comments

23 Feb 2011

@jonnyram Sorry, just checking. Didn't mean to insult your savvy :)@twitter

0 comments


@jonnyram No problem with jazz guitarists as a name-sakes, it's just that Django's already taken: http://www.djangoproject.com/@twitter

0 comments

22 Feb 2011
19 Feb 2011

@scribblescrawl Possibly one of those people, like Tolkien, that you have to read young. Having said that: The Shadow Over Innsmouth maybe?@twitter

0 comments

17 Feb 2011

@1stvamp Does M-. work? And what if you do M-C-e with !$ in the current command-line? Any clues in the history expansion bit of "man bash"?@twitter

0 comments


@nat_blundell Can you play Heavy Rain, Demon's Souls and Uncharted 1&2 for me and let me know if it's worth getting a PS3 just for those?@twitter

0 comments

9 Feb 2011

@dtarbit I did put "browser" tabs originally, but had to edit for length.@twitter

0 comments


@Marc__T 'Fraid not. "Drink beer, browse tabs" doesn't have quite the same ring to it, does it?@twitter

0 comments


I wish tabs had "get info" panels giving a source a la d'loaded files in OS X. Forever finding interesting tabs open from who-knows-where.@twitter

0 comments

1 Feb 2011

@phoenix_rises Not to worry. Could've subbed you a loan and saved you some trouble though if you'd stuck around! :)@twitter

0 comments

28 Jan 2011

@nofunnyname Also, TextWrangler & TextEdit on a mac? Wot-no textmate? I know it's stagnating, but the it's still pretty good.@twitter

0 comments


12 Jan 2011

@offmessage Aw, £15? That feels more like paying for the book and getting a free talk than the other way around.@twitter

0 comments


@imran Sounds interesting. Any more details available?@twitter

0 comments


@katie_buffalo There's an Aphex Twin sample on the John Legend one too.@twitter

0 comments

10 Jan 2011

@phoenix_rises Chlorophyll? Back to abduction school with you!@twitter

0 comments

6 Jan 2011

@Caius Given that that's a defaults write hack I think "fuck you Jobs" is a bit strong.@twitter

0 comments


@winjer @fjordaan Me too. http://www.foundersatwork.com/ has more on @joshu's early day's if you've not read it.@twitter

0 comments


@benwalton I've just seen the international portal page for http://www.dubizzle.com. Is that a recent addition? Onwards and upwards.@twitter

0 comments

5 Jan 2011

@dtarbit Saw it on hackernews instead, so no, I hadn't. That's insanely cool. Looks so different to current games.@twitter

0 comments


@dtarbit Was looking at Voxatron this morning, looks ace huh? And an Atlus one too? Wheee! PS3 & PSP only though, boo to that.@twitter

0 comments


@timparkin @gingerbeardman There's a question about this on Quora at the moment: http://www.quora.com/Who-designed-Pythons-logo@twitter

0 comments

Other dates

Visit the archive if you wish to skip merrily through time in a devil may care fashion.