remember_token=abcdef123456; path=/; expires=Mon, 31-Dec-2029 23:03:29 GMT foo=23; path=/; expires=Thu, 30-Jan-2020 23:03:29 GMT bar=42; path=/; expires...

...Thu, 30-Jan-2020 23:03:30 GMT _some_session=foobarbaz; path=/; expires=Thu, 31-Dec-2020 23:03:30 GMT; HttpOnly Solution This seems to be a bug in...

...form input[type=file]'); var attachment = fileInput.files[0]; var formData = new FormData(); formData.append('email', 'foo@bar.com'); formData.append('attachment', attachment, 'filename.jpg'); You can now send your FormData via AJAX like this:

makandra Operations

...Tell exim about the sender, the subject and input some text. From: user@your.domain.example Subject: Foobar Text Text Text I like Pie! Press Ctrl+d You should see the details about...

skorks.com

...that mindlessly!) !$ Access the last argument of the previous command. Example: Check with "ls foo*" first and call "mv !$ /tmp" afterwards. Combined commands Ctrl + (C P O) Cancel the running...

...pass a different array than arguments, or just use call: MyOtherClass = BaseClass.extend({ initialize: function(foo, bar, baz) { // ... this.constructor.__super__.initialize.call(this, { baseInfo: bar }); } }); Old versions of Backbone.js Apparently there was...

...this pattern from the acts-as-taggable-on gem: post = Post.last p post.tag_list # ['foo', 'bar', 'baz'] post.tag_list = ['bam'] p post.tag_list # ['bam'] This string array tag_list is...

Cucumber's docstrings let you add long strings to a step like this: # foo.feature Given this text: """ First line Second line Second Paragraph """ # foo_steps.rb Given /^this text:$/ |docstring| puts docstring.split...

...the expression from the string. Simply pass them as a second argument: new RegExp('foo', 'i'); # => /foo/i [1] Note that we need to say "\\d" in our string when we...

Connect to your memcached host. (AWS elasticache is memcached) telnet foohost23.cs2631.0001.euw1.cache.amazonaws.com 11211 Once you're connected, find out which 'slabs' exist within the cache: stats items STAT items:1:number...

...the keys stored within this container using stats cachedump : stats cachedump 1 5 ITEM foo100:Class|last_id [6 b; 1342195946 s] ITEM foo106:Class|last_id [7 b...

# HTML # Coffeescript @app.directive 'panel', -> scope: evaluated: '=value' bound: '=twoway' link: -> scope.evaluated # = false scope.bound = 'foo' # Updates parent.someProperty HTML attributes bound with = (value, twoway) have their value evaluated as Angular expression...

tutorialzine.com

...from the current page (as any tag would do): var parser = document.createElement('a'); parser.href = 'foo'; // set the URL you want to parse (resolving relative paths in the context of the...

...Multipart: false, Headers: <Date: Mon, 24 Sep 2012 13:37:00 +0200>, <From: foo@example.com>, <To: ["fail@failtrain.com", "fail@failbus.org"]>, <Message-ID: <5060543b3759_212311986a0305e8@ip-10-234-82-125.mail>>, <Subject: [you failed.] (Exception) "testfoo">, , , > Old versions of exception_notifications...

...inside the container. It will be aligned correctly if the HTML looks like this: foo Complex explanation here. So the actual fix is to add some inline elements next to...

...that hostname might give you the FQDN depending on the configuration, i.e. something like foo-host.domain.tld...

end Note that this will only compare substrings, i.e. have_css('div', :text => 'foo') will match " Hello foobear! ". If you require an exact match, you need to find the...

...need to do it yourself, for example by using collect_hash: my_keys = %w[ foo bar baz ] my_cookies = my_keys.collect_hash { |key| [ key, cookies[key...

...name', :dir => 'asc' } ) you can fix this by using params.merge {:my_param_to_overwrite => 'foo' }. To fix the example above the code could look like: url_for( params.merge { :order => 'name...

Back in the old days, we couldn't do something like that: .foo { position: absolute; bottom: 0; /* This was bad: */ left: 10px; right: 10px; } Why? Because IE5 and IE6 (which...

...in-place batch processing with plain ruby? The following script will in-place replace "foo" with "bar" in all files you feed it. Call it with ./my_script path/to/my/files/*

The step definition below lets you write: When I click on "Foo" This is useful in Selenium features where the element you click on is not necessarily a link or...

...an unsafe string to get the escaping love from Rails: embed = javascript_tag('var foo = 1337;') # This is an html_safe SafeBuffer embed.to_str # This is a plain, unsafe String

The step definition below lets you say: Then I should see the text "foo" You should not look too closely at the step definition because when you see the...

...step definition below allows you to write: Then I should see a link labeled "Foo" But I should not see a link labeled "Bar" Webrat Then /^I should( not)? see...

...within but prefer the attached "inside any" Cucumber steps like these: When I follow "Foo" inside any "table" Then I should see "Bar" inside any "li...