List of handy Ruby scripts to transcode different file types (often by using GPT)

Posted About 1 month ago by Michael Leimstädtner.

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

Updated: In Chrome 121+ the now supported spec-compliant scrollbar properties override the non-standard `-webkit-scrollbar-*` styles

Posted 2 months ago by Fabian Schwarz.
makandracards.com

It is still possible to style the -webkit-scrollbar-* pseudo elements in Chrome 121+. However the now supported spec-compliant...

In Chrome 121+ the now supported spec-compliant scrollbar properties override the non-standard `-webkit-scrollbar-*` styles

Posted 3 months ago by Arne Hartherz.

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

How to: Upgrade CarrierWave to 3.x

Posted 6 months ago by Dominic Beger.

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

Debug MiniMagick calls in your Rails app

Posted 6 months ago by Dominic Beger.

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

Advanced plotting in Ruby with Gnuplot

Posted 7 months ago by Felix Eschey.

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

Lightning Talk: Coverage based Test Case Prioritization in Ruby on Rails

Posted 7 months ago by Felix Eschey.
github.com

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

Postgres in Alpine docker container: sorting order might differ

Posted 8 months ago by Daniel Straßner.

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

Node: How to run a globally installed package with npx

Posted 8 months ago by Emanuel.

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

CarrierWave: Processing images with libvips

Posted 9 months ago by Henning Koch.

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

Chromedriver: Connect local chromedriver with docker

Posted 10 months ago by Emanuel.

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

Preventing users from uploading malicious content

Posted 11 months ago by Henning Koch.

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

Rails: Fixing ETags that never match

Posted 11 months ago by Henning Koch.

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

Using the Oklch color space to generate an accessible color palette

Posted 11 months ago by Emanuel.
youtube.com

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

SASS: Reusing styles from other files

Posted About 1 year ago by Dominik Schöler.

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

How to turn images into inline attachments in emails

Posted About 1 year ago by Klaus Weidinger.

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

Carrierwave: Custom file validations inside custom Uploaders

Posted About 1 year ago by Jakob Scholz.

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

git: find the version of a gem that releases a certain commit

Posted About 1 year ago by Daniel Straßner.

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

How to make your git aliases work with both master and main

Posted About 1 year ago by Michael Leimstädtner.
phili.pe

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

How to develop designs for an enterprise customer

Posted Over 1 year ago by Dominik Schöler.

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

Heads up: network requests `Kernel#open` are not mocked with VCR

Posted Over 1 year ago by Michael Leimstädtner.

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

A modern approach to SVG icons

Posted Over 1 year ago by Tobias Kraze.

You have some SVG files you want to use as icons on your website. How would you embed them?

How to see how many inotify instances are used by each process

Posted Over 1 year ago by Martin Schaflitzl.

As a developer you may have many tools watching your project for changes: Your IDE, Webpack, Guard, etc. This is...

Inspect and Debug CSS Flexbox and Grid Layouts by using the Layouts Tab in Dev Tools

Posted Over 1 year ago by Felix Eschey.

tl;dr In Chrome DevTools in the Layouts tab you have handy options to debug CSS Flexbox and Grid. Including...