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

Fast User Switching from the command line on a Mac

It seems that some IT departments like to lock out the fast user switching option on company laptops in a lot of companies at the moment. This became a problem for me as I have a local admin account on my work machine, and I have to switch to it whenever I want to install from a dmg file. This got me thinking, is there a command line argument or tool that I could run to do this? Sure enough there is. The only thing you need to look up is the UserId for the user that you want to switch to.

Continue reading Fast User Switching from the command line on a Mac

How to clear DNS cache on a mac running OSX

Clearing the cache on Mac’s seems to change with every other release these days. In all cases though you need to use Terminal, but not always the same command. Back in the 10.4 days you would use lookupd, then in 10.5 and 10.6 you would use dscacheutil, but now in 10.7 you need to now use a killall command.

Continue reading How to clear DNS cache on a mac running OSX

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