Ever needed to use a global variable in Rails? Ugh, that's the worst. If you need global state, you...
When testing Ruby code that prints something to the terminal, you can test that output. Since RSpec 3.0 there is...
The linked site hosts a simple test. It shows two images with narrow vertical/horizontal lines. The more they resemble each...
When receiving a new SSL-Certificate for an existing SSL-key it should be checked that they match cryptographically.
to create a Gallery that has a name and has_many :images, which in turn have a...
In production, you (or your ops team) should configure a maximum number of bytes that Redis can use to store...
Connect to your IMAP server. If you have SSL enabled: openssl s_client -connect your-server:993 if your server...
Many of our developers love to use the "awesome" window manager on Linux. However, RubyMine dialogs occasionally defocus while typing...
When you have a localized website, you may want to redirect users to their preferred language when they visit the...
fake_stripe spins up a local server that acts like Stripe’s and also serves a fake version of Stripe.js...
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...
You will need to look here and find your own device. Look for the "bootable CD" download, which will give...
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...
Don't use exec without user parameter If you use exec without user parameter, the command will get executed as...
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.