I found a nice little one liner today to change the author date on a commit message. Why would you do this you ask? It’s brilliant after you’ve change history on your branch with a rebase and a squash. Continue reading Resetting the author date on a commit in git
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.
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.
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.
- Create a new facebook application
- Add your website URL to it
- Add the facebook Login link to your page
- Process the return visit from facebook
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
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:
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)
People keep telling me to get with the times, and stop using vim as my primary text editor, but today I found a nice easy way to fast-find something. All you need to do is move the cursor over the piece of text you want to find and press Shift + 8; when you are not in INSERT mode.
I was looking at a couple of classes the today from a very old piece of code and found a little gem of a function to convert variable names into CamelCase function names that I wrote a while back and thought I should share it.
It would appear that the documentation change I suggested to the DoctrineMongoDBBundle within Symfony has been pushed to the Master today.
I wonder what I can contribute to the Symfony community next year.