Category: tech


  1. SVN Deployment and a New Site


    I recently got an email from a BarCamp friend, Mark Sailes, telling me about his new site http://www.svn-checkout.co.uk. I am a big fan of subversion and always looking for more tips and tricks for using it better so I popped over to have a look. Its …

    Read more

  2. Logrotate Error on Ubuntu


    For a few weeks now, I've been seeing this error in my logs every night:

    /etc/cron.daily/logrotate:
    error: error running shared postrotate script for /var/log/mysql.log /var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log
    run-parts: /etc/cron.daily/logrotate exited with return code 1 …
    Read more

  3. Filtering Tables in Joins in MySQL


    I had a situation recently where I was outer joining one table onto another. I needed all rows from the first table, plus any matching rows from the second table. So:

    SELECT *
    FROM table1 t1
    LEFT JOIN table2 t2 ON (t1.col_a = t2.col_a)
    

    So far, so good, right? In …

    Read more

  4. BarCampLeeds Recap


    I did it! I went and spoke at BarCampLeeds, there's flickr evidence to prove it as well :)

    My talk was "Source Control Saves Lives", a primer on what source control and why you should use it, with a definite subversion twist because that's what I know the most about and …

    Read more

  5. Thinking of BarCamp Leeds


    Recently I found out about a phenomenon called BarCamp, where a bunch of people, mostly geeks, turn up and run their own un-conference. Every attendee speaks, at least that's the theory, and there are a lot of concurrent sessions - so you just attend what you want to. It looks interesting …

    Read more

  6. Mysql show processlist


    A very quick entry today, life seems to be so busy at the moment but I have to write this down before I forget. Today I had a weird situation where mysql was consuming a lot of resources but didn't seem to be actually getting anywhere, as if something was …

    Read more

  7. A Very Narrow Howto of Podcasting


    I recently featured in an episode of Zend's PHP Abstract. A few people have asked how I went about preparing and recording the piece so here's a quick overview.

    Choosing a Topic

    This actually wasn't hard because I wanted to pick something that I have particular knowledge of. As a …

    Read more

  8. Simple Rsnapshot Setup


    Rsnapshot is a perl-based backup script manager. It is a journalised backup system – meaning that it copies all your files across to the backup media once – and then the only data it transfers after that is the changes. The backups appear on disk as complete copies – but where two generations …

    Read more

  9. Top top Tips


    That is to say, some top tips for the command-line program top. Top is a program to show you the top processes consuming resources on the system. You can then press other keys and the program will respond. For example:

    q to quit

    z to get a colour output

    x …

    Read more

  10. Reliably Avoid Subversion Collision - Commit First!


    Subversion is a source control system – an excellent accompaniment to software development especially in a team setting. When working with a number of people, it is likely that at one time or another there will be collisions – for example at the moment a project I am working on has a …

    Read more

  11. Setting up MySQL to listen to external ports


    I had some difficulty setting up mysql to listen to external ports on a server – the development web server uses databases on another box. The important setting was in /etc/mysql/my.cnf where I removed the line:


    bind-address = 127.0.0.1

    You should then be able to connect …

    Read more

  12. Twitter, meet Facebook. Facebook, Twitter


    Having recently embraced the social networking revolution, or not, I have recently been getting exasperated by how out-of-date my status gets when I can’t be bothered to update it. And how annoying that there are statuses on both Facebook and Twitter which are both out of date.

    I stumbled …

    Read more

⇦ 33 of 40 ⇨