Posts

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,   tar    xzvf    apache-tomcat-6.0.35.tar.gz  It will extract apache-tomcat-6.0.35.tar.gz file into directorty apache-tomcat-6.0.35  Rename this directory to tomcat6,   mv apache-tomcat-6.0.35    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/startup.sh

FB Sharing and twitter sharing using java script

Use this line in your html code: <a name="fb_share" type="button" share_url="http://knowledge-serve.blogspot.com" ></a>  <a href="https://twitter.com/share" 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="http://static.ak.fbcdn.net/connect.php/js/FB.Share"          type="text/javascript">  </script> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>