You can check the maximum client Redis database size in Sidekiq with this command. Sidekiq.redis { |redis| puts redis.info.fetch('maxmemory_human...

For Selenium tests, your browser starts in your local timezone, or whatever your system's environment specifies. This is usually...

Why Rails has multiple schema formats When you run migrations, Rails will write your current database schema into db/schema.rb. This...

ActiveStorage does not provide any built-in way of implementing authentication for the available DirectUpload endpoint in Rails. When using...

For long running scripts it is useful to show a indicator for the progress in the terminal. Alternatively you can...

SVG files often contain redundant information, like editor metadata or hidden elements. When esbuild handles your static assets, you can...

PostgreSQL can cosplay as a full-text search engine. It doesn't have the features or fidelity of ElasticSearch or...

When debugging slow SQL queries, it’s helpful to understand the database engine's query plan. Whenever you execute a...

Hint If you are using our opscomplete.com hosting we can set all environment variables mentioned below for your deployment on...

github.com

The new params.expect method in Rails 8 improves parameter filtering, addressing issues with malformed input and enhancing security. It provides...

makandra dev
impactahead.com

Also see the list of IRB commands. Switching the context Changes the "default receiver" of expressions. Can be used to...

Rails slightly changed the fragment cache implementation from Rails 7.0 to Rails 7.1. Unfortunately, this is incompatible with how Haml...

makandra dev

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

Git has the concept of hooks: bash scripts that are invoked at certain points in the Git lifecycle. One handy...

We recently migrated a Rails application from yarn to npm. We decided to go this step instead of upgrading to...

I noticed that tig 2.5.1 that is provided by Ubuntu 22.04 repositories has inferior bash completion than older versions after...

If a Cucumber run deletes your application directory, an integration fail between Capybara and Capybara Screenshot may be the cause...

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

github.com

When handling nested hashes the RSpec output is often hard to read. Here the gem super_diff could help.

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

On our Ubuntu machines we have nautilus file manager with nautilus-extension-gnome-terminal installed. This adds an entry to...

Starting with ChromeDriver 127, if your application displays a beforeunload confirmation dialog, ChromeDriver will immediately close it. In consequence, any...

Rails 7.1 added a new method Rails.env.local?. If you want to stub the Rails env correctly, use ActiveSupport::EnvironmentInquirer like...

esbuild comes with a minifier that is good enough for most cases. If you're looking to squeeze out as...