Ever wondered how you can create a simple table output in bash? You can use the tool column for creating...
SELECT pg_database.datname as "database_name", pg_database_size(pg_database.datname)/1024/1024 AS size_in_mb FROM pg_database ORDER...
PostgreSQL offers a really handy field type: json. You can store any JSON there, in any structure. While its flexibility...
You can tell git to ignore different kinds and amounts of whitespace when merging or cherry-picking. This often occurs...
There are cases when you need to select DOM elements without jQuery, such as: when jQuery is not available
Remove some old binaries (commands still exist in geordi) and mark others as deprecated Rewrite deploy command to support...
If you have many connections to your MySQL or MariaDB (as we have) you might want to filter the list...
The nokogiri gem provides different packages for several platforms. Each platform-specific variant ships pre-built binaries of libxml2, e.g...
We will use this for new Angular code. Consider the guide in "beta". Things will still refine, but the general...
When using Sidekiq in your application, you must write thread-safe code. This wiki page also lists gems that are...
I recommend to go straight to 2.1.5+ without intermediate steps. Otherwhise you burden yourself with unnecessary work of encoding problems...
The puppet server caches custom functions. If you edit an existing function (e.g. while you’re developing it), you’ll...
Ruby has the class Proc which encapsulates a "block of code". There are 2 "flavors" of Procs: Those with "block...
When there's a Gemfile.lock in your working directory that you cannot remove by either checkout, reset [--hard], stash, probably...
MutationObserver provides developers a way to react to changes in a DOM. Any: insertion, deletion, attribute change – anything. Quickstart: https://...
With "attaching an event handler once" you possibly mean one of these two things: Register a function for an event...
git rebase -i -> mark your commit with edit git reset HEAD~ (remove the marked commit, but keep its...
When you make a simple TCP connection to a remote server (like telnet), your client won't normally notice when...
If you have jQuery code like this: if (condition) { $element.show(); } else { $element.hide(); } ... you can shorten this to: $element.toggle(condition);
Redactor is yet another WYSIWYG editor. It definitely has its weak points, but I want to point out that it...
Rails 4 introduced raising an error on pending migrations. This is most annoying when you are crafting a migration but...
Our applications not only need to be functional, they need to be fast. But, to quote Donald Knuth, premature optimization...
What is a Cookie? Google it if you do not know. How are cookies transferred between your browser and...
The asset pipeline is one of Rails' two mechanisms how stylesheets, javascripts and images from your /assets folder are processed...