You can say: $(element).is(':visible') and $(element).is(':hidden') jQuery considers an element to be visible if it...

We're adding a script console-for to open a remote Rails console with one command. Also have a look...

The step definition below allows you to write: Then I should see a link labeled "Foo" But I should not...

makandra dev
martinfowler.com

A common question in IT departments is whether to provide a capability by building custom software or by buying a...

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

To test if you can connect to a host using password authentication and explicitly deny public key authentication:

Here is how to switch your Selenium to Chrome: Make sure you've got a recent version of chromedriver in...

If you stub a method or set expectations with should_receive these stubbed methods may also yield blocks. This is...

In order to rename your Ubuntu box, replace all occurences of the the old name in the following two files...

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

Ever wondered if there is a reverse for Rails' .each(&:to_s) idiom? Turns out there is... You probably already...

apidock.com

This is somewhat similar to the touch command of Linux: FileUtils.touch 'example.txt', :mtime => Time.now - 2.hours If you omit the :mtime...

To obtain a list of Passenger processes with their application directories and memory usages, you can say sudo passenger-memory...

When some of your Google contacts are no longer synchronized with your e-mail client or mobile phone, those contacts...

Sometimes, when running a rake task, RubyGems 1.8.5 raises an error: rake aborted! undefined method `specifications' for "/usr/lib/ruby/gems/1.8":String

makandra dev

If you have to build a filename (e.g. for use in downloads) that contains user input, keep in mind that...

My RubyMine (and it seems like many other Java GUI applications) crashes the Compiz window decorator almost every time on...

makandra dev
gist.github.com

When you encouter an unsafe string that you actually made html_safe before, perhaps you called one of the following...

Consider the following: describe '#something' do context 'with lots of required arguments' do it 'should work' do subject.something(:foo => 'foo...

makandra dev

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

If you are connected with a network that forbids e-mail traffic but allows SSH, you can tunnel your e...

37signals.com

We recently added custom fields to Highrise which allow you to keep track of extra details beyond standard contact information...

jwz.org

An ancient essay on software design that, after 20 years, should still guide you for every line of code you...

dehora.net

All you need to know about the rise and fall of programming languages. Not really related to the worse is...