Sometimes, through some firewall or proxy misconfiguration, you might have to deploy to a server that cannot access the git...

In my opinion using this plus the icon font you get the best of all worlds, with low CPU usage, no JavaScript, and file-sizes in the one...

Note: We are talking about Machinist 1 here, Machinist 2 may have solved this or might require a different approach...

...include(3, 4, 5) evaluates to: NOT( .to include(3, 4, 5) ) However, it behaves like: .to (NOT include(3) && NOT include(4) && NOT include(5) ) Warning

Using this step definition you can check if any form field (text field, checkbox, etc) or button is disabled:

A convenient way to test SNS Subscription Filter Policies is using an email address as the subscription endpoint. However, for...

When paginating records, we usually need to know the number of total records in order to render pagination links. Popular...

github.com

The linked rbenv plugin rbenv-each is very helpful to keep QoL gems up to date that are not part...

...an error out of stale_session_check! if it cannot find all classes. The best way to go: Don't do this. Strings and numbers should be enough and if...

I had a very frequent cronjob that in rare cases could be relatively slow. To avoid multiple instances of this...

tl;dr Since Rails 6.1+ you can use .compact_blank or .compact_blank! to remove blank values from collections (e.g...

Large projects usually have large test suites that can run for a long time. This can be annoying as running...

web.archive.org

Capistrano 2 brings the shell command which allows you to run commands on your deployment targets. There is also invoke...

The maximum version of Internet Explorer you can have depends on your version of Windows. E.g. Windows 7 users can...

httpd.apache.org

If you want to have a new log file every day automatically, but avoid using logrotate, the CustomLog directive is...

A word of caution There should rarely be a reason for you to split up config/routes.rb. If you need to...

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

With puma you can have concurrent requests. There are two concepts on how Puma can handle two incoming requests: Workers...

tl;dr In Chrome DevTools in the Sources tab you can activate Event Listener Breakpoints for debugging events. Example

drafts.csswg.org

...invalid calc value is ignored, so you might end up with missing or "random" behavior, depending on where you do this. The above example is valid once you use zero...

caniuse.com

Since late 2015, all major browsers (still excluding Firefox) support pointing device media queries. These can be used to distinguish...

Around will not happen until after a feature's Background has been processed. Use Before and After to avoid that...

stackoverflow.com

Rack has a limit for how many form parameters it will parse. This limit is 65536 by default.

You can use JavaScript to get or set cookie values on the client. Using the vanilla JavaScript API