Thursday, June 17, 2010

ROR Refrences

  • Railscasts: Excellent free Rails screencasts
  • PeepCode, Pragmatic.tv, EnvyCasts: Excellent commercial screencasters
  • Rails Guides: Good topical and up-to-date Rails references. Rails Tutorial refers frequently to the Rails Guides for more in-depth treatment of specific topics.
  • Rails blogs: Too many to list, but there are tons of good ones

Wednesday, June 16, 2010

what is RAKE

Rake is a build language, similar in purpose to make and ant. Like make and ant it's a Domain Specific Language, unlike those two it's an internal DSL programmed in the Ruby language.Rake is written in Ruby and heavily uses the language.

The basic idea of a domain specific language (DSL) is a computer language that's targeted to a particular kind of problem, rather than a general purpose language that's aimed at any kind of software problem.

namespace :kho do
desc "Hey"
task :sandeepa => [:clean, you can include multiple depedency ] do
puts "Hello world"
end
end


For detail please visit
http://martinfowler.com/articles/rake.html

Tuesday, June 15, 2010

SOME USEFUL LINUX COMMANDS

Look at all the running ports and processes in ubuntu
sudo netstat -ltp

get a list of all packages installed in your ubuntu machine in a file
dpkg --get-selections > installed-software

On any new machine perform following commands
dpkg --set-selections < installed-software
apt-get -u dselect-upgrade

Monday, June 14, 2010

How to install chrome in ubuntu

Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all Internet users to experience the web. The Chromium codebase is the basis for Google’s Chrome browser.

First you need to edit the /etc/apt/sources.list file

sudo gedit /etc/apt/sources.list

Add one of the following

For ubuntu 9.10 (armic) Users add the following two lines

deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main
deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main

For ubuntu 9.04 (Jaunty) Users add the following two lines

deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu jaunty main

For ubuntu 8.10 (Intrepid) Users add the following two lines

deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu intrepid main
deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu intrepid main

Save and exit the file

Now add the GPG key using the following command

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xfbef0d696de1c72ba5a835fe5a9bf3bb4e5e17b5

Update the source list using the following command

sudo apt-get update

Install chromium using the following command

sudo apt-get install chromium-browser

Using Chromium

You can open chromium from Applications--->Internet--->Chromium Web Browser