Syntax Highlighting

To enable syntax highlighting on blogspot follow the below steps. Go to Design –> EditHTML–>Edit Template section Add the following just before </head> <!– Add-in CSS for syntax highlighting –> <script src=’http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shCore.js’ type=’text/javascript’/> <script src=’http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushCpp.js’ type=’text/javascript’/> <script src=’http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushCSharp.js’ type=’text/javascript’/> <script src=’http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushCss.js’ type=’text/javascript’/> <script src=’http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushDelphi.js’ type=’text/javascript’/> <script src=’http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushJava.js’ type=’text/javascript’/> <script src=’http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushJScript.js’ type=’text/javascript’/> <script src=’http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushPhp.js’ type=’text/javascript’/> <script src=’http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushPython.js’ type=’text/javascript’/> <script src=’http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushRuby.js’ type=’text/javascript’/> <script src=’http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushSql.js’ type=’text/javascript’/> <script src=’http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushVb.js’ type=’text/javascript’/> <script src=’http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushXml.js’ type=’text/javascript’/> Add the following just before </body> <!– Add-in Script for syntax highlighting –> <script language=’javascript’> dp.SyntaxHighlighter.BloggerMode(); dp.SyntaxHighlighter.HighlightAll(‘code’); </script> Add the <pre> tag surrounding the code snippets. <pre class=”xml” name=”code”> Your XML

Continue reading »

How to kill a process running on a port

Hi All,Many of the Java developers frequently facing some problems with ports.Ex: If JBoss server has started and closed accedentally without properly shutdown process , several processes will remain running on some ports which will causes Port Already binded kind of exceptions.In that kind of situations, we can forcefully kill a process running on a port as follows:1. get the PID of that processd:>netstat –ao 2. kill the processD:>taskkill /F /PID p_id

Continue reading »

Struts1 Vs Struts2 Vs JSF Vs SpringMVC

Hi, Recently I have done some research on J2EE Web frameworks usability and features to decide the framework to be used for one of my new projects.I consider Struts 1, Struts2, JSF and Spring MVC. After spending some hours on going through each of the frameworks features and some more hours to do a simple application(Proof Of Concept).In this process i was excited looking at some of the features, become a fan of one of the frameworks, felt home sick to leave my all time favourite framework and irritated with some of the frameworks. Struts1: This is my all time

Continue reading »