From Ubuntu 17, rbenv fails to install Ruby below 2.4 because of a mismatching OpenSSL dependency: it needs libssl1.0-dev for...
Inspecting the source of an email does not always reveal the plain HTML source, but some encoded byte mess. In...
Jasmine has long standing support for writing asynchronous specs. In days gone by we used the done callback to achieve...
The gem json fails to install for Ruby 2.5 if you use a version equal or below 1.8.3.
Travis changed their default distribution from Ubuntu 14.04 (trusty) to 16.04 (precise). This might break your test setup for new...
Not all versions of Node.js are compatible with each other. Also npm packages may require a minimum or maximum version...
The issue in this card can occur if the node_modules directory is checked into your Git repository. We usually...
Set up a package root in your homedir to hold the Node "global" packages: $ NPM_PACKAGES="$HOME/.npm-packages"
It is quite easy to migrate from CoffeeScript to ES6. You can use decaffeinate to convert your CoffeeScript source to...
We're always striving towards keeping our website's JavaScript as small as possible. If you're using webpack(er...
PostCSS is a tool for transforming styles with JS plugins. In Webpacker you can configure the plugins and their settings...
When doing some meta-programming magic and you want to do something for all attributes of a class, you may...
This is a short overview of things that are required to upgrade a project from the Asset Pipeline to Webpacker...
In Rails, we usually have a mailer setup like this: class MyMailer < ActionMailer::Base def newsletter mail to: 'receiver@host.tld',
When you have a powerful machine with many CPU cores, you might run into an error like
To remove all tables from a database (but keep the database itself), you have two options. Option 1: Drop the...
Suggested Workflow Set the ruby version in .ruby-version to 2.3.5, then perform these steps one by one, fixing errors...
The rendered font often depends on the local font your system provides, therefore you often find a rule like below...
Ubuntu has decided to disable PDF processing because ImageMagick and the underlying Ghostscript had several security issues. When your Ghostscript...
Percent Notation We already know that that we can create strings using the percent notation: %(<foo="bar's ton">) is...
S3cmd is a free command line tool and client for uploading, retrieving and managing data in Amazon S3. S3cmd reads...
If you need to run a program on a remote machine (e.g. to your office PC) with a graphical UI...
At makandra, we've built a few gems over the years. Some of these are quite popular: spreewald (> 1M downloads...
When you receive a ZIP file from a Windows user, umlauts and other non-latin1 characters in filenames may look...