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

rubyjard.org

Ruby Jard provides a rich Terminal UI that visualizes everything your need, navigates your program with pleasure, stops at matter...

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.

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

When writing some logs to a file, that don't use Ruby's logger utility, it is often useful to...

Here is an example with the --tags option. You need to wrap them inside --cucumber-options option of parallel_cucumber...

Rails middlewares are small code pieces that wrap requests to the application. The first middleware gets passed the request, invokes...

makandra dev

If you have a Ruby Pathname, you can use the method :/ to append filepaths to it. With this method, Ruby...

makandra dev

We structure our CSS using the BEM pattern. Our naming convention for blocks, elements and modifiers has evolved over the...

I experienced a lot of issues with google chrome that made it almost impossible to work with it. Here are...