Jan 30, 2026

Setup Ruby on Ubuntu 24.04

Here I have compiled a set of actions that allows me to quickly deploy everything I need on a clean Ubuntu server or a local machine.

Jan 14, 2026

Meet gem Aux

In everyday development, we face the concept of dependency injection. There are different approaches in the Ruby world to implement this design pattern, such as dry-rb. However, on large and complex projects, working with dry-rb turns into torture, especially debugging. That's why I want to introduce you to gem "aux".

Jun 02, 2024

Global prerocessor for ActiveStorage

Today I would like to show you how to implement global preprocessing of uploaded files in Rails. Unfortunately, ActiveStorage does not make it possible to do this simply and explicitly, or I just did not find any information about it.

Feb 08, 2023

Get Extension by Mimetype in Rails

Sometimes we need to get an extension by content mime type. There are many ways to manage this but in Rails (or rack-based app) you can use this trick:

Rack::Mime::MIME_TYPES.invert['image/jpeg'] # => '.jpg'
May 17, 2021

A simple way to stream JSON with Rails Live API

A few weeks ago I faced with a requirement to optimize a huge JSON response from Rails-based API.

For example, we want to respond large set of data as JSON collection. In our controller, we have some action for that, but rails Live API couldn't stream JSON or XML directly. But we can use a little trick.

Feb 09, 2021

POST request to API with Kotlin and Spring RestClient (RestTemplate)

I am new in Kotlin. So maybe this post is just a bookmark for future. For example we want request some API for some data by POST to it an JSON array of ids from our Spring service.

Dec 16, 2020

Let's begin...

This is another attempt to create my own standalone blog. Other versions were lost, but it is not a problem. I decided make it with Hugo. So let's begin...