David Stosik's Avatar

David Stosik

@davidstosik.bsky.social

Ruby on Rails developer at Shopify. Dad living in the Nagano countryside.

120 Followers  |  108 Following  |  22 Posts  |  Joined: 23.10.2024  |  1.7243

Latest posts by davidstosik.bsky.social on Bluesky

Post image

Was looking for a self-hosted photo gallery solution.
Guess I'll pass on Piwigo...
(That's on their homepage: piwigo.org. πŸ˜…)

09.05.2025 09:14 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Ooh, I'd love to hear more about your experience! πŸ€“

23.12.2024 15:47 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Yeah I guess I’d use an `action_at` timestamp to record a state only for states that cannot be reverted…

10.12.2024 16:13 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Isn’t β€œlack of publish date” (ie. `published_at == nil`) equivalent to β€œnever published”?

Although I guess I identified an edge case while writing, where the action depublishing a record would derail the concept…

10.12.2024 16:10 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

The coffee beans require extra processing and might be more expensive to procure?

06.12.2024 02:22 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

It runs them in order, but if it finds an older one that was not run yet, it runs it anyway.
Think about multiple developers coding on the same code base, and their PRs being merged on a different timeline than they generated migrations.

03.12.2024 07:36 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Totally.
Haven’t found anything useful myself, when I looked for it.

02.12.2024 01:46 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
A portable video game system looking like a GBA SP in silver color. 
The four face buttons give away that it’s not a GBA SP (it’s an Anbernic RG35XXSP).

It shows a Nintendo Game Boy splash screen with a pixel-art mount Fuji in shades of blue.

A portable video game system looking like a GBA SP in silver color. The four face buttons give away that it’s not a GBA SP (it’s an Anbernic RG35XXSP). It shows a Nintendo Game Boy splash screen with a pixel-art mount Fuji in shades of blue.

A portable video game system looking like a GBA SP in silver color. 
The four face buttons give away that it’s not a GBA SP (it’s an Anbernic RG35XXSP).

The screen shows the title screen for the game UFO50.

A portable video game system looking like a GBA SP in silver color. The four face buttons give away that it’s not a GBA SP (it’s an Anbernic RG35XXSP). The screen shows the title screen for the game UFO50.

A portable video game system looking like a GBA SP in silver color. 
The four face buttons give away that it’s not a GBA SP (it’s an Anbernic RG35XXSP).

The screen shows UFO50’s game cartridge selection screen, where only a few cartridges have already been played and show in color.

A portable video game system looking like a GBA SP in silver color. The four face buttons give away that it’s not a GBA SP (it’s an Anbernic RG35XXSP). The screen shows UFO50’s game cartridge selection screen, where only a few cartridges have already been played and show in color.

This is very cool!

Might become my new very portable system.

(But UFO50 is extremely hard! 😡)

26.11.2024 06:19 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

I was about to reply the same thing.
That Cmd+Shift+5 thing even gets annoying when you set it to send to Clipboard. Doing so will change both Cmd+Shift+3 (or 4) and Cmd+Ctrl+Shift+3 (or 4) to send screenshots to clipboard...

25.11.2024 00:45 β€” πŸ‘ 9    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Even though I signed out it still didn't work.
I had to use an incognito window to get the page I'm asking for...

19.11.2024 02:29 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image Post image

This is infuriating. Why, when I click on this Google result in English, does Apple redirect me to a page in Japanese? Give me the page I asked for, in the language I want!

And of course, no easy language switcher that would keep me on the same page...

19.11.2024 02:27 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
Commits Β· rails/rails Ruby on Rails. Contribute to rails/rails development by creating an account on GitHub.

My contributions were very minor, but I can find 12 commits. 😬
github.com/rails/rails/...
(Also thanks for the reminder to add my Bluesky handle to my GitHub profile. πŸ‘ŒπŸ»)

18.11.2024 02:09 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Video thumbnail

It worked!

12.11.2024 01:20 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

I can't install the bloops gem and I don't know what I'm missing... (I tried `brew install portaudio` as well.)

11.11.2024 14:29 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
The muffins trays are out of the oven, cooling down.
One muffin slot is empty, revealing a small piece of muffin that stuck to the bottom.

The muffins trays are out of the oven, cooling down. One muffin slot is empty, revealing a small piece of muffin that stuck to the bottom.

Couldn’t wait! 🀣

05.11.2024 14:06 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Two 6-muffin silicone trays in a turned on electric oven, containing half-baked chocolate chip muffins. The timer shows 6’40” left.

Two 6-muffin silicone trays in a turned on electric oven, containing half-baked chocolate chip muffins. The timer shows 6’40” left.

🀀

05.11.2024 13:58 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
Deploying Writebook with Kamal 2 Sto’s thoughts

I updated my "Deploying Writebook with Kamal" blog post to make use of `SOLID_QUEUE_IN_PUMA`.

The app is even simpler now!

Thanks @schwad.bsky.social!

davidstosik.me/dev/2024/10/...

03.11.2024 14:45 β€” πŸ‘ 4    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Post image

Now the second time you print does not override the line entirely, it just writes on top of it. So if you write a shorter line, then the earlier line's tail will still be there.

03.11.2024 04:17 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Video thumbnail

Today I learned: in Ruby, I can use `print` and `\r` to write multiple times to the same line.

How did I not already know about this?!

03.11.2024 02:33 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

Thanks! Never liked the hoops I had to go through to setup Redis, so it makes me happy I don't have to rely on it for small projects anymore.

30.10.2024 06:20 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Whaaaat! I've been reading Lucian's Short Ruby Newsletter for months but I wasn't aware he'd worked at Cookpad after I left...
Good job on the newsletter, and good luck with the workshop!

30.10.2024 06:18 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0
Preview
Deploying Writebook with Kamal 2 Sto’s thoughts

I wrote something technical:
davidstosik.me/dev/2024/10/...

29.10.2024 11:40 β€” πŸ‘ 13    πŸ” 2    πŸ’¬ 1    πŸ“Œ 0

@davidstosik is following 19 prominent accounts