This is the website of Andy Carter a Textpattern and Drupal web developer living in the Steel city.

Andy Carter

Recent articles from the blogs…

Calculate a Person's Age in PHP (Accounting for Leap Years)

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 »

My Deployment Process

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 »

Using Query Strings with the CakePHP Paginator

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 »

More Invader mosaics in Paris

A few more Invader mosaics I've recently spotted on a trip to Paris. These are along Rue St. Read the full article »

arc_twitter v3.3.0 released for Textpattern 4.5+

arc_twitter v3.3. Read the full article »

Latest tweets

  • @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/T3QhU67MRTWednesday 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

Find me elsewhere on the web

Delicious Flickr Github Identi.ca last.fm Mubi Twitter