Calculating “Feels Like” Temperatures
Posted 18th August 2021
3 comments
Use the Aeris Weather API to calculate Australian Ambient Temperature (AT) or “feels like” calculations from private weather station data published to PWSweather.
Rebuilding my website: 2020
Posted 25th November 2020
No comments
It’s been seven years since I last re-designed my personal website. Here is a look at the technologies that I used to build my new website.
Serving WebP with fallback
Posted 5th November 2020
No comments
Two methods to serve WebP images with a fallback for instances where a browser/OS combination doesn’t support it.
PHP file_get_contents over HTTP or HTTPS
Posted 3rd November 2016
No comments
A nifty PHP script which will detect whether a page is being served over HTTP or HTTPS and return the result as a string for use in PHP file_get_contents (or other) include functions.
Blog headlines on the SilverStripe HomePage
Posted 3rd August 2015
No comments
Insert your blog headlines and excerpts from the SilverStripe Blog Module into the front page of a SilverStripe website.
Adding search to SilverStripe
Posted 3rd January 2015
No comments
Whilst it’s relatively easy to add a site search function to SilverStripe, quite a bit of tweaking is required to make it perform as it should. Here are some simple instructions.
Upgrading Silverstripe 3.1.x
Posted 5th July 2014
2 comments
Instructions for upgrading an installation of SilverStripe 3.1.x to the latest version.
Automatic “Page Created” and “Last Modified” dates in SilverStripe
Posted 18th April 2014
No comments
Simple pieces of code to enable ‘page created’ and ‘last modified’ dates to be added to web page footers.
Product images on category pages in SwipeStripe
Posted 2nd March 2014
3 comments
Instructions for modifying SwipeStripe Category so that image thumbnails will appear beside product descriptions on category pages within SilverStripe websites.
Use PHP to block Pinterest “pins” and still let your site validate
Posted 8th August 2012
No comments
Prevent Pinterest users from “pinning” images on specific web pages or right across your website with this simple PHP include.