Git Alias / Shorthand commands

So today I made the switch to use GIT over SVN for all of my personal projects because we’ve been using it at IPC Media for months. One of the most useful things I’ve found is the ability to set up aliases for command commands, because let’s face it all developers want is to do the same job with less key presses.

Continue reading Git Alias / Shorthand commands

Disable Firefox’s Inspect Element because Firebug is better

I recently updated my version of Firefox at work to find that some helpful developer had created a version (be it slightly limited) of the inspect element tool from Firebug within Firefox. This is OK I thought, maybe I can get rid of Firebug and use this. Ummm, no. After about 10 minutes I found it was no where near as useful, and continued to use the Firebug option in the menu when I right clicked on the page.

Continue reading Disable Firefox’s Inspect Element because Firebug is better

Simple Authentication for Symfony using Facebook Login

Following on from an earlier post, facebook changed the way you authenticate with their site.

The steps to authenticate have not changed too much, and the only change is to part 4.

  1. Create a new facebook application
  2. Add your website URL to it
  3. Add the facebook Login link to your page
  4. Process the return visit from facebook

Continue reading Simple Authentication for Symfony using Facebook Login

Functional test helpers for symfony 1.4 code

We you come to write functional tests in symfony 1.4 you can end up with a lot of duplicated code when testing basic things like the routing. To make life easier you can add helper functions to your tests to reduce the amount of duplication, and speed up test writing. So let’s start with the routing example.
Continue reading Functional test helpers for symfony 1.4 code

When svn merge doesn’t quite cut it

Anyone that works with subversion will know that merging 2 branches is not always easy. Most of the time there is no issue, and you can merge one or multiple changes from one branch to another, but sometimes you end up with conflicts left right and center. This is done with the standard merge commands:

Continue reading When svn merge doesn’t quite cut it

Quick one-liner to set up a new SVN project with a trunk, branches and tags

When creating a new project in SVN one recognised standard is to set up a trunk, branches, and tags directory structure. Where I’m working at the moment, we also have a release directory placed under tags and branches. Which I’ve also started to do on some of my other projects out side of work as well (those that are under SVN anyway)

Continue reading Quick one-liner to set up a new SVN project with a trunk, branches and tags