makandra dev

This will reduce the filesize of foo and bar to 0 bytes: truncate -s0 foo bar If the files do...

We are consistently having trouble with selenium-webdriver > 2.5.0 where whenever we try to select an option from a Capybara...

stackoverflow.com

Most likely you run rake and your code is causing an exception which is not the one shown in your...

whatsmydns.net

whatsmydns.net is an online service that allows you to instantly perform a DNS lookup to check a hostnames current IP...

When you put a Rake task into lib/tasks, but running it fails with... Don't know how to build task...

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

makandra dev

We forked craken today and fixed one of the issues we had with new (>0.8.7) rake versions. The craken:install...

makandra dev

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

mislav.uniqpath.com

Random list of useful git commands for advanced users. I found some of them useful.

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

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

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

github.com

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

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:

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

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

social.technet.microsoft.com

Let's say you have an Explorer window showing a directory and want a cmd terminal to be opened there...

When writing a piece of reusable code, you sometimes need to have separate code for Rails 2 and Rails 3...

If you have any class which requires access to some path methods generated by your routes. Even though you could...

DeaDBeeF is one of the better music players for Linux. You can find installation instructions here.

While it might seem trivial to implement an invoice that sums up items and shows net, gross and vat totals...

You've been there: A form cannot be submitted, but you don't see a validation error because the field...

Calling Time#utc, Time#gmt or Time#localtime will not create a converted copy. Instead these methods modify the receiving...

Note that converting from RGB to CMYK will usually degrade your colors because no exact mapping is possible. Anyway, this...