If you want to find the commits that touched a specific text in a file, use git log -S 'text...
Icomoon.io offers a free app to build custom icon webfonts. It offers downloads as webfont set (.eot, .ttf, .woff, .woff2...
#reverse_order does not work with complex sorting constraints and may even silently create malformed SQL for rails < 5.
Rails 5 / 6 / 7 Method Uses Default Accessor Saves to Database Runs Validations Runs Callbacks Updates updated_at/updated_on Respects Readonly...
1. Sometimes you have search entries in the autocomplete of the address bar, which are higher weighted than your bookmarks...
You might get the above error message when cloning certain git repositories (for example the rails repository). It indicates that...
We have released a new library Gemika to help test a gem against multiple versions of Ruby, gem dependencies and...
Same requests are recorded only once in vcr. Replaying a test fails, if you trigger the same request multiple times...
Rails 5 migration classes look like this now: class CreateUsers < ActiveRecord::Migration[5.0] Mind the [5.0] at the end.
ActiveSupport::Notifications provides an instrumentation API for Ruby. It is used throughout rails to publish instrumentation events that include information...
You know those helper methods that just render some HTML but look weird because of content_tags all over the...
We have a new gem Minidusen which extracts Dusen's query parsing and LIKE query functionality. Minidusen can no longer...
If you were using Dusen for its query parsing and LIKE queries, we recommend to migrate to Minidusen, which extracts...
Capistrano is by default configured to exclude the gems of the groups development and test when deploying to the stages...
You want Spring for super-fast binstubs like bin/rails or bin/rspec which avoid Rails boot time. You want parallel_tests...
Promises are the new way™ to express "Do this, and once you're done, do that". In contrast to callbacks...
Sometimes you want to test migrations with production or staging data. Dumping single tables makes sense if a complete dump...
To check the currently running PG version from your Rails application (e.g. Rails console on your production server), simply do...
PostgreSQL, unlike MySQL, treats strings as case sensitive in all circumstances. This includes comparison with = and LIKE collision detection in...
Is your application doing something expensive every few seconds? Maybe an animated slider that rotates images? Maybe you are updating...
Here is a symbol of an eight note: ♪ Its two-byte hex representation is 0x266A. This card describes how to...
When building a web application, one is tempted to claim it "done" too early. Make sure you check this list...
So you downloaded a theme for Chrome a while ago and don't remember which one it is?
You can define methods using def or define_method. In the real world, there is no performance difference.