makandra dev

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

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

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

After performing a live migration of a VM you may encounter issues with the clock of the migrated VM. The...

makandra dev
github.com

Pagy is a gem for pagination. They make some bold claims: Pagy is the ultimate pagination gem that outperforms the...

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

If you want to get the path of a file relative to another, you can use the expand_path method...

Google Chrome disables Notifications for insecure origins (i.e. those using HTTP). Only http://localhost is considered secure.

To find a version containing the regular expression foo in the history of any branch: git grep foo $(git rev...

news.ycombinator.com

This is an extract from the linked article. It shows an approach on how to implement encrypted passwords with the...

CSS variables are very different from preprocessor variables. While preprocessors use variables to compile a static piece of CSS, CSS...

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

Rails 5.2+ supports "verbose query logs" where it shows the source of a query in the application log.

This error occurs when passing an object instead of a string to Jasmine's describe(): # Bad describe(HoverClass, function() {...

Important If your railscomplete-deployment uses the net-ssh-gem please ensure you use version 5.2.0 or newer to ensure...

gomakethings.com

Learn how to create offline applications with service workers. The amazing power of service workers Writing your first service worker...

After a recent Ubuntu update I didn't see the main menu bar of the RubyMine IDE (File | Edit | View...

If you are trying to integrate VCR and Cucumber 4 and you're using the use_scenario_name: true option...

Sometimes new versions of software introduce new bugs. In this case you might not want the package to upgrade on...

When you use Sentry to monitor exceptions, an important feature is Sentry's error grouping mechanism. It will aggregate similar...

makandra dev
medium.com

In Ruby on Rails, all the routes of a given application can be found within the config/routes.rb file.

If you have a very large datadir in MariaDB and you want to transfer the data to another host (e.g...

makandra dev
developers.google.com

Chrome has a built-in utility to check performance and accessibility (and more) of your web app: Lighthouse.

In interactive commands, Git allows the user to provide one-letter input with a single key without hitting enter (docs...