<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-446793244649514579</id><updated>2012-02-17T06:02:45.835+05:30</updated><category term='init'/><category term='git stash'/><category term='git'/><category term='svn'/><title type='text'>Doel</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://doelsengupta.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://doelsengupta.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>doel sengupta</name><uri>https://profiles.google.com/104422326542052861520</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-liWYhxaf9iI/AAAAAAAAAAI/AAAAAAAAAAA/Y1IwnYbE0Yc/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>23</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-446793244649514579.post-1770944386533795940</id><published>2012-02-07T13:18:00.002+05:30</published><updated>2012-02-07T13:21:32.138+05:30</updated><title type='text'>Permission denied . fatal: The remote end hung up unexpectedly</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: Times, 'Times New Roman', serif;"&gt;You must have encountered this error, while connecting to github after you have generated the ssh keys.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Times, 'Times New Roman', serif;"&gt;Some key points to check for this error.&lt;/span&gt;&lt;br /&gt;&lt;ol style="background-color: rgba(255, 255, 255, 0.917969); color: #222222; text-align: -webkit-auto;"&gt;&lt;li style="margin-left: 15px;"&gt;&lt;span style="font-family: Times, 'Times New Roman', serif;"&gt;Check the content of the id_rsa.pub file in your system, that should match with the ssh keys in your github account. Copy the content of the&amp;nbsp;&amp;nbsp;id_rsa.pub file and paste it your github account settings page.&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/account/ssh"&gt;https://github.com/account/ssh&lt;/a&gt;&lt;/li&gt;&lt;li style="margin-left: 15px;"&gt;&lt;span style="font-family: Times, 'Times New Roman', serif;"&gt;If still not working, check whether the port 22 is opened/blocked from your system, as that was the issue in my case, it was blocked.&lt;/span&gt;&lt;/li&gt;&lt;li style="margin-left: 15px;"&gt;&lt;a href="http://nixcraft.com/getting-started-tutorials/622-windows-how-do-i-tell-if-tcp-network-port-open-not.html" target="_blank"&gt;&lt;span style="font-family: Times, 'Times New Roman', serif;"&gt;Check status of port in Windows&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li style="margin-left: 15px;"&gt;&lt;span style="font-family: Times, 'Times New Roman', serif;"&gt;Open the port 22, if its blocked.&amp;nbsp;&amp;nbsp;Use the command :&amp;nbsp;&lt;span style="background-color: white; text-align: left;"&gt;&lt;u style="font-style: italic;"&gt;netsh firewall add portopening TCP 22 SSH enable subnet&lt;/u&gt;. Refer &lt;a href="http://wpkg.org/Configuring_Windows_XP_firewall" target="_blank"&gt;here&lt;/a&gt; for details about configuring Windows firewall.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="margin-left: 15px;"&gt;&lt;span style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;span style="color: #222222;"&gt;If still not working,&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;a href="http://help.github.com/win-set-up-git/" target="_blank"&gt;generate new ssh keys&lt;/a&gt;.&lt;/span&gt;&lt;/li&gt;&lt;li style="margin-left: 15px;"&gt;&lt;span style="font-family: Times, 'Times New Roman', serif;"&gt;Try cloning from git, it should work :)&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/446793244649514579-1770944386533795940?l=doelsengupta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://doelsengupta.blogspot.com/feeds/1770944386533795940/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://doelsengupta.blogspot.com/2012/02/permission-denied-fatal-remote-end-hung.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/1770944386533795940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/1770944386533795940'/><link rel='alternate' type='text/html' href='http://doelsengupta.blogspot.com/2012/02/permission-denied-fatal-remote-end-hung.html' title='Permission denied &lt;publickey,keyboard-interactive&gt;. fatal: The remote end hung up unexpectedly'/><author><name>doel sengupta</name><uri>https://profiles.google.com/104422326542052861520</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-liWYhxaf9iI/AAAAAAAAAAI/AAAAAAAAAAA/Y1IwnYbE0Yc/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-446793244649514579.post-2998253966545297809</id><published>2012-01-06T16:02:00.000+05:30</published><updated>2012-01-10T15:19:55.250+05:30</updated><title type='text'>Deploying ruby on rails(3.1) app to Heroku and their issues</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: left;"&gt;I am working on a rails 3.1 app and lately was trying to depoy the code in Heroku. Heroku has excellent tutorials for the same, but you can encounter some issues which are out of the scope to predict that, for Heroku &amp;nbsp;or anyone as it lies with your system. Same was the case with my system. I am trying to enlist such issues...don't give up hope I know there are plethora of others..try googling them or adding them here in the comments :)&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;ol style="text-align: left;"&gt;&lt;li&gt;&lt;b style="font-style: italic; text-decoration: underline;"&gt;Fatal error, port 22 can't connect to the mentioned url:&lt;/b&gt;&amp;nbsp;The error is caused as port 22 of your machine is blocked. You maybe behind a firewall or using a secure connection (like vpn) to connect to the network. Please disconnect vpn to connect to heroku or check your firewall settings and even if that doesn't work ask the infrastructure team to unblock the port 22. This may appear while pushing your changes to github repository too.&lt;/li&gt;&lt;li&gt;&lt;i style="font-weight: bold; text-decoration: underline;"&gt;permission-denied-publickey-when-deploying-heroku-code-fatal-the-remote-end: &lt;/i&gt;&amp;nbsp;I found the solution from &lt;a href="http://stackoverflow.com/questions/4269922/permission-denied-publickey-when-deploying-heroku-code-fatal-the-remote-end" target="_blank"&gt;stack overflow&lt;/a&gt;. It is not able to find the keys in heroku, try uploading those to the Heroku site using the following command from the application directory from the command prompt.&amp;nbsp;&lt;span style="background-color: #eeeeee; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; line-height: 18px;"&gt;heroku keys:add ~/.ssh/id_rsa.pub&lt;/span&gt;&amp;nbsp;&lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;u&gt;&lt;i&gt;Assets are not precompiled&lt;/i&gt;&lt;/u&gt;&lt;/b&gt;&amp;nbsp;: Either you can refer to the &lt;a href="http://devcenter.heroku.com/articles/rails31_heroku_cedar" target="_blank"&gt;Heroku site&amp;nbsp;&lt;/a&gt;&amp;nbsp;or execute the steps in sequence. &lt;br /&gt;(i) Add a production block in the database.yml &lt;br /&gt;(ii) precompile the assets in your local with the following command &lt;i&gt;RAILS_ENV = production rake assets:precompile &lt;br /&gt;(&lt;/i&gt;iii) git add public/assets&lt;br /&gt;(iv) git commit -m " pre complied assets" &lt;br /&gt;(v) git push heroku master&lt;/li&gt;&lt;li&gt;&lt;u style="font-style: italic; font-weight: bold;"&gt;[remote rejected] master -&amp;gt; master (pre-receive hook declined) error: &lt;/u&gt;&amp;nbsp;This usually occurs after you &amp;nbsp;have added a new gem and trying to push the Gemfile without the Gemfile.lock being updated. The best way is to remove the Gemfile.lock,&lt;br /&gt;(i) &lt;i&gt;rm rf Gemfile.lock&lt;/i&gt; from the app dir&lt;br /&gt;(ii) &lt;i&gt;bundle install &lt;/i&gt;(this will create a new gemfile.lock)&lt;br /&gt;(iii) &lt;i&gt;git add .&amp;nbsp;&lt;/i&gt;(iv) &lt;i&gt;git commit -m "bundle"&amp;nbsp;&lt;/i&gt;(v) git push heroku master&lt;br /&gt;Refer to this &lt;a href="http://stackoverflow.com/questions/6740777/heroku-rejecting-push-in-mature-application-pre-receive-hook-declined" target="_blank"&gt;stack overflow issue&lt;/a&gt; for details.&amp;nbsp;&lt;/li&gt;&lt;li&gt;&lt;u style="font-style: italic; font-weight: bold;"&gt;Unable to install pg(posgre) gem in ubuntu: &lt;/u&gt;&amp;nbsp;To install &lt;b&gt;pg &lt;/b&gt;gem in ubuntu, apart from adding the gem in the bundler you need to first install the package for installation of the native extensions and the dependencies for the &lt;b&gt;pg &lt;/b&gt;gem.&lt;br /&gt;(i) From the root directory in ubuntu, install the package with this command&lt;br /&gt;&lt;i&gt;$ sudo apt-get install libpq-dev&lt;/i&gt;&lt;br /&gt;(ii) Add the &lt;b&gt;pg &lt;/b&gt;&amp;nbsp;gem in your Gemfile.&lt;br /&gt;(iii) bundle&lt;br /&gt;(iv) git add .&lt;br /&gt;(v) git commit -m "added pg gem for heroku deployment"&lt;br /&gt;(vi) git push heroku master&lt;/li&gt;&lt;li&gt;&lt;h2 class="content-title" style="background-color: white; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; color: #333333; margin-bottom: -10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;"&gt;&lt;span style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;&lt;u&gt;Sprockets::Helpers::RailsHelper::AssetPaths::AssetNotPrecompiledError:&lt;/u&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-size: 20px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: small; font-weight: normal;"&gt;To precompile assets and make them working in production(heroku url), add the assets to precompiled as string in production.rb file.&lt;br /&gt;(i) config.asset.precompile = %w(styles.css example.js)&lt;br /&gt;(ii)&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: small; font-weight: normal;"&gt;config.asset.precompile =&lt;/span&gt;&lt;span style="font-size: small; font-weight: normal;"&gt;&amp;nbsp;true&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;span style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;ol style="text-align: left;"&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/446793244649514579-2998253966545297809?l=doelsengupta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://doelsengupta.blogspot.com/feeds/2998253966545297809/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://doelsengupta.blogspot.com/2012/01/deploying-ruby-on-rails31-app-to-heroku.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/2998253966545297809'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/2998253966545297809'/><link rel='alternate' type='text/html' href='http://doelsengupta.blogspot.com/2012/01/deploying-ruby-on-rails31-app-to-heroku.html' title='Deploying ruby on rails(3.1) app to Heroku and their issues'/><author><name>doel sengupta</name><uri>https://profiles.google.com/104422326542052861520</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-liWYhxaf9iI/AAAAAAAAAAI/AAAAAAAAAAA/Y1IwnYbE0Yc/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-446793244649514579.post-2961197232967930446</id><published>2012-01-04T16:49:00.001+05:30</published><updated>2012-01-04T17:49:44.852+05:30</updated><title type='text'>Json, unable to build gem native extension error in windows</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;I am working in a rails 3.1 app. My Gemfile is not having any json gem version specified, still one of the gem is having a dependency in json, which was resulting in the error above, I have tried&lt;br /&gt;&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;a href="http://doelsengupta.blogspot.com/2010/10/unable-to-download-gem-with-native.html" target="_blank"&gt;Devkit&amp;nbsp;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;changing the Rubygems version&lt;/li&gt;&lt;li&gt;&lt;a href="http://puneetpandey.com/2011/02/dont-hesitate-to-try-out-new-things-in-ruby/" target="_blank"&gt;using ruby 1.8.7 and ruby 1.9.2 both, using pik&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;But neither of them worked in windows. Then I started my app in &lt;a href="http://mrails.blogspot.com/2011/08/ruby-on-rails-development-platform-in.html" target="_blank"&gt;VMware+ubuntu&lt;/a&gt; and it worked like miracle. So it's a windows issue try installing ubuntu with a virtual machine in your windows and start a hassle free coding in rails :)&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/446793244649514579-2961197232967930446?l=doelsengupta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://doelsengupta.blogspot.com/feeds/2961197232967930446/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://doelsengupta.blogspot.com/2012/01/json-unable-to-build-gem-native.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/2961197232967930446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/2961197232967930446'/><link rel='alternate' type='text/html' href='http://doelsengupta.blogspot.com/2012/01/json-unable-to-build-gem-native.html' title='Json, unable to build gem native extension error in windows'/><author><name>doel sengupta</name><uri>https://profiles.google.com/104422326542052861520</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-liWYhxaf9iI/AAAAAAAAAAI/AAAAAAAAAAA/Y1IwnYbE0Yc/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-446793244649514579.post-59044473835239842</id><published>2012-01-03T14:27:00.002+05:30</published><updated>2012-01-04T16:18:46.073+05:30</updated><title type='text'>Unpacked gem...in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: left;"&gt;When you have unpacked/localised a gem for an earlier version of rails (before rails 3 and the concept of bundler came in vogue), the specification file under the vendor/gems folder might be missing which gives the error in the title of the post. Don't have to panic, you can easily generate a specification file for the same.&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Go to the gem directory under the vendor/gems/ folder&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;ol style="text-align: left;"&gt;&lt;li&gt;cd vendor/gems/factory_girl_rails-1.0.1&lt;/li&gt;&lt;li&gt;gem specification factory_girl_rails &amp;gt; .specification [Don't specify the gem version while generating the specification file].&lt;/li&gt;&lt;li&gt;Or if you have to mention the version use the syntax below&lt;/li&gt;&lt;/ol&gt;gem specification factory_girl_rails -v 1.0.1 &amp;gt; .specification&lt;br /&gt;&lt;ol style="text-align: left;"&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/446793244649514579-59044473835239842?l=doelsengupta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://doelsengupta.blogspot.com/feeds/59044473835239842/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://doelsengupta.blogspot.com/2012/01/unpacked-gemin-vendorgems-has-no.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/59044473835239842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/59044473835239842'/><link rel='alternate' type='text/html' href='http://doelsengupta.blogspot.com/2012/01/unpacked-gemin-vendorgems-has-no.html' title='Unpacked gem...in vendor/gems has no specification file. Run &apos;rake gems:refresh_specs&apos; to fix this'/><author><name>doel sengupta</name><uri>https://profiles.google.com/104422326542052861520</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-liWYhxaf9iI/AAAAAAAAAAI/AAAAAAAAAAA/Y1IwnYbE0Yc/s512-c/photo.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-446793244649514579.post-2621934133665399553</id><published>2011-11-08T00:24:00.000+05:30</published><updated>2011-12-02T17:45:48.854+05:30</updated><title type='text'>VMware+ubuntu with Ruby on Rails</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: left;"&gt;Lately I have started using VMware with ubuntu on my Windows machine for faster and hassle free Ruby on Rails development. But nothing comes easy, there are pretty many things you need to take care of for this setup. You can follow the steps &lt;a href="http://mrails.blogspot.com/2011/08/ruby-on-rails-development-platform-in.html" target="_blank"&gt;here&lt;/a&gt;, preferably sequentially for the installation.&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;And I would love to add the things which I have faced while installation, setup and while running my RoR app here :)&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;ol style="text-align: left;"&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;wired connection error&lt;/b&gt;&lt;/span&gt;, unable to connect to INTERNET from the Virtual Machine. Mainly this is caused not only due to your internet connection/ speed but by a corrupted Virtual machine. refer &lt;a href="http://doelsengupta.blogspot.com/2011/11/wired-connection-error-in-vmware.html" target="_blank"&gt;here&lt;/a&gt; for detail. &lt;/li&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;&lt;b&gt;ERROR: Error running '/usr/bin/make install', please read /usr/share/ruby-rvm/log/zlib/make.install.log&lt;/b&gt;&lt;/i&gt;. &lt;/span&gt;&lt;span style="font-size: small;"&gt;This is mainly caused as you are &lt;b&gt;not &lt;/b&gt;executing the commands from the administrator mode. In order to do that, instead of doing &lt;/span&gt;&lt;span style="font-size: small;"&gt;$ rvm pkg install zlib &lt;i&gt;&lt;u&gt;&lt;b&gt;do &lt;/b&gt;&lt;/u&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;$sudo rvm package install zlib.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;&lt;b&gt;Nokogiri&lt;/b&gt;&lt;/i&gt; / ruby gems with native C extension failure. &lt;/span&gt;Refer &lt;a href="http://nokogiri.org/tutorials/installing_nokogiri.html" target="_blank"&gt;nokogiri site&lt;/a&gt; for details or follow the below commands for Ubuntu.&lt;br /&gt;Ubuntu doesn’t come with the Ruby development packages that are required for building gems with C extensions.Following are the commands for that.&lt;/li&gt;&lt;li&gt;&lt;pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;code&gt;# ruby developer packages&lt;br /&gt;sudo apt-get install ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 irb1.8&lt;br /&gt;sudo apt-get install libreadline-ruby1.8 libruby1.8 libopenssl-ruby&lt;br /&gt;&lt;br /&gt;# nokogiri requirements&lt;br /&gt;sudo apt-get install libxslt-dev libxml2-dev&lt;br /&gt;sudo gem install nokogiri&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;i&gt;Invalid gemspec:: invalid date format in specification:&lt;/i&gt;&amp;nbsp;&lt;/b&gt;error. For any of kind of such error you need to manually edit all the gemspec files which have this error. Look&amp;nbsp;&lt;a href="http://yoodey.com/solve-gem-invalid-gemspec-invalid-date-format-specification-ubuntu-oneiric-1110" target="_blank"&gt;here&lt;/a&gt;&amp;nbsp;for details. Otherwise simple change the date format to this&amp;nbsp;&lt;b&gt;s.date = %q{2011-08-31} .&amp;nbsp;&lt;/b&gt;For changing the file you may need the root permission, i.e&amp;nbsp;&lt;i&gt;$ sudo vi /path/filename.gemspec&lt;/i&gt;&amp;nbsp;will open the file in read-write mode.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;i&gt;Mysql:&amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: white; font-family: courier, monospace; font-size: 14px; white-space: pre-wrap;"&gt;sudo apt-get install mysql-server mysql-client&lt;/span&gt;&lt;pre style="background-color: white; border-bottom-color: rgb(193, 180, 150); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(193, 180, 150); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(193, 180, 150); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(193, 180, 150); border-top-style: dashed; border-top-width: 1px; font-family: courier, monospace; font-size: 14px; padding-bottom: 4pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; text-align: -webkit-auto; white-space: pre-wrap; word-wrap: break-word;"&gt;&lt;span class="anchor" id="line-2-9"&gt;&lt;/span&gt;sudo apt-get install libmysql-ruby libmysqlclient-dev&lt;br /&gt;&lt;span class="anchor" id="line-3-7"&gt;&lt;/span&gt;sudo gem install mysql&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;How to add mysql database related stuff :&lt;/span&gt;&lt;i&gt;&lt;b&gt;&amp;nbsp;[[ -s "/usr/share/ruby-rvm/scripts/rvm" ]] &amp;amp;&amp;amp; source "/usr/share/ruby-rvm/scripts/rvm"&lt;/b&gt;&lt;/i&gt;&lt;/li&gt;&lt;span style="font-size: small;"&gt;Remember to add the above lines in the .bashrc file. You can get the file from the root dir (in the terminal type &lt;i style="font-weight: bold;"&gt;cd&lt;/i&gt;..to go to your root dir), just type &lt;i&gt;sudo vi ~/.bashrc &lt;/i&gt;[for editing the file as a root user]&lt;/span&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;&lt;b style="font-style: italic;"&gt;How can I share folders/files in VMware: &lt;/b&gt;It is as simple as the screenshots below. But remember to have the VMware tools installed, which comes as default in the latest version though :)&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;a href="http://2.bp.blogspot.com/-j0_8uhhm0cM/TrkIUAH5cpI/AAAAAAAAIzc/Niuqd65fvu4/s1600/VMware_file_sharing_1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"&gt;&lt;img border="0" height="50" src="http://2.bp.blogspot.com/-j0_8uhhm0cM/TrkIUAH5cpI/AAAAAAAAIzc/Niuqd65fvu4/s400/VMware_file_sharing_1.jpg" width="400" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;ol style="text-align: left;"&gt;&lt;/ol&gt;&lt;ol style="text-align: left;"&gt;&lt;/ol&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-NxvxKoyKgjM/TrkJUXAXsBI/AAAAAAAAIzk/neK1Mhdj0nU/s1600/VMware_file_share_2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="274" src="http://2.bp.blogspot.com/-NxvxKoyKgjM/TrkJUXAXsBI/AAAAAAAAIzk/neK1Mhdj0nU/s320/VMware_file_share_2.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/446793244649514579-2621934133665399553?l=doelsengupta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://doelsengupta.blogspot.com/feeds/2621934133665399553/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://doelsengupta.blogspot.com/2011/11/vmwareubunturuby-on-rails.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/2621934133665399553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/2621934133665399553'/><link rel='alternate' type='text/html' href='http://doelsengupta.blogspot.com/2011/11/vmwareubunturuby-on-rails.html' title='VMware+ubuntu with Ruby on Rails'/><author><name>doel sengupta</name><uri>https://profiles.google.com/104422326542052861520</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-liWYhxaf9iI/AAAAAAAAAAI/AAAAAAAAAAA/Y1IwnYbE0Yc/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-j0_8uhhm0cM/TrkIUAH5cpI/AAAAAAAAIzc/Niuqd65fvu4/s72-c/VMware_file_sharing_1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-446793244649514579.post-2948322676269141363</id><published>2011-11-08T00:14:00.002+05:30</published><updated>2011-11-08T00:23:34.148+05:30</updated><title type='text'>wired connection error in Vmware</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;I am recently using VMware with ubuntu for my Ruby on Rails developmental purposes for it's faster. But lately I have faced a weird error after all the initial installations went fine. Whenever I was trying to connect to internet it was failing.&lt;br /&gt;I tries to trouble shoot a lot, ping-ing my host server, fixing the ip related files, reloading the VM updates, running the vm-config-ip tools and many other things from the online forums.&lt;br /&gt;Alas!! nothing worked.&lt;br /&gt;&lt;br /&gt;Then I re-installed the Vm-ware and created a new virtual machine and realised re-installation was not required.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Whenever you face such an issue, try creating a new virtual machine&lt;/b&gt;&lt;/u&gt;.&lt;br /&gt;&lt;br /&gt;You can delete the older one, as it takes a lot of space is you are using the softwares related to ruby0rvm, git, packages, gems and IDE, etc. All the virtual machines sre stored under the /Documents/ folder by default. You can just go ther and simple shift+delete the folder from there, which you are not using.&lt;br /&gt;&lt;br /&gt;Check the new virtual machine IP connection by pinging the host server.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/446793244649514579-2948322676269141363?l=doelsengupta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://doelsengupta.blogspot.com/feeds/2948322676269141363/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://doelsengupta.blogspot.com/2011/11/wired-connection-error-in-vmware.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/2948322676269141363'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/2948322676269141363'/><link rel='alternate' type='text/html' href='http://doelsengupta.blogspot.com/2011/11/wired-connection-error-in-vmware.html' title='wired connection error in Vmware'/><author><name>doel sengupta</name><uri>https://profiles.google.com/104422326542052861520</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-liWYhxaf9iI/AAAAAAAAAAI/AAAAAAAAAAA/Y1IwnYbE0Yc/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-446793244649514579.post-1790864209010293115</id><published>2011-11-01T13:05:00.002+05:30</published><updated>2011-11-01T13:05:43.735+05:30</updated><title type='text'>rbx-require-relative (0.0.5) failure issue</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="background-color: white; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Helvetica, Arial, sans-serif; font-size: 13px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="color: #222222; line-height: 18px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;pre land="bash" style="color: #222222; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Installing rbx-require-relative (0.0.5) Unfortunately, a fatal error has occurred.&lt;br /&gt;Please report this error to the Bundler issue tracker at https://github.com/carlhuda/&lt;br /&gt;bundler/issues so that we can fix it. Thanks!/Users/sjain/.rvm/rubies/ruby-1.9.2-p290/&lt;br /&gt;lib/ruby/site_ruby/1.9.1/rubygems/ installer.rb:364:in `ensure_required_ruby_version_met':&lt;br /&gt;rbx-require-relative requires Ruby version ~&amp;gt; 1.8.7. (Gem::InstallError)&lt;br /&gt;&lt;/pre&gt;&lt;div style="color: #222222; line-height: 18px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;This happens because when we are adding &amp;nbsp;a dependency on ruby-debug gem in your Gemfile.&lt;/div&gt;&lt;div class="wp_syntax" style="background-color: #f9f9f9; border-bottom-color: silver; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: silver; border-left-style: solid; border-left-width: 1px; border-right-color: silver; border-right-style: solid; border-right-width: 1px; border-top-color: silver; border-top-style: solid; border-top-width: 1px; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: auto; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 700px;"&gt;&lt;div class="code" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 4px; padding-right: 4px; padding-top: 2px; vertical-align: top;"&gt;&lt;pre class="ruby" style="clear: none; float: none; font-family: monospace; font-size: 12px; line-height: 1.333; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; white-space: pre; width: auto;"&gt;&lt;span class="Apple-style-span" style="color: #110000;"&gt;&lt;br /&gt;  gem &lt;/span&gt;&lt;span style="color: #996600; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;'ruby-debug'&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #9966cc;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="color: #222222; line-height: 18px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;With ruby 1.9, you need to update this with new gem name ruby-debug19.&lt;/div&gt;&lt;div class="wp_syntax" style="background-color: #f9f9f9; border-bottom-color: silver; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: silver; border-left-style: solid; border-left-width: 1px; border-right-color: silver; border-right-style: solid; border-right-width: 1px; border-top-color: silver; border-top-style: solid; border-top-width: 1px; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: auto; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 700px;"&gt;&lt;div class="code" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 4px; padding-right: 4px; padding-top: 2px; vertical-align: top;"&gt;&lt;pre class="ruby" style="clear: none; float: none; font-family: monospace; font-size: 12px; line-height: 1.333; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; white-space: pre; width: auto;"&gt;&lt;span class="Apple-style-span" style="color: #110000;"&gt;&lt;br /&gt;  gem &lt;/span&gt;&lt;span style="color: #996600; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;'ruby-debug19'&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #9966cc;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="color: #222222; line-height: 18px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;This will eliminate the dependency on rbx-require-relative and fix the issue.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/446793244649514579-1790864209010293115?l=doelsengupta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://doelsengupta.blogspot.com/feeds/1790864209010293115/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://doelsengupta.blogspot.com/2011/11/rbx-require-relative-005-failure-issue.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/1790864209010293115'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/1790864209010293115'/><link rel='alternate' type='text/html' href='http://doelsengupta.blogspot.com/2011/11/rbx-require-relative-005-failure-issue.html' title='rbx-require-relative (0.0.5) failure issue'/><author><name>doel sengupta</name><uri>https://profiles.google.com/104422326542052861520</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-liWYhxaf9iI/AAAAAAAAAAI/AAAAAAAAAAA/Y1IwnYbE0Yc/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-446793244649514579.post-4755421684393712621</id><published>2011-08-12T17:34:00.005+05:30</published><updated>2011-10-31T13:06:44.831+05:30</updated><title type='text'>Happy Haml :)</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&amp;nbsp;Haml is a much cleaner way to write ruby executable with html. Unlike erb or rhtml, you need not have to give &lt;end&gt; tags for every if/for loops, no need of &amp;lt;&amp;gt; tags, only remember haml works in indentations.&lt;/end&gt;&lt;br /&gt;&amp;nbsp;You need to give 2 spaces of indentations under the main loop.&lt;br /&gt;&lt;br /&gt;Like for example, you are looping through each element in an array, then for the code which goes inside the loop will look like this&lt;br /&gt;-['a', 'b'].each do |letter|&lt;br /&gt;&amp;nbsp; = letter&lt;br /&gt;&lt;br /&gt;&lt;ol style="text-align: left;"&gt;&lt;li&gt;gem install haml&lt;/li&gt;&lt;li&gt;or in bundler, add gem 'haml'&lt;/li&gt;&lt;li&gt;make a file inside the view/&lt;your&gt; directory with extension as .haml.html&lt;/your&gt;&lt;/li&gt;&lt;/ol&gt;&lt;your&gt; &lt;br /&gt;remember haml works with indentation. 2 spaces&amp;nbsp;&lt;/your&gt;&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;- has to be added for ruby code which has not to be evaluated &amp;lt;% %&amp;gt;, like for, if, else&lt;/li&gt;&lt;li&gt;= for ruby code which has to be evaluated, similar to &amp;lt;%= %&amp;gt;&lt;/li&gt;&lt;li&gt;% for html tags, like th, td, h1 etc.&lt;/li&gt;&lt;li&gt;no &lt;end&gt; tags are required in haml&lt;/end&gt;&lt;/li&gt;&lt;/ul&gt;&lt;end&gt; &lt;br /&gt;%h1&lt;br /&gt;&amp;nbsp; doel&lt;/end&gt;&lt;br /&gt;&lt;end&gt;&lt;/end&gt;&lt;br /&gt;&lt;end&gt;The above two lines will create a html page, with headers as doel.&lt;br /&gt;&lt;br /&gt;for label tag in html, in haml label will come under p tag&lt;br /&gt;- form_for @user do |f|&lt;br /&gt;&amp;nbsp; %div&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %p&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = f.text_field :name&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; User name&lt;/end&gt;&lt;br /&gt;&lt;br /&gt;And if you have all your codes in html.erb and would lke to convert that to Haml very quickly, you can try out the below link, it's easy :)&lt;br /&gt;&lt;a href="http://html2haml.heroku.com/"&gt;http://html2haml.heroku.com/&lt;/a&gt;&lt;br /&gt;But remember to test your app with the new haml before pushing the changes..&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;...coming soon more and more on happy Haml&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/446793244649514579-4755421684393712621?l=doelsengupta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://doelsengupta.blogspot.com/feeds/4755421684393712621/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://doelsengupta.blogspot.com/2011/08/happy-haml.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/4755421684393712621'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/4755421684393712621'/><link rel='alternate' type='text/html' href='http://doelsengupta.blogspot.com/2011/08/happy-haml.html' title='Happy Haml :)'/><author><name>doel sengupta</name><uri>https://profiles.google.com/104422326542052861520</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-liWYhxaf9iI/AAAAAAAAAAI/AAAAAAAAAAA/Y1IwnYbE0Yc/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-446793244649514579.post-8329599154767029247</id><published>2011-07-19T09:33:00.000+05:30</published><updated>2011-07-19T09:33:13.987+05:30</updated><title type='text'>can 't find executable rake for rake-0.8.7 (Gem::Exception)</title><content type='html'>I faced the weird error coming up suddenly for my rails 3 app using ruby 1.9.2 using pik&lt;br /&gt;the rake.gemspec file under the ruby gems folder getting some issues.&lt;br /&gt;&lt;br /&gt;remove the rake.gemspec file&lt;br /&gt;do a fresh bundle install for your application.&lt;br /&gt;need not have to specify the rake version in your gemfile, as ruby 1.9.2 takes care of it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/446793244649514579-8329599154767029247?l=doelsengupta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://stackoverflow.com/questions/3614435/cant-find-rake-on-ruby-rails-install' title='can &apos;t find executable rake for rake-0.8.7 (Gem::Exception)'/><link rel='replies' type='application/atom+xml' href='http://doelsengupta.blogspot.com/feeds/8329599154767029247/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://doelsengupta.blogspot.com/2011/07/can-t-find-executable-rake-for-rake-087.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/8329599154767029247'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/8329599154767029247'/><link rel='alternate' type='text/html' href='http://doelsengupta.blogspot.com/2011/07/can-t-find-executable-rake-for-rake-087.html' title='can &apos;t find executable rake for rake-0.8.7 (Gem::Exception)'/><author><name>doel sengupta</name><uri>https://profiles.google.com/104422326542052861520</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-liWYhxaf9iI/AAAAAAAAAAI/AAAAAAAAAAA/Y1IwnYbE0Yc/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-446793244649514579.post-8774919508114601959</id><published>2011-04-28T23:19:00.001+05:30</published><updated>2011-07-08T20:26:32.932+05:30</updated><title type='text'>mysql error, in rails3</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;This is one of most common error, you will find when you start working with rails3. But the solution is really simple. Just change the gemname to mysql2 instead mysql in the Gemfile. By now we know, that Gemfile is like a repository of the gems we need for the application, somewhat like unpacking a gem, so that we do not need to install manually the huge list of gems in each environment and bite our nails if we miss something.&lt;br /&gt;&lt;br /&gt;The entry in Gemfile is something like this,&lt;br /&gt;gem 'mysql2'&lt;br /&gt;&lt;br /&gt;from the command propmt, go to the directory where your app is, and execute the following command to install all the gems in gemfile&lt;br /&gt;bundle install&lt;br /&gt;&lt;br /&gt;That;s it your gem mysql2 has been installed.&lt;br /&gt;&lt;br /&gt;Now you need to change the database.yml adapter from mysql to mysql2.&lt;br /&gt;&lt;br /&gt;run rake db:create&lt;br /&gt;and see your app up and running in http://localhost:3000 (ofcourse you need to start the server , if not started yet ;)&lt;br /&gt;rails server&lt;br /&gt;Happy Rails-ing :)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/446793244649514579-8774919508114601959?l=doelsengupta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://doelsengupta.blogspot.com/feeds/8774919508114601959/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://doelsengupta.blogspot.com/2011/04/unintialized-constant-mysql-error-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/8774919508114601959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/8774919508114601959'/><link rel='alternate' type='text/html' href='http://doelsengupta.blogspot.com/2011/04/unintialized-constant-mysql-error-in.html' title='mysql error, in rails3'/><author><name>doel sengupta</name><uri>https://profiles.google.com/104422326542052861520</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-liWYhxaf9iI/AAAAAAAAAAI/AAAAAAAAAAA/Y1IwnYbE0Yc/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-446793244649514579.post-6802840855885340865</id><published>2011-04-28T23:00:00.004+05:30</published><updated>2011-10-20T14:16:32.011+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='git'/><category scheme='http://www.blogger.com/atom/ns#' term='init'/><category scheme='http://www.blogger.com/atom/ns#' term='git stash'/><category scheme='http://www.blogger.com/atom/ns#' term='svn'/><title type='text'>git and svn</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: left;"&gt;Lately I am trying to get hold of version control tool git. I have worked with svn but git has whole of other options and believe me it is not so bad as your first impression if you are an svn user. First Impression is not the last impression, always. Actually this is not the first, as we need to unlearn&amp;nbsp; certain things which sometimes makes it tough. Got hold of the below link in case you use both, like me and often get confuse with the syntax.&lt;/div&gt;&lt;div style="text-align: left;"&gt;http://git.or.cz/course/svn.html&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;/div&gt;&lt;ol style="text-align: left;"&gt;&lt;li&gt;Download git on windows from&amp;nbsp;&lt;span class="Apple-style-span" style="font-size: 21px;"&gt;&lt;a href="http://code.google.com/p/msysgit/downloads/" target="_parent"&gt;http://code.google.com/p/msysgit/downloads/&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Use git&lt;/li&gt;&lt;/ol&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;Ssh-keygen –t rsa –C hello@gmail.com&lt;/li&gt;&lt;li&gt;git config --global user.email&amp;nbsp; hello@gmail.com&lt;/li&gt;&lt;li&gt;git config --global user.name “Hi Hello“&lt;/li&gt;&lt;li&gt;git config --global github.user&amp;nbsp;&lt;i&gt;hi-hello&lt;/i&gt;&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;/li&gt;&lt;li&gt;git config --global github.token &lt;i&gt;098765432&lt;/i&gt;1&lt;i&gt;yourf0123456789&lt;/i&gt;&lt;/li&gt;&lt;/ul&gt;&lt;i&gt;For some advanced concepts in git&lt;/i&gt;&lt;br /&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;Migrate from svn to git&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;p:colorscheme colors="#ffffff,#000000,#ffffff,#002960,#c7e0fb,#91b0ff,#0066cc,#002960"&gt;&lt;/p:colorscheme&gt;&lt;div class="O" v:shape="_x0000_s1026"&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #002960;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;Do a SVN Export of the repository you want to migrate to GIT.  &lt;/div&gt;&lt;div&gt;&lt;span style="color: #002960; left: -0.83%; position: absolute;"&gt;•&lt;/span&gt;&amp;nbsp;Goto the Directory  &lt;/div&gt;&lt;div&gt;&lt;span style="color: #002960; left: -0.83%; position: absolute;"&gt;•&lt;/span&gt;&amp;nbsp;git init &lt;/div&gt;&lt;div&gt;&lt;span style="color: #002960; left: -0.83%; position: absolute;"&gt;•&lt;/span&gt;&amp;nbsp;git add . &lt;/div&gt;&lt;div&gt;&lt;span style="color: #002960; left: -0.83%; position: absolute;"&gt;•&lt;/span&gt;&amp;nbsp;git commit –m ‘Migration from SVN to GIT’ &lt;/div&gt;&lt;div&gt;&lt;span style="color: #002960; left: -0.77%; position: absolute;"&gt;•&lt;/span&gt;&amp;nbsp;git remote add origin git@repository_location.com&lt;/div&gt;&lt;div&gt;&lt;span style="color: #002960; left: -0.83%; position: absolute;"&gt;•&lt;/span&gt;&amp;nbsp;git push origin master&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;Git Stash&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;p:colorscheme colors="#ffffff,#000000,#ffffff,#002960,#c7e0fb,#91b0ff,#0066cc,#002960"&gt;&lt;/p:colorscheme&gt;&lt;div class="O" v:shape="_x0000_s1026"&gt;&lt;div&gt;Very often while&amp;nbsp;committing or pushing or pulling our changes in/from remote repository, we get the error message, like "you have local changes, please stash your changes or remove them before pushing".&amp;nbsp;Now that means the local changes are nor allowing them to pull the things (sometimes wither you will have a conflict which you can edit later ) or the stash them. Now what does '&lt;b&gt;&lt;u style="font-style: italic;"&gt;stash'&lt;/u&gt;&amp;nbsp;&lt;/b&gt;means in git, same as the dictionary meaning&amp;nbsp;&lt;span class="Apple-style-span" style="background-color: white; color: #222222; font-family: Georgia, 'Times New Roman', serif; font-size: x-small; line-height: 14px;"&gt;&lt;i&gt;To hide or store away in a secret place.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: x-small; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-weight: bold; text-decoration: underline;"&gt;&lt;span style="font-size: 16pt;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Commands&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #002960; left: -0.96%; position: absolute;"&gt;•&lt;/span&gt;&amp;nbsp;git stash save “your message for the stash”  &amp;nbsp;--&amp;gt;&amp;nbsp;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; line-height: 21px;"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif; font-size: x-small;"&gt;This command will save your changes away to the&amp;nbsp;&lt;code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font: normal normal normal 1em/normal 'andale mono', 'lucida console', monospace; line-height: 1.5; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; white-space: pre;"&gt;stash&lt;/code&gt;, and reset your working tree and the index to match the tip of your current branch.&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; line-height: 21px;"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #002960; left: -0.96%; position: absolute;"&gt;•&lt;/span&gt;&amp;nbsp;git stash list  --&amp;gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&amp;nbsp;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-size: x-small; line-height: 21px;"&gt;&lt;i&gt;you can see which stashes you have saved&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-size: x-small; line-height: 21px;"&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #002960; left: -0.96%; position: absolute;"&gt;•&lt;/span&gt;&amp;nbsp;git stash pop  --&amp;gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt; &lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;i&gt;you like to pop out the last stash, similar to pop out an element from a linked-list.&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #002960; left: -0.96%; position: absolute;"&gt;•&lt;/span&gt;&amp;nbsp;git stash apply stash@{0}  --&amp;gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-size: x-small; line-height: 21px;"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;you can go back to what you were working on with&amp;nbsp;&lt;code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font: normal normal normal 1em/normal 'andale mono', 'lucida console', monospace; line-height: 1.5; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; white-space: pre;"&gt;git stash apply&lt;/code&gt;:&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-text-size-adjust: none; background-color: white; color: #444444; font-family: Georgia, serif; line-height: 24px;"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;stash@{0} part? That's your stash ID. The stash ID changes with every stash you make. stash@{0} refers to the last stash you made.&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="-webkit-text-size-adjust: none; background-color: white; color: #444444; font-family: Georgia, serif; line-height: 24px;"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #002960; left: -0.96%; position: absolute;"&gt;•&lt;/span&gt;&amp;nbsp;git stash show -p | git apply –reverse &lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #002960; left: -0.96%; position: absolute;"&gt;•&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #002960; left: -0.96%; position: absolute;"&gt;•&lt;/span&gt;&amp;nbsp;git stash clear&amp;nbsp;--&amp;gt;&amp;nbsp;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif; font-size: x-small;"&gt;&lt;i&gt;you like to clear out all the stashes.&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;References:&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;a href="http://ariejan.net/2008/04/23/git-using-the-stash/"&gt;http://ariejan.net/2008/04/23/git-using-the-stash/&lt;/a&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: left;"&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;For using git with Windows this link is really useful :&lt;/div&gt;&lt;div style="text-align: left;"&gt;http://nathanj.github.com/gitguide/tour.html &lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;enjoy !!&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/446793244649514579-6802840855885340865?l=doelsengupta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://doelsengupta.blogspot.com/feeds/6802840855885340865/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://doelsengupta.blogspot.com/2011/04/git-and-svn.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/6802840855885340865'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/6802840855885340865'/><link rel='alternate' type='text/html' href='http://doelsengupta.blogspot.com/2011/04/git-and-svn.html' title='git and svn'/><author><name>doel sengupta</name><uri>https://profiles.google.com/104422326542052861520</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-liWYhxaf9iI/AAAAAAAAAAI/AAAAAAAAAAA/Y1IwnYbE0Yc/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-446793244649514579.post-6645376524295827911</id><published>2011-04-25T15:36:00.001+05:30</published><updated>2011-07-08T20:28:36.292+05:30</updated><title type='text'>ORA-12514: TNS:listener does not currently know of service requested</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;ORA-12514: TNS:listener does not currently know of service requested in connect descriptor&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oci8.c:270:in oci8lib.so&lt;br /&gt;&lt;br /&gt;I encountered this problem in my local machine while I an trying to start a Ruby on Rails application using oracleXE as a database. Check first whether the oracle XE service was running. If not do the following.&lt;br /&gt;&lt;br /&gt;In order to start the service&lt;br /&gt;--&amp;gt; goto Contol Panel&lt;br /&gt;--&amp;gt; Administrative Tools&lt;br /&gt;--&amp;gt; start OracleSevice XE&lt;br /&gt;&lt;br /&gt;That's it...type local:3000/ to see your app up and running !!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/446793244649514579-6645376524295827911?l=doelsengupta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://doelsengupta.blogspot.com/feeds/6645376524295827911/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://doelsengupta.blogspot.com/2011/04/ora-12514-tnslistener-does-not.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/6645376524295827911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/6645376524295827911'/><link rel='alternate' type='text/html' href='http://doelsengupta.blogspot.com/2011/04/ora-12514-tnslistener-does-not.html' title='ORA-12514: TNS:listener does not currently know of service requested'/><author><name>doel sengupta</name><uri>https://profiles.google.com/104422326542052861520</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-liWYhxaf9iI/AAAAAAAAAAI/AAAAAAAAAAA/Y1IwnYbE0Yc/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-446793244649514579.post-5109535997585616218</id><published>2011-02-14T17:20:00.000+05:30</published><updated>2011-02-14T17:20:18.029+05:30</updated><title type='text'>20 sec reading</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;I am following Paulo Coelho's blog these days.&lt;br /&gt;It has a refreshing section named 20 sec reading...was lured by the name itself, it can be possible by an author of his stature only to write such an interesting and intriguing post which can be read in time as short as 20 secs. Like to recommend to read his blog and refresh the mind.&lt;br /&gt;&lt;br /&gt;http://paulocoelhoblog.com&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/446793244649514579-5109535997585616218?l=doelsengupta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://doelsengupta.blogspot.com/feeds/5109535997585616218/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://doelsengupta.blogspot.com/2011/02/20-sec-reading.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/5109535997585616218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/5109535997585616218'/><link rel='alternate' type='text/html' href='http://doelsengupta.blogspot.com/2011/02/20-sec-reading.html' title='20 sec reading'/><author><name>doel sengupta</name><uri>https://profiles.google.com/104422326542052861520</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-liWYhxaf9iI/AAAAAAAAAAI/AAAAAAAAAAA/Y1IwnYbE0Yc/s512-c/photo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-446793244649514579.post-8292538205773114634</id><published>2011-01-27T00:18:00.000+05:30</published><updated>2011-01-27T16:06:53.756+05:30</updated><title type='text'>Goal...go go, Santiago</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Watched the awesome movie 'Goal' (English). The protagonist Santiago Munez inspires all to chase a dream and I am no exception. The young boy suffered from asthma and tried of hiding&amp;nbsp; that, fearing he may loose the chance to play in one of the premium football teams. When the selector came to know of this fact, quite contrary to my expectation of a person in such a situation he told, "&lt;i&gt;&lt;b&gt;Asthma is not a problem, but lying is!&lt;/b&gt;&lt;/i&gt;". What a thought, and what a way of expressing that. Many a times I keep on thinking the different physical criteria which are necessary for applying for&amp;nbsp; job of our dream, such as in army, air force, ballet dancer or a soccer player.But rare do we listen such a noble thought of handling our physical problems and to deal with it medically rather hiding it.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Similar to working in a team, be it in our school project to make a poster or to finish up the lab assignments in the college days to our present official deadlines, we need to "&lt;i&gt;&lt;b&gt;Pass the ball&lt;/b&gt;&lt;/i&gt;" in the soccer field. We need to learn that the ball runs faster and the more effectively we can delegate/distribute the work, the effective will be the ball in reaching the goal-post. It remind us that to work in a team, the work is more important than the worker, hence it has been aptly said, the team's name in jersey is written in front and the player's in the back.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Though Santiago's father was against his dream of becoming a footballer but at the end he was also convinced by his passion. Though he passed away and may not be physically present to witness him playing but he was seeing that from above. Whatever grief we may face in&amp;nbsp; our life, which is not in our hands, we may learn to think that life and death are not in&amp;nbsp; our hands and we may learn to live life with realising the eternal truth and "&lt;i&gt;&lt;b&gt;All in our life is not in our hands&lt;/b&gt;.&lt;/i&gt;"&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/446793244649514579-8292538205773114634?l=doelsengupta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://doelsengupta.blogspot.com/feeds/8292538205773114634/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://doelsengupta.blogspot.com/2011/01/goalgo-go-santiago.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/8292538205773114634'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/8292538205773114634'/><link rel='alternate' type='text/html' href='http://doelsengupta.blogspot.com/2011/01/goalgo-go-santiago.html' title='Goal...go go, Santiago'/><author><name>doel sengupta</name><uri>https://profiles.google.com/104422326542052861520</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-liWYhxaf9iI/AAAAAAAAAAI/AAAAAAAAAAA/Y1IwnYbE0Yc/s512-c/photo.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-446793244649514579.post-6899358034825631368</id><published>2010-10-29T16:29:00.002+05:30</published><updated>2011-04-25T16:02:09.047+05:30</updated><title type='text'>LINUX commands</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;1)To list all files&lt;br /&gt;ls&lt;br /&gt;&lt;br /&gt;2)To list files with file size&lt;br /&gt;ls -lh&lt;br /&gt;&lt;br /&gt;3)To go to the end of file&lt;br /&gt;tail -f /root/&lt;file_path&gt;&lt;br /&gt;&lt;br /&gt;4)To edit/create a crontab&lt;br /&gt;crontab -e&lt;br /&gt;&lt;br /&gt;5)If the cron job is in different directory add the following in the shell script which &lt;br /&gt;&lt;br /&gt;the cron calls&lt;br /&gt;PATH&lt;br /&gt;LD_LIBRARY_PATH&lt;br /&gt;&lt;br /&gt;6)To go to the top/end of a long file, type the following while the file is open&lt;br /&gt;1G&lt;br /&gt;&lt;br /&gt;7)To change read/write/execute permission of the file&lt;br /&gt;chmod&lt;br /&gt;&lt;br /&gt;8)To call website from linux OS&lt;br /&gt;curl`http://abc.com`&lt;br /&gt;&lt;br /&gt;9)In shell scripts there should be no spaces between variables and = sign&lt;br /&gt;&lt;br /&gt;10)To replace a word, go to the beginning of the word and type&lt;br /&gt;CW&lt;br /&gt;&lt;br /&gt;11)To delete a line, press&lt;/file_path&gt;&lt;br /&gt;&lt;file_path&gt; ESC-key+X&lt;/file_path&gt;&lt;br /&gt;&lt;br /&gt;&lt;file_path&gt;&lt;/file_path&gt;&lt;br /&gt;&lt;file_path&gt;&lt;/file_path&gt;&lt;br /&gt;&lt;file_path&gt;&lt;/file_path&gt;&lt;br /&gt;&lt;file_path&gt;12) If you have the vim editor installed, can try out the following&lt;/file_path&gt;&lt;br /&gt;&lt;file_path&gt;dd --&amp;gt; to delete a line&lt;/file_path&gt;&lt;br /&gt;&lt;file_path&gt;yy --&amp;gt; to copy a line&lt;/file_path&gt;&lt;br /&gt;&lt;file_path&gt;p --&amp;gt; to paste the above&lt;/file_path&gt;&lt;br /&gt;&lt;file_path&gt;Shift6 --&amp;gt; to go to the beginning of a line&lt;/file_path&gt;&lt;br /&gt;&lt;file_path&gt;$&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --&amp;gt; to go to the end of file&lt;/file_path&gt;&lt;br /&gt;&lt;file_path&gt;&lt;br /&gt;&lt;br /&gt;&lt;/file_path&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/446793244649514579-6899358034825631368?l=doelsengupta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://doelsengupta.blogspot.com/feeds/6899358034825631368/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://doelsengupta.blogspot.com/2010/10/linux-commands.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/6899358034825631368'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/6899358034825631368'/><link rel='alternate' type='text/html' href='http://doelsengupta.blogspot.com/2010/10/linux-commands.html' title='LINUX commands'/><author><name>doel sengupta</name><uri>https://profiles.google.com/104422326542052861520</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-liWYhxaf9iI/AAAAAAAAAAI/AAAAAAAAAAA/Y1IwnYbE0Yc/s512-c/photo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-446793244649514579.post-6121576294557915606</id><published>2010-10-22T12:57:00.000+05:30</published><updated>2010-10-22T12:57:21.969+05:30</updated><title type='text'>Uninitialized constant Win32 (NameError)-cucumber</title><content type='html'>I confronted the error whenever I was trying to run, for my new rails 3.0 app in Windows 7&lt;br /&gt;&amp;gt;&amp;gt; rake cucumber &lt;br /&gt;The error looked like&lt;br /&gt;&amp;gt;&amp;gt;uninitialized constant Win32 (NameError)&lt;br /&gt;&lt;br /&gt;Solved by installing the following gem, adding the line in the gemfile&lt;br /&gt;&lt;br /&gt;gem 'win32console'&lt;br /&gt;&lt;br /&gt;Go to your app directory and execute&amp;nbsp; &amp;gt;&amp;gt; bundle&lt;br /&gt;&lt;br /&gt;That's it !! I am able to run the cucmber now :-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/446793244649514579-6121576294557915606?l=doelsengupta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://doelsengupta.blogspot.com/feeds/6121576294557915606/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://doelsengupta.blogspot.com/2010/10/uninitialized-constant-win32-nameerror.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/6121576294557915606'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/6121576294557915606'/><link rel='alternate' type='text/html' href='http://doelsengupta.blogspot.com/2010/10/uninitialized-constant-win32-nameerror.html' title='Uninitialized constant Win32 (NameError)-cucumber'/><author><name>doel sengupta</name><uri>https://profiles.google.com/104422326542052861520</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-liWYhxaf9iI/AAAAAAAAAAI/AAAAAAAAAAA/Y1IwnYbE0Yc/s512-c/photo.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-446793244649514579.post-1759494712091094554</id><published>2010-10-21T19:32:00.000+05:30</published><updated>2010-10-22T21:01:43.742+05:30</updated><title type='text'>Uninitialized constant RbReadline::Encoding error while running rake for rails 3.0.0 with ruby 1.8.7 app</title><content type='html'>Got the above error whenever I was executing rake for my new rails 3.0.0 app in Windows 7.&lt;br /&gt;&lt;br /&gt;Comment out the following lines from the rbreadline.rb file under C:\Ruby187\lib\ruby\site_ruby\1.8&lt;br /&gt;&lt;br /&gt;This is really a huge file, opening in Word and then adding line numbers in the document may help you in commenting line number 4404. Though it&amp;nbsp; may sound silly but I am adding the steps to add the line numbers&amp;nbsp; in word document too.&lt;br /&gt;&lt;br /&gt;File -&amp;gt; Page Setup -&amp;gt; Layouts -&amp;gt; Click on line numbers --&amp;gt; continuous&lt;br /&gt;&lt;br /&gt;Line no 4404 &lt;br /&gt;&lt;br /&gt;and the following one &lt;br /&gt;&lt;br /&gt;if defined? ''.getbyte&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @encoding = "X"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # ruby 1.9.x or greater&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # @encoding_name = Encoding.default_external.to_s&lt;br /&gt;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&lt;br /&gt;For details the following URLs are really helpful&lt;br /&gt;http://trbhoang.blogspot.com/2010/05/issue-with-rspec-on-windows.html&lt;br /&gt;http://tom.net.nz/2010/09/installing-diaspora-on-windows/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/446793244649514579-1759494712091094554?l=doelsengupta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://doelsengupta.blogspot.com/feeds/1759494712091094554/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://doelsengupta.blogspot.com/2010/10/uninitialized-constant.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/1759494712091094554'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/1759494712091094554'/><link rel='alternate' type='text/html' href='http://doelsengupta.blogspot.com/2010/10/uninitialized-constant.html' title='Uninitialized constant RbReadline::Encoding error while running rake for rails 3.0.0 with ruby 1.8.7 app'/><author><name>doel sengupta</name><uri>https://profiles.google.com/104422326542052861520</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-liWYhxaf9iI/AAAAAAAAAAI/AAAAAAAAAAA/Y1IwnYbE0Yc/s512-c/photo.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-446793244649514579.post-8556732830259819772</id><published>2010-10-21T13:08:00.000+05:30</published><updated>2011-12-22T15:35:28.251+05:30</updated><title type='text'>Unable to Download gem with native extensions with Ruby 1.8.7 and Rails 3.0</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;A couple of days back I have installed Ruby 1.8.7 for working with Rails3.0.0 To my surprise whenever I was executing the any of the gem installation commands with native extensions, it was failing. Then I found the following stuff after searching quite a bit.&lt;br /&gt;Following URL gives the details or else you can look at the bullet-ed points below and execute them in order&lt;br /&gt;&lt;br /&gt;1) Uninstall any DevKit previously installed in your system.&lt;span style="color: blue;"&gt;&amp;nbsp;Control Panel\All Control Panel Items\Programs and Features --&amp;gt; uninstall Devkit&lt;/span&gt;&lt;br /&gt;2) Get the DevKit from the following url http://rubyinstaller.org/downloads/&lt;br /&gt;3) Download the exe file to a local folder like D:/DevKit&lt;br /&gt;4) Go inside the folder from the command prompt and execute the following commands&lt;br /&gt;i) ruby dk.rb init --&amp;gt; this will create the config.yml file&lt;br /&gt;ii) ruby dk.rb install&lt;br /&gt;iii) devkitvars.bat&amp;nbsp; ---&amp;gt;; This will add in the PATH variable&lt;br /&gt;5) Install the gems&lt;br /&gt;gem install devise --platform=ruby&lt;br /&gt;gem install devise_rpx_connectable --platform=ruby&lt;br /&gt;6) or you can add them in the Gemfile of your rails3 app and just execute&lt;br /&gt;bundle&lt;br /&gt;&lt;br /&gt;The above command will then install the gem with the native extensions. Remember to add the platform part.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/446793244649514579-8556732830259819772?l=doelsengupta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://doelsengupta.blogspot.com/feeds/8556732830259819772/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://doelsengupta.blogspot.com/2010/10/unable-to-download-gem-with-native.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/8556732830259819772'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/8556732830259819772'/><link rel='alternate' type='text/html' href='http://doelsengupta.blogspot.com/2010/10/unable-to-download-gem-with-native.html' title='Unable to Download gem with native extensions with Ruby 1.8.7 and Rails 3.0'/><author><name>doel sengupta</name><uri>https://profiles.google.com/104422326542052861520</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-liWYhxaf9iI/AAAAAAAAAAI/AAAAAAAAAAA/Y1IwnYbE0Yc/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-446793244649514579.post-1421160023336854019</id><published>2010-09-02T16:46:00.001+05:30</published><updated>2010-09-03T20:43:38.546+05:30</updated><title type='text'>I Love you...Rasna</title><content type='html'>There was queer habit of mine to store the things for the perfect time.&lt;br /&gt;&lt;br /&gt;A simple, incident  describing this. It was in our school days, when the sachet concept was not in vogue like these days. I got a free sachet of Rasna(a fruit drink, in powder form) from our local grocery shop. I was so excited that I kept it for a long period of time. Each day, when I return from school, I would have seen the sachet on our center-table in the drawing room and thought , I would have it when I would be more tired and thirsty .&lt;br /&gt;&lt;br /&gt;Couple of days passed and suddenly on a day I find that sachet no more on it's place.&lt;br /&gt;I searched the entire place, from the pile of newspapers, our telephone diaries (we don't use to have contacts in our cell phone to store the numbers during that time).&lt;br /&gt;&lt;br /&gt;Alas! it was not there.&lt;br /&gt;&lt;br /&gt;My Brother returned home, and to my surprise he asked me the place from where I got that Rasna sachet? He had it, few days back!!!&lt;br /&gt;&lt;br /&gt;My Learning:- Don't wait for the ideal and the perfect situation, whatever and wherever you are you can make it perfect.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/446793244649514579-1421160023336854019?l=doelsengupta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://doelsengupta.blogspot.com/feeds/1421160023336854019/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://doelsengupta.blogspot.com/2010/09/i-love-yourasna.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/1421160023336854019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/1421160023336854019'/><link rel='alternate' type='text/html' href='http://doelsengupta.blogspot.com/2010/09/i-love-yourasna.html' title='I Love you...Rasna'/><author><name>doel sengupta</name><uri>https://profiles.google.com/104422326542052861520</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-liWYhxaf9iI/AAAAAAAAAAI/AAAAAAAAAAA/Y1IwnYbE0Yc/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-446793244649514579.post-283176361802754965</id><published>2010-06-27T02:21:00.000+05:30</published><updated>2010-06-27T02:33:31.552+05:30</updated><title type='text'>Monsoon</title><content type='html'>The tall trees moving vehemently with the strong winds, thunderstorms crackling through the dark, deep sky like millions of diamonds in  a systematic unsymmetrical line. I stood awestruck on the beach, the waves splashing against  my feet and left behind the curious feeling of the wet sands in between the fingers while they retreated back to meet the sea again. What a feeling may Lord! I sighed, inhaled all the breeze, the air travelling all across the finest of &lt;span id="SPELLING_ERROR_0" class="blsp-spelling-error"&gt;alveolli&lt;/span&gt; spread across my entire being.&lt;br /&gt;Lets welcome the life, lets breath the happiness, lets cry for the joy within.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/446793244649514579-283176361802754965?l=doelsengupta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://doelsengupta.blogspot.com/feeds/283176361802754965/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://doelsengupta.blogspot.com/2010/06/monsoon.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/283176361802754965'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/283176361802754965'/><link rel='alternate' type='text/html' href='http://doelsengupta.blogspot.com/2010/06/monsoon.html' title='Monsoon'/><author><name>doel sengupta</name><uri>https://profiles.google.com/104422326542052861520</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-liWYhxaf9iI/AAAAAAAAAAI/AAAAAAAAAAA/Y1IwnYbE0Yc/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-446793244649514579.post-3572357087083555044</id><published>2010-05-14T16:44:00.000+05:30</published><updated>2011-04-25T15:50:21.040+05:30</updated><title type='text'>What Ratan Tata did for the Mumbai Terror attack victims</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Ratan Tata&lt;/b&gt; is the chairman of Indian Hotels who own the Taj Mahal Hotel Mumbai, which was the target of the terrorists on 26/11/08.&lt;br /&gt;Hotel President a 5 star property also belongs to Indian Hotels.&lt;br /&gt;The following is really touching.&lt;br /&gt;What Ratan Tata did for the Mumbai victims.... Don't miss!!!!!!&lt;br /&gt;SALUTE TO MR. RATAN TATA&lt;br /&gt;A. The Tata Gesture&lt;br /&gt;1. All category of employees including those who had completed even 1 day as casuals were treated on duty during the time the hotel was closed.&lt;br /&gt;2. Relief and assistance to all those who were injured and killed&lt;br /&gt;3. The relief and assistance was extended to all those who died at the railway station, surroundings including the "Pav- Bha ji" vendor and the pan shop owners.&lt;br /&gt;4. During the time the hotel was closed, the salaries were sent by money order.&lt;br /&gt;5. A psychiatric cell was established in collaboration with Tata Institute of Social Sciences to counsel those who needed such help.&lt;br /&gt;6. The thoughts and anxieties going on people’s mind was constantly tracked and where needed psychological help provided.&lt;br /&gt;7. Employee outreach centers were opened where all help, food, water, sanitation, first aid and counseling was provided. 1600 employees were covered by this facility.&lt;br /&gt;8. Every employee was assigned to one mentor and it was that person’s responsibility to act as a "single window" clearance for any help that the person required.&lt;br /&gt;9. Ratan Tata personally visited the families of all the 80 employees who in some manner – either through injury or getting killed – were affected.&lt;br /&gt;10. The dependents of the employees were flown from outside Mumbai to Mumbai and taken care off in terms of ensuring mental assurance and peace. They were all accommodated in Hotel President for 3 weeks.&lt;br /&gt;11. Ratan Tata himself asked the families and dependents – as to what they wanted him to do.&lt;br /&gt;12. In a record time of 20 days, a new trust was created by the Tatas for the purpose of relief of employees.&lt;br /&gt;13. What is unique is that even the other people, the railway employees, the police staff, the pedestrians who had nothing to do with Tatas were covered by compensation. Each one of them was provided subsistence allowance of Rs. 10K per month for all these people for 6 months.&lt;br /&gt;14. A 4 year old granddaughter of a vendor got 4 bullets in her and only one was removed in the Government hospital. She was taken to Bombay hospital and several lacs were spent by the Tatas on her to fully recover her.&lt;br /&gt;15. New hand carts were provided to several vendors who lost their carts.&lt;br /&gt;16. Tata will take responsibility of life education of 46 children of the victims of the terror.&lt;br /&gt;17. This was the most trying period in the life of the organization. Senior managers including Ratan Tata were visiting funeral to funeral over the 3 days that were most horrible.&lt;br /&gt;18. The settlement for every deceased member ranged from Rs. 36 to 85 lacs [One lakh rupees tranlates to approx 2200 US $ ] in addition to the following benefits:&lt;br /&gt;a. Full last salary for life for the family and dependents;&lt;br /&gt;b. Complete responsibility of education of children and dependents – anywhere in the world.&lt;br /&gt;c. Full Medical facility for the whole family and dependents for rest of their life.&lt;br /&gt;d. All loans and advances were waived off – irrespective of the amount.&lt;br /&gt;e. Counselor for life for each person&lt;br /&gt;B. Epilogue&lt;br /&gt;1. How was such passion created among the employees? How and why did they behave the way they did?&lt;br /&gt;2. The organization is clear that it is not something that someone can take credit for. It is not some training and development that created such behaviour. If someone suggests that – everyone laughs&lt;br /&gt;3. It has to do with the DNA of the organization, with the way Tata culture exists and above all with the situation that prevailed that time. The organization has always been telling that customers and guests are #1 priority&lt;br /&gt;4. The hotel business was started by Jamshedji Tata when he was insulted in one of the British hotels and not allowed to stay there.&lt;br /&gt;5. He created several institutions which later became icons of progress, culture and modernity. IISc is one such institute. He was told by the rulers that time that he can acquire land for IISc to the extent he could fence the same. He could afford fencing only 400 acres.&lt;br /&gt;6. When the HR function hesitatingly made a very rich proposal to Ratan – he said – do you think we are doing enough?&lt;br /&gt;7. The whole approach was that the organization would spend several hundred crore in re-building the property – why not spend equally on the employees who gave their life?&lt;br /&gt;&lt;br /&gt;Hats Off to &lt;b&gt;Mr. Ratan Tata..&lt;/b&gt;&lt;br /&gt;[Source: From FB Suresh post]&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/446793244649514579-3572357087083555044?l=doelsengupta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://doelsengupta.blogspot.com/feeds/3572357087083555044/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://doelsengupta.blogspot.com/2010/05/what-ratan-tata-did-for-mumbai-terror.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/3572357087083555044'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/3572357087083555044'/><link rel='alternate' type='text/html' href='http://doelsengupta.blogspot.com/2010/05/what-ratan-tata-did-for-mumbai-terror.html' title='What Ratan Tata did for the Mumbai Terror attack victims'/><author><name>doel sengupta</name><uri>https://profiles.google.com/104422326542052861520</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-liWYhxaf9iI/AAAAAAAAAAI/AAAAAAAAAAA/Y1IwnYbE0Yc/s512-c/photo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-446793244649514579.post-8789125787980821082</id><published>2010-02-17T12:29:00.000+05:30</published><updated>2010-02-17T12:36:13.157+05:30</updated><title type='text'>Science for Life</title><content type='html'>&lt;p&gt;Great Egyptian Pharaoh  Tutankhamen, may have died due to brittle bones caused by malaria.Read an interesting news regarding the death mystery of the young pharaoh Tutenkhamen.&lt;/p&gt;&lt;p&gt;&lt;a href="http://news.bbc.co.uk/2/hi/health/8516425.stm"&gt;http://news.bbc.co.uk/2/hi/health/8516425.stm&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/446793244649514579-8789125787980821082?l=doelsengupta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://doelsengupta.blogspot.com/feeds/8789125787980821082/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://doelsengupta.blogspot.com/2010/02/great-egyptian-pharaoh-tutankhamen-may.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/8789125787980821082'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/8789125787980821082'/><link rel='alternate' type='text/html' href='http://doelsengupta.blogspot.com/2010/02/great-egyptian-pharaoh-tutankhamen-may.html' title='Science for Life'/><author><name>doel sengupta</name><uri>https://profiles.google.com/104422326542052861520</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-liWYhxaf9iI/AAAAAAAAAAI/AAAAAAAAAAA/Y1IwnYbE0Yc/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-446793244649514579.post-9208011213127174199</id><published>2010-02-12T20:05:00.000+05:30</published><updated>2010-02-17T12:39:13.941+05:30</updated><title type='text'>Learnings for Life</title><content type='html'>&lt;div align="justify"&gt;Some of the best &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;&lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_0"&gt;learnings&lt;/span&gt;&lt;/span&gt; which I learned in this year.&lt;br /&gt;The first two are learnt from the awesome one-act play by the great Indian artist &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;Anupam&lt;/span&gt;&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;Kher&lt;/span&gt;&lt;/span&gt;, named "&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;Kuch&lt;/span&gt;&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;Bhi&lt;/span&gt;&lt;/span&gt; Ho &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;Sakta&lt;/span&gt;&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;Hein&lt;/span&gt;&lt;/span&gt;" screened on 3rd January 2010, in &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;NCPA&lt;/span&gt;&lt;/span&gt;, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;Nariman&lt;/span&gt;&lt;/span&gt; Point, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;Mumbai&lt;/span&gt;&lt;/span&gt;.&lt;br /&gt;1) Don't go over your worry twice! once by thinking of it, and once by &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_10"&gt;going&lt;/span&gt; through it!&lt;br /&gt;This has been told to &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_11"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_10"&gt;Anupam&lt;/span&gt;&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_12"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_11"&gt;Kher&lt;/span&gt;&lt;/span&gt; by his grandfather.&lt;br /&gt;2) If you take risk you may get failure, if you don't then you ensure it!&lt;br /&gt;&lt;br /&gt;Though the word "best" &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_13"&gt;attributes&lt;/span&gt; to a single thing but still it can be pointed out that learning whenever and wherever they are , they are always &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_14"&gt;the&lt;/span&gt; "best".&lt;br /&gt;&lt;br /&gt;3)The &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_15"&gt;&lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_12"&gt;cumulative&lt;/span&gt;&lt;/span&gt; effect of all the organisms that we touch upon in our lives makes us what we are (as stated by Mr. &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_16"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_13"&gt;Sudhakar&lt;/span&gt;&lt;/span&gt;, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_17"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_14"&gt;Tata&lt;/span&gt;&lt;/span&gt; Chemicals), in one of the seminars I attended lately.&lt;br /&gt;4) Leaders have the capability to treat others with equality and humanity. Such an &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_17"&gt;impeccable&lt;/span&gt; flavour of leadership without the heavy hearted words giving us the feeling of domination, perfectionism, &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_18"&gt;authoritarian&lt;/span&gt; is rarely to be found in &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_19"&gt;anybodies&lt;/span&gt; definition of leadership.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/446793244649514579-9208011213127174199?l=doelsengupta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://doelsengupta.blogspot.com/feeds/9208011213127174199/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://doelsengupta.blogspot.com/2010/02/learnings.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/9208011213127174199'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/446793244649514579/posts/default/9208011213127174199'/><link rel='alternate' type='text/html' href='http://doelsengupta.blogspot.com/2010/02/learnings.html' title='Learnings for Life'/><author><name>doel sengupta</name><uri>https://profiles.google.com/104422326542052861520</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-liWYhxaf9iI/AAAAAAAAAAI/AAAAAAAAAAA/Y1IwnYbE0Yc/s512-c/photo.jpg'/></author><thr:total>3</thr:total></entry></feed>
