Because your examples should not change global state, you should not need to care about the order in which RSpec...

I encountered a bug in RSpec 1.x where stubbed class methods ("static methods") would not be unstubbed before the...

makandra dev

When you have a hook in your Capistrano file that dumps your remote database, you might not want it to...

superuser.com

Ubuntu natty introduced new "invisible" scrollbars for GTK programs such as gEdit or Nautilus. If you do not like them...

In order to request a SSL certificate from any dealer, you usually need a CSR certificate. As both the CSR...

This snippet makes links that refer to an anchor (like "...

...") scroll softly to it.\ In this example we only do...

damieng.com

Very nice font for programming.

Copy the attached Ruby code to config/initializers, or paste it into your IRB console. You can now dump any two...

Put the attached file into config/initializers/ to be able to say created_within on any ActiveRecord or its scope chain...

blog.jayfields.com

Deprecated ways to execute shell code in Ruby This is just a reference for legacy code. For new code, always...

When your cucumber features grow massively over time, the test execution can take a lot of time.

howtogeek.com

One of the more controversial changes in the Ubuntu 10.04 beta is the Mac OS-inspired change to have window...

Soon after having written our shell-for script, we wanted to easily get dumps of our productions machines, too. This...

makandra dev
github.com

After having written useful scripts into makandra notes for a long time, we’ve now tied them into a powerful...

Since May 2011 we are cutting new gems using Bundler, which is less painful than cutting gems using Jeweler. You...

Capybara allows you to select DOM elements, e.g. by using field, find_field(...) or field_labeled(...): role_select = field_labeled...

weblog.rubyonrails.org

Asset pipeline, HTTP streaming, jQuery as default framework, auto-reversable migrations, identity map for ActiveRecord. Ruby 1.8.x support will...

Today I needed to execute a ruby gem executable with sudo. But, surprisingly, bash would tell me command not found...

Although regular expression syntax is 99% interchangeable between languages, keep this in mind: By default, the dot character (".") does not...

We recently decided to put static content for HouseTrip.com to Amazon Cloudfront for a faster user experience. This happens fully...

makandra dev

To set the hostname of your Mac, run the following command in Terminal: sudo scutil --set HostName my-new-hostname.local

makandra dev

Validations that need to access an associated object may lead to some trouble. Let's exemplify that using this example...

Occasionally you need to do something directly on the server -- like having all records recalculate something that cannot be done...

Ruby comes with a class BigDecimal which you can use for arbitrary precision arithmetic. You should use BigDecimal instead of...