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

.desktop files define launchers for applications installed on your machine. They specify the command that will be executed when launched...

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

Generated Photos produces AI-generated face images. This is useful for UI mockups where you don't want to show...

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

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() {...

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.