There are various ways to run external commands from within Ruby, but the most powerful ones are Open3.capture3 and Open3.popen3...
Line-height and vertical-align are simple CSS properties. So simple that most of us are convinced to fully understand...
Below is a list of some VIM settings I find useful. You can add them to your .vimrc. source $VIMRUNTIME/mswin.vim...
As web developers, we know how easy it is to end up with web page bloat. But loading a webpage...
There seems to be a nasty bug in Chrome 56 when testing with Selenium and Capybara: Slashes are not written...
We generally use multiple application servers (at least two) and you have to search on all of them if you...
If you use Angular 1.4+ together with Angular Animate, all ng-show, ng-hide, ng-class etc. are animated on...
First find the reference for the entry you want through looking at the stash: $ git stash list stash@{0}: WIP...
TruffleRuby is an experimental Ruby implementation that tries to achieve ~10x performance over MRI. This has been on our radar...
Sometimes huge refactorings or refactoring of core concepts of your application are necessary for being able to meet new requirements...
TLDR: A function is hard to use when it sometimes returns a promise and sometimes throws an exception. When writing...
A comprehensive introduction to sending HTML emails. Intro: HTML email: Two words that, when combined, brings tears to a developer...
Ruby's regular expressions can be represented differently. When serializing them, you probably want to use inspect instead of to...
In general, you should not put a block element inside an inline element. So don't do this: text
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)
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...