You can use ETags to allow clients to use cached responses, if your application would send the same contents as...
tl;dr In RubyMine you can use find and replace with capture groups (.*?) and backreferences $1 (if you have several...
I recently wanted to add a model for address information but also wanted to add a unique index to those...
Imagine these models and associations: class Deck < ApplicationRecord has_many :cards end class Card < ApplicationRecord belongs_to :deck, optional: true...
It might sometimes be useful to check whether your Rails application accesses the file system unnecessarily, for example if your...
Building application assets with esbuild is the new way to do it, and it's great, especially in combination with...
Sometimes you need to access a dev server running on localhost from another machine that is not part of the...
A flaky test is a test that is often green, but sometimes red. It may only fail on some PCs...
Inspired by recent "git shortcut" cards I figured it would be nice to have one of these for rebasing a...
git --fixup is very handy to amend a change to a previous commit. You can then autosquash your commits with...
We had a card that described how to install multiple mysql versions using mysql-sandbox. Nowadays with the wide adoption...
Accessing other repositories in Gitlab CI is not straight forward, since the access rights of the current pipeline might not...
6.0.0 2021-06-02 Compatible changes geordi commit will continue even if one of the given projects is inaccessible. It...
When giving a presentation where you do some coding, the font size you usually use is probably a bit too...
While renaming a file sometimes feels like "dropping its history", that is not true: Just use git log --follow on...
When storing files for lots of records in the server's file system, Carrierwave's default store_dir approach may...
To attach files to your records, you will need a new database column representing the filename of the file...
I really love to use the shortcuts CTRL+Alt+ Arrow Left and CTRL+Alt+ Arrow Right to navigate through the...
The ActionDispatch module of Rails gives you the helper method flash to access the flash messages in a response.
ZSH is an alternative command line shell that includes some features like spelling correction, cd automation, better theme, and plugin...
A rough guide how to implement a REST API. The discussion here includes some interesting points as well: Timestamps: ISO8601...
If your project depends on an old version of ImageMagick that you can no longer install in your system, you...
Insomnia is a GUI tool to help you communicating with an API. There are also other tools to do this...
When running an older version of docker-compose you might see the following error: ERROR: Version in "./docker-compose.yml" is unsupported...