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

Google Sheets Formula – show an age from a DOB

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”.

Recommended: iammoving.com

iammoving.com was recommended to me by the estate agent who advertised the house we’re moving to in August.

After registering, for free (though I would pay for the service), you select the organisations you need to notify from a large, categorised list, and provide your account number (or whatever detail is appropriate).

You can then send each message individually, or send them all at once.

Unfortunately, some companies still require that age-old ink on paper malarkey. In these cases, a preformatted letter is made available to print.

iammoving.com is ‘in association with Royal Mail’, which makes sense because it could save them from thousands of undeliverable/redirected letters.

Firefox 3 to break Zoom (Edit: I’m mistaken)

Mozilla is about the make a big mistake, the same as that made by IE7.

Zooming the whole page is not a good idea.

Browser Zoom Method Comparison

Current Firefox text-only zoom on the left, IE7 on the right.

Using the current Fx way you can easily read the text without having to scroll sideways, but the new way (which is how IE7 works) means you have to scroll right for each line of text, then back to the left, and so on.

I simply cannot fathom how they thought this was the right move.

BBC Homepage Beta Using jQuery

The BBC Beta Homepage is using jQuery, but unfortunately it’s ugly.

I should qualify that – I think it’s a good move to make the homepage more personalisable, but does it have to look so Web2.0?
Big text was a fad a year ago, but it’s too informal for an internationally recognised and respected news source, and it makes it look so childish – I dread to think what the new CBBC sites would look like!

I realise this is only a beta, and may well change considerably, but without a bit of a shrink I won’t be likely to use it as a homepage tab.