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

moncefbelyamani.com

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

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

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

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

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

We prefer to run our end-to-end tests with headless Chrome. While it's a very stable solution overall...

Browsers blocks abusable JavaScript API calls until the user has interacted with the document. Examples would be opening new tab...

labs.bishopfox.com

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

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

By default, your terminal emulator (Gnome Terminal, Terminator, etc.) sets some kind of window title to reflect the shell type...

makandra dev

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

In Ruby you can communicate between processes with sockets. This might be helpful in tests that validate parallel executions or...

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

Sometimes you want to find the inverse of an ActiveRecord scope. Depending on what you want to achieve, this is...

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

If a model inherits from others or uses many concerns / traits, it might be hard to see in the code...

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

makandra dev

# Basic HTML example # Javascript API (notable methods and properties) video = document.querySelector('video') video.play() video.pause() video.load() // Reset to the beginning and...

Speaker today is Henning Koch, Head of Development at makandra. This talk will be in German with English slides.

This seems to be obvious, but you can expect Rake tasks to be called in RSpec. it 'deletes all Users...

With puma you can have concurrent requests. There are two concepts on how Puma can handle two incoming requests: Workers...

Embedding videos on a website is very easy, add a tag to your source code and it just works...