You can check the maximum client Redis database size in Sidekiq with this command. Sidekiq.redis { |redis| puts redis.info.fetch('maxmemory_human...
Orca is a Linux screen reader. Since it is part of the GNOME project it should come preinstalled with Ubuntu...
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...
Here is a workaround for when you want to use text-wrap: balance but must also render nicely for browsers...
ActiveStorage does not provide any built-in way of implementing authentication for the available DirectUpload endpoint in Rails. When using...
Added methods to keep the line number steady while you time-travel between commits: Copy the file to a new...
PostgreSQL can cosplay as a full-text search engine. It doesn't have the features or fidelity of ElasticSearch or...
There are several ways to run a single spec. I usually copy the spec file path with the line number...
The key to unlocking the full potential of LLMs in coding lies in crafting precise prompts. The main challenge is...
Here is a bash script that I use to auto-configure displays on Ubuntu 24.04 with Xorg. Background
Using ffmpeg, you can easily re-encode a video to reduce its file size. Command Do it like this:
In Slack, the settings dialog only offers a fixed selection of fonts. You can use any font you like using...
Also see the list of IRB commands. Switching the context Changes the "default receiver" of expressions. Can be used to...
Your package-lock.json should always match and resolve all packages from your package.json. Coming from Yarn, I was looking for an...
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 Ruby objects are inspected in any modern IRB, some objects (like ActiveRecord instances) are rendered with neat colors and...
Capistrano 3 has a doctor task that will print information about Environment: Ruby, Rubygems and Bundler versions List of Capistrano...
YJIT is Ruby's default just-in-time compiler. It is considered production-ready since Ruby 3.2 (source).
Zeitwerk is the new autoloader of Rails. It is mandatory starting with Rails 7.0. Sometimes, a model needs to know...
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...
This talk shows simple and advanced usages of the ruby/debug debugger. It goes through a step by step debugging workflow...