The :nth-child pseudo class is commonly used for targeting elements based on their position within a parent container, for...

Interactively rebase your current branch onto main, keeping the original base commit (i.e. not rebasing onto main directly).

When you send automated emails from a noreply@-address, and the recipient has an out of office enabled, the autoreply...

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...

In Rails, the implicit_order_column (added in Rails 6) is a configuration option that helps you define the default...

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...

developer.mozilla.org

Here is a workaround for when you want to use text-wrap: balance but must also render nicely for browsers...

DirectUpload allows you to upload files to your file storage without having to wait for the form to submit. It...

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

makandracards.com

I have moved away from creating fixture elements using CSS selectors. While CSS can be very concise, it can be...

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

Method delegation in Rails can help you to keep your code organized and avoid deep call chains (law of demeter...

There are several ways to run a single spec. I usually copy the spec file path with the line number...

haml.info

Haml renders HTML with indentation reflecting the nesting level of elements. When it comes to white-space preserving content, this...

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

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...

In Slack, the settings dialog only offers a fixed selection of fonts. You can use any font you like using...

makandra dev
w3.org

This decision tree describes how to use the alt attribute of the element in various situations. For some types of...

Rails wraps your parameters into an interface called StrongParameters. In most cases, your form submits your data in a nested...

Elements can be hidden and shown by toggling the display property. However, this is not animatable, so we often turn...