Browsers can auto fill-in one time codes if advised. Use it like this: Demo: https://twitter.com/sulco/status/1320700982943223808 Browser support...
You don't want sensitive user data in your logs. Background Rails per default filters sensitive data like...
For my computer science bachelor's thesis I programmed and evaluated a CLI Test Case Prioritization (TCP) tool for makandra...
The git doc states on the difference of these two commands: git-restore[1] is about restoring files in the...
There are multiple ways to redirect URLs to a different URL in Rails, and they differ in small but important...
Rails' url_for is useful for generating routes from a Hash, but can lead to an open redirect vulnerability.
Rails' Strong Parameters enable you to allow only specific values from request params to e.g. avoid mass assignment.
Newest versions of Chromedriver breaks the user agent for device emulation via device name. In previous versions the user agent...
An introduction to mangling When you minify ("compress", "optimize") your JavaScript for production, the names of your functions and variables...
Rails offers several methods to manage three types of different cookies along with a session storage for cookies. These...
It's quite confusing how many external displays are usable with a MacBook that uses an M1 or M2 Chip...
Git log offers useful options for filtering. This card provides a short overview. By message Only commits that include a...
Sometimes you'll find yourself with a set of tasks that require similar code for different models. For example, if...
Suppose you want to implement a publish/subscribe pattern in your Frontend application to react to data changes and events. First...
When you write your next CarrierWave uploader, consider processing your images with libvips instead of ImageMagick. Reasons for libvips
When RubyMine reports Rubocop returning "exit code -1", upgrading Rubocop can be the fix: gem install rubocop "The logs" can...
We have a long-standing checklist for merge requests. However, it hardly matches the intricate requirements for design. This checklist...
Splitting up commits makes the process of reviewing often easier, since you can create several merge requests or review every...
If you have a fully functional CI pipeline but no CD, you might find yourself frequently waiting for CI (with...
Code splitting is a feature of esbuild that can keep huge libraries out of the main bundle. How code splitting...
Context and further resources Even though you can get 90% of debugging done with up to 5 basic byebug commands...
Looking at the source code of the validates_numericality_of validator, it becomes clear that it converts the attribute in...
When you allow file uploads in your app, a user might upload content that hurts other users. Our primary concern...
Every Rails response has a default ETag header. In theory this would enable caching for multiple requests to the same...