developer.mozilla.org

Text fragments allow linking directly to a specific portion of text in a web document, without requiring the author to...

When Ruby objects are inspected in any modern IRB, some objects (like ActiveRecord instances) are rendered with neat colors and...

github.com

When handling nested hashes the RSpec output is often hard to read. Here the gem super_diff could help.

It's 2024 and we have tools like ffmpeg, imagemagick and GPT readily available. With them, it's easy to...

Up until Chrome 120, scrollbars could only be styled using the various -webkit-scrollbar-* pseudo elements, e.g. to make the...

makandracards.com

A general overview about why and how we migrate can be found under Migrating from Elasticsearch to Opensearch

While upgrading CarrierWave from version 0.11.x to 3.x, we encountered some very nasty fails. Below are the basic...

Most of our applications use CarrierWave for file uploads. CarrierWave has an integrated processing mechanism for different file versions with...

Besides Plotting graphs in Ruby with Gruff, which comes handy for many uses cases, you sometimes might need configuration for...

github.com

For my computer science bachelor's thesis I programmed and evaluated a CLI Test Case Prioritization (TCP) tool for makandra...

In CI test runs I noticed that string sorting order changed after switching from a debian-based PostgreSQL docker image...

You can tell npm to install a package globally with npm -g install @puppeteer/browsers. However, it seems that its not...

When you write your next CarrierWave uploader, consider processing your images with libvips instead of ImageMagick. Reasons for libvips

Debugging your integration tests, that run a headless Chrome inside a docker image, is tricky. In many cases you can...

When you allow file uploads in your app, a user might upload content that hurts other users. Our primary concern...

Every Rails response has a default ETag header. In theory this would enable caching for multiple requests to the same...

youtube.com

The linked content describes: The different color space of Oklch and RGB/HSL (HDR colors) The advantage of Oklch when you...

SASS has an @extend keyword to inherit styles. .alert color: red &.-framed border: 1px solid red padding: 5px &.-homepage

Not all email clients support external images in all situations, e.g. an image within a link. In some cases, a...

Carrierwave's BaseUploader can have some validations that you can use by overriding a certain method, which's expected name...

Sometimes I ran across a GitHub merge request of a gem where it was not completely obvious in which version...

phili.pe

The linked article found a simple way to rewrite legacy git aliases to make them work with differently named default...

Usually, design development starts with drafts, sketches and prototypes. These are reviewed, refined and iterated until the final design is...

We usually rely on VCR and WebMock to prevent any real network connection when running our unit tests.