Our Blog

We use an agile approach to test assumptions and connect with the needs of your audience early and often.

Ruby on Rails(4)RSpec(1)Playwright(1)

Using session cookies directly in playwright

After 37signals posted how they sped up their test suite considerably by using cookies directly instead of signing a user in for every test, I wanted to do the same. Why spend more time than necessary on testing, am I right? Unfortunately, 
Mikael profile pictureMikael Henriksson
1 minute(s)
Ruby(2)Redis(1)Lua(1)

Client side rate limiter

Sometimes you have to get ahead of things. Rate limits suck but are there for a reason, waiting until the API you are calling raises a rate limit error is bad, really bad. This is how you get ahead and prevent the external API from raising rate limit errors.
Mikael profile pictureMikael Henriksson
6 minute(s)
Ruby(2)Performance(1)Memory(1)YJIT(1)

High performant ruby installations

Ruby is more than a little memory hungry. This is a known fact, what isn't known by most of my clients is how to reduce memory consumption considerably. This is how you do it.
Mikael profile pictureMikael Henriksson
2 minute(s)
Ruby on Rails(4)Puma(1)Ubuntu(1)Capistrano(1)

Using systemd to monitor Puma

Puma doesn't support daemonization anymore so the proper way to run puma is to use systemd.
Mikael profile pictureMikael Henriksson
2 minute(s)
Ruby on Rails(4)

Global rails partials

Most people do it wrong, this is how to do it right!
Mikael profile pictureMikael Henriksson
1 minute(s)
Ruby on Rails(4)

Serving custom fonts with cssbundling-rails

 I wanted a custom font to use for my website. While loading fonts using google fonts is possible, I want to reduce the number of external dependencies as much as possible and this is how I did it. 
Mikael profile pictureMikael Henriksson
4 minute(s)