Month: July 2020

  • Shared today on Twitter

    @KathyReid Feature request: hide all Pinterest results too. Please and thank you.


    @TravCharlton @KathyReid I know. I just wish they’d given me an official way to just exclude them completely rather than having to mask.


    It’s very weird to see the US Surgeon General tweeting from the grocery store a block from my Grandma’s house! Lagrange county has had an explosion of cases, so good to see that folks are taking this seriously. https://t.co/tH8MWIuQqR


    @randomknits We did a ton of prep work last night for a chicken pot pie, and it was a pain, but damn is it going to be just the thing later tonight. (Ugh, this weather.)


    I’m in such shock. Grant was my favourite, and such a model for how technical folks can teach and communicate their enthusiasm to a wider audience. https://t.co/iOyYvWudj8


    Chicken Pot Pie with Buttermilk Biscuit Topping from @seriouseats. A lot of work, but so tasty! https://t.co/pXb1FpX4FD


    @TheRealBnut Interesting. I have recently become aware that your degree is important in ways I hadn’t anticipated later in life. While I can apply for a work visa in Germany, Rodd is eligible for an EU Blue Card allowing him to work anywhere. Why? Science vs Arts degree.


    @TheRealBnut So a Google Certificate might not limit just which employer you can work for, but where in the world you can actually do it.


    New oven being delivered this morning, which means a frantic 8am houseclean as we realise A) no other humans have been in our house for 4 months, and B) we live like animals.


  • Shared today on Facebook

    Chicken Pot Pie with Buttermilk Biscuit Topping from @seriouseats. So much work, but so tasty!


  • Photo Post

    Chicken Pot Pie with Buttermilk Biscuit Topping from @seriouseats. So much work, but so tasty!

    Chicken Pot Pie with Buttermilk Biscuit Topping from @seriouseats. So much work, but so tasty!

    Chicken Pot Pie with Buttermilk Biscuit Topping from @seriouseats. So much work, but so tasty!

  • Shared today on Twitter

    RT @qkate: Honestly I think some dudes only take this bullshit “no true Scotsman” stance because they’re mad when they see others (mostly w…


    RT @MichelePlayfair: If you’re just starting off with #functionalProgramming, try the Intro to #elixir workshop, those with more experience…


    RT @jeffpatton: Hey Australia & New Zealand!: I’ll be teaching a live online product leadership course in your time zone aug 24-28.

    Look…


  • The Glasgow School Sisters who Influenced Klimt

    I clicked on this blog post expecting to be inspired by Margaret and Frances’s art (which is amazing), but instead came away depressed and angry about the limitations placed on their careers.

    Their marriages, in turn, lead to a dissolving of the sisters’ artistic partnership as Margaret and Frances began collaborative work with their respective partners, as was expected of dutiful wives. During such work much of the sister’s own artistic input was credited to their husbands.

    Rage. 🔥

    via The Glasgow School Sisters who Influenced Klimt | #womensart ♀

  • Shared today on Twitter

    WordPress experts – I am beating my head against the wall. On one site, https://t.co/ChcOEEKcKG redirects to https://t.co/eunndVdO7O. On another, it doesn’t. I can’t figure out why. There’s no redirect_canonical involved that I can find.


    @developerjack Appears to be happening at WordPress level, not Apache. Tried turning off different plugins, doesn’t seem to make a difference.


    @Mikenicholls88 Redirect is happening at WordPress level, somehow.


    @pwcc Yes, just says WordPress. No multisite.


    AH HA. Seems to be related to the fact that one site has a static page set as homepage, and the other has list of latest posts.


    Okay, so here’s the magic: IF you have a static home page set in WordPress, then any subdomain (other than www) that has no path specified (aka https://t.co/mWJcALAUrO) will redirect to your site URL. However, if you ask for https://t.co/Fzd3Ypcxbv, then it will NOT redirect.


    BUT if you have WordPress set to show recent posts (like for a blog), then https://t.co/j2YWBFAntZ will NOT redirect even without a path.


    So what is the point of all this? The point is that I don’t know how CloudFront *isn’t* barfing on https://t.co/tpSG1KvRg5.


    WAIT, WE FIGURED IT OUT. 😅 CloudFront is forwarding the host header when it requests from origin, which is why it’s not getting itself into a circular loop. https://t.co/M5d4jrvZpu


    Going down a WordPress/CloudFront/redirect rabbithole… or: How I spent my Sunday. https://t.co/2szCIfSEXi 😅


    @gilmae The most painful part is if we had tested any other page than the homepage, we would have solved it six hours faster.


    @gilmae I found this the other day. Enjoy. https://t.co/gopoUzQTzA


    I’ve got a new iPhone with Portrait mode, and the first thing I’ve used it on is this Maple Walnut Cornbread I baked tonight. 😍 https://t.co/lwsrXZO60t https://t.co/kpyLC7tloS


    We are up to Cocktail #12 – a hot toddy! Perfect for a cold winter’s evening. https://t.co/dOeXsGUpez 🍋🥃🍯


    RT @cyetain: You know why I’m giving you a dirty look with my mask on? https://t.co/cHXhue7EEt


    Snoozing. https://t.co/hY8Qt81ZeS https://t.co/7AdMlHr3yR


    @chrisgander If you haven’t found it yet, annotated lyrics on https://t.co/QtwPROiuqJ are amazing. Explain both the hip-hop references and the history, and several are from LMM himself!


    @jeamland @The_McJones Will it be possible for me to earn some sort of Banrock badge or mayorship? Because then I’m IN.


    RT @jimmisimpson: They finally got the Disney World ad right. https://t.co/avy2PUOQXQ


  • Shared today on Facebook

    Ep 12: The Snook makes a Hot Toddy. Perfect drink for a cold and rainy winter’s night!


    I’ve got a new iPhone with Portrait mode, and the first thing I’ve used it on is this Maple Walnut Cornbread I baked tonight. 😍


    Snoozing.


  • Going down a rabbithole…

    Good gracious. This morning I thought I’d just do a quick task on my migrated Lightsail sites: setting up a Lambda function to check every 5 minutes, see if the page contains some specific text, and send me an alarm if the site isn’t up. My first thought was to use CloudWatch Synthetics, but the pricing is a lot higher than just doing it yourself with a Lambda function (though you don’t get spiffy screenshots and such). I kept it simple and happily discovered there’s an existing lambda-canary blueprint available. So I set that up, pointed it at https://www.roalddahlfans.com, and tested it out. It worked great!

    Then the Snook, looking over my shoulder, said, “That’ll be going through CloudFront. Why don’t you point it at the origin subdomain so you know it’s hitting the real WordPress underneath?” Okay, sure. Just to double-check it was working, I went to the origin subdomain in the browser… and was redirected to www. What. Uh, that’s not good. Thinking I had screwed something up, I tried hitting the origin subdomain of web-goddess.org… and that worked correctly, not redirecting to www. What the hell. Why were my two sites behaving differently? And why wasn’t RoaldDahlFans’s CloudFront distro barfing that I had set it up with an origin that was redirecting to itself??

    Over the next seven hours – seriously – the Snook and I beat our heads against this problem. I tried turning on and off various plugins; I grepped both filesystems multiple times looking for differences; I completely rebuilt the CloudFront distribution for RoaldDahlFans; I turned SSL off and on repeatedly; I fiddled with heaps of htaccess settings… and we got nowhere. We determined that on web-goddess, if I went to https://web-goddess.org, it would be redirected to www; but for any other subdomain (foo.web-goddess.org, etc) it would not. But on RoaldDahlFans, it would always go to www regardless of whether you used a subdomain or not. It was so frustrating.

    Wordpress redirect tweet

    Various people chimed in pointing us to various things, without much success. My buddy Peter Wilson mentioned thinking that WordPress had some special behaviour to redirect between www and non-www domains, which eventually ended up in us poring over the redirect_canonical code. The Snook noticed that another thing this module does is try to redirect you to the correct page if you type in a URL wrong. For example, if you try to access https://web-goddess.org/about, WordPress will automatically redirect you to https://www.web-goddess.org/about-me (which is the real address). However, if you do that on any subdomain other than www or non-www, it gives a 404. He went to test whether that was also held true for RoaldDahlFans, and to his surprise, the origin was not redirected! What the hell.

    We determined that the origin subdomain was only redirecting to www on RoaldDahlFans on the homepage. Every other page on the origin subdomain would not redirect. So what’s special about the homepage for RoaldDahlFans.com compared to web-goddess? Well, web-goddess has the homepage set to show the most recent posts, but RoaldDahlFans uses a static page. I changed RoaldDahlFans.com to use the most recent posts, hit up the origin subdomain, and it did NOT redirect. But when I changed it back to a static page, it went back to redirecting.

    SO – there is something in the way WordPress handles sites with static homepages that causes them to be redirected to the Site URL, even if you’re using a random subdomain. If you add anything to the path – subdomain.roalddahlfans.com/index.php, it won’t trigger the redirect. How weird is that?

    Okay, so that finally explains the difference in behaviour between the two sites. My origin subdomain for RoaldDahlFans.com was going to redirect requests for the homepage to www, and there was nothing I could do about it. Which meant that when CloudFront needed to refresh its cache for the homepage, it would hit the origin subdomain… and be redirected to itself? Why wasn’t I seeing an infinite redirect loop crashing my site?

    Cue another hour of poking around. The only way it wasn’t going to crash, the Snook reasoned, was if CloudFront was passing the Host header through to the origin as part of the request. I was not aware of telling it to do that, but…

    CloudFront behaviour

    It turns out that the AWS WordPress plugin, when it set up my CloudFront distribution, helpfully whitelisted the Host header as part of the default behaviour for the site. This is why CloudFront isn’t barfing every time the homepage cache expires.

    So there you have it. What I thought would be a fifteen-minute task sent us down a rabbithole of WordPress, redirects, and content delivery network intricacies. The irony is that after all that, nothing is actually incorrect on my site! It’s all working as intended. We just didn’t know how. The only catch is that if I myself want to bypass CloudFront on RoaldDahlFans.com, I need to append /index.php when I hit the origin subdomain.

    This was not how I intended to spend my Sunday… 😅

  • Photo Post

    I’ve got a new iPhone with Portrait mode, and the first thing I’ve used it on is this Maple Walnut Cornbread I baked tonight. 😍

    I’ve got a new iPhone with Portrait mode, and the first thing I’ve used it on is this Maple Walnut Cornbread I baked tonight. 😍