makandra dev

Webpack builds can take a long time, so we only want to compile when needed. This card shows what will...

docs.gitlab.com

Use rules to include or exclude jobs in pipelines. Rules are evaluated in order until the first match. When a...

Generate a password htpasswd -Bn firstname.lastname This will ask you for a password and use bcrypt (-B, more secure) and...

If a project ist configured to spawn CI runners for tests or deployment when pushing to the Repo, a habit...

makandra dev
web.archive.org

The attached article examines what the percent unit (%) is relative to in CSS The article does a great job of...

tableconvert.com

https://tableconvert.com/ is an online tool to convert tables between different formats (e.g. json, markdown, csv).

We prefer to run our end-to-end tests with headless Chrome. While it's a very stable solution overall...

When your Rails application server raises error, Capybara will fail your test when it clears the session after the last...

makandra dev

When your application is open for public sign up and sends out transactional e-mails to a large number of...

Browsers blocks abusable JavaScript API calls until the user has interacted with the document. Examples would be opening new tab...

The ActionDispatch module of Rails gives you the helper method flash to access the flash messages in a response.

makandra dev
github.com

capybara-lockstep can help you with flaky end-to-end tests: This Ruby gem synchronizes Capybara commands with client-side...

ZSH is an alternative command line shell that includes some features like spelling correction, cd automation, better theme, and plugin...

By default parallel_tests will spawn as many test processes as you have CPUs. If you have issues with flaky...

CarrierWave comes with a set of default configuration options which make sense in most cases. However, you should review these...

makandra dev
mixedcontentexamples.com

The pages […] allow you to see different types of mixed content and test how they behave in your browser. The...

Sometimes you want to have a time in a given timezone independent from you Rails timezone settings / system timezone. I...

tl;dr: Upgrade the gem to at least 4.0.1 When you use rspec_rails in a version < 4 with Rails...

You can use git worktree to manage multiple working trees attached to the same repository. But why should I use...

bundle outdated [--filter-major|--filter-minor|--filter-patch] Example output for bundle outdated --filter-major Other examples

getbootstrap.com

Recently I made an upgrade from Bootstrap 3 to Bootstrap 4 in a bigger project. Here are some tips how...

In Ruby you can communicate between processes with sockets. This might be helpful in tests that validate parallel executions or...

The Truemail gem (not to be confused with truemail.io) allows validating email addresses, e.g. when users enter them into a...

In long diffs, it can become impossible to spot small changes in larger blocks of moved code. This may be...