To attach files to your records, you will need a new database column representing the filename of the file...

ruby-lang.org

Ruby 3.0 introduced a breaking change in how it treats keyword arguments. There is an excellent blog post on the...

When you have a hex color code, you can easily convert it into its RGB values using plain Ruby.

labs.bishopfox.com

The linked article shows that there are unclear parts in the JSON specification and that different parsers treat them differently...

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

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

CarrierWave comes with a set of default configuration options which make sense in most cases. However, you should review these...

Sometimes you want to have a time in a given timezone independent from you Rails timezone settings / system timezone. I...

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

Headless Chrome is a way to run the Chrome browser without a visible window. Configuring Capybara Configure the Capybara driver...

SSHKit 1.9.0 might fail with the following error, when trying to deploy a Rail application. Upgrading the gem to version...

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

IRB 1.2 (shipped with Ruby 2.7, but works on 2.5+) brings pretty syntax highlighting and multiline cursor navigation. However, pasting...

martin-riedl.de

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

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

When loading a database dump created with pg_dump into your database, you might run into an error like

It sometimes happen that a database dump, that would want to insert into your development database, does not match the...

A flat folder structure can be cool if you have only a few folders but can be painful for huge...

If you want to prevent that two processes run some code at the same time you can use the gem...

If you migrate a Rails application from Sprockets to Webpack(er), you can either transpile your CoffeeScript files to JavaScript...

CSP hat zum Ziel einen Browser-seitigen Mechanismus zu schaffen um einige Angriffe auf Webseiten zu verhindern, hauptsächlich XSS...