Apr 10, 2022

#186

Work

I have now been at GoCardless for a month.

Which is kind of surprising really, it doesn’t feel that long, but yes, my calendar confirms that the 8th of March is a month ago. I think I’m settling in fairly well. There’s obviously still a lot about the domain that I don’t know, but that cloud of known unknowns is shrinking little by little. I’ve been spending my spare time1 looking through the codebase to figure out how everything fits together, and I spent most of last week refactoring one of the components we own.

This reminds me, I should check that “your first 30 / 60 / 90 days” thing I was sent about things to learn and do and see how I’m doing with that.

Books

This week I read:

Self Hosting

I made a few changes to my self-hosted set-up this week: I’ve stopped hosting git, started hosting a wiki, and made a couple of discoveries about systemd units.

Let’s start with the systemd units. I learned about the BindPaths and DynamicUser options:

These options are both in the documentation, but there’s so much stuff in the systemd documentation that it’s kind of imposing to just read through. These two haven’t been the first options I’ve discovered after years of use, and surely won’t be the last.

systemd is a great piece of software. I was sceptical when it first began to rise to prominence, but those doubts are all long gone.

Next, git. I have stopped hosting gitea. It’s a perfectly fine piece of software, but it was not ideal for my purposes. It was annoyingly stateful, with some configuration done through environment variables and some through a configuration file inside a docker container. It was just slightly annoying having my private git repositories in one place (gitea) and my public git repositories in another place (github). And one time I managed to nuke its state and discovered my backup of its database was incomplete, so I had to start from scratch… and nothing of value was lost.

So I pushed all my private repositories to github, updated my backup script so it could handle private github repos, and dropped gitea.

Finally, a wiki. I’m now running wiki.js. I’ve resisted this for a long time, trying to believe that everything should be open by default, on this memo site. But I’ve come to realise that mixing personal-audience and public-audience writing doesn’t really work for me. Since this site is now almost entirely public-audience stuff, I’m just going to migrate private-audience stuff to the wiki. I’ve already done that with my recipes and found that it’s actually motivated me to add some more.

wiki.js itself is quite nice to use and run. And it appears to store everything, even media, in its database, so backing it up is a breeze too.

Food Planning

I like cooking and eating nice food, but I’m also very lazy and so left to my own devices will just make easy meals, snack, or order takeaways all the time.

So to combat that I started planning my meals some years ago. I’ve got a little 5-week calendar on my whiteboard and, at the start of the month, I’d work out what I wanted to make and eat. So I might decide to cook a big chilli in my slow cooker, which would make 10 portions, and I’d allocate those to days across the month. Then I’d think “well, I don’t really want two minced beef based meals back to back, so maybe I’ll make a curry for this, this, and this day…” and so on. I got quite a bit of variety in my meals, and also specifically allocated days where I’d try cooking something totally new. This had another benefit too: shopping trips became trivial to plan. I could just look at the calendar, see what was coming up for the next week or so, and buy the ingredients I was out of.

It worked very well!

But at some point over the past two years, I stopped doing the big monthly planning session. I began to plan only most of a month ahead, then only a couple of weeks, then just a week… it was so gradual I didn’t notice. But now that I have, the difference is stark.

So what, right? Most people don’t plan a month’s food ahead of time, and they do just fine.

Well, recall that I am very lazy.

I used to have a small repertoire of 5 or 6 meals I’d cycle through. Not a huge amount of variety, but enough to keep things interesting, especially if I did try a new meal a couple of times a month. But for the past couple of years I’ve switched more and more to just making the easiest one or two meals, and very rarely trying new things. If a meal needs some ingredient which is harder to get (for example, I’d need to go to an asian supermarket and there isn’t one nearby), I tend to put it off. And I’ve got back into the habit of ordering one or two takeaways a month, because the food I do make isn’t providing enough variety.

This needs to change. Fortunately, it should be pretty easy to fix now that I’ve recognised the problem: I just need to reinstate the monthly planning sessions. Then I know what I need to buy, I know what I have to look forward to, and I can specifically pick out a few days a month to try something new.

So I’ve put a recurring event in my calendar, for the first of the month, to plan meals. Let’s see how it goes.


  1. Spare time at work, not spare time out of work.↩︎