To apply transparency to an element, you can use opacity in CSS. However, sometimes you don't want to make...

The currentColor CSS keyword references the current text color and can be used to apply an element's text color...

When you want to filter records in a model where a string column roughly matches a given term, you can...

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

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

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

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

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

haml.info

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

Given there is a user with an attachable avatar: class User < ApplicationRecord has_one_attached :avatar end

Given there is a user with an attachable avatar: class User < ApplicationRecord has_one_attached :avatar end

Ubuntu 24 added some guarding for Python packages which no longer allows installing applications through pip on system level. Instead...

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

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

makandra dev
w3.org

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

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

Bundler allows you to specify the name of the Gemfile you want to bundle with the BUNDLE_GEMFILE environment variable...

makandra dev
impactahead.com

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

To reverse lookup a fixture by its table name and id, use the following approach on ActiveRecord::FixtureSet: table = 'users...