All Posts
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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?
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.