This is called "cherry-picking". git cherry-pick commit-sha1 Note that since branches are nothing but commit pointers, cherry...
To delete a local branch git branch -d the_local_branch To remove a remote branch (if you know what...
Reverting a commit means creating a new commit that undoes the old changes. Imagine the following commit history:
YARD 0.6 adds the ability to serve documentation for gems as well as the current project with yard server. Just...
Ruport’s acts_as_reportable module provides support for using ActiveRecord for data collection. You can use it to get...
When doing a query like this: SELECT id FROM users WHERE (users.id IN (899,1084,1095,100,2424,2429,2420...
Rails 3.0 has been underway for a good two years, so it’s with immense pleasure that we can declare...
An alternative to this technique is using VCR. VCR allows you to record and replay real HTTP responses, saving you...
PaintbrushJS is a lightweight, browser-based image processing library that can apply various visual filters to images within a web...
DENVER--(BUSINESS WIRE)--MPEG LA announced today that its AVC Patent Portfolio License will continue not to charge royalties for...
This will tunnel HTTP requests to one given domain and port through an intermediary SSH server: ssh -L 8080:targethost...
Open the configuration file: gksudo gedit /usr/share/vte/termcap/xterm Find a line like this: :co#80:it#8:li#24:\
Ubuntu lets you mount an SSH shell into Nautilus from Places -> Connect to server (select "SSH" as server type).
Screen is great for long running tasks, where you want to log in every few hours and days and keep...
In a nutshell: to avoid your shell character set from messing with imports, use -r to export and SOURCE when...
ALTER DATABASE database_name CHARACTER SET "utf8"; ALTER DATABASE database_name COLLATE "utf8_unicode_ci"; After that, for...
When you get this while installing the raspell gem: ERROR: Error installing raspell: ERROR: Failed to build gem native extension...
For example, to send a form and populate a preview div with the response. $('content_form').request({ parameters: { 'preview': "1...
Increasingly web application developers and entrepreneurs are turning to the “Software As A Service” (SaaS) model to monetize their products...
A fake filesystem. Use it in your tests.
Ancestry is a gem/plugin that allows the records of a Ruby on Rails ActiveRecord model to be organised as a...
In Webkit you can use the HTML5-attribute autofocus: = form.text_field :title, :autofocus => 'autofocus' Here is a jQuery fallback for...
This may be awkward to set up, but will work once you're done. Fun facts:
Unless all MySQL server defaults are set to UTF-8, mysqldump encodes UTF-8 characters incorrectly and only outputs correct...