(b)log-insert imagen

14/09/2021

2021/09/14#p1
# 0 comments: click to read or leave your own

All redirects should now be catered for by the 404 page. I exported list of permalinks, removed /wp/ and re-imported to catch those instances where a link was hard coded before moving WordPress to a subfolder.

My permalink structure changed at some point in the past from a date based format to just the post name. To get around this, I had previously added a check in the WordPress 404 template which I brought across to the new one:

$erroruri = $_SERVER['REQUEST_URI'];

if ( preg_match('/\/[0-9]{4}\/[0-9]{2}\/[0-9]{2}\/(.*)/i', $erroruri, $match) ) {
    $newurl = BASE_URL . "/wp/" . $match[1];
    header("Location: $newurl");
    exit;
}

This finds URLs in the format yyyy/mm/dd and converts them so that they can be properly redirected to the archive.

I am officially WordPress free! There are now no WordPress files on the server, just the posts and comments tables in the database and the wp-content/uploads folder. Everything else has been deleted and I can't ever see myself going back.

cancelDraft:   Live: media
Leave a reply



Cancel comment
2021/09/14#p2
# 0 comments: click to read or leave your own

With the new archive comes the need to redo search — after all, I can no longer rely on jumping out to WordPress.

I've reworked the search page so that you get a choice between searching the live blog and the archive. Archive search should be good but I am still applying a caveat to it:

Archive search

cancelDraft:   Live: media
Leave a reply



Cancel comment
2021/09/14#p3
# 1 comment: click to read or leave your own

One thing that interests me with the iPhone 13 Pro (Max) is the new macro photography mode. The Huawei Mate 20 Pro used to do the same trick: use the ultra wide lens for taking macro photos, it's one thing I miss from that phone.

Samsung were so focused on zooming with the S20 Ultra that they completely ignored close-up shots. It's impossible to get a decent close-up using normal techniques, so much so that they had to specifically introduce a "mode" that prompts you to pull back and use 2X zoom.

I'm going to need to see how it performs at greater than the 3X optical zoom. The S20 Ultra does pretty well all the way to 10X using hybrid zoom (5X is really its sweet spot) so the iPhone should be fine as the camera setup is 2 years newer.

The S22 Ultra should also be available before I'm due to upgrade so I'll be able to do a proper comparison — unless I pull the trigger early.

cancelDraft:   Live: media
avatar
warner says:Reply to warner

@colinwalker most confusing term. macro made me think long distance!

Leave a reply



Cancel comment
About
COLOPHON
Colin Walker Colin Walker colin@colinwalker.blog