Consider you have a website vhost listening to www.example.com, redirecting all incoming requests that do not talk about the configured...

github.com

ExecJS lets you run JavaScript code from Ruby. It automatically picks the best runtime available to evaluate your JavaScript program...

makandra dev

Here is a way to create a duplicate of one database, with all its tables and their data, under a...

If your application raises an error like ... Couldn't connect to the Solr server at http://127.0.0.1:8983/solr. 500 "Lock...

You can use fold: fold -sw 60 You can now paste your texts. fold will echo them back, word-wrapped...

In order to open a Nautilus window in your terminal's working directory, you can say: nautilus .

The state_machine gem comes with a rake task that lets you generate PNG graphs from any model using state...

If you get an error "Adress already in use" with autossh check with lsof or netstat if something already listen...

Whenever Firefox updates, all your Cucumber features that use Selenium break. This is annoying. In order to remedy this, version...

github.com

If you have different users for different servers, don't use set :user. Encode the username into the server definition...

You can create a Regexp object from existing Regexp objects by using the interpolation syntax you know from strings:

Selenium does not speak SSL because it uses WEBrick that doesn't. When you use Selenium for Cucumber scenarios that...

Observed on Rails 2.3 and machinist 1.0.6 Like the title says, when you define the method empty? like in the...

When you don't know which options are available, but need to have an option selected, use this step.

There is a bug in Rails 3's dbconsole script, which makes the following command open a database console for...

There are many blog posts on encrypting backups, but none works for local drives. #How to Encrypt the external backup...

github.com

Microsoft provides virtual machine disk images to facilitate website testing in multiple versions of IE, regardless of the host operating...

Did you check Copy to Projects Asset as...

...and there is an existing file with the same name in your...

stackoverflow.com

These methods are available to you: page.driver.browser.switch_to.alert.accept page.driver.browser.switch_to.alert.dismiss page.driver.browser.switch_to.alert.text # the confirmation text Spreewald gives you steps like these:

Remember how Rails 2 came with an awesome feature that broke all code using Time.now or Time.parse? This behavior is...

Simple: Tell the application controller how to handle exceptions, here a RecordNotFound error. Do this with the following line: # application_controller.rb...

github.com

Grit gives you object oriented read/write access to Git repositories via Ruby.

Ever wondered how Rails talks to itself in a Cucumber feature? In Rails 3 you can do it like this...

If you have a time given in a different time zone than your local one, parsing will convert it for...