...of it. If not, someone could exploit this by creating a user with ID = 1 (e.g. on staging), sign in and then use that cookie to authenticate on another site...
...e.g. on production, where the user with ID = 1 probably is the admin). Here is a one-for-all solution that does not affect current production users, leaving the production...
...browsers will use CSS transforms when available -- which is on basically all but IE. [1] To achieve a rotation on IE8 and IE9, we can use writing-mode. Since other...
However, IEs that do support transform (IE10+) would combine both styles into a 180° rotation which we do not want. So we reset our transform definition for IEs -- and...
...w!#$%&'*+-/=?^`{|}~]+.)*[\w!#$%&'*+-/=?^`{|}~]+@((((([a-z0-9]{1}[a-z0-9-]{0,62}[a-z0-9]{1})|[a-z]).)+[a-z]{2,6})|(\d{1,3}.){3}\d{1,3}(:\d{1...
...find your test results when you come back to the console later Calls RSpec 1 (spec) in a Rails 2 project and RSpec 2 (rspec) in a Rails 3 project...
.../Ubuntu\ One/encrypted Create a random keyfile dd if=/dev/urandom of=~/.sync.key bs=256 count=1 chmod 600 ~/.sync.key Put this script (let's call it mount-ubuntu-one-sync) somewhere...
...to transform every captured string: Transform /^(.*)$/ do |str| str.gsub(/\btranslate:(.+?)\b/) do |match| I18n.t($1) end end Other than with step definitions, Cucumber does not mind multiple transforms matching the...
...Never skip asset compile when servers are running on different code next if revisions.uniq.length > 1 changed_files = `git diff --name-only #{revisions.first}`.split if changed_files.grep(asset_locations).none? puts Airbrussh...
...it is annoying when debugging tests. Here are two ways to disable it: Option 1: prefs You can set profile preferences to disable the password manager like so: prefs = { 'credentials...
...work until you force HTML5 mode. Here are two ways to do that. Option 1: Doctype Make sure your HTML document uses HTML5. It should start like this: