My last post on the subject (a fraction over 10 years ago!) garnered a lot of comments for what was essentially just a rant, and it turned out to be somewhat unfounded and sensationalistic. I’m still with NatWest, their online banking is still very good and their app is the best, and I’ve rarely had to […]
Part of documenting my transition to web dev on Mac is to record what needs to be set up & configured. Should things ever go awry, this post could be a shortcut to getting back to a work-ready state. Apps etc installed The following needed to be installed manually. Xcode – via AppStore PHPStorm […]
I’ll soon be starting a new job, still in web development (as I have been for disturbingly more than a decade), though this time it’ll be in-house and for a huge company. I’ve been persuaded to go over to what I’ve long considered the dark side; Apple. I still don’t believe I’ll ever pay for […]
WordPress config snippet for dynamic domains
Quite why this isn’t how WordPress works by default, I’ll probably never know. $domain = ‘http’ . (false ? ‘s’ : ”) . ‘://’ . $_SERVER[‘HTTP_HOST’]; define( ‘WP_SITEURL’, $domain ); define( ‘WP_HOME’, $domain ); If anything, this snippet is for my own reference. Prevents redirects on development / staging sites without changing the wp-config.php
I couldn’t find a decent formula to show an age from a Date Of Birth, so I wrote this: =CONCAT(FLOOR((TODAY() – B2)/365),CONCAT(“y “,CONCAT(FLOOR((((TODAY() – B2)/365) – FLOOR(((TODAY() – B2)/365))) * 12), “m”))) Shows an age in years and months; e.g. “10y 6m”.