RSS

Archive | December, 2007

MySQL replication

30. December 2007

1 Comment

More brain dumping, this time after setting up MySQL on my test server to replicate offsite as the data on there is becoming important. To start with both machines are running fully updated and upgraded Debian Etch and MySQL 5 as a Debian package with identical copies of the MySQL databases in /var/lib/mysql/. On the master I: I [...]

Continue reading...

Search and replace multiple files with sed

30. December 2007

0 Comments

Ok, if you ‘do’ linux then you’ll probably already know this one. I did, kinda, but had to Google to remind myself of the exact chain of commands. So here I am writing it down so it’s easier to find next time. In my case I had a load of apache conf files where I needed [...]

Continue reading...

Move multiple subversion repositories

20. December 2007

0 Comments

Need to move multiple subversion repositories? Well I just finished putting a simple how-to together which details the steps I took when moving our 30+ svn projects from one server to another. It went really smoothly and took about a quarter of the time I was expecting it to. Anyway, here it is. Related: Creating a subversion repository Automating subversion repository [...]

Continue reading...

A Blank Wordpress Theme

16. December 2007

2 Comments

I’ve just uploaded a blank Wordpress theme called Naked that I built to assist those (like myself in the past) who have a need to quickly roll-out a Wordpress theme with a custom look and feel but may not necessarily have the time to start from scratch. It is purposely very simple and basic, but I’ve [...]

Continue reading...

Removing DOS linebreaks from your files using Vim

3. December 2007

3 Comments

This morning I’m debugging an issue on a script that gets cronned every minute. I’ve a shell open on the server and the file in question open using Vim and I notice each line has a trailing ^M…. Aargh the dreaded DOS linebreak. Dusting off my rusty vim-foo I simply do a search and replace using [...]

Continue reading...

Family tree stuff

2. December 2007

0 Comments

My old man has been getting into finding out more about our family history. Most of his research so far has been by talking to one of my second cousins in Lowestoft who as already done a fair bit of digging. Through her he’s found out that his Mum originated from Cheltenham (I always [...]

Continue reading...