makandra dev

There are several tools for DNS debugging which offer you more or less information. Most of the time the more...

When testing with Cucumber / Caypbara, iframes are ignored, so you can't interact with them. To interact with your iframe...

Headless Chrome is a way to run the Chrome browser without a visible window. Configuring Capybara Configure the Capybara driver...

makandra dev

Feature Queries (Edge 12+): Similar to @media queries, @supports blocks can be scoped to browsers that support a given declaration...

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

github.com

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

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

If you're experiencing problems with your Google Chrome installation after an update, it might help downgrading Chrome to check...

On some of our older projects, we use the mysql2 gem. Unfortunately, versions 0.2.x (required for Rails 2.3) and...

When loading a database dump created with pg_dump into your database, you might run into an error like

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

news.ycombinator.com

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

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

makandra dev
select2.org

Select2 comes with AJAX support built in, using jQuery's AJAX methods. ... For remote data sources only, Select2 does not...

makandra dev

Using git fixup helps you to speed up appending changes further back in the git history of your feature branch...

When you have many changes, and you want to spread them across different commits, here is a way to stage...

A recent patch level Ruby update caused troubles to some of us as applications started to complain about incompatible gem...

github.com

Because colors improve readability so much. On Ubuntu 18.04 you can install it with sudo apt install grc

We can use ActiveRecord's where to add conditions to a relation. But sometimes our condition is not on the...

Im using the terminator terminal with the keyboard shortcut Control+Shift+E for splitting the terminal. I got used to...

makandra dev

A primer on vector graphics For rastered image formats like JPG or PNG, each pixel is basically drawn on a...

You can use the Youtube API to get data from youtube. Here are some resources and some things that are...