Debugging your integration tests, that run a headless Chrome inside a docker image, is tricky. In many cases you can...
The rubocop binary has a few interesting flags: rubocop (using the --parallel default ) scans the current repository for linting issues...
When you allow file uploads in your app, a user might upload content that hurts other users. Our primary concern...
Rack::SteadyETag was a Rack middleware that generates the same default ETag for responses that only differ in XOR-masked...
Every Rails response has a default ETag header. In theory this would enable caching for multiple requests to the same...
tl;dr asdf allows you to manage multiple runtime versions with a single CLI tool and is backwards compatible by...
tl;dr The strict-dynamic source list keyword allows you to simplify your CSP policy by favoring hashes and nonces...
To navigate between test and test subject Rubymine requires you to set the test root sources as Test Sources Root...
If you're using a Redis cache in Rails (e.g. :redis_cache_store), it's possible to configure additional parameters...
Let's say we have posts with an attribute title that is mandatory. Our example feature request is to tag...
We will achieve this by creating a block accepting method to optionally create and then lock a .lock File of...
This is a checklist I use to work on issues. For this purpose I extracted several cards related to the...
Not all email clients support external images in all situations, e.g. an image within a link. In some cases, a...
Sometimes I ran across a GitHub merge request of a gem where it was not completely obvious in which version...
In Rails 5+ you can access a helper from a controller using the helpers method: # Inside a controller action
The linked article found a simple way to rewrite legacy git aliases to make them work with differently named default...
Using ActiveRecord's #signed_id and .find_signed methods you can create URLs that expire after some time. No conditionals...
In a Jasmine spec you want to spy on a function that is imported by the code under test. This...
Instead of cobbling together default settings in several different places as the issues arise, you can define them application-wide...
We usually rely on VCR and WebMock to prevent any real network connection when running our unit tests.
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?
In esbuild, you usually import other files using relative paths: import './some-related-module' import `../../utils/some-utility-module` import `../../../css/some-css.sass` This is totally fine...
Jasmine specs for the frontend often need some DOM elements to work with. Because creating them is such a common...