Skip to main content

Posts

Showing posts from September, 2010

Deals You Can't Miss

1 Year Subscription

Ruby and Rails FAQ(s)

Knowing these stuff will be handy when in need and so do I post them here. If you think of (m)any stuff that should be helpful please do add them/it through comments to this post and I shall add them/it to my list of FAQs sooner. How to find the current version of Ruby installed? $ruby -v or   $ruby --version How to find the current version of RubyGem installed? $gem -v or   $gem --version How to find the current version of Rails installed? $rails -v  or    $ rails --version How to find environment information of RubyGems? $gem env How to update the current version of Rails installed? $sudo gem update rails How to install rails and its dependencies? $sudo gem install rails --include-dependencies How to find the list of plugins installed as part of gem in use? $gem list --local [More to come...] Books I follow(ed) for Ruby are:     Books I follow(ed) for Rails:              

Problem Updating Ruby Gem

Post the release of rubygems-update 1.3.6, I wanted to upgrade mine to it. I'm using Ubuntu and followed the steps given in Ruby Forum Link  to install it. And here goes my story and how I trouble shot it... I ran the command $sudo gem update only to get the message " Nothing to update ". Trouble! The above mentioned link that I was following to resolve states that I should be having an older version of RubyGems and so will have to go by the two step installation process and those being $sudo gem install rubygems-update and $update_rubygems Thankfully, $sudo gem install rubygems-update  worked fine but then I had a problem with  $update_rubygems. Trouble again! Now it is time to do this manually by going to the directory where gems is installed in the system and run the update_rubygems script manually. Where is this magic directory and how did I do it? In my case it was like running through the commands $cd /var/lib/gems/1.8/bin and $sudo ./update_rubygems Wit

SVN FAQ(s)

An avid reader I am, I encourage you to read at least a book on every technology you put to use to in your project(s). Also, it is indeed a good practice to keep reading QnA forums like in http://stackoverflow.com/questions/. My favourite book for SVN (subversion) is  Pragmatic Guide to Subversion . So here we go with our list of FAQs in SVN. Should you like to add solutions to the problems you have had faced in this page, I encourage you to please use the comments section of this page. I shall sooner or later add it to the list of "Question and Answers" that we have for SVN, below. How to get the list of files that become a part of a particular commit in SVN repository? <br/> For every commit to svn, the repo generates a REVISION number. Using this revision number, we can fire the following command to get the list of files svn log -qvr <revision> (Also, read stackoverflow.com  for more details) How to find the difference in file content between two revisi