“host not found” on nxclient connect to nxserver

April 9th, 2010

Cause: my user couldn’t read /etc/hosts

things I hate: companies who won’t let you leave them

September 7th, 2009

Anyone thinking of signing up with Be Internet: be warned, it’s easier to join them than to leave.

I’m currently having a fight with them because they insist the only way you can close an account with them and stop paying them money, is by phoning a telephone number and giving lots of security information including your date of birth.

Not allowed to do it via their own “secure” account system…

Not allowed to do it in writing…

Not allowed to do it by them phoning me on the mobile phone number I’d given them X years ago…

Apparently even after the telephone line is disconnected tomorrow, they *still* won’t accept that I really, really don’t want their service any more.

This is going to be interesting!

Extracting files from rpm

August 27th, 2009

rpm2cpio .rpm | cpio -vid (or -vt just to view contents)

OSX MacPorts install of postgres

June 23rd, 2009

Following their instructions to initialise the database, you get a complaing about /dev/null.

This is because the default postgres user is installed with a shell of /dev/null.

To change it, forget all the Unix stuff you know about administering users and do this


sudo dscl . -change /Users/postgres UserShell /dev/null /bin/sh

Or if you want to check first, check that the user exists

sudo dscl . -list /Users UniqueID

And then check the postgres user

sudo dscl . read /users/postgres

perl: warning: Setting locale failed.

June 11th, 2009

Needed to do this:


sudo locale-gen en_GB.UTF-8
sudo dpkg-reconfigure locales

ubuntu command line dist upgrade

June 9th, 2009

sudo apt-get install update-manager-core
sudo do-release-upgrade

subversion/ssl with client certs stopped working?

May 29th, 2009

There’s a bug in (at least some versions of) Ubuntu, which means the wrong library is being picked up.

https://bugs.launchpad.net/ubuntu/+source/subversion/+bug/294648

Workaround: LD_PRELOAD=/usr/lib/libneon.so.27 svn

checking for duplicates

May 8th, 2009

if for example, you want to apply a unique index, but you can’t because there’s duplicates in the table.

SELECT name FROM mytable GROUP BY name HAVING COUNT(*) > 1;

www.eBookPrice.Info

May 1st, 2009

new site…

make script executable

May 1st, 2009

svn propset svn:executable on