Whenever requires you to set the application attribute in your Capistrano configuration. Otherwise your cronjobs are created multiple times.

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

mtlynch.io

Why improve your code reviews? Improving code review technique helps your reviewer, your team, and, most importantly: you.

makandra dev

This card is mainly an explanation how variable fonts work in CSS, not necessarily a recommendation to actually use them...

tekin.co.uk

Git diffs show the surrounding contexts for diff hunks. It does so by applying regular expressions to find the beginning...

github.com

Minidusen lets you find text in associated records. Assume the following model where a Contact record may be associated with...

If you have installed Rubocop in your project, RubyMine can show you Rubocop violations immediately in your editor. You probably...

makandra dev

You need to install the official plugin, it is not bundled with RubyMine by default. Example: Setup a watcher...

curl-to-ruby is a handy tool that converts your curl command to ruby code that uses the Net::HTTP...

martin-riedl.de

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

In Rubocop you might notice the cop Style/CaseEquality for e.g. this example: def foo(expected, actual) expected === actual end

github.com

Scroll and touch event listeners tend to be computationally expensive as they are triggered very often. Every time the event...

Here is a short summary of Cucumber hooks in Ruby taken from https://github.com/cucumber/cucumber-ruby. Note that the BeforeStep is...

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

We currently test most of our gems on Travis CI, but want to migrate those tests to Github Actions. This...

makandra dev

While debugging a SPF record I found spf-record.de to be very helpful. it lists all IPs that are covered by...

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

The sidekiq-rate-limiter gem allows rate-limiting Sidekiq jobs and works like a charm. However, it needs to be...

makandra dev

If you're using the webdrivers gem and VCR together, depending on your configuration, VCR will yell at you regulary...

simple-form-bootstrap.plataformatec.com.br

Good reference how to build bootstrap forms with simple_form.

When logging in Rails, you can use the log_tags configuration option to add extra information to each line, like...

ActiveRecord provides the ids method to pluck ids from a scope, but what if you need to pluck Global IDs...