Advent of Code Day 2
So back to Advent of Code. And yay, Day 2 went swimmingly as well.
The first part looked hard, but then I realised that I’d made the usual “make it look harder than it is” mistake. You don’t need to compose the whole list, just keep track of how far you’ve got each time. This was pretty straightforward with some counting of offsets. Part 1 done.
I’ve often found that Part 2 of a day’s challenge is a tweak to Part 1. For Day 1,
I built a Counter object and then used it to identify the most common entry:
Advent of Code Day 1
So I’m doing Advent of Code again this year. I am of course not a professional coder, so my solutions tend to be basic but functional.
For me, it’s much more about what I can learn than any kind of sensible competition with colleagues and friends. However, I do abide by the friendly rules in vogue at my employer. That means no discussion of the solution for day 1 until day 2, and so on. (That also means that I won’t push my solutions to the repo until the day after.)
All Posts In
So I’ve got all of the original 730 posts in, less a few that didn’t come across properly, or were pointing at pictures that don’t exist any more because Picasa went away. Now to start filling out the rest of the site and continue working.
Top priorities for now are:
Sort the theme out to fix the stuff I don’t like.
Get HTTPS support working.
Better tooling for new posts.
Fantastic Contraption is back!
Oh wow, “Fantastic Contraption” is back. I loved that game back when it was a small Flash game. Obviously Flash is dead, but it’s available on Steam now for a mere £8.
Straight on my wishlist, please!
Restarting the Blog
I’ve decided to go back to blogging. The old blog had some 770 730 posts, and
I’m hoping that they will all end up here at some point, but importing them from
Blogger is taking a while. Some of them are not going to make it, because
they’re not relevant any longer (or because they disappeared when Google killed
Picasa). I’m also fixing the formatting, image paths, and so on along the way.
Clean Dry Surface
So, you may well ask, how come I, a Mac user since Apple was doomed, unboxing a Surface Laptop 4? That’s a good question, and one that has a number of answers.
The first bit is of course why not an M-series Apple MacBook Pro, like I bought last time. And that’s actually part of it — I bought a MBP, but I bought the one with the TouchBar (now dropped), the Butterfly Keyboard (notoriously fragile), and USB-C only, so no MagSafe power for me.
CSS Replace
You can do quite a lot with CSS, it seems.
A little-known but true fact is that I maintain Pink Goddess’s salon web site. As part of that, we like to play with the “PINK” logoword, kind of how Google does doodles. I will sometimes replace the “I” with something else. For instance, for Valentine’s day, it might show up as “P🩷NK”. And for ages i’d been hacking around with the HTML to do that.
Another hurdle for Cryptocurrencies
As has been remarked elsewhere, I’m a proud nocoiner normie. But that doesn’t mean that I’m not interested in the worst excesses of cryptocurrencies and friends.
But rather than simply go over the arguments that have been explained way better by others, I’ve been pondering a small piece of the situation. It’s fascinating in a way, because crypto seems to be one of those ideas that fractally wrong — if you look at the big picture, it’s a bad idea, and if you zoom down into tiny details, there are lots of bad ideas in there too.
You Unutterably Bastard-Shaped Bastards
Like a lot of geeks, I use DuckDNS to give me a handy DNS name that points to my public IP address.
I had planned to use this for a bit of basic web hosting, but it turns out that there are way better ways to do public web hosting that don’t die when you cock up the config on your Raspberry Pi. Not that I would ever do that, of course. Well, not twice. Or, um, twice-ish.