In long diffs, it can become impossible to spot small changes in larger blocks of moved code. This may be...

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

thoughtbot.com

The linked blog post contains some background information about the alt attribute and the figure / figcaption element. It is interesting...

mtlynch.io

Why improve your code reviews? Improving code review technique helps your reviewer, your team, and, most importantly: you.

tekin.co.uk

Git diffs show the surrounding contexts for diff hunks. It does so by applying regular expressions to find the beginning...

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

makandra dev

While debugging a SPF record I found spf-record.de to be very helpful. it lists all IPs that are covered by...

web.archive.org

There is a common view that extracting text from a PDF document should not be too difficult. After all, the...

simple-form-bootstrap.plataformatec.com.br

Good reference how to build bootstrap forms with simple_form.

If you want to get the path of a file relative to another, you can use the expand_path method...

CSS variables are very different from preprocessor variables. While preprocessors use variables to compile a static piece of CSS, CSS...

When you use Sentry to monitor exceptions, an important feature is Sentry's error grouping mechanism. It will aggregate similar...

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

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

If you want to prevent that two processes run some code at the same time you can use the gem...

We use Sentry to be informed about different kinds of issues. One of the key features is that you are...

"Open-source software (OSS) is great. Anyone can use virtually any open-source code in their projects." Well, it depends...

If you have a :string or :text field, you should pair it with a model validation that restricts its length...

Here is an ES5 object literal with two string properties and a function property: let user = { firstName: 'Max', lastName: 'Muster...

postgresql.org

PostgreSQL offers three character types for your columns: character varying(n) (also called varchar or just string): Contents are limited...

makandra dev

RubyMine has a HTTP Client that can be useful to test web APIs. Just create a .http scratch file an...

When an event listener on a DOM element throws an error, that error will be silenced and not interrupt your...