makandra dev

6.0.0 2021-06-02 Compatible changes geordi commit will continue even if one of the given projects is inaccessible. It...

We recently noticed issues with Chrome 75+ when having the w3c option enabled within the Selenium webdriver. It looks like...

When testing JavaScript functionality in Selenium (E2E), you may need to access a class or function inside of a evaluate...

I encountered a unlucky behavior of byebug 11.1.3 (the most recent version at time of writing) when using it with...

makandra dev

While renaming a file sometimes feels like "dropping its history", that is not true: Just use git log --follow on...

rspec.info

rspec >= 3.1 brings a method and_wrap_original. It seems a bit complicated at first, but there are use cases...

output ||= try_conversion { input.force_encoding('UTF-8') } # Try interpreting input as Windows-1252, because we've seen many such strings with incorrect encoding. output ||= try_conversion { input.encode('UTF...

...Windows-1252') } # Add any extra conversions that might make sense in your case. output ||= try_conversion { input.encode('UTF-8', 'ASCII-8BIT') } output ||= try_conversion { input.encode('UTF-8', 'US-ASCII') }

Browsers usually cache website content in order to provide the user with faster responses. Examples are returning to a website...

makandra dev

You can publish pre-release versions of an npm package. Naming convention for pre-release versions An npm package must...

makandra dev

When a Ruby version gem has a letter in its version number, it is considered a pre-release:

The usual way to build a relation in a ActiveSupport::Concern is this: module MyModule extend ActiveSupport::Concern

jetbrains.com

In RubyMine folders can be excluded from search, navigation etc. by marking it as excluded. You might sometimes wish to...

When deleting a record in your Rails app, Carrierwave automatically takes care of removing all associated files. However, the file...

If your Webpack build is slow, you can use the Speed Measure Plugin for Webpack to figure out where time...

To run additional code before an existing Rake tasks you can add a dependency like this: task :before_task...

Sometimes you want to load code on demand. For instance, when a a large library is only used on a...

makandra dev

Webpack builds can take a long time, so we only want to compile when needed. This card shows what will...

docs.gitlab.com

Use rules to include or exclude jobs in pipelines. Rules are evaluated in order until the first match. When a...

This card is a general reminder to avoid the short version of a command option in shared code. It's...

Installing gems on a server that has no access to the internet (especially rubygems.org) requires to bundle the gems into...

Generate a password htpasswd -Bn firstname.lastname This will ask you for a password and use bcrypt (-B, more secure) and...

If a project ist configured to spawn CI runners for tests or deployment when pushing to the Repo, a habit...

In newer passenger versions the output of passenger -v has changed. capistrano-passenger tries to parse the version and now...

makandra dev
web.archive.org

The attached article examines what the percent unit (%) is relative to in CSS The article does a great job of...