I've seen a lot of code out there for calculating a person's age that makes the mistake of ignore leap years. If you ignore leap years then the age will be out by a day or more on or around the person's birthday which isn't what you want.
Read the full article »
Posted Friday February 15, 2013
· Blog
· Comment [1]
Inspired by Anthony Killeen's post yesterday on how he starts a project, I thought I'd quickly share how I approach deployment of a site/project.
My preferred method is via a couple of Bash scripts using SSH rather than FTP.
Read the full article »
CakePHP's paginator pretty much just works. However, if you find yourself with the edge case of having to use a query string with it you'll find yourself coming unstuck.
Read the full article »
@dmackintosh88 seems to be frustratingly true! Wednesday 24 April 2013 3:57 pm
RT @dmackintosh88: Oh GAWD! This is going to have me concentrating for hours.. “@SciencePorn: http://t.co/T3QhU67MRT” Wednesday 24 April 2013 3:57 pm
@davidjmemmett RT @SYFR: We are currently dealing with a road collision on Granville Road in #Sheffield close to @Sheffcol. Tuesday 23 April 2013 8:01 am
@davidjmemmett Seems to be something going on at Granville Rd near college. Trams have all stopped. Tuesday 23 April 2013 7:56 am
@kiln just been informed that this problem is only occurring for those of us using SSH. HTTPS is working fine. Friday 19 April 2013 8:42 am