To reverse lookup a fixture by its table name and id, use the following approach on ActiveRecord::FixtureSet: table = 'users...
Your package-lock.json should always match and resolve all packages from your package.json. Coming from Yarn, I was looking for an...
Team C enabled support for description lists in makandracards. Please make sure to add a newline before the definition starting...
Text fragments allow linking directly to a specific portion of text in a web document, without requiring the author to...
Add support for default branches other than "master" (e.g. "main"). Will read this information from origin. geordi branch will not...
I noticed that tig 2.5.1 that is provided by Ubuntu 22.04 repositories has inferior bash completion than older versions after...
On our Ubuntu machines we have nautilus file manager with nautilus-extension-gnome-terminal installed. This adds an entry to...
Rails' default logger prefixes each log entry with timestamp and tags (like request ID). For multi-line entries, only the...
Recently I needed to benchmark an Active Record query for performance measurements. I wrote a small script that runs each...
sudo gitlab-rails console Note This takes some minutes to start Send a mail Use the following...
tl;dr To adjust code templates in RubyMine, navigate to Settings -> Editor -> File and Code Templates. Example You can navigate...
While most Rails Apps are tied to at least one external REST API, machine-to-machine communication via GraphQL is...
As we're switching from PT to Linear, I've updated the existing bash script to work for commits that...
If you want to use rsync to transfer files that don't belong to your user to another system you...
Your commit messages should include the ID of the issue your code belongs to. Our preferred syntax prefixes the issue...
This card describes two variants, that add a more intuitive workflow when working with nested attributes in Rails + Unpoly.
Developing or debugging SAML functionality can be a hassle, especially when you need to go back and forth with someone...
jq is great when dealing with JSON data. Check out the official jq Manual. Content Select only specific keys
10.0.0 2024-03-07 Compatible changes console command: You can now globally disable the IRB multiline feature by setting irb...
I recently built a screen with a very high and wide table in the center. This posed some challenges:
It happens from time to time that a job in a GitLab pipeline fails. Sometimes, however, the error message is...
Wondering what these numbers in the mount entries in /etc/fstab are meaning? The first number fs_freq When this field...
You can use pg_repack to do a VACUUM FULL without holding an exclusive lock during processing. There is still...
If you ever need to restore exact records from one database to another, Marshal might come in handy. Marshal.dump is...