Articles
-
Solving "cannot load such file" error in Ruby gem development
After generating a new custom gem in Ruby with Bundler, the error “cannot load such file” may be encountered when building and testing the new library locally.
-
Reproducing test failures with RSpec
RSpec test failures related to ordering may sometimes appear, particularly on larger and older projects.
-
Create PostgreSQL indexes concurrently to minimize performance impact
Creating new indexes for an existing table in Postgres–particularly a large one–can impact performance, as locks are taken and the index is built in a single pass.
-
Remove stale remote branches with git
There’s a simple way to list remote branches with git:
-
Restore a file from a previous commit with git
Here is a simple recipe for restoring a file to its state in a prior commit in git using
git-checkout(unlike the effects ofgit-revertorgit-reset):
