...Firefox: Right-click on the site, open 'Web Developer -> Cookies -> View cookie information) In order to see which cookies are really necessary, delete all cookies, reload the page, log into...
The following command will ignore any comments or environment variables, and order rows by their hour (k2) and minute (k1). Note how numbers are ordered naturally...
end end You can also combine and_yield with and_return. Mind the order: item = stub('a block') subject.should_receive(:something).and_yield(item).and_return 'result' Yielding multiple...
...this behaivour yet, but I think it has something to do with the start order of the nova services. (When nova-network isn't present at nova-compute startup, no...
jquery.simulate.js jquery.simulate.ext.js jquery.simulate.drag-n-drop.js from jquery.simulate.ext above Require those files in that order in a separate JS file that is only loaded for tests. Then just do something...
...common use case of CarrierWave's DSL is to "process" the original file in order to create multiple "versions", for example different resolutions of the same image.
...lock to a file, and if it can do so running a command. In order not to wait but simply give up when the file is locked, you can add...
...MySQL connection. Apparently this happens when there is a timeout during query execution. In order to fix this you can reconnect to your db. Therefore either add reconnect: true to...
In order to keep the controllers directory tidy, we recently started to namespace controllers. With the :controller option you can tell Rails which controller to use for a path or...
do_something_else and do_something are executed before validation in exactly this order ResourceController - here you have to be careful class PostController include ResourceController::Controller does 'post_controller/behavior...
You can configure a Ubuntu system as a gateway in order to share it's internet connection (maybe via WLAN or tethering) with other computers on the network.
...are not the same, the browser shows scrollbars. var hasScrollbars = element.scrollHeight != element.offsetHeight; So, in order to say something like... Then the element "#dialog_content" should not have scrollbars
...object like a hash (i.e. JSONObject) or array. How to fix it So, in order to fix that, use a valid object to build JSON from, e.g. an array:
...of a single process might be removed from memory and put into Swap. In order to find out which processes remain within Swap, run this: sudo grep VmSwap /proc/*/status...
...remote server. Now the server is temporarily not available and raises an exception. In order to re-send the request you could use the following snippet: def remote_request
...with that name (a virtual attribute terms_with_typo will be defined automatically). In order to be safe, a Cucumber scenario should ensure that the box needs to be checked...
...you do not have a reference to the object you want to inspect. In order to record a macro you simply follow the path Edit > Macros > Start Macro Recording.
...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)
...should not be checked inside the 1. iframe And I should see in this order within the breadcrumb inside the 1. iframe: """ Files Alpha """ However, if you have to perform...
...the radio button "sample.pdf" should not be checked And I should see in this order within the breadcrumb: """ Files Alpha """ When the iframe is removed from the DOM the driver...
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...