A flaky test is a test that is often green, but sometimes red. It may only fail on some PCs...

makandra dev

If you want Sidekiq to be able to talk to Redis on staging and production servers, you need to add...

makandra Curriculum

Basic validations Read the Rails Guide on ActiveRecord Validations. You should have an overview which kinds of validations are built...

Within development and test environments, Rails is usually configured to show a detailed debug page instead of 404s. However, there...

makandra dev

The gem better_errors offers a detailed error page with an interactive REPL for better debugging. I had the issue...

makandra dev

Inspired by recent "git shortcut" cards I figured it would be nice to have one of these for rebasing a...

Event delegation is a pattern where a container element has a single event listener that handles events for all descendants...

makandra dev

Besides their default styling properties, HTML elements have a semantic meaning. For example, an h1 tag is usually styled with...

Most browsers have built-in drag and drop support for different page elements like text and images. While this may...

git --fixup is very handy to amend a change to a previous commit. You can then autosquash your commits with...

The RSpec matcher tests if two HTML fragments are equivalent. Equivalency means: Whitespace is ignored Types of attribute quotes are...

dev.to

If you have fzf installed, you may add an alias such as this to your ~/.bashrc: alias recent-branch="git...

Rails has the handy controller method send_file which lets us download files easily. We can decide whether the file...

This bookmarklet grabs a PivotalTracker story title, transforms it into a valid git branch name and automatically prepends your initials...

We had a card that described how to install multiple mysql versions using mysql-sandbox. Nowadays with the wide adoption...

When using custom properties in your stylesheets, you may want to set a specific property value to an existing variable...

I ran into a situation in which I received the yarn integrity check warning when starting the rails console even...

To start a workflow manually it must have a trigger called workflow_dispatch: --- name: Tests on: push: branches: - master

If you have a flaky command you can use the nick-invision/retry to re-try a failing command, optionally...

After switching a project from Sprockets to Webpack, I started observing a bug that was hard to debug: Our...

Accessing other repositories in Gitlab CI is not straight forward, since the access rights of the current pipeline might not...

In case your integration tests crash with a message like below, try to upgrade Capybara to a newer version (3.35.3...

Capybara added a deprecation warning in version 3.35.3 (version from 2019) that shows up if your selector is not of...

The Node Version Manager allows installing multiple NodeJS versions and switching between them. By default, it does not automatically switch...