...only apply to your local working copy. How to ignore changed files (temporarily) In order to ignore changed files to being listed as modified, you can use the following git...

...sitting next to each other, whitespace between becomes a space character. Solutions, in decreasing order of awesomeness: Don't have whitespace between two elements! See Whitespace Removal in Haml if...

...before pagination, e.g. one billion trillion This will trigger a second database query in order to retrieve the count (which will run anyway if you render any kind of pagination...

...you should avoid editing po files in different branches at the same time. In order to not accidentally produce invalid merges I additionally disable merging for po files altogether, by...

...not in a group "My Contacts". Google only syncs contacts in that group. In order to fix this: Open Google Contacts Select all contacts (there's a link)

Another MiniTest::Unit::TestCase is now Minitest::Test. From /Users/makandra/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/test/unit/testcase.rb:8:in ` ' In order to remove this message, you'd have to update the gem that makes the API...

...can come and go as you edit your specs, since this can change the order in which RSpec evaluates your .rb files. I was not able to find a fix...

We regularly need to connect to the server in order to e.g. access the production console. Guessing the Capistrano deploy user and then again guessing the right directory on the...

...even when they are wrapping the same native DOM elements: $('body') == $('body') // false In order to test if two jQuery objects refer to the same native DOM elements, use is...

To see which directories take up the most (or least) space you can order them by size like this (the -h switch does the magic of understanding humanized size...

...development, it still accepts connections from everyone in the same network as you. In order to only allow requests to your Apache coming from your local computer, edit your /etc/apache2/ports.conf...

...you want to use Require group $GROUPNAME on your default Apache installation like this: Order allow,deny Allow from all Options None AllowOverride all AuthName "Area 51" AuthType Basic AuthBasicProvider...

In order to clone a git repository including all branches and tags you need to use two parameters when cloning the old and pushing to the new repository respectively:

In order to navigate through the browser history. you can manipulate the window.history object via javascript like follows: When /^I go back in the browser history$/ do page.evaluate_script('window.history.back...

In order to chain greps on log files that are opened via tail -f test.log you have to use the --line-buffered command line option for grep. Imagine you have...

...matches. We find this behavior to be impractical, but it is by design. In order to perform a test or action in all matching elements, do not use within but...

...and produce an error: SELECT id, MIN(birthday, '1978-01-01') FROM users; In order to compute the minimum or maximum value for the current row, use LEAST and GREATEST...

no: 'Nope' ... you get this Ruby hash: { true: 'Totally', false: 'Nope' } In order to use the strings 'yes' and 'no' as keys, you need to wrap them with...

The -1 switch makes ls return 1 file per line, -t orders by modification time and -r causes sorting from oldest to newest. tail -1 then returns the...

In order to redirect all requests from redirecting-host.com to desired-host.com while keeping path and query params unchanged, change your Apache VHost to something like this: ServerName desired-host.com ServerAlias redirecting-host.com

...fails when an unknown request is happening, you have to turn it off in order to use webmock like you are used to. Here is how to do this in...

rhnh.net

In order to cover some edge cases you rarely care about, Range#include? will become very slow in Ruby 1.9: Range#include? behaviour has changed in ruby 1.9 for non...

imperialviolet.org

...HTTPS to secure their email between their browsers and Google, all the time. In order to do this we had to deploy no additional machines and no special hardware. On...

makandra dev

In order to go back one page in your Cucumber tests, you can use the following step definition for Capybara: When(/^I go back$/) do visit page.driver.request.env['HTTP_REFERER']