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

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

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

If you're about to handle X509 certificates and don't want to remember/google a handful of openssl commands you...

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

aws ec2 describe-instances --output text --query 'Reservations[].Instances[?!not_null(Tags[?Key == `aws:autoscaling:groupName`].Value)] | [].[InstanceId]' | xargs -L1...