When you run rake db:rollback and nothing happens, you are probably missing the latest migration file (or have not...
When you paste copied code with CTRL+V, RubyMine will change the indentation of the pasted code. You can prevent...
When dealing with time zones in Rails, there is one key fact to keep in mind: Rails has configurable time...
When building a form with a file select field, you may want to offer your users a live preview before...
Cucumber's docstrings let you add long strings to a step like this: # foo.feature Given this text: """ First line
Instead of using this hack you might want to use MariaDB 10.x which can work with both old and...
Awesome is a very good tiling window manager that provides neat features like automatic layouting of windows, good multi-display...
Git commands tend to come in groups. Avoid typing git over and over and over by running them in a...
jQuery's deferred objects behave somewhat like standard promises, but not really. One of many subtle differences is that there...
This card existed before, but was outdated due to browser implementation changes. The information below is validated for the current...
Enter any command into explainshell and it will explain it to you: split into separate commands (if present), with each...
To upload a file via AJAX (e.g. from an ) you need to wrap your params in a FormData object.
Stackprof is a sampling call-stack profile for Ruby 2.1+. Instead of tracking all method calls, it will simply collect...
Chrome has discontinued support for 32-Bit Linux builds and this might break your apt-get update.
If you are on a Linux shell and want to open a file with whatever default application is configured for...
If you want to configure your nginx to drop connections to a specific location, you can do so by responding...
Imagine you have a list you want to render inline on large screens, but stacked on small screens. high
The following sums up all connections (ESTABLISHED, TIME_WAIT, FIN_WAIT, etc.) and sorts it: netstat -n | awk ' $5 ~ /^[0...
Talking with APIs makes more fun using Postman. As an alternative you can also use command line tools like cURL...
Uses FFI and works all relevant operating systems. If you'd try to do it yourself, you'd have to...
RSpec supports a one-liner syntax for setting an expectation on the subject: describe Array do describe "when first created...
Cause logstaglia is so cool you may want to record a video. We're lucky: Logstalgia has a parameter for...
A HTTP 302 Found redirect to PATCH and DELETE requests will be followed with PATCH or DELETE. Redirect responses to...
In JavaScript we often use Immediately Invoked Function Expessions (or IIFEs) to prevent local variables from bleeding into an outside...