I do remember in tomcat it requires to add role and user credential in tomcat-users.xml file for adding security to web pages. Sometime i need to refer some sample. Here is the sample's..
http://www.indicthreads.com/1443/setting-up-secure-web-authentication-in-tomcat/
http://www.thecoderscorner.com/tcc/a/web-tomcat/role-based-security-and-authentication-with-tomca
http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html#What_is_a_Realm?
Thursday, December 15, 2011
Monday, September 05, 2011
Default password for java keystore
When we try to import custom CA Certificate, it will ask for the password for keystore. Default one is 'changeit' :)
Finally got from 'http://mediakey.dk/~cc/java-default-keystore-password-cacerts/'
Finally got from 'http://mediakey.dk/~cc/java-default-keystore-password-cacerts/'
Wednesday, April 06, 2011
Coding Standard
When an project is an development cycle, Emphasizing each developer to follow coding standard is cumbersome that too just by reading few pages of guidelines. That's where some of the open source tools helps the programmers life easier and better.
There are many tools available to address this.As most of the java developer uses Eclipse as an preferred IDE, This article discuss about some of the eclipse plug-ins for evaluation purpose. Even though each of the tools are not equally comparable and address the its own problems, Its required to pursue each tool pro's and con's.
> CheckStyle
(*) Checks everyone follows the same coding format.
(*) Checks like content length(method, file, etc), imports, coding problems.
(*) Its not more active, last release was 2009. Every year one release max, so the latest JDK changes might not be available immediate
For more info : http://findbugs.sourceforge.net/index.html
> PMD
(*) Can be integrated into build tools like Ant,Maven
(*) Unlike CheckStype, It detects some advanced bugs like Dead, duplicate code etc.
(*) It also detects NPath Complexity,Excessive Class Length,Cyclomatic Complexity and Too Many Methods etc.
For more info : http://pmd.sourceforge.net
> CodePro
(*) Generates detail reports of violation of rules.
(*) Rules can be applied to most advanced frameworks like EJB4, Spring, Struts etc.
(*) JUnit Test cases can be generated from source code.
(*) Most active
For more info : http://eclipse-cs.sourceforge.net
> FindBugs
For more info : http://code.google.com/javadevtools/codepro/doc/features/audit/audit.html
> Eclipse Built-In Code Style
Best approach would be using CodePro with Eclipse Built in code style.
There are many tools available to address this.As most of the java developer uses Eclipse as an preferred IDE, This article discuss about some of the eclipse plug-ins for evaluation purpose. Even though each of the tools are not equally comparable and address the its own problems, Its required to pursue each tool pro's and con's.
> CheckStyle
(*) Checks everyone follows the same coding format.
(*) Checks like content length(method, file, etc), imports, coding problems.
(*) Its not more active, last release was 2009. Every year one release max, so the latest JDK changes might not be available immediate
For more info : http://findbugs.sourceforge.
> PMD
(*) Can be integrated into build tools like Ant,Maven
(*) Unlike CheckStype, It detects some advanced bugs like Dead, duplicate code etc.
(*) It also detects NPath Complexity,Excessive Class Length,Cyclomatic Complexity and Too Many Methods etc.
For more info : http://pmd.sourceforge.net
> CodePro
(*) Generates detail reports of violation of rules.
(*) Rules can be applied to most advanced frameworks like EJB4, Spring, Struts etc.
(*) JUnit Test cases can be generated from source code.
(*) Most active
For more info : http://eclipse-cs.sourceforge.
> FindBugs
For more info : http://code.google.com/
> Eclipse Built-In Code Style
Best approach would be using CodePro with Eclipse Built in code style.
Wednesday, February 23, 2011
How to convince people effectively
Good article forwarded from Sudhir How to convince people effectively
Wednesday, January 26, 2011
Singleton
http://www.javalobby.org/java/forums/t17491.html
http://stackoverflow.com/questions/3714971/difference-between-singleton-class-and-static-class
http://docstore.mik.ua/orelly/java-ent/jnut/ch03_09.htm
http://stackoverflow.com/questions/3714971/difference-between-singleton-class-and-static-class
http://docstore.mik.ua/orelly/java-ent/jnut/ch03_09.htm
Tuesday, November 30, 2010
Include javascript once for an App.
Google making developer more lazy (we call it as smart work). No need to think how to do, sample code will be there always. Was looking how to avoid duplicate java scripts, found at http://www.phpied.com/javascript-include/
Tuesday, November 23, 2010
Client (Web) Tier Performance Improvement
I don't want to repeat the same what is been discussed in below.. http://developer.yahoo.com/performance/rules.html
Highlights are,
Compression, Remove duplicate JS, etc..
Highlights are,
Compression, Remove duplicate JS, etc..
Subscribe to:
Posts (Atom)
Running Jobs as application user in Cloudera hadoop distribution
When an Hadoop cluster is not enabled with Kerberos authentication, Internally triggered jobs would be running as an 'yarn' user ra...
-
Imagine a website without Javascript? Why not? (no debates, only one scenario.. keep guessing). This is not something what i am going to wr...
-
When an Hadoop cluster is not enabled with Kerberos authentication, Internally triggered jobs would be running as an 'yarn' user ra...
-
http://en.wikipedia.org/wiki/Magic_SysRq_key http://linux.about.com/od/linux101/l/blnewbie5_1.htm