Published

moreish

“Moreish” is a word that doesn’t exist in American English, but it should.

We were discussing moreish-ness in relation to oatmeal cookies the other day. What makes a food moreish, something that hits the spot but also leaves a void, leaves you wanting a little more?

At the time, I felt that it requires multi-dimensionality, just enough contrast. When something is too on-the-nose, it isn’t moreish. Cookies without a pinch of salt, tomato sauce without a little sweetness.

Since then I’ve been thinking about moreish-ness a lot outside of the context of food, and the contrast idea stands up.

Outfits, websites, books, relationships. Requires more exploration.

Published

distraction from the distraction

I’ve been ill on and off for three months now. It’s not so bad, I’m not completely out of commission, haven’t had to go to A&E. But it’s bad enough.

It has a weird effect. The symptoms aren’t always there, thank goodness. And I’m getting better at handling it when things go south, I’ve learned how to alleviate pain quickly.

The more difficult element to cope with is the psychological brittleness. The feeling that I cannot rely on myself. I’m reluctant to make plans because I’d rather not make them than break them again. That can get pretty isolating.

It’s particularly weird when it comes to work. If I were working as part of a larger team I’d talk to my manager, or HR. But the only people I answer to are my collaborators and clients. They’re very understanding (it helps a *lot* that I don’t work totally solo), but still. It’s a bit of a weird conversation, one I’ve avoided for the most part.

It will probably be another month until things are “settled”. The powers that be are sorting it out, I think. And I’m staying busy. Practically, I don’t want to fall behind. Emotionally, I need the distraction. Distraction from the larger distraction.

Published

first time using a hot water bottle

River Eden at sunrise, Appleby-in-Westmoreland

10 years ago today, I spent a few days at a very hospitable couple’s house in Appleby-in-Westmoreland, Cumbria. I was about two weeks in to a six-month stint studying illustration at Glasgow School of Art. This is the River Eden at sunrise when we walked in to town to pick up the paper.

They had a beautiful stone house on Battlebarrow and kept chickens in the backyard. I’d never seen a house quite like it, you just don’t get places that old in most of the US. They put a hot water bottle in my bed at night and introduced me to QI, both firsts for me. I was only there for a couple nights, and they made me feel very welcome in the UK during a time when I felt pretty untethered.

Published

Working with Netlify CMS and GitHub Pages

This was originally posted on sb-ph.com. I’ve moved it to my blog since we’ve decided to remove the blog from that site.

 

Heads up: this post is kind of old! I’ve got mixed feelings about this approach now for a few different reasons, in no small part due to Uploadcare’s new pricing. No dig at them, they gotta do what they gotta do, but it puts this out of most of my clients’ budgets. If you’re interested in additional thoughts on JAMstack CMSs, you might want to take a look at this post.

Working with Netlify CMS and GitHub Pages

We’ve recently been exploring a lightweight CMS setup for the Host site. This post summarises the thought process behind our decision to work with Netlify CMS and GitHub Pages.

TL;DR
Though it’s an unusual setup for a client site, I like the stack and would consider using it again for a similar project.

Evaluating Netlify CMS

There are two potential downsides that would rule out Netlify CMS for most of our client projects. One is that user account setup isn’t super straightforward, the authentication method makes this a little more complicated than normal. The other is that the hosting “ownership” is tied to a GitHub / GitLab / Bitbucket repository. All-in-all, this approach demands a slightly higher level of technical know-how from the client than most other CMSs we regularly use (Craft, Kirby, WordPress, etc.).

The upside is the relatively low cost to the client, both in the short and long term. Netlify CMS is free, as are a few selected static hosting providers (Netlify and GitHub Pages spring immediately to mind). The login authentication is the only step that requires a server, since the keys have to be kept secret. Previously, the server would be the big ongoing time and money sink. Certain platforms however, such as Netlify, offer selected webtasks / microservices / cloud functions for free.

When evaluating these pros and cons against the Host website requirements, it became apparent that it would be a pretty good fit. The original Host static site was built with Jekyll and jekyll-seo-tag, so we knew it would work nicely with GitHub Pages and Netlify CMS. GitHub recently introduced free private repositories for up to 3 users, so we felt less concerned about the site hosting being tied to a repository that we own since we could transfer it to Host at some point without feeling pressure to make the repository public. And the Host folks are a pretty tech savvy bunch, so I wasn’t worried about them being daunted by things like repositories or GitHub-linked authentication.

Working with Netlify CMS widgets and media

So I got started with Netlify CMS. The first thing I dove in to was the widget (field) configuration, and I was impressed. The widget configuration options are more fully-featured than I would have expected for a ~1.5 year-old CMS. While configuring the widgets I also gave the custom editor Preview components a try, however ultimately I abandoned that experiment and disabled the editor Preview. It’s out of the scope of this project, and the maintenance of these React components alongside a non-React site seems a little dicey. Something to explore separately at a later date perhaps.

Media management is a concern on static sites, and this one is no exception. We could have gotten away with hosting the images in a directory in the GitHub repo, but we wouldn’t have any nice image transforms for faster page speed and would have had to ask the client to do all of the heavy lifting with image resizing and optimisation. I would have also worried about the repository size spiraling out of control with overly-large image files. Netlify CMS v2.1.0 offers the Uploadcare media widget by default though. Uploadcare’s free tier seemed to be a very good fit for the Host website, so we got that set up as well. The implementation was pleasingly straightforward. As someone who has spent a lot of time debugging image transformations in more traditional CMSs, Uploadcare’s URL-based system is refreshing.

Configuring GitHub authentication for Netlify CMS + GitHub Pages

The final critical step was the authentication configuration. Netlify CMS offers a number of different methods. We knew we wanted to use GitHub Pages for hosting, so the two most likely options were Git Gateway with Netlify Identity or GitHub with Netlify. We went for the latter. It does require that all users have a GitHub account (unlike the former), however this ultimately feels like the right approach since much of the site documentation lives in the repo’s Readme file and we feel it gives the client a bit more ownership over and awareness of the inner workings of their site.

The authentication was a little more complicated than the rest of the Netlify CMS setup. I followed the GitHub Backend instructions, which are relatively minimal and more geared towards a site hosted on Netlify. I found this article more helpful since it addressed what we were after, a Netlify CMS-powered site hosted on GitHub Pages. One potential “gotcha” in these steps is that the OAuth application should be registered on whichever GitHub account owns the repo. I added it to my user account initially which was incorrect, since our organisation account owns the repo.

After following the GitHub backend instructions, I only ran in to two hiccups. I’m documenting them below since I didn’t find much related information elsewhere.

One problem was a post-login “dead end”. After clicking “Login with GitHub” and signing in successfully in the pop-up window, the user should be redirected to the Netlify CMS dashboard automatically. Instead, it just said “Authorized” and did nothing. This is because I hadn’t added the website URL to the Netlify project. I had assumed I didn’t have to add the URL since Netlify is not hosting the site, however the Netlify authorisation callback script checks the host URL against the custom domains. Once I added the URL to the project in Netlify, the issue resolved itself. Note that I did not repoint the DNS to Netlify since we still want to host the site on GitHub Pages, so it shows a little error / warning regarding the URL’s DNS records. This is not a problem.

So I was now being redirected successfully to the dashboard, but the dashboard was just a white screen. The console indicated an error with loading netlify-cms.js from Unpkg, specifically:

Refused to execute as script because "X-Content-Type: nosniff" was given and its Content-Type is not a script MIME type

This seemed possibly related to some security-related GitHub Pages headers, so I decided to grab the JS from the Unpkg URL and commit it to the repo and no longer use a CDN for the script. This immediately fixed the problem.

Final thoughts

I’d like to do a bit more exploration of Netlify CMS moving forward since it could be appropriate for more use cases depending upon the developers’ roadmap. I will probably look at the Git Gateway with Netlify Identity route for authorisation as well. Besides Netlify CMS though, we’re really interested in exploring Kirby 3. Kirby 2 has been excellent for a number of small-ish websites (<5 stakeholders, not a ton of relational data), so we’re excited to see where they’ve taken the newest version and if it could work with projects of a slightly larger scale.

Published

a little tired, but up and up

I’ve been behind. The past two months haven’t been great. But things are looking better, and the holidays couldn’t have come at a better time. We were in the US this time around, got to see more friends and family than I could have hoped. Here are some of the things we got up to.

Read more

Published

Thanksgiving 2018 notes

Grandma’s holiday open house notes

After a rotten week health-wise, it was really nice to be able to celebrate Thanksgiving yesterday with a few friends. The image here is one of Grandma Piper’s very many post-party notes, a sort of debrief she wrote to herself about what she made and what she might change next time. This particular page seems to be her neighbourhood holiday open house plan from early December 1971 for around 110 guests (guest list is on reverse). I expect she found these notes super useful, particularly since she seemed to keep every single one of them.

Here’s what I made this year, documented for a similar purpose.

Read Thanksgiving 2018 notes