Building plain text emails with an .erb template doesn't allow you to indent code like you normally do in...
This card tries to summarize by example the different uses of heredoc. In Ruby << vs. <<- vs. <<~ In Rails strip_heredoc...
You can use three different versions of the regular expression syntax in grep: basic: -G extended: -E(POSIX)
TL;DR Debugging problems with javascript errors in cucumber tests is sometimes easier in the browser. Run the test, stop...
This method will remove automatically installed packages that no other packages depend on any more. This, of course...
xargs is a powerful bash tool that can take input from $STDIN and pass it to a given command. I.e...
When giving a presentation with a projector it is sometimes better to use a dual screen layout instead of a...
When running tests via parallel_tests, you may encounter an error: cannot load such file -- parallel_tests/gherkin/runtime_logger Error creating formatter...
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...
A haml angular 1 template with .thing(class="is-{{:: item.type }}") will be compiled (by haml) to which is not what...
In order to have monitoring for Sidekiq (like queue sizes, last run of Sidekiq) your application should have a monitoring...
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...
When working with custom transactions and use ActiveRecord::Rollback you may encounter unexpected behaviour if you try to roll back...
If you are fine with the default console diff most of the time but only sometimes want to use an...
Run dconf-editor (as your user) Go to org / mate / panel / objects / clock / prefs Change the key format to custom...
SVG is an acronym for "scalable vector graphics". SVGs should be used whenever an image can be described with vector...
#reverse_order does not work with complex sorting constraints and may even silently create malformed SQL for rails < 5.
AWstats is build to regularly run on webservers. If you want it to build a report once, here is the...
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...
These are Chrome plugins that proved useful at makandra. Each is the best-in-class. Dimensions Auto-measure distances by...
ActiveSupport::Notifications provides an instrumentation API for Ruby. It is used throughout rails to publish instrumentation events that include information...