Note: If you are currently working with Ruby 1.8.7 or 1.9.3, we recommend to upgrade to Ruby 2.1 first. From...

In Rails 2, you could use link_to_remote...

...:update => 'id' to automatically replace the content of $('#id').

This finally works: User.any_instance.should_receive(…) as does User.any_instance.stub(…) Note: You won't have RSpec 2.6 if you're still working...

Sometimes you need a file of some size (possibly for testing purposes). On Linux, you can use dd to create...

Note: Consider using MATE instead of Gnome 3 on newer system Awesome is a very good tiling window manager that...

When you generate a URL in a mailer view, ActionMailer will raise an error unless you previously configured it which...

The first thing to do with any new U2410 should be to disable the incredibly annoying beep when pressing any...

When you render a nested form for a Movie which has_many :actors, you want to render the right number...

In shell scripts you can use $1 to refer to the first argument, $2 for the second, etc. If you...

makandra dev

This card explains how to upgrade an existing RubyMine installation to a newer version. If you're installing RubyMine for...

When rendering a number, you want to pretty up the string coming from #to_s: Render 0.0 as 0

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...

geordi, our collection of awesome shell scripts, has been extended by three scripts to help you call RSpec or Cucumber...

makandra dev

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

For Email-Patterns see most recent E-Mail-Pattern. HOST = /\A[a-z0-9]+[a-z0-9\-\.]*[a-z0-9...

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

crazylittlehacks.blogspot.com

I found a nice script on crazylittlehacks and modified it slightly. Put the attachment to /usr/local/bin, chmod +x and run...

makandra dev

If you want to enforce soft tabs (spaces instead of tabstops) in Vim put this into your ~/.vimrc (Linux) or...

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...

makandra dev

This card shows you how to center a float horizontally in CSS. Also: find out what techniques are available for...

makandra dev

You know that you can collect an array as groups using in_groups or in_groups_of. Maybe you want...

makandra dev

If you want to play music or sounds from a browser, your choice is to use either Flash or the...