en.wikipedia.org

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

When using RestClient to make an HTTP request, it will raise an exception when receiving a non-successful response.

Accessing other repositories in Gitlab CI is not straight forward, since the access rights of the current pipeline might not...

The Node Version Manager allows installing multiple NodeJS versions and switching between them. By default, it does not automatically switch...

When dealing with external data sources, you may have to deal with improperly encoded strings. While you should prefer deciding...

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

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

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

When your Rails application server raises error, Capybara will fail your test when it clears the session after the last...

The ActionDispatch module of Rails gives you the helper method flash to access the flash messages in a response.

We had the issue, that a VCR spec failed, after updating CarrierWave from version 0.11.0 to 1.3.2. In this version...

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

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

stackoverflow.blog

A rough guide how to implement a REST API. The discussion here includes some interesting points as well: Timestamps: ISO8601...

If your project depends on an old version of ImageMagick that you can no longer install in your system, you...

You can use git worktree to manage multiple working trees attached to the same repository. But why should I use...

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

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

makandra dev

I just finished migrating a project from the Asset Pipeline to Webpacker, this is what my diff to master looks...

URLs can transport key/value pairs ("parameters") using this syntax: /path?foo=bar If the value is blank, mind these subtle...

TinyMCE is a WYSIWYG editor which is quite customizable. Add a custom button to the tinyMCE toolbar and tell tinyMCE...

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