With Ubuntu 24.04 it's not longer possible to setup FDE with BTRFS The new installer won't offer you...

In development, we store files using ActiveStorage's disk service. This means that stored files are served by your Rails...

tl;dr When a cookie includes an Expires attribute or an HTTP response includes caching headers like Expires or Cache...

When setting up cronjobs, commands somtimes output something every time. If these commands don't support limiting their output to...

When Ruby objects are inspected in any modern IRB, some objects (like ActiveRecord instances) are rendered with neat colors and...

makandra dev

Capistrano 3 has a doctor task that will print information about Environment: Ruby, Rubygems and Bundler versions List of Capistrano...

makandra dev

YJIT is Ruby's default just-in-time compiler. It is considered production-ready since Ruby 3.2 (source).

github.com

Zeitwerk is the new autoloader of Rails. It is mandatory starting with Rails 7.0. Sometimes, a model needs to know...

Canonical does not ship Ubuntu 24.04+ Vagrant images due to HashiCorps switch to the Business Source License (BSL). There is...

When using Rails credentials, you will edit the encrypted credentials for staging or production environments from time to time. To...

While the main goal always is to prevent long-running queries in the first place, automatic timeouts can serve as...

makandra dev

This talk shows simple and advanced usages of the ruby/debug debugger. It goes through a step by step debugging workflow...

The ActiveSupport::BroadcastLogger allows you to log to multiple sinks. You know this behavior from from the rails server command...

Rails' default logger prefixes each log entry with timestamp and tags (like request ID). For multi-line entries, only the...

With this command you can run all the spec files which have been edited or added in the current branch...

sudo gitlab-rails console Note This takes some minutes to start Send a mail Use the following...

makandra Operations
baeldung.com

There are different kind of memory measurement metrics in Linux. These are the differences: Code Name Description vsz virtual memory...

I recently stumbled over a quirk in the way Ruby handles local variables that I find somewhat dangerous. Consider:

makandra dev

While most Rails Apps are tied to at least one external REST API, machine-to-machine communication via GraphQL is...

mise.jdx.dev

Add apt source: apt update -y && apt install -y gpg sudo wget curl sudo install -dm 755 /etc/apt/keyrings

Some rubygems come in platform-specific versions (i.e. "x86_64-linux") in addition to the usual "ruby" platform. This is...

If you want someone to be able to access your rails console, but don't want them to be able...

Running gem update --system will install the latest version of RubyGems. However the latest version might not be compatible with...

This card is a short summary on different ways of assigning multiple attributes to an instance of a class.