TL;DR {} binds stronger than do … end (as always in Ruby, special characters bind stronger than words) Demo
The following two hints are taken from Github's Ruby style guide: If your regular expression mentions a lot of...
This will give you the string that appears most often in an array: names = %w[ foo foo bar bar bar...
Usually you don't need to, but when you want to see which queries your MySQL server currently needs to...
Capybara has a global option (Capybara.ignore_hidden_elements) that determines whether Capybara sees or ignores hidden elements.
In some older Capybara versions (e.g. 0.3.9), we're getting lots of deprecations warnings: Selenium::WebDriver::Element#select is deprecated...
I followed this nice guide Connecting to MSSQL with Ruby on Ubuntu - lambie.org until I ran in the following errors...
This is one possibility to do this. There are other and maybe even better ways to do this.
When you do a script/dbconsole -p, your MySQL shell will already be using UTF-8. When you call it yourself...
We love Markdown. We use it wherever we can for text formatting. In a web app, the obvious place for...
Nice article to educate your non-geek girlfriend/boyfriend about the joys of programming.
This is surprisingly difficult when there is a with the same text on the page, but you really want to...
Pour color on your Rails console with awesome_print. Turn confusing long strings into formatted output. Have objects and classes...
Under Settings / Appearance you can uncheck a box Animate windows. This will change your life. This setting seems to not...
When trying to install the gherkin gem, you might encounter an error with the following lines: ERROR: Error installing gherkin...
Let's say you have two XML strings that are ordered differently but you don't care about the order...
When branches get deleted on origin, your local repository won't take notice of that. You'll still have your...
When you are calling a method that may raise an exception that you don't care about, you might think...
This card shows you how to format a card's content using Markdown. We use the Commonmarker interpreter, so here...
Developers these days are spoiled with choice when it comes to selecting an MV* framework for structuring and organizing JavaScript...
Let's say you need to revert a migration that happened a while back. You'd create a new migration...
When updating WebMock, be prepared that your specs may send real requests into the depths of the internet unless you...
If your project manager wants to do gatekeeping on a project, as a developer you need to follow the following...
If you're responsible for gatekeeping in a projects, here is a guide, what to do. In order to reduce...