Rails has the handy controller method send_file which lets us download files easily. We can decide whether the file...

Often people need links which are not linked directly, but should trigger execution of JavaScript. ❌ Bad workarounds

We had a card that described how to install multiple mysql versions using mysql-sandbox. Nowadays with the wide adoption...

I ran into a situation in which I received the yarn integrity check warning when starting the rails console even...

en.wikipedia.org

Formerly 301 (Moved Permanently) and 302 (Found) were used for redirecting. Browsers did implement them in different ways, so since...

After switching a project from Sprockets to Webpack, I started observing a bug that was hard to debug: Our...

makandra dev

6.0.0 2021-06-02 Compatible changes geordi commit will continue even if one of the given projects is inaccessible. It...

When giving a presentation where you do some coding, the font size you usually use is probably a bit too...

When storing files for lots of records in the server's file system, Carrierwave's default store_dir approach may...

If your Webpack build is slow, you can use the Speed Measure Plugin for Webpack to figure out where time...

makandra dev

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

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

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

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

When you repeat a subpattern with a *, + or {...} operator, you may choose between greedy, lazy and possessive modes. Switching modes...

getbootstrap.com

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

makandra dev

There are several tools for DNS debugging which offer you more or less information. Most of the time the more...

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

Using Ruby 1.8.7 you will not be able to use the maximum versions Rubygems 1.8.30 and Bundler 1.17.3 with https://...

When deploying a Rails application that is using Webpacker and Capistrano, there are a few configuration tweaks that optimize the...

martin-riedl.de

A practical and detailed walk-through tutorial on using ffmpeg for live-streaming HLS, filled with real-world examples.

bugs.launchpad.net

Terminator has a cool feature that allows you to split your terminal into many panels and type in all of...

Ubuntu 18.04 uses systemd to manage services. There are basically two commands for listing all services and manipulating the state...