Gareth Adams
Gareth Adams
@gareth.fyi
@kipheath.bsky.social Guess who has a printer and sticker sheets now
January 13, 2025 at 6:55 PM
I hate when my phone has great signal but my apps aren't loading any data, and it's because my phone has decided to try connecting to a free WiFi network, so every request is silently getting redirected to the portal login screen in the background.
December 27, 2024 at 6:38 PM
I'm catching up on this year's Advent of Code puzzles - this time around I remember that `ARGF` exists, which makes it much easier to write code that _receives_ the input rather than having to hardcode it.

gareth.fyi/2024/12/04/a...
Advent of Code: Getting started
It’s time for Advent of Code again! I’m starting a couple of days late because my laptop got stolen, but the first few days should be easy enough to catch up on. My first solves are going to be in Rub...
gareth.fyi
December 4, 2024 at 2:44 PM
Having my laptop stolen is really going to test how much of my stuff is really restorable. Do I need to remember how PGP keys work again?
December 3, 2024 at 12:13 AM
Just found an unprecedented FIVE Bertie Bassetts in a single pack of Liquorice Allsorts. (I feel like this is the kind of energy I should be aiming for at this stage of Bluesky)
November 17, 2024 at 11:47 PM
Reposted by Gareth Adams
Or you can use the attribute selector

[id="123"] {
color: red;
}
November 15, 2024 at 6:03 PM
Fun learning about CSS today.

Since HTML5, element IDs can start with numbers. But in the CSS selectors spec, and therefore in `document.querySelector`, identifiers *can't*. So how do you target an element with a numeric ID?

<div id="123">Hello</div>

#123 { color: red } /* No */
November 15, 2024 at 4:59 PM