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

sudo apt-get install sqlite3 libsqlite3-dev sudo gem install sqlite3-ruby

You probably need to activate X-Sendfile.

makandra dev

If you are exchanging files with a client via Dropbox you do not need to access the Web page every...

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 want to have an English Ubuntu UI, but still see dates, money amounts, paper formats, etc. in German...

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

makandra dev
mysqltuner.pl

This Perl script will run diagnostics on your MySQL database and recommend changes to your MySQL configuration.

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

If you need Google Chrome to run in English, and your system locale is a non-English one, you have...

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

If you want to use a helper_method my_helper_method inside a model, you can write ApplicationController.helpers.my_helper...

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

github.com

When CoffeeScript was added to Rails 3.1 they forgot one very important part, the ability to use it when responding...

richfrog.curzons.net

Get "PuTTY Link" and "Pageant" (an SSH key agent) from the PuTTY download page. Run pageant.exe, find its icon inside...

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