In order to clone a git repository including all branches and tags you need to use two parameters when cloning...

Sometimes you want git to ignore certain files that appear on your machine. You can do this in 3 ways...

makandra dev

git shortlog -s -n [commit-range] -n, --numbered Sort output according to the number of commits per author

We have often felt the pain where our models need to serve too many masters. E.g. we are adding a...

When you want to do a git diff but do not care about the full diff and just want to...

Create a directory mkdir ~/.aws Initialise git repository cd ~/.aws && git init Create a git branch with a name you...

You probably haven't configured version control for your project. Go to Project Settings / Version Control and set the director...

tl;dr: Ruby's Bundler environment is passed on to system calls, which may not be what you may want...

github.com

When using the json gem, you might run into this error when using JSON.parse: >> json = 'foo'.to_json >> JSON.parse(json...

browserhacks.com

The linked site lists a wealth of CSS hacks that let you apply styles to just that one browser. You...

robots.thoughtbot.com

Guide how to make fixes in other people's GitHub repositories. It's basically "Open Source Development 101".

makandra dev

Sometimes it seems a favicon does not work because your browser displays an old version or (in case of local...

Given you use Capistrano together with bundler to automatically install your gems when deploying. I recently had the problem that...

So you want to know if you are on natty, precise, quantal, or something else? Check /etc/lsb-release. $ cat /etc/lsb-release

github.com

MongoMapper is a MongoDB adapter for Ruby. We've forked it so it works for Rails 2.3.x applications running...

makandra dev

JavaScripts and CSS should be minified for production use. In Rails 3.1+ the asset pipeline will take care of this...

If you need to capture signatures on an IPad or similar device, you can use Thomas J Bradley's excellent...

So you're using multiple remotes that offer the same branch? $ git branch -a | grep my-branch remotes/something/my-branch remotes/origin/my-branch

You either have an old version of Mocha and an edge version of Rails 3.2, or you have a new...

makandra dev
github.com

Stringex is a gem that offers some extensions to Ruby's String class. Ruby 1.9 compatible, and knows its way...

makandra dev
github.com

UnicodeUtils implements Unicode algorithms for case conversion, normalization, text segmentation and more in pure Ruby code.

RVM needs to be updated regularly to know of Ruby versions released since installation (or last update).

In our continued quest to extract proven code snippets from makandropedia into tested and upgradable gems, we have released Edge...