Rails Active Support provides some helpful methods for calculating times and dates, like Duration#ago or Duration#from...
If you use a newer SSH key generated with the ED25519 algorithm instead of RSA (see Create a new SSH...
This is a checklist I use to work on issues. For this purpose I extracted several cards related to the...
HTTP header values must only contain low-ASCII (7-bit) characters for safe transport. From RFC 7230: Historically, HTTP has...
In Rails 5+ you can access a helper from a controller using the helpers method: # Inside a controller action
vertical-align is hard. Have you ever wanted to vertically center an icon with text? This usually means "vertically align...
After upgrading to Rails 6.1.7.2 one of our apps printed a wall of warnings while booting: /var/www/app/shared/bundle/ruby/2.6.0/gems/net-protocol-0.2.1/lib/net/protocol.rb:68: warning: already...
I recently enjoyed debugging a Cucumber step that tried to be retryable using a patiently block: Then /^"([^"]*)" should( not)? be...
The cards editor has a feature "Cite other card" to create links to other cards in the same deck as...
You have some SVG files you want to use as icons on your website. How would you embed them?
As a developer you may have many tools watching your project for changes: Your IDE, Webpack, Guard, etc. This is...
Jasmine specs for the frontend often need some DOM elements to work with. Because creating them is such a common...
Jasmine specs that work with DOM elements often leave elements in the DOM after they're done. This will leak...
tl;dr In Chrome DevTools in the Elements tab or in Firefox in the Inspector tab you can right click...
Here are a few common patterns that will probably lead to flaky specs. If you notice them in your specs...
tl;dr git checkout is the swiss army of git commands. If you prefer a semantically more meaningful command for...
New versions of wkhtmltopdf dissallow file:// URLs by default. You can allow them by passing --enable-local-file-access.
You have uncommited changes (you can always check by using git status), which you want to discard.
tl;dr In RubyMine you can use find and replace with capture groups (.*?) and backreferences $1 (if you have several...
If you need to convert an SVG source to PS or EPS, the most common suggestion on the interwebs is...
When your Rails application offers downloading a bunch of files as ZIP archive, you basically have two options:
These are the results of the "personal tech stack survey". I've included only the most popular mentions, maybe it...
The inset CSS property is a shorthand that corresponds to the top, right, bottom, and/or left properties. It has the...
In case you have trouble with the zeitwerk autoloader, you can check out the documentation Autoloading and Reloading Constants and...