If you are fine with the default console diff most of the time but only sometimes want to use an...
Don't simply test for the presence of the magic Paperclip attribute, it will return a paperclip Attachment object and...
If you want to test that a certain text is contained within the document title of your page, you can...
Under certain circumstances gettext_i18n_rails will hit a near-infinite loop. This occured in Rails 2.3.5 with Haml 3.0.18...
Unless you changed the default, this will be 16 MB: mysql> SHOW VARIABLES WHERE Variable_name="max_allowed_packet"; +--------------------+----------+
Check your GPU state on chrome://gpu. If it reads "WebGL: Hardware accelerated" in the first list, you're set...
...previously been disabled for web pages, but with Firefox 41, which is currently in Beta, and slated to move to release in mid-September, it is becoming available to JavaScript...
Don't use be_true to check if a value is true. It actually checks if it anything other than...
The debugger gem does not seem to be properly working on Ruby 2. Use byebug instead! Byebug is a simple...
You can define what will be printed by checking View -> Preview Page Breaks and then moving around the blue borders...
When you build a link for an email body like this body = "Please click the following link" body << "http://posts/130...
This might seem obvious, but I'm rejecting stories because of this on a regular basis. Whenever a list (e.g...
For Capybara, use this step: Then /^"([^"]*)" should be a disabled option for "([^"]*)"(?: within "([^\"]*)")?$/ do |value, field, selector| with_scope(selector...
...are knowledgeable and genuinely concerned with security. However, there are places where the default behavior could be more secure. This post explores potential security issues in Rails 3 that are...
An unresponsive service can be worse than a down one. It can tie up your entire system if not handled...
When your Solr seems to be started properly (a process is running with the correct data directory) but never responds...
...to be "by design" since there is a Bundler config option to restore previous behavior. You can fix it by setting that flag. You should commit the resulting config file...
In Ruby 2.3 you can use <<~ instead of <<- to automatically remove indentation from a HEREDOCs: str = <<~MESSAGE Hello Universe!
Generally, Selenium tests use the browser to interact with the page. If it's unavailable, a timeout error is...
This only works when you actually have a session ID (not the case for Rails' CookieStore, for example): request.session_options...
CSS Flexbox has become extremely popular amongst front-end developers the last couple of years. This isn’t surprising, as it has made it a lot easier for us to...
...got a lot of the same capabilities as Flexbox. In come cases it’s better than Flexbox, while in other cases it’s not. If you are to take one...
Spreewald 1.1.0 drops the be_true and be_false matchers in order to be RSpec 3 and Ruby 2 compatible...
Macs render fonts bolder than they are, especially on dark background. This can be fixed by configuring the font smoothing...
Git is hard: screwing up is easy, and figuring out how to fix your mistakes is fucking impossible. Git documentation...