Showing posts from February, 2012

Install apache tomcat on Ubuntu Linux

First move tar.gz file into /usr/local/src/ directory and now extract here,


 It will extract apache-tomcat-6.0.35.tar.gz file into directorty apache-tomcat-6.0.35

 Rename this directory to tomcat6,

 Now set your environment variable...

cat >> ~/.bashrc
 export CATALINA_HOME=/usr/local/src/tomcat6

 Save it using ctrl+d and then
source ~/.bashrc

Now you can test by starting your tomcat server

  sudo $CATALINA_HOME/bin/

FB Sharing and twitter sharing using java script

Use this line in your html code:
<a name="fb_share" type="button" share_url="" ></a>

 <a href="" class="twitter-share-button" data-related="jasoncosta" data-lang="en" data-size="medium" data-count="none"></a>

and also include script from Facebook and twitter java script api...

<script src="" 

<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);;js.src="//";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>