Henrik Nyh
banner
henrik.nyh.se
Henrik Nyh
@henrik.nyh.se
🇸🇪 🇬🇧 Swedish web developer in the UK.
🏠 https://henrik.nyh.se
❤️ @johannaost.com
I'm editing a book of monsters (as one does) and I'm enjoying Pixelmator's "machine learning, not AI"-era automatic naming of layers.

It's all monster-looking monsters, but I've gotten "Fruit", "Cat", "Chicken", "Bird"…
July 19, 2025 at 5:49 PM
Another day, another Shopify theme fix.

A small change, but took a while to figure out. I now have a much better sense of `srcset` and `sizes`.
Limit zoomed image to intrinsic size in Shopify's "Craft" theme
I've just set up a Shopify store for my partner using Shopify's own Craft theme. When clicking an image to zoom/enlarge it, Craft can show it larger than its actual ("intrinsic") size,...
thepugautomatic.com
July 17, 2025 at 10:36 PM
Reposted by Henrik Nyh
I just published a recap of my RailsConf 2025 talk on my blog!

Herb v0.4.0 is out, now with the Herb Linter, a Formatter preview, and deeper editor integration for HTML+ERB.

Plus: a look at ReActionView, my vision for the future of the Rails view layer.

#railsconf #railsconf2025 @rubycentral.org
July 17, 2025 at 9:28 AM
These stacked toasts (mmmm) in Shopify Admin are lovely.
July 17, 2025 at 8:10 AM
It's fun trying to strike the balance between maintainability/upgradeability and customisability with Shopify. I wanted originals and prints to have nicer-looking titles on product pages without messing with the title display in thumbs, cart, search. Made the template split on en-dashes if present 💡
July 15, 2025 at 10:30 AM
I love you always forever UTC
July 14, 2025 at 6:27 PM
I had a #VisionPro on loan for months and I miss it occasionally. The last few days I’ve missed it for:
- Coding out in the nice weather (no screen glare)
- Coding in bed without a bright screen disturbing my partner (headphones for your eyes)
- The Weeknd's “Open Hearts” (best immersive vid by far)
July 14, 2025 at 7:12 AM
It's very neat that #Shopify lets you set a focal point for images (help.shopify.com/en/manual/on...).

Their own Craft theme didn’t use it for product cards (thumbnails). I fixed it: thepugautomatic.com/2025/07/use-...
July 12, 2025 at 10:52 PM
The Shopify ecosystem is fascinating.

Just stumbled over this.

Somehow Shopify Theme Support has formalised that all customers get 60 minutes of theme tweaks for free, offering up a pre-timed menu. E.g. a specific alternate cart icon is 15 minutes.
Theme Support customizations
Learn about the changes that Shopify Theme Support can make to your theme.
help.shopify.com
July 12, 2025 at 8:31 PM
#Ruby pattern matching for optional types of sorts:

def user_name(maybe_user)
case maybe_user
in User => user then user.full_name
in nil then nil
end
end

And:

def user_name!(maybe_user)
case maybe_user
in User => user then user.full_name
# No else – raises if not User.
end
end
user.name
July 11, 2025 at 10:52 AM
In #Ruby, how would you spec DB locks handling two parallel calls correctly? I like an explicit hook:

def run(ids, spec_hook: nil)
Item.transaction do
items = Item.where(id: ids).lock(“FOR UPDATE”)

if spec_hook && Rails.env.test?
Thread.new { spec_hook.call }.join
end
Twist
Thread.new
July 6, 2025 at 7:44 AM
Reposted by Henrik Nyh
I've been using Git since it was invented and "yours" and "theirs" might as well be "hnunch" and "grwinf" for all they make sense to me as names for "the branch I'm rebasing main" and "the I'm rebasing *onto*". I have to look at the contents every. single. time. to figure out which one means which.
June 27, 2025 at 10:22 PM
Reposted by Henrik Nyh
New slogan for tech just dropped.
June 7, 2025 at 10:52 PM
New experiment in limiting screen time: pretend my phone is a curséd dagger in a fantasy novel that will steer me towards evil whenever I pick it up unless I am unwavering in my purpose.
June 5, 2025 at 11:20 AM
Reposted by Henrik Nyh
The hamlet of Oldroyd on the opposite side of the valley from my house always looks super pretty at this time of year as all the Hawthorn trees flower 😍
#Todmorden #Calderdale #Yorkshire #UnitedKingdom #UK #Landscape
May 15, 2025 at 7:01 AM
Curious how many have stuck with #ArcBrowser or abandoned it. (For what?)

I wouldn’t like to give up splits, ctrl+tab between recent tabs, and a tab sidebar. But:

Modifying a URL in ⌘L sometimes searches instead of navigating. Never remembers HTTP auth pws. 1PW integration is flaky. Frustrating.
May 10, 2025 at 8:59 AM
Imagine if there was an app like #MerlinID, but instead of bird sounds it let you figure out what restaurant that delicious smell was from.
May 6, 2025 at 6:26 AM
Reposted by Henrik Nyh
Productivity.
8. What is an addiction that society pretends is a necessity?
January 27, 2025 at 4:26 PM
Reposted by Henrik Nyh
I’m available for hire.

I’m an experienced Ruby, TypeScript and CSS engineer looking for a new full-time position.

I can help you with performance, concurrency, testing, architecture and API design problems on tooling or product teams.

I’d really appreciate any personal introductions. DMs open. 🙏
January 27, 2025 at 7:41 PM
Reposted by Henrik Nyh
The Seagull Vampire King of Whitby, one of my comics. Available at johannaost.com!

#independentcomics #indiecomics #comicartists #horrorcomics
January 21, 2025 at 9:44 AM
I posted this in response to some random joke post but it’s a glorious bit of art that deserves a wider audience.
”Red Nose of Courage” (1992) is a brilliant humorous take on British PM John Major’s double life as a clown and has the most glorious clown sex scene.

Stumbled over the full episode here: www.dailymotion.com/video/x1vcc88 Ca 25:00–26:00 but it’s worth watching the whole thing.
January 18, 2025 at 8:24 AM
Very cool! Tried making a custom command to export the main table of a web page to CSV and that seemed to work great (though I'm not sure I'd trust an AI export of anything important).

Works fine in #ArcBrowser with www.raycast.com/browser-exte....
January 11, 2025 at 1:10 AM
Reposted by Henrik Nyh
Some of my cat paintings. More at johannaost.com!
January 9, 2025 at 11:17 PM
Reposted by Henrik Nyh
This is brilliant getFullYear.com The footer is a nice touch.
Never Have Outdated Footer Dates Again
getFullYear.com
January 5, 2025 at 3:01 PM