RSS

Author Archives | Bealers

Bealers - who has written 353 posts on Darren Beale.


Contact the author

Debugging with PhpED and DBG

Sunday, January 20, 2008

0 Comments

As long-term PhpED user I’ve always been well aware that I was not making the most of some of the more powerful features of my IDE, particularly the debugging capabilities. Well this week I finally got debugging set-up properly and as per most of my other blog posts I’m listing what I did here for [...]

Continue reading...

Multiple project Trac set-up

Thursday, January 3, 2008

1 Comment

I’ve already installed Trac and I now want to be able to set-up multiple projects with the minimum of fuss. My requirements are: Not having to mess with the Apache configuration every time I add a new project because I don’t want to have to restart apache Make some simple modifications to the stanadard trac.ini so that, for [...]

Continue reading...

Vim auto indenting

Wednesday, January 2, 2008

0 Comments

I used to get annoyed when pasting text into a Vim window as each line would indent one more tab than the last line. To fix it I used to add set noautoindent in /etc/vimrc, however this unsurprisingly turns off auto indenting, which is a useful feature for normal typing. Today I came up with a [...]

Continue reading...

Subversion over ssh

Wednesday, January 2, 2008

0 Comments

My background task over the Christmas holidays was to ensure that I had the ability to give read/write access to a subversion repository situated on a machine within our corporate network so that staff or external contractors can access it via the interweb but without me needing to open up additional ports on our firewall. The [...]

Continue reading...

Installing Trac on Debian etch

Tuesday, January 1, 2008

0 Comments

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 [...]

Continue reading...

MySQL replication

Sunday, December 30, 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

Sunday, December 30, 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

Thursday, December 20, 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

Sunday, December 16, 2007

4 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

Monday, December 3, 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...