Darren Beale Web developer & photographer

CategoryLegacy

Installing Trac on Debian etch

I

The following is a no-frills install guide for getting Trac up and running on a Debian ‘etch’ Linux system. The assumption is that you’ve already got mysql and subversion working and have created a subversion repository (tip: apt-get install mysql-server subversion). The first thing that we need to do is install Python, easy_install and the mysql & python bindings: apt-get...

Search and replace multiple files with sed

S

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 to replace each occurence of an IP address with an asterisk. A combo of find and sed worked well: find...

Moving multiple subversion repositories

M

I had a need to migrate all of our subversion repositories from an overworked machine onto a new dedicated machine. As I had about 30 repositories to copy over I didn’t fancy doing each dump -> copy -> create -> import manually so I came up with the following. Which, amazingly, worked first time. I’d say a total of an hour elapsed from sitting down to start the job to being...

Move multiple subversion repositories

M

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 creation

A Blank WordPress Theme

A

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 put some effort into making it self explanatory and for anyone with experience of...

Removing DOS linebreaks from your files using Vim

R

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 Vim without having to exit the file. The command is: :%s/^M//g Job done, well...

A Pragmatic Look At Symfony

A

On Thursday I presented to around 30 developers attending the July Bristol Skillswap at Bristol’s Watershed. It was my first ever public speaking gig (if you ignore some sales presentations) and I’m delighted by how well it went. The talk was a ten minute powerpoint introduction and then 45 mins of live coding – this was pretty taxing – finishing off with a 30 min Q+A. The...

Soon to be smug Mac user?

S

My financial year ends in 4 days, we are in profit so I figured that now was as good a time as any to buy a new computer.
After a year or two of indecision I’ve finally taken the plunge and bought a Mac for use as my primary workstation.
Should be interesting.

Symfony and AJAX

S

I've been playing with the AJAX support in Symfony this weekend and I'm blown away by how easy it is. Today I put together a detailed/summary view switcher for a list of items coming from a database with a (script.aculo.us) fade in/out effect and I didn't need to write one line of JavaScript. Now that's what I'm talking about. Here's a summary of what I did, with...

Darren Beale Web developer & photographer