copy blocking


Thursday, January 19, 2012

how to install ruby & rvm on Ubuntu 10.04 LTS

How to install Ruby & RVM on a fresh Ubuntu 10.04
-------------------------------------------------
-- Get a new VM Ubuntu 10.04, make sure no ruby is installed.
sudo apt-get update
which ruby  -- should yield no results.
sudo apt-get -qyy install curl git-core ruby
-- use sudo if you install it as root (so available to all users by default, I didn't test it myself)
##sudo bash < <(curl -s stable https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
bash < <(curl -s stable https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
-- You need to replace the line that says
[ -z "$PS1" ] && return
-- with
if [[ -n "$PS1" ]]; then
-- Now add this to the last line of the file
if [[ -s $HOME/.rvm/scripts/rvm ]] ; then source $HOME/.rvm/scripts/rvm ; fi
fi
-- then run bashrc file
. .bashrc
rvm notes
sudo apt-get -qyy install build-essential bison openssl libreadline5 libreadline-dev curl git-core zlib1g zlib1g-dev libssl-dev vim libsqlite3-0 libsqlite3-dev sqlite3 libreadline-dev libxml2-dev git-core subversion autoconf
rvm list known
rvm install 1.9.2-p180
rvm --default 1.9.2-p180
ruby -v

Now install mongo gem
----------------------------
-- make sure you install rvm, ruby
gem update system
gem install mongo
gem install bson_ext


What is mac equivalent of windows alt+tab, to go through ALL opened windows

'Alt + tab' in windows = 'cmd + ~' in mac. 
Let say you have 3 Firefox browser windows opened. You need to still use 'Alt + tab' to arrive at one of the Firefox browser window and then start pressing 'cmd + ~ '.

I recently started using Mac and one of the feature I really wished that existed in mac was ability to bring up any opened window I want. I searched over internet, but not found anywhere. But accidentally found this. I always wonder why not Apple publish a simple cheat sheet with such short cuts?