github.com

delocalize provides localized date/time and number parsing functionality for Rails.

makandra dev

First of all: You could just use RVM which would make the pain go away. If for some reason you...

github.com

This gem is designed to provide CSS views to Rails, and a process to concatenate and minify these files to...

Expiration of Rails sessions By default Rails sessions expire when the user closes her browser window. To change this edit...

makandra dev

Since RubyMine 3.1 you can drag tabs across panes/windows and out of the main window to create new windows.

makandra dev

sudo apt-get install i8kutils Reboot You can now run the i8k tools such as i8kmon Setting the fan speed...

Call with the server's hostname (and user if you have no SSH agent), e.g. install-gems-remotely my.server.com

There will probably be better solutions as we become more experienced with using Bundler, and more command line tools become...

makandra dev

If you added a file by mistake, you can unstage it (but keep local changes) by saying git reset HEAD...

makandra dev

Update RubyGems and Passenger Bundler requires Rubygems >= 1.3.6. Run gem update --system if you have an older version.

Sometimes you want to fetch associations for an ActiveRecord that you already loaded, e.g. when it has deeply nested associations...

makandra dev
github.com

There are three ways to define your own RSpec matchers, with increasing complexibility and options: 1) Use RSpec::Matchers.define

Sometimes files attain executable-flags that they do not need, e.g. when your Windows VM copies them over a Samba...

When you create e.g. a sidebar box that contains headlines and paragraphs, the final paragraph's margin in that box...

github.com

the best damn presentation software a developer could ever love

github.com

jamesgolick / resource_controller at Github module ResourceController module Actions def index load_collection before :index response_for :index end

The Git stash does not work like a one-slot clipboard and you might shoot yourself in the foot if...

makandra dev
github.com

Our awesome collection of rspec helpers (formerly known as "spec_candy.rb") is now available as a gem. It works, it is...

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

makandra dev
stackoverflow.com

Reverting a commit means creating a new commit that undoes the old changes. Imagine the following commit history:

github.com

PaintbrushJS is a lightweight, browser-based image processing library that can apply various visual filters to images within a web...

github.com

home_run is an implementation of ruby’s Date/DateTime classes in C, with much better performance (20-200x) than...