Skip to content

{ Author Archives }

Installing Spotify on Fedora 13

I’ve recently taken possession of a flashy new workstation running Fedora, and with joy in my heart went to install Spotify on it, only to discover… Noooo… They only offer .deb packages for Debian and Ubuntu.
Thankfully, the solution was easier than I thought. Do all the following as root…
1. Install dpkg, the Debian package management [...]

Tagged , , ,

Tunnelling a connection through 2 servers via ssh

This took a bit of head-scratching, so for future reference, or anyone else looking:
Say I am working outside the office firewall, on a machine called home, and I need to get into a MySQL server inside it. (Doesn’t have to be MySQL, but just for argument’s sake.)
There’s a machine called gateway I can ssh to [...]

Tagged ,

Best new feature in Eclipse 3.6 Helios

… is hidden away on the last tab of the Java Formatting Profile editor (Preferences -> Java -> Code Style -> Formatter -> Edit).
They’ve finally (after nearly six years) added the ability to temporarily turn the code formatter off for a tricksy block that needs its own custom formatting. e.g.:

// @formatter:off
xml
.append( "<node id=’" )
.append( protein [...]

Tagged , ,

BioGeeks tech meet, Science HackDay special

This month’s BioGeeks meeting at KCL is on Friday, June 18th, to coincide with the Science HackDay taking place over the weekend.
We have a special guest this month, Cameron Neylon, with an open-science-themed talk entitled “What have the public done for us?” Plus lightning talks on various subjects.
In other news, I’ve moved the blog over [...]

Tagged

London BioGeeks — May Tech Meet is next week

The May tech meet is on Thursday 20th at Imperial College.
This month’s speakers:
Catherine Canevet — Ondex: Data integration and visualisation
Christopher Barnes — ABC-SysBio: Approximate Bayesian Computation in Python with GPU support
N. Purswani, L. Tweedy, Z. Patel, C. Suriel-Melchor — DASbrick: A cloud based Rich internet application for Synthetic Biology Parts Registries
Does anyone have a link [...]

Tagged

Back up all MySQL databases to separate files

Note to self — so I don’t have to think about it again next time.

#!/bin/bash
export MYSQL_PWD=myrootpassword
BACKUP_DIR=/mnt/backups/mysql_backups
DATE=`date -I`
for dbname in `mysql -uroot –batch –skip-column-names -e "show databases;" | grep -v information_schema`; do
/usr/local/bin/mysqldump -u root $dbname | gzip -9 > $BACKUP_DIR/$dbname-$DATE.sql.gz
done
 
# Clear backups older than 7 days
/usr/local/bin/find $BACKUP_DIR/*.sql.gz -mtime +7 -delete

Edited to include compression. Remember to include [...]

Tagged ,

Google Chrome (actually Chromium) on Centos

Joy at last!
Chris Staite from the University of Birmingham has built a statically-linked version of Chromium, the open source version of Google’s Chrome browser, for Centos.
You can get it from here.
I was getting so sick of Firefox’s slowness and bloat, and Chromium is so much snappier, and more memory-efficient too.
Although to be fair, I don’t [...]

Tagged ,

Take Back Parliament demonstration — Sat 8 May

As someone who works with numbers, I’ve known for ages the electoral system in the UK is a very poor model.
The distribution of votes across the parties correlates very badly with the distribution of seats they get in return.
It’s possible, and not uncommon, for a party’s overall vote share to go down and yet its [...]

Tagged

London BioGeeks — April Tech Meet

This month’s tech meet is at 6pm on 21st April at University College London.
We have talks from…
Alison Cuff, UCL
The CATH database — Structural Diversity and the Question of the Fold Continuum
Andrew Martin, UCL
SAPTF — Sequence Analysis Plugin Tool Framework
John Pinney, Imperial College
GLASS — Gene LAyout by Semantic Similarity
Followed by drinks at 7:30-ish at the College [...]

Tagged

Things to try when VirtualBox networking messes up

This is really a note-to-self but it might help other people too.
I have two network interfaces in my Ubuntu guest (on OS X 10.4 host), one NAT, one host-only.
Sometimes one of them doesn’t get an IP address — in ifconfig it has an inet6 address but not an inet address.
Today I tried
sudo dhclient eth1
and it [...]

Tagged , ,