log4j monitor tool Log4j Web Tracker

It is good tool , git is HERE. Steps are add dependency in Maven or build yourself and add to library. add servlet mapping in web.xml In the example the tool was mapped as /tracker/*, so if the application is accessible in http://localhost:8080/myapp, the correct URL to access to the tracker is: http://localhost:8080/myapp/tracker   Just remember to…

Nexus 4 battery life drainage issue

My Nexus 4’s battery life just sucks when I got it. It is like dropping every time I look at the battery percentage. My Solution flash Matr1x kernel In my another post, I found some very important settings for battery saving, especially if you have “Android OS” drainage problem.  The steps comes from this POST. I…

Deploy war application in Tomcat as ROOT

After deploying the war file in webapps, I need something like this: http://www.mysite.com/ NOT this: http://www.mysite.com/myapp/   There should be 3 ways to do it: 1. rename the war to ROOT. war     2.  create a new HOST entry in TOMCAT_HOME/conf/server.xml <Host name=”www.mysite.com” appBase=”www”       unpackWARs=”true” autoDeploy=”true”       xmlValidation=”false” xmlNamespaceAware=”false”> </Host> with this sample setup, you will have a folder…

Add User to root Group on CentOS VPS

1. Add a new user. In this example, I used ‘myroot’ and then set the password. [root@CentOS57 ~]# useradd myroot [root@CentOS57 ~]# passwd myroot Changing password for user myroot. New UNIX password: Retype new UNIX password: passwd: all authentication tokens updated successfully. 2. Check current groups for ‘root’ user. [root@CentOS57 ~]# groups root bin daemon…