A short browsing revealed that this may be a current firefox issue Current workaround: use another browser

For arrays of objects, uniq does not work as expected, since it uses strict equality. So [[1], [1]].uniq() == [[1...

Since Rails 5, domain models inherit from ApplicationRecord by default. This is the place to put code that should be...

github.com

Boolean attributes can now be set by appending "which", "that" or "who" at the end: Given there is a movie...

jakearchibald.github.io

There are many ways to optimize SVGs. Ideally, your build pipeline does that automatically for you (e.g. via postcss-svgo...

medium.com

The article author also tested 6000+ production sites for load times. Apps became interactive in 8 seconds on desktop (using cable) and 16 seconds on mobile (Moto G4...

To check your apache2 config files for syntax errors run sudo apache2ctl configtest or shorter sudo apache2ctl -t

If you get an error message like that you are missing the Aspell files a specific language:

Usually, Cucumber feature files live in features/. When you group them in sub directories, make sure to add -r features...

You can download .gem files using gem fetch: gem fetch activesupport consul This will produce files like active-support-5.0.0.gem and consul-0.12.1.gem...

speakerdeck.com

Web fonts are great. They are also be really bad for front-end performance because they block rendering. You may...

makandra dev

This will reduce the filesize of foo and bar to 0 bytes: truncate -s0 foo bar If the files do...

vimdoc.sourceforge.net

If you are in the middle of a file and want to scroll, but don't want to move your...

This might be due to AppArmor denying the MySQL server access to most of the filesystem. You can instead use...

makandra dev
ablogaboutcode.com

After reading, you will know why and how runners.each(&:run) works. Here some tidbits: & can be quite confusing because it...

makandra dev

The rubocop binary has a few interesting flags: rubocop (using the --parallel default ) scans the current repository for linting issues...

github.com

fake_stripe spins up a local server that acts like Stripe’s and also serves a fake version of Stripe.js...

This might eventually be fixed by Rails itself.\ Right now this is the way to have the rails_xss plugin...

solnic.eu

Removing duplication from the code is a seemingly easy task. In many cases it is pretty straight-forward – you look...

github.com

...install octodown Know that this will install at least 12 other gems. However, the beautiful output should be worth it. Usage octodown README.md

This works in modern RSpecs (RSpec >= 2.x) and Cucumbers: rspec spec/models/node_spec.rb:294:322 cucumber features/nodes.feature:543:563:579

developer.mozilla.org

Touch devices have their own set of events like touchstart or touchmove. Because mobile browsers should also work with with...

It might be one of the following: You are looking at a manifest file (like application.css) which is always empty...

icelab.com.au

We love Markdown. We use it wherever we can for text formatting. In a web app, the obvious place for...