LD

Blog posts

  1. Simple CSRF token middleware for express

    I’ve been doing some Express development in Typescript recently, and I realised that there are no well-maintained CSRF libraries for Express anymore. Plus, CSRF is actually quite simple to implement and it meant I could avoid adding yet-another dependency to my project. Here’s the basic implementation. It depends on there already being some form of […]
    Read more
  2. Building a CMS for Eleventy

    Three days ago, I tweeted this: https://twitter.com/LewisDaleUK/status/1577211142748807168). I said I wouldn’t be writing a CMS for Eleventy. It wasn’t going to happen, there’s no way. I’m not in the business of reinventing the wheel. Anyway, here’s how I built a (very simple) CMS for an Eleventy site. Why? I wanted to build a proof-of-concept for […]
    Read more
  3. Moving my reading list out of JSON

    I blogged about hosting a reading list on this blog a little while ago. At the time, I decided that storing the books as JSON would make sense – and it did, at the time. But as the list has grown, albeit not exponentially, it started to get a bit messy. So I decided to […]
    Read more
  4. Diabetes (might have) saved my life

    In April this year, I went to see the doctor and had some blood tests done as part of the checkups. When I spoke to the doctor about the results, he dropped a bombshell I wasn’t-but-also-sort-of-was expecting: I was diabetic. I had no symptoms, so I had no idea, but it still wasn’t wholly unexpected. […]
    Read more
  5. Working retro with a Raspberry Pi

    Since moving to a co-working space, I’ve started using a Raspberry Pi 400 as my primary desktop PC at home to avoid transporting my laptop back-and-forth each day. I’m mainly using it for writing blog posts, playing the odd game, and tinkering with some of my own projects. After a few weeks of this, I’ve […]
    Read more