ai

I'm Behind and I Don't Care

AI tools change every week. New models, new workflows, new hype. I decided to stop chasing and focus on building instead. Here's why being behind is not a bad thing.

Read →
aws infrastructure

AWS NAT Gateway cost is killing you? Enable IPv6 and Egress-only Internet Gateway!

Sometimes I feel that AWS is the master of unexpected costs. If you are looking for a quick way to reduce the cost of NAT Gateway, enabling IPv6 and Egress-only Internet Gateway is an easy way to do it.

Read →
ruby hanami

My first Hanami app

In my opinion, Hanami is a breath of fresh air in the ruby world. Let's take a look at why, and how it's different from Rails.

Read →
ruby rails security

Signed URLs with Ruby

Signed URLs can be a very useful solution in many cases when you need to provide limited access to some resources or actions. As the name suggests, signed URLs contain signatures that allow us to validate if they were generated by a trusted source. I'll focus on when and how to use them in Ruby, with Rails, or by providing a custom implementation.

Read →
ruby rails security

Securing Rails applications with Content Security Policy

Nowadays web application security is a crucial and unfortunately sometimes a bit neglected matter. Today, I'll focus on Content Security Policy - a handy mechanism that can protect our app from XSS attacks.

Read →
ruby testing

Improve your specs quality with branch coverage

It's a common practice to measure the quality of tests using line coverage. Unfortunately, in some cases, it's not enough.

Read →
ruby di

Dependency Injection in Ruby

Dependency Injection is not a common pattern in ruby applications. Although even in such flexible language as ruby there is a place for DI.

Read →
ruby rails svg

Google-like letter avatars using ERB-generated SVGs

Creating user avatars is a pretty simple thing. It can be done even without any libraries like imagemagick. With just ERB we are able to quickly generate SVG avatars that will work in all browsers.

Read →
ruby rails activesupport

Useful Active Support features you may not have heard of

Active Support is a really powerful library that is a part of Rails framework. Today we will focus on utilities it includes, which can be useful in your next Rails project or any other ruby app.

Read →
ruby aws rails

Automatic image moderation using Amazon Rekognition

Today we will focus on Amazon Rekognition which can help us with automatic moderation of uploaded images. By adding custom validation we can prevent uploading images which contain nudity, violence or other inappropriate content.

Read →
ruby rails

Handling Ruby 2.7 deprecations warnings

In Ruby 3.0, positional arguments and keyword arguments will be separated. For now ruby 2.7 brings deprecations warnings that notifies us that our code should be updated. How should we handle them?

Read →
ruby rails dokku devops

Deploying Rails application with Dokku

Dokku is a simple PaaS that allows you to easily deploy your application. After short setup it can be a great substitute for heroku. In this article I'll show how to deploy Rails app with postgres, sidekiq, redis and Let's Encrypt SSL certificate.

Read →