Text fragments allow linking directly to a specific portion of text in a web document, without requiring the author to...
We recently migrated a Rails application from yarn to npm. We decided to go this step instead of upgrading to...
While the main goal always is to prevent long-running queries in the first place, automatic timeouts can serve as...
On our Ubuntu machines we have nautilus file manager with nautilus-extension-gnome-terminal installed. This adds an entry to...
esbuild comes with a minifier that is good enough for most cases. If you're looking to squeeze out as...
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:
I was recently asked to optimize the response time of a notoriously slow JSON API endpoint that was backed by...
While most Rails Apps are tied to at least one external REST API, machine-to-machine communication via GraphQL is...
Add apt source: apt update -y && apt install -y gpg sudo wget curl sudo install -dm 755 /etc/apt/keyrings
This card shows an uncommon way to retrieve a file using selenium where JavaScript is used to return a binary...
You might know a few examples, where you configure some library via a block. One example is the Rails configuration...
When you are using PgBouncer with e.g. a Ruby on Rails application which uses different application_names for the PostgreSQL...
While the Software Design Basics card tried to make a point about writing self explanatory code, it's still...
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...
If you want to use rsync to transfer files that don't belong to your user to another system you...
Raising errors for required and permitted attributes makes it easier to find errors in your application during development and in...
Your commit messages should include the ID of the issue your code belongs to. Our preferred syntax prefixes the issue...
This card describes four variants, that add a more intuitive workflow when working with nested attributes in Rails + Unpoly:
When making requests using the http gem you might want to automatically follow redirects to get the desired response. This...
Why do we migrate? Due to a change in licensing, we cannot provide Elasticsearch versions >= 8.0. Version 7.17.x will...
Debugging performance issues in your Rails app can be a tough challenge. To get more detailed insights consider using the...