This card explains how to generate an entity relationship diagram for your Rails application. We also show how to limit...

Redis.current will be removed without replacement in redis-rb 5.0. Version 4.6.0 adds deprecation warnings for Redis.current and Redis.current=: `Redis.current...

makandra dev

To ensure a consistent code style for JavaScript code, we use ESLint. The workflow is similar to integrating rubocop...

This are the steps I needed to do to add esbuild to an application that used the vanilla rails asset...

We use foreman to start all necessary processes for an application, which are declared in a Procfile. This is very...

github.com

Rack::SteadyETag is a Rack middleware that generates the same default ETag for responses that only differ in CSRF tokens...

ImageMagick can convert SVGs to raster image formats. Example for PNG: convert input.svg output.png If the SVG has a...

The Interactive Advertising Bureau (IAB) is a European marketing association which has introduced a standard how advertising can be served...

umaar.com

Similar to the Webpack Bundle Analyzer, Chrome's new Lighthouse feature … … shows a visualisation of your JavaScript bundles. It's...

From Exploring ES6: Module imports are hoisted (internally moved to the beginning of the current scope). Therefore, it doesn’t...

makandra dev

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

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

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

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

When using RestClient to make an HTTP request, it will raise an exception when receiving a non-successful response.

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

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

We recently noticed issues with Chrome 75+ when having the w3c option enabled within the Selenium webdriver. It looks like...

moncefbelyamani.com

The linked article points out that COUNT queries might be unexpectedly slow in PostgreSQL. If you just need to know...

You can publish pre-release versions of an npm package. Naming convention for pre-release versions An npm package must...

When a Ruby version gem has a letter in its version number, it is considered a pre-release:

Sometimes you want to load code on demand. For instance, when a a large library is only used on a...

docs.gitlab.com

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

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