SELECT pg_database.datname as "database_name", pg_database_size(pg_database.datname)/1024/1024 AS size_in_mb FROM pg_database ORDER...
Once Rails knows a given string is html_safe, it will never escape it. However, there may be times when...
You know that layouting HTML e-mails is terrible. For more fun, check Litmus' list of top 10 e-mail...
You can tell git to ignore different kinds and amounts of whitespace when merging or cherry-picking. This often occurs...
rack-mini-profiler is a powerful Swiss army knife for Rack app performance. Measure SQL queries, memory allocation and CPU...
A list of surprisingly clever CSS expressions for common use cases.
There are cases when you need to select DOM elements without jQuery, such as: when jQuery is not available
In developing countries like Nigeria, Opera Mini is used by up to 70% of users on mobile.
Remove some old binaries (commands still exist in geordi) and mark others as deprecated Rewrite deploy command to support...
In Ruby 2.3 you can use <<~ instead of <<- to automatically remove indentation from a HEREDOCs: str = <<~MESSAGE Hello Universe!
When you're using feature branches, they will stack up if you don't delete them after the merge to...
The nokogiri gem provides different packages for several platforms. Each platform-specific variant ships pre-built binaries of libxml2, e.g...
As described by the linked Stackoverflow answer, run these commands: sudo add-apt-repository ppa:git-core/ppa -y
A collection of 700+ svg vector logos. The logos are optimized (removed duplicated paths / excessive groups / empty defs, linting, etc...
Regular expressions in Javascript are represented by a RegExp object. There also is a regex literal as in many other...
I recommend to go straight to 2.1.5+ without intermediate steps. Otherwhise you burden yourself with unnecessary work of encoding problems...
Cucumber raises a Cucumber::Ambiguous if more than one step definitions match a step. Our new cucumber_priority gem provides...
Logging tcpdump output all the time can create a huge amount of data. This can be both: too much data...
Ruby has the class Proc which encapsulates a "block of code". There are 2 "flavors" of Procs: Those with "block...
This class contains nerdcore things such as disassembling a piece of Ruby into VM calls or enabling tail-call optimization...
When there's a Gemfile.lock in your working directory that you cannot remove by either checkout, reset [--hard], stash, probably...
Simply add this to your .rspec instead: --require spec_helper If you are on rspec >= 3 and use a rails_helper.rb...
I had a very frequent cronjob that in rare cases could be relatively slow. To avoid multiple instances of this...
A very informative and interesting presentation about browsing performance, looking at efforts Google Chrome takes to increase it.