developer.mozilla.org

The inset CSS property is a shorthand that corresponds to the top, right, bottom, and/or left properties. It has the...

SELECT pg_size_pretty(pg_database_size('some-database')); Example SELECT pg_size_pretty(pg_database_size('cards_p')); ----------------

Ruby includes many standard gems that are bundled into the Ruby installation. Here is an example for the gem strscan...

In case you have trouble with the zeitwerk autoloader, you can check out the documentation Autoloading and Reloading Constants and...

tl;dr Since Rails 6.1+ you can use .compact_blank or .compact_blank! to remove blank values from collections (e.g...

If you have a JS fiddle, you can open it in fullscreen by appending /show to the URL. Example: https://...

While verifying doubles in RSpec is a good default, it is limited in the amount of methods it actually is...

Attaching files to a field that is handled by Carrierwave uploaders (or maybe any other attachment solution for Rails) in...

RSpec Rails can automatically mix in different behaviors to your tests based on their type tag, for example enabling you...

makandra dev
ishadeed.com

Table Of Contents Flexbox wrapping Spacing Long content Prevent an image from being stretched or compressed Lock scroll chaining

We are using Spring in our tests for sequential test execution but not for parallel test execution. And Rails requires...

github.com

age is a simple, modern and secure file encryption tool, format, and Go library. It features small explicit keys, no...

The rubygems binary gem allows to extract a local gem with gem unpack GEMNAME. For more details see the official...

Our gem spreewald supports a few helpers for development. In case you notice errors in your Cucumber tests, you might...

It seems like changing the HTTP_ACCEPT_LANGUAGE is not possible for a headless chrome. On Ubuntu the headless Chrome...

You can throttle the network in your headless chrome via Selenium. This might be useful for debugging issues with flaky...

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

markodenic.com

Table of content for the linked article: 1. The `loading=lazy` attribute 2. Email, call, and SMS links

This card is a general reminder to avoid the short version of a command option in shared code. It's...

Installing gems on a server that has no access to the internet (especially rubygems.org) requires to bundle the gems into...

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

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