Super quick tip because I'm always forgetting - if you want to compare an older version of a file with the most recent version in your git repository:
How to access array data from SilverStripe sessions easily
Its not evident from the SilverStripe documentation on sessions, but you can access nested array data from SilverStripe sessions using dot notation.
How to change the breadcrumb separator on SilverStripe
Quick tip to change the separator used by SilverStripe to separate the links of the breadcrumb.
Jquery Lightbox Not Working?
Had a struggle getting this jquery lightbox working recently, the solution for me was to alter the markup of the popup div because some divs were not closing correctly with />.
Call user function for magic method PHP
Put a bit of work into upgrading the blog and might as well make a quick post now. Heres a trick to test if a class variable exists, isset or has a particular value dynamically. Call the magic method __get() for the variable name which you can generate on the fly.
vnStat hack to measure data usage in a given billing cycle
I'm using vnStat to measure internet usage on my Ubuntu 10.04 laptop, coupled with the vnStat PHP frontend it works nicely. Only problem was the summaries of disk usage started at the beginning of the month (sensibly) and we get billed on the 23rd, which is when our month ticks over and we get a new data cap.
Non capturing groups in Perl regular expressions
Non capturing groups are very handy, recently I was working on grabbing a portion of xml out of a document. After trying the PHP 5 xmlReader() class I opted for the quick and dirty Perl regular expressions for this script.
Blackberry 8800 html checkbox issues
This was such a mission to fix, it deserves a post. Starting with a very basic login page using standard html form elements, a couple of text inputs for username and password, a checkbox to accept terms and conditions and a submit button. The login system would work fine on very early blackberries version 3.7.0 - those really old text only browser versions. It also worked on the latest 9530 blackberries version 4.7.0.
cakePHP saveall() and transactions, jQuery form plugin AJAX error handling
cakePHP, saveAll() and Transactions
MySQL transactions and cakePHP, the two play nicely together. Its very easy to wrap your inserts and updates in transactions with cake:
How to use a fallback AJAX failure mechanism
I've found using one default fallback AJAX failure mechanism to be a bit of a life saver, it would prove even more useful if you are making a lot of AJAX calls distributed across your site.