HTTP header values must only contain low-ASCII (7-bit) characters for safe transport. From RFC 7230: Historically, HTTP has...

Not all email clients support external images in all situations, e.g. an image within a link. In some cases, a...

Carrierwave's BaseUploader can have some validations that you can use by overriding a certain method, which's expected name...

Let's assume that we have a model Movie that registers a callback function when a new instance of Movie...

When an object is created / updated, various callbacks are executed in this order: before_validation after_validation before_save

makandra dev

In a Jasmine spec you want to spy on a function that is imported by the code under test. This...

tl;dr In Chrome DevTools in the Layouts tab you have handy options to debug CSS Flexbox and Grid. Including...

sass >= 1.35.0 has the option quietDeps and silenceDeprecations to silence deprecation warnings from dependencies. quietDeps: No deprecation warnings for dependencies...

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

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...

makandra dev

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.

workingdraft.de

The robots.txt file and HTML tag can be used to control the behavior of search engine crawlers. Both have different...

tl;dr The :is() pseudo selector - specificity of its most specific argument - matches against a comma-separated list of selectors...

tl;dr The :where() pseudo selector - zero specificity - matches against a comma-separated list of selectors. Example Compound selectors like...

When your Rails application offers downloading a bunch of files as ZIP archive, you basically have two options:

paweldabrowski.com

The linked content includes a few design patterns implemented with Ruby on Rails. What is the card indented to achieve...

These are the results of the "personal tech stack survey". I've included only the most popular mentions, maybe it...

You can use the code below to check whether the browser can make connections to the current site: await isOnline...

When changing code in mailers, updating the corresponding mailer preview can be forgotten very easily. Mailer previews can be tested...

When redirecting you should take care to use the right HTTP status code. From controllers When redirecting from a controller...

It might sometimes be useful to check whether your Rails application accesses the file system unnecessarily, for example if your...