-
It was a mistake to number my weeknotes by weeks rather than by notes.
-
We are on holiday for the first time since C’s first birthday over a year ago.
We had a false start as the “eco lodge” we booked for the week was littered with mouse droppings. We’re now in our second accommodation, E has made a fire and I’m feeling more relaxed.
-
C continues to bring home from nursery a variety of colds and, on one occasion, hand, foot and mouth disease (not to be confused with foot and mouth).
-
I haven’t played Marvel’s Spider-Man as I enjoyed Psychonauts 2 instead, released five years after I became its 14,463rd backer.
-
In order to bring my CSS knowledge up-to-date I’ve been working through Josh Comeau’s “CSS for JS” course. I was hesitant at first but I’ve learnt an incredible amount in the first two modules. I realise I’ve never understood the different box models, margin collapsing or even how positioned layout works until now.
A lot of this has influenced my work on the new raspberrypi.com.
-
C has two great loves: road vehicles and birds. We alternate between Grace’s (formerly Catie’s) Amazing Machines and scrolling through the Collins Bird Guide iOS app.
-
I had to move a subdomain to another domain for a website served by Amazon S3’s static website hosting and CloudFront. I couldn’t find examples of redirecting from one domain to another without setting up a new distribution for the new domain and a new S3 bucket to redirect all requests from the old domain.
I avoided the new bucket and distribution by creating a new SSL certificate for both the old and new domain using Amazon Certificate Manager and then updating the existing CloudFront distribution to use that certificate and the new domain as an alias.
With both domains now serving requests, I deployed the following Lambda@Edge function and associated it with CloudFront as a
viewer-request
function. This way, there’s one bucket and one distribution, both domains serve traffic but requests to the old will be permanently redirected to the new:exports.handler = async (event) => { const request = event.Records[0].cf.request; const host = request.headers.host[0].value; if (host.endsWith('.old.domain')) { return { status: '301', statusDescription: 'Moved Permanently', body: '', headers: { 'location': [ { key: 'Location', value: `https://new.domain${request.uri}` } ] }, }; } return request; };
-
I second Cabel Sasser’s recommendation to add a large Photos widget on your Home Screen once you tell it which people you don’t want featuring.
- DIY improvements on our house have stopped after disconnecting useless telephone and aerial cables, replacing the thermostat, fixing the fridge door with Sugru and filling holes in the external walls with silicone.
Weeknotes 95–104
By Paul Mucur,
on