With gem dependency it is possible to check the dependencies for your gem before you install it.
Regular expressions can have something called "zero-width look-behind assertions". This means that you want a pattern to be...
When you double-tap a string of text on an iPhone or iPad a complicated context menu for copying and...
When you generate a URL in a mailer view, ActionMailer will raise an error unless you previously configured it which...
First option is to install it with your package manager: apt-get install vim-puppet vim-addons install puppet
Install Ruby from the Ubuntu repository: sudo apt-get install ruby ruby-dev \ ruby is the meta package. If you...
cpulimit is a simple program which attempts to limit the cpu usage of a process (expressed in percentage, not in...
I've recently encountered a weird problem with specs making lots of SOLR queries using the acts_as_solr plugin...
Here are some popular mistakes when using nested forms: You are using fields_for instead of form.fields_for.
Thunderbird 5 brings a custom chrome on Windows Vista/7 that uses translucent Aero decorations on toolbars and menubars. Here is...
If you need to parse a large XML file (> 20 MB or so), you should parse it in chunks, otherwise...
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.
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...
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...
This is somewhat similar to the touch command of Linux: FileUtils.touch 'example.txt', :mtime => Time.now - 2.hours If you omit the :mtime...