Integrating or upgrading makandra-rubocop

Posted Over 4 years ago by Daniel Straßner.

Most of the time it is a tedious task to apply a code style guide to an existing code...

How to enable Chromedriver logging

Posted Over 4 years ago by Arne Hartherz.

When using Chrome for Selenium tests, the chromedriver binary will be used to control Chrome. To debug problems that stem...

A community-curated list of flexbox issues and cross-browser workarounds for them

Posted Over 4 years ago by Dominik Schöler.
github.com

This repository is a community-curated list of flexbox issues and cross-browser workarounds for them. The goal is that...

Bash script to list commits by Pivotal Tracker ID

Posted Over 4 years ago by Michael Leimstädtner.

The main benefit of our convention to prefix commits by their corresponding Pivotal Tracker ID is that we can easily...

Using CSS transitions

Posted Over 4 years ago by Dominik Schöler.

CSS transitions are a simple animation framework that is built right into browsers. No need for Javascript here. They're...

IE11 ignores calc() functions in the flex shorthand

Posted Over 4 years ago by Dominik Schöler.
stackoverflow.com

Example (broken in IE): flex: 0 1 calc(50% - 20px) Workaround: flex-basis: calc(50% - 20px) flex-grow: 0 // Default...

The Difference Between Width and Flex Basis | Geddski

Posted Over 4 years ago by Henning Koch.
gedd.ski

Within a Flexbox layout, there are multiple CSS attributes that may affect a child's basis (the initial width before...

Rails: Do not load frameworks you don't need

Posted Over 4 years ago by Tobias Kraze.

Rails is split into a large number of (sub-) frameworks. The most important and central of those are activesupport (extends...

Ruby: How to use global variables for a conditional debugger

Posted Over 4 years ago by Emanuel.

You can share a state in Ruby with global variables. Even if you should avoid them whenever possible, for debugging...

DOM API for jQuery users

Posted Almost 5 years ago by Dominik Schöler.

General hints on the DOM the root of the DOM is document custom elements inherit from HTMLElement. They need a...

Unpoly: Automatically show the full better_errors page when Rails raises an error

Posted Almost 5 years ago by Henning Koch.

When an AJAX request raises an exception on the server, Rails will show a minimal error page with only basic...

Regular Expressions: Excessive backtracking can get yourself in trouble

Posted Almost 5 years ago by Michael Leimstädtner.
blog.cloudflare.com

Two weeks ago, Cloudflare was struck by a global outage that lasted ~30 minutes. The incident was rooted on a...

Webpack(er): A primer

Posted Almost 5 years ago by Tobias Kraze.

webpack is a very powerful asset bundler written in node.js to bundle (ES6) JavaScript modules, stylesheets, images, and other assets...

Installing Ruby 2.3 or below on Ubuntu 17 and above

Posted Almost 5 years ago by Dominik Schöler.
github.com

From Ubuntu 17, rbenv fails to install Ruby below 2.4 because of a mismatching OpenSSL dependency: it needs libssl1.0-dev for...

Git: Apply a diff

Posted Almost 5 years ago by Emanuel.

git apply allows you to apply a diff onto your HEAD. Most often you can achieve the same result with...

RubyMine: Efficiently filtering results in the "Finder" overlay

Posted Almost 5 years ago by Michael Leimstädtner.

RubyMine comes with a nice way to grep through your project's files: The finder (ctrl + shift + f). Don't...

Jasmine: using async/await to write nice asynchronous specs

Posted Almost 5 years ago by Tobias Kraze.

Jasmine has long standing support for writing asynchronous specs. In days gone by we used the done callback to achieve...

Adding Jasmine JavaScript specs to a Webpack(er) project

Posted Almost 5 years ago by Tobias Kraze.

The goal is to get Jasmine specs running in a Rails project using Webpacker, with the browser based test runner...

How to get a backtrace if rspec (or any other ruby process) hangs with no output

Posted Almost 5 years ago by Martin Schaflitzl.

If rspec hangs with no output and you dont get a backtrace neither with --backtrace nor by just killing it...

Unpoly: Testing values for presence or blankness

Posted Almost 5 years ago by Henning Koch.

In Ruby on Rails, all objects have a useful blank? method. It returns true for nil but also for empty...

Deal with certain travis CI failures

Posted Almost 5 years ago by Tobias Kraze.

Travis changed their default distribution from Ubuntu 14.04 (trusty) to 16.04 (precise). This might break your test setup for new...

Documenting your Rails project's Node.js version in .nvmrc

Posted Almost 5 years ago by Henning Koch.

Not all versions of Node.js are compatible with each other. Also npm packages may require a minimum or maximum version...

Selenium may break with ChromeDriver 75+

Posted Almost 5 years ago by Jakob Scholz.

When you update your ChromeDriver to version 75 or beyond, you might get w3c errors in your tests.

cucumber_factory: How to keep using Cucumber 2 Transforms in Cucumber 3

Posted Almost 5 years ago by Michael Leimstädtner.

Cucumber up to version 2 had a neat feature called Step Argument Transforms which was dropped in favor of Cucumber...