The ActiveSupport::BroadcastLogger allows you to log to multiple sinks. You know this behavior from from the rails server command...
Rails' default logger prefixes each log entry with timestamp and tags (like request ID). For multi-line entries, only the...
With this command you can run all the spec files which have been edited or added in the current branch...
I recently stumbled over a quirk in the way Ruby handles local variables that I find somewhat dangerous. Consider:
While most Rails Apps are tied to at least one external REST API, machine-to-machine communication via GraphQL is...
Some rubygems come in platform-specific versions (i.e. "x86_64-linux") in addition to the usual "ruby" platform. This is...
Running gem update --system will install the latest version of RubyGems. However the latest version might not be compatible with...
This card is a short summary on different ways of assigning multiple attributes to an instance of a class.
Using Capistrano, we usually have some array configurations in the config/deploy.rb file, like set :linked_files, %w[config/database.yml], so in...
If you are using the routing-filter gem in your Rails 7.1 app for managing URL segments for locales or...
As we're switching from PT to Linear, I've updated the existing bash script to work for commits that...
What is makandra cards? We are makandra, a team of 60 web developers, DevOps and UI/UX experts from Augsburg, Germany...
There are two ways a logout in SAML can happen: Service Provider (SP) initiated and Identity Provider (IDP) initiated logout...
Note Using rem only ever makes sense when the root font size is dynamic, i.e. you leave control to the...
Starting with Rails 7.1 the production logger is set to standard out. For applications running with opscomplete ensure to keep...
Developing or debugging SAML functionality can be a hassle, especially when you need to go back and forth with someone...
It's 2024 and we have tools like ffmpeg, imagemagick and GPT readily available. With them, it's easy to...
If you want to system-wide disable the microphone of your external webcam in PulseAudio use the following one-liners...
10.0.0 2024-03-07 Compatible changes console command: You can now globally disable the IRB multiline feature by setting irb...
Any form fields where users enter numbers should be an . Numeric inputs have several benefits over : On mobile or tablet...
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
Your development server is usually running on an insecure HTTP connection which is perfectly fine for development.
I recently did a quick research on how to better write down multiline statements like this: # Dockerfile RUN export DEBIAN...