Michael Barton RSS

Archive

Apr
30th
Thu
permalink

Run the current R script from vim with F2

:map <F2> <Esc>:w<CR>:!R —slave —file=%<CR>
Jan
7th
Wed
permalink
Recycled (preferably unused) urine pots make good containers for the little cables I keep in my bag.
Recycled (preferably unused) urine pots make good containers for the little cables I keep in my bag.
Oct
10th
Fri
permalink

You will not go far wrong if you remember two simple guidelines at all times:

1. Never, ever use vertical rules.
2. Never use double rules.

These guidelines may seem extreme but I have never found a good argument in favour of breaking them.

The layout of formal tables from the booktabs package for LaTeX
Sep
22nd
Mon
permalink

Batch run mysql queries at command line

mysql -u user -ppassword database -t -e "source sql-file"
Aug
12th
Tue
permalink

Starfish, Rake, and Sun Grid Engine

It’s dirty, but it’s a first attempt at starting parallel jobs using a rake task.

Jul
24th
Thu
permalink

Install a Ruby Gem without sudo access

gem install gem_name --install-dir=~/.gems/
Jul
22nd
Tue
permalink
Jun
19th
Thu
permalink
Jun
18th
Wed
permalink
Jun
16th
Mon
permalink