Sunday, 4 March 2012

Installing s3ql on debian squeeze

I couldn't install python-apsw with version >= 3.7.0. The solution was to make sure deb maverick main is in /etc/apt/sources.list and install the version of python-apsw from the nikratio ppa (rather than debian squeeze, which provides v3.6) using: sudo apt-get -t maverick install python-apsw. Then you can finish off with sudo apt-get install s3ql.

Wednesday, 29 February 2012

plink + NT Emacs + TRAMP

  1. Init file:
    (require 'tramp)

    (setq tramp-default-method "plink")
  1. Make sure that plink.exe is in the path
  2. Set up Pageant to handle keys (haven't tried without but suspect it would all be very painful)
  3. Access files using /plink:user@host.domain: (the plink: bit is optional as you've set default-method above) rather than /ssh:user@host.domain:)
  4. Bob is your proverbial uncle.

Saturday, 11 September 2010

Getting lmer to work in R on Mac OS X

lmer is a useful package for mixed effects modelling in R. It's in a state of flux at the moment, and the function profile() is missing from lme4 (the current trunk package available via CRAN). lme4a has the function, but isn't available at the moment for download from

I managed to get it working by checking out the latest version from SVN:
svn checkout svn://
cd-ing into the pkg directory, and compiling the package using:

Bizarrely, it worked. Now to actually understand mixed models.

Sunday, 30 August 2009

Logitech V470 bluetooth mouse losing connection on Leopard 10.5.8 - solution

Bizarrely, it appears to be the fault of the Auto-Update demon for Microsoft Office 2008. Disable that, and no more random bluetooth disconnections.

Update 18th September 2009: That didn't work. I have had success for the past two days disabling Discoverable and Allow bluetooth devices to wake this computer in bluetooth preferences. Maybe that'll do it.

Update 24th September 2009:  Flawless with the above settings, which don't really restrict me much. Give it a try!

Friday, 28 August 2009

Cherry G80-3000 keyboard - micro review

I've just bought a G80-3000 keyboard from Ordered on Wednesday at 4pm, arrived on Friday morning. I used to use an IBM Model M (1391406, since you asked) but it lacked a Windows/Apple key which made life difficult (although I did manage to map AltGr to Command on Leopard using KeyRemap4MacBook).

It's a nice keyboard - the keys are very light. It's clicky (someone made an MP3 of it!) but not deafening. The build quality is good if not absolutely perfect (it doesn't have the same gravitas as the Model M) - time will tell. The trick will be not spilling coffee/wine all over it.

Emacs CVS binaries for Mac OS X

I'm fast becoming a devotee of org-mode, an Emacs mode for notes, project planning, and writing. The latest version of 'org' takes advantage of a new indent-mode in the latest version of Emacs. Unfortunately, a bug in the release version of Emacs 23.1 results in crashes when Shift+Tab are used to cycle task viewing. This is fixed in the CVS version - but how to use it?

Well, I use Mac OS X Leopard at home and Windows XP at work. I managed to compile the latest version of Emacs from CVS on XP (more on that in a later post, perhaps) and also on the Mac but life is short, and when I found pre-built binaries of Emacs nightlies I heaved a sigh of relief. Many thanks to David Caldwell for these.

Tuesday, 12 June 2007

Safari 3 beta and searching

I've installed Safari 3 beta. It's supposed to be faster than Safari 2 - I haven't really noticed the difference yet. It does have a clever page search facility which is as good as, and looks better than, that of Firefox.

It doesn't work with AcidSearch, but looking around for an alternative took me to Inquisitor which makes the search box behave somewhat like Spotlight (and, to be honest, a bit like Firefox, but you can see the descriptions too).

Multiple search engines

The thing it took be a while to discover: you can change the default search engine, and add other engines, via Safari's Preferences - choose the Search tab. You can then set things up so that, for example, Option+Command+U whilst in the search box will take you to Google UK (you can also click on one of the options from the 'spotlight' list - see picture.

Other useful features
  • You can drag tabs off the tab bar to open the tab in a new window
  • Dragging a tab from a window with only a single tab open to another closes the original window - useful for tidying up
  • Safari's overall tidiness and superb font rendering

SafariStand still works with Safari 3 Beta. I use it to force windows to be opened in new tabs rather than '_blank' and so I can use ',' and '.' to switch between tabs. I might not need it much longer. Update: The 'force open _blank in new tab' stops any window at all being opened in bits of Google Reader and breaks Blogger. I've uninstalled it.