Tutorials

How to Monitor Sidekiq Process Uptime in Rails Apps
Things usually work until they don’t. Sidekiq background job process can explode, quietly turn off, or get stuck for a variety of reasons. Random network errors, misconfigured email clients, shortage of RAM, or disk space on Redis to name a few. A...


Day 5 - pixelart-characters Gem - Generate Pixel Art Characters, Algorithmically - Case Study №1 - 8-Bit Icon Avatar Series (20x20) | Best of Ruby Gems Series
Note: List all parts (such as face, clothes, eyes, etc.) that make up a character in the paste order, that is, the algo will generate an empty pixel image / canvas and than adds - or is that composes or pastes - one part after the other on top all...





How to build a read model with Rails Event Store Projection | Arkency Blog
Recently I faced interesting challenge in one of our customer’s application. Imagine that you take a test after which you get a personalised reports about your skills level. Existing mechanism for that was time and resource consuming. People had t...

Using Sinatra to Mock Shopify API Calls in Rails Test Suites
Designing a good test suite is critical to the development of a reliable application, but it involves constant decisions about how closely to replicate your end product. For example, it might seem like the best test suite is one that only tests th...

Improving your Rails mailers with `email_address_with_name`
It’s a small touch, but it is a more human-readable way of addressing an email. Rails provides a helper utility to format email addresses in this style without resorting to manual string manipulation.UsageUse email_address_with_name to add a name ...