Any form fields where users enter numbers should be an . Numeric inputs have several benefits over : On mobile or tablet...
A Rails script lives in lib/scripts and is run with bin/rails runner lib/scripts/.... They are a simple tool to perform...
87.140.79.42 - - [23/Jan/2024:09:00:46 +0100] "GET /monitoring/pings/ HTTP/1.1" 200 814 "-" "Ruby" 87.140.79.42 - - [23/Jan/2024:09:00:46 +0100] "GET...
I, [2024-01-21T06:22:17.484221 #2698200] INFO -- : [4cdad7a4-8617-4bc9-84e9-c40364eea2e4] test
Tested on Ubunut 22.04 1. Opener script Create a file ~/.local/bin/coverage_zip_opener with: #!/bin/bash tmp_folder="/tmp/coverage-report-opener" if [ -z "$1" ]
Your development server is usually running on an insecure HTTP connection which is perfectly fine for development.
If you have an element with significant border-radius (e.g. 50% for a circle) and you want inline content (i.e...
Getting an entire test suite green can be a tedious task which involves frequent switches between the CLI that is...
This Capistrano task runs a command on all servers. bundle exec cap production app:run cmd='zgrep -P "..." RAILS_ROOT/log/production.log...
A general overview about why and how we migrate can be found under Migrating from Elasticsearch to Opensearch
OpenAI is currently limiting the Audio generating API endpoint to text bodies with a maximum of 4096 characters.
Make sure that you use the correct property when editing an HTML attribute. Using innerHTML with unsafe arguments makes your...
When you find similar groups of expect calls in your tests, you can improve readability by extracting the group into...
The sprintf method has a reference by name format option: sprintf("% d : % f", { :foo => 1, :bar => 2 }) # => 1 : 2.000000
Most of our applications use CarrierWave for file uploads. CarrierWave has an integrated processing mechanism for different file versions with...
View specs are a powerful tool to test several rendering paths by their cases instead of using a more costing...
We regularly have tasks that need to be performed around a deploy. Be it to notify operations about changed application...
Do you remember finding where a method is defined? I recently that Method objects are quite useful within a debugging...
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...
You can tell npm to install a package globally with npm -g install @puppeteer/browsers. However, it seems that its not...
Rails offers several methods to manage three types of different cookies along with a session storage for cookies. These...
Note: You won't need this for single lines of text. In this case it is better to just use...
When you write your next CarrierWave uploader, consider processing your images with libvips instead of ImageMagick. Reasons for libvips