There is no CSS selector for matching elements that contains a given string ¹. Luckily, Capybara offers the :text option to...

clipboardjs.com

We used zeroclipboard.js in some of our projects but now we switched to clipboard.js because it does not rely on...

solnic.eu

Yesterday I stumbled across a talk in which the guy mentioned module sub-classing. I was curious what you can...

A haml angular 1 template with .thing(class="is-{{:: item.type }}") will be compiled (by haml) to which is not what...

In order to have monitoring for Sidekiq (like queue sizes, last run of Sidekiq) your application should have a monitoring...

api.rubyonrails.org

Instantiating ActiveRecord objects comes expensive. To speed up things, you can choose a more direct way to talk to your...

makandra dev

Knowing when to refactor Just feeling like refactoring is not a good reason to do it. Make an educated decision...

api.rubyonrails.org

When working with custom transactions and use ActiveRecord::Rollback you may encounter unexpected behaviour if you try to roll back...

unixetc.co.uk

When a directory has more than a few thousand entries, ls will start taking really long to list its content...

If you are fine with the default console diff most of the time but only sometimes want to use an...

github.com

This might be relevant for us since we're often managing customer documents in our apps. I played around with...

relishapp.com

VCR lets you configure how it matches requests to recorded cassettes: In order to properly replay previously recorded requests, VCR...

If you want to find the commits that touched a specific text in a file, use git log -S 'text...

We often use VCR to stub external APIs. Unfortunately VCR can have problems matching requests to recorded cassettes, and these...

If you're trying to start a cloud-init based Ubuntu VM with KVM you will suffer long boot times...

SVG is an acronym for "scalable vector graphics". SVGs should be used whenever an image can be described with vector...

makandra dev
icomoon.io

Icomoon.io offers a free app to build custom icon webfonts. It offers downloads as webfont set (.eot, .ttf, .woff, .woff2...

#reverse_order does not work with complex sorting constraints and may even silently create malformed SQL for rails < 5.

1. Sometimes you have search entries in the autocomplete of the address bar, which are higher weighted than your bookmarks...

Detect if a gem has been activated A gem is activated if it is either in the current bundle (Gemfile.lock...

To get your F12 key back for other shortcuts, stop Tilda: killall tilda To prevent Tilda from starting on boot...

github.com

We have released a new library Gemika to help test a gem against multiple versions of Ruby, gem dependencies and...

Say you have an RGBA color that you need as a non-transparent color because of reasons. Basically, this is...

Same requests are recorded only once in vcr. Replaying a test fails, if you trigger the same request multiple times...