bjorn.now

23 October, 2025

and now the bank has confirmed that I’ve sent the money, and sent it on to Bolagsverket.

I love the transparency and setup of their page explaining how long it should take to process my application, there’s a goal (7 working days), and which applications they’re aiming to process this week (those from 14-19th of October). Wish more gov’t services did this. eyes Försäkringskassan

aktiekapital sent for starting my company, the bank has talked with me and decided I’m allowed to have an account with them, next up, get approved by the gov’t.

also TIL, in Singapore you only need $1 as starting share capital and in SE it’s a minimum of 25,000 SEK (~3,500SGD)

09 October, 2025

the first (digital) forms signed on the quest of starting my own company, now the waiting begins

scrap Updated

Don’t quote regex patterns in Bash [[ ]] tests, because they’ll match literally.

So the below won’t match because it’s looking for a literal $ in the string, instead of matching at the end of the string:

file="https://example.com/blog-post/index.html"
[[ "$file" =~ "/index.html$" ]] && echo MATCH

But this will:

file="https://example.com/blog-post/index.html"
[[ "$file" =~ /index\.html$ ]] && echo MATCH

Note: [[ ]] is a Bash extension of the test command that supports regexes (among other things). The [ ] is the POSIX standard test (see man test), so [[ ]] features may not work in other shells or in limited shells like ash or sh.

[… more]
til 1 min read #bash, #regex, #shell-scripting

08 October, 2025

The regex | (or) operator splits the pattern left or right unless explicitly grouped. Group it using (pattern) if you need to use the match later, or as a non-capturing group (?:pattern) if you do it for clarity.

I used to think there was some magic rule about how | decided where to split, but it’s simply: characters and subpatterns concatenate into a single pattern first, then | splits the entire thing left and right unless you explicitly group it. That’s because | has the lowest precedence so all other operations happen first.

So while I used to think that prefix_cat|dog would match prefix_cat and prefix_dog, it actually matches prefix_cat and then dog.

And that exact problem in a real-world example, to find if a page is linking to another, both relative or full URL:

[… more]
til Updated 2 min read #how-to, #regex, #background-work

I just caught myself thinking, “I need to get coasters” so turns out that’s a thing I’m missing from my Singapore stuff 😅

Execute the data node/step and pin it, instead of rerunning the workflow or the step that relies on that data, when modifying a step that needs fresh data.

n8n workflow showing a sequential workflow starting with RSS fetching and going through Telegram, Mastodon, and Bluesky

Example: When modifying Mastodon/Bluesky cross-posting nodes that depend on an RSS Feed Trigger, execute and pin the RSS node. Then iterate on the posting logic that only depends on the RSS data without triggering any posting.

[… more]
til 1 min read #n8n

Hugo’s resources.Get only finds files in assets/, not static/.

I kept my assets/resources in static/ and didn’t get why I always had to write /absolute/urls and use hope as a strategy, when I moved them into assets/ I could look up all my assets.

[… more]
til 1 min read #hugo

06 October, 2025

urgh. I’m trying out ChatGPT, and it really is telling me everything is a great idea, just like South Park said:

(I really don’t feel I get this from Claude, but maybe my personal base prompt helps there?)

04 October, 2025

Being back and speaking Swedish every day, and more than in years, I have felt that my Swedish has atrophied a bit. That I’m not able to express myself as well in it as in English, so I decided to read a bit more in Swedish.

Two books resting on a black cushion: a cream-colored vintage edition of August Strindberg plays and a Fredrik Backman novel with a blue winter scene cover showing a hockey player, with a potted plant visible in the background

August Strindberg’s Dödsdansen & Spöksonaten and Fredrik Backman’s Björnstad

I ended up getting a very contemporary author and one very much not. I read Backman’s blog back before he got his first book published, so I knew how funny he was and I read half of Beartown yesterday, he’s really nailing the storytelling. I had a hard time putting the book down.

Strindberg is famous and I haven’t ever read or seen anything by him (that I know of), so why not. I suspect it’ll be a harder read in many ways. It was a very random pick, because I just strolled around the library (second library card down, now I can use Libby from my Kobo), and I totally picked it because Ghost has a song called Spöksonat, so why not…

my application to register as residing in Sweden (folkbokförd) has been approved, no longer a ghost merely living here.

I can now get a convenience store membership since the systems can look me up 🙄🥳

01 October, 2025

Use usermod -l newuser -d /home/newuser -m olduser when renaming a user account, because it’ll update all relevant system files and move the home folder in one go.

Then groupmod -n newgroup oldgroup if you need to rename the group.

[… more]
til 1 min read #linux

Use curl -k --resolve bjorn.now:443:127.0.0.1 https://bjorn.now when testing an HTTPS site locally using Caddy, instead of curl -k -H "Host: bjorn.now" https://localhost, because Caddy relies on SNI and refuses the connection if it doesn’t know which host you’re trying to connect to.

[… more]
til 2 min read #how-to, #linux

30 September, 2025

I really miss having an induction stovetop. it really is so much better than a normal electric one

Use :focus-visible instead of :focus, because it will only show when helpful.

:focus-visible only shows focus styling when the browser determines keyboard navigation is being used, unlike :focus which triggers on all interactions including mouse clicks.

[… more]
til 1 min read #css

28 September, 2025

okay, don’t turn on the dishwasher while running the kettle. upside, I know the breaker works, and I’m happy it’s flip switch instead of having to replace fuses 🙂

26 September, 2025

Maybe, let's see in a few weeks

Now that I’ve moved back to Sweden without most of my stuff (it’ll be on a ship soon enough), everyone’s got suggestions on necessities. Need to buy all the tools (so I can fix things), the kitchen equipment (because the kitchen is very basic), the cleaning tools (okay, the basicness here might hinder), and the big one: a car. “There are such distances now that you just have to have a car.

I keep pushing back with “maybe, let’s see in a few weeks.”

[… more]
crumb 4 min read #thinking-out-loud
A rhubarb pie with whipped cream and a cup of coffee

A rhubarb pie with whipped cream and a cup of coffee

today I found a shop that has specialty coffee Krukmakeri Hemjord (amongst other things) in Kristinehamn, and the owner has the same name as I do and is a proper coffee nerd.

He’s been telling me about the coffees as I was planning to sit here a couple of hours, and we ended up with Ethiopian coffees, and I am now trying an anaerobic Ethiopian. While I have tried this in the past I haven’t known what to expect of it properly, and now that I know the citrusy/acidic is the point of this it’s quite nice as I like sour/acidic. Before this cup I had a similar but washed, and it was very tame in comparison. Very nice, and coincidentally they’re even brewing with the Clever Dripper (which I got recently), so I have some practical ideas for how to repeat at home.

scrap Kristinehamn, Sweden

23 September, 2025

Hand holding two Horus Heresy novels, the golden titles are lit by reflected sunlight, with sunset visible through window and trees behind

The Emperor’s light shines upon my acquired reading material