How to Find Your Passion and Inner Awesomeness

Thursday, October 2, 2014

Eugene Hennie says awesome talk about Inner awesomeness. He point out 10 things which i mentioned below.
  1. Know yourself – Who are you? What do you like?
  2. Embrace yourself – Once you embrace who you are, everything in life becomes easier.
  3. Surround yourself with encouraging people – The company that you keep helps to dictate where you go in life. Surround yourself with cool, inspiring, and motivated individuals.
  4. Know what you want – Don’t feel ashamed to express what your wants and needs are in life.
  5. Work your s** off – Work hard, lose sleep, and put in the time to achieve your dreams.
  6. Make the impossible the new possible – Don’t ask yourself how can you do something; ask yourself, how can you not do something.
  7. Fail hard and fail often – If you fail a lot, the successes will be greater.
  8. Beat on your craft – Develop a crazy work ethic and perfect your craft.
  9. Learn to embrace confrontation – You must take risks for great things to happen.
  10. Do what is right – When you do the right things, good things happen to you.
watch here! 


Deploy rails application in apache2 server using passenger

Tuesday, October 29, 2013

In ubuntu create virtual server and deploy rails application using passenger and apache server

Step 1:
Make sure apache is installed and it work on ubuntu properly. Check it in browser.


It should display  "It Works!"

Step 2:
Install passenger gem on ubuntu

$ gem install passenger

Step 3:
Install passenger apache module.

$ sudo passenger-install-apache2-module

Step 4:
We need to install require module for apache passenger

Step 5:
After installation we need to add the passenger ruby modules at apache config file.

$ sudo subl /etc/apache2/apache2.conf

At last you need to add this lines

LoadModule passenger_module /home/kannan/.rvm/gems/ruby-1.9.3-p374/gems/passenger-4.0.21/buildout/apache2/
PassengerRoot /home/kannan/.rvm/gems/ruby-1.9.3-p374/gems/passenger-4.0.21
PassengerDefaultRuby /home/kannan/.rvm/wrappers/ruby-1.9.3-p374/ruby

Step 6:
Create default sites enabled file and pase this code

$ sudo touch /etc/apache2/sites-enabled/railsproject.local

Suppose you have a Rails application in /somewhere. Add a virtual host to your
Apache configuration file and set its DocumentRoot to /somewhere/public:

eg. somewhere-> /var/www/railsproject


   NameVirtualHost *:80
   <VirtualHost *:80>
      ServerName www.railsproject.local
      # !!! Be sure to point DocumentRoot to 'public'!
      DocumentRoot /somewhere/public   
      <Directory /somewhere/public>
         # This relaxes Apache security settings.
         AllowOverride all
         # MultiViews must be turned off.
         Options -MultiViews

Step 7:
Open hosts file and add the local ip of your application

$ subl /etc/hosts

Add last you need to add    railsproject.local

Step 8:
Restart your apache2 server

$ sudo service apache2 restart

Step 9:
check your virtula hosted project domain



An error occurred while installing nokogiri

During bundle install nokogiri shows some errors. we need to install associated packages for nokogiri gem

Step 1:
Install associated packages

$ sudo apt-get install libxslt-dev libxml2-dev

Step 2:
Now start the bundle install