If you have a replication error with MySQL and you know the "error" is okay (e.g. you've executed the...
Like you know from "How to tell ActiveRecord how to preload associations (either JOINs or separate queries)", you can tell...
This method will remove automatically installed packages that no other packages depend on any more. This, of course...
When you're writing specs for ActiveRecord models that use memoization, a simple #reload will not do: it 'updates on...
We used zeroclipboard.js in some of our projects but now we switched to clipboard.js because it does not rely on...
Closure_tree lets your ActiveRecord models act as nodes in a tree data structure. This promises a few improvements over...
Instantiating ActiveRecord objects comes expensive. To speed up things, you can choose a more direct way to talk to your...
We often use VCR to stub external APIs. Unfortunately VCR can have problems matching requests to recorded cassettes, and these...
Rails 5 / 6 / 7 Method Uses Default Accessor Saves to Database Runs Validations Runs Callbacks Updates updated_at/updated_on Respects Readonly...
To get your F12 key back for other shortcuts, stop Tilda: killall tilda To prevent Tilda from starting on boot...
Sometimes you might need to nest a git-project inside another git-project. The right strategy is to use submodules...
Ruby's __FILE__ keyword returns the path to the current file. On popular for this are Ruby binaries: #!/usr/bin/env ruby...
For some years Google Chrome has allowed you to add desktop icon for any web page by going to Tools...
So you downloaded a theme for Chrome a while ago and don't remember which one it is?
This is quite an edge case, and appears like a bug in Rails (4.2.6) to me. Update: This is now...
Processes in Linux might be put into Swap ("virtual memory") occasionally. Even parts of a single process might be removed...
When you are working with jQuery selectors and collections, many times you want to know if the collection actually contains...
to create a Gallery that has a name and has_many :images, which in turn have a...
UI sortable helps reordering items with drag 'n drop. It works quite fine. Proven configuration for sorting table rows
fake_stripe spins up a local server that acts like Stripe’s and also serves a fake version of Stripe.js...
ActiveRecord offers an explain method similar to using EXPLAIN SQL statements on the database. However, this approach will explain all...
Don't write resources :people, :concerns => :trashable Write resources :people do concerns :trashable end Why Writing a controller...
Chrome has discontinued support for 32-Bit Linux builds and this might break your apt-get update.
To delete a certificate request run sudo puppet ca destroy $your.full.hostname on your puppetmaster.