Archive for the 'Techy' Category

Dutch PHP Conference

Thursday, April 9th, 2009

For those with staff development money to burn and who fancy some conference action, I’m speaking at the Dutch PHP Conference in June, on Document Classification in PHP (the whole conference is in English by the by). The line up is pretty impressive this year, with three tracks over two days and being in Amsterdam [...]

postrotate: command not found

Saturday, December 20th, 2008

If, while log rotating with the lovely logrotate, you get ‘sh: line 2: postrotate: command not found’ then you’re probably missing an endscript. This took me a while to notice. I found a number of people with the same problem, such as this chap, and if you look at his script he’s done exactly what [...]

Buildings Mysql-Proxy 0.6.0 On Centos 5.2

Thursday, October 30th, 2008

Mostly, follow this guy’s advice. This worked, but I had seem to have to make a few changes to have lua working. I’m not a big centos/rhel user so this advice should be followed only in the absence of greater clue, but it worked for me:
On the Mysql proxy step of the above guide, untar [...]

VMware HGFS permissions

Wednesday, October 29th, 2008

I’ve had a really annoying issue with a linux (Centos) VMWare image in Fusion on Mac OSX, where the permissions on files created by the VM on the HGFS shared folder meant that it couldn’t write to those files (or directories) subsequently. The way to solve this is to set the uid in /etc/fstab on [...]

Production and Staging with Capistrano

Sunday, August 31st, 2008

For the benefit of googlers, should you happen to be wanting to use the very good Capistrano to deploy your project, and want to switch between staging or pre-production and live or production environments, the best way to handle the switch is using the Multistage facility in capistrano-ext.
It’s basically just ‘gem install capistrano-ext’, then at [...]

Java on Debian Etch

Monday, July 7th, 2008

I got a bit confused when googling how to install java on Debian 4, but this business seems to work:
vim /etc/apt/sources.list
add non-free to the ftp.debian.org entry:
deb http://ftp.debian.org/debian/ etch main non-free
deb-src http://ftp.debian.org/debian/ etch main non-free

Then
aptitude install sun-java5-jdk
I’ve always been a bit crap at Debian, it never quite works how I expect it to!

VMWare Shared Folders

Friday, May 30th, 2008

I wanted to add a shared folder to a linux VMWare image in VMWare player, and got thoroughly nowhere. Thanks to the magic of EasyVMX though, I know now the secritz. In the .vmx file of the VM , add:
sharedFolder.option = “alwaysEnabled”
sharedFolder0.present = “TRUE”
sharedFolder0.enabled = “TRUE”
sharedFolder0.readAccess = “TRUE”
sharedFolder0.writeAccess = “TRUE”
sharedFolder0.hostPath = “D:\projects\”
sharedFolder0.guestName = “share”
sharedFolder0.expiration = [...]

Tunelling SVN & mod_proxy

Wednesday, April 9th, 2008

Mr Gray and I have recently been working on a project where the subversion repos is IP restricted, and we’ve been tunelling over to a machine that is in the IP allow list to get access. Because the repository is accessed via WebDAV, it either means putting our local web servers on another port than [...]