Friday, April 3, 2009

Do new mobiles still need to be charged for 8 hours?

When I googled for this question, there were a lot of questions regarding this. The initial charging was required for the NiMH and NiCd batters but I believe that it is not required for the li-ion batters that we are using in our mobiles now a days.

The battery care section in the Nokia Europe site is not asking us to do an initial charging. Also the charging care section and the FAQ are not mentioning anything regarding an initial charging. Batteryuniversity.com is also not recommending an initial charging of 8 hours or 12 hours. So I suggest you to charge it until the phone show 'Battery Full'.

Thursday, April 2, 2009

How to create a virtual directory in JBoss? / How to host a page in JBoss?

Open the server.xml file (located at $JBOSS_HOME_DIR/server/default/deploy/jbossweb-tomcat55.sar).
Add <Context path=”/YourVirtualDir” docBase=”PathOfYourPhysicalDir”/> inside the <Host> tag.
You are done.

How to install JBoss?

Download jemsinstaller (jar file) and make sure that you have JDK in your machine. You can start installation by double clicking the jemsinstaller jar file or by giving the command 'java -jar ’ in your command-line. You can download JBoss in many different formats too but this is the easiest one to install if you are a beginner and you have a GUI in your machine. You can also install this jar file using the command-line ($ java -jar jems-installer-1.2.0.jar installscript.xml). Here you can specify the configuration options in the installerscript.xml. The GUI based installation will allow you to generate the installation script automatically in the installation completed panel. For a beginner I recommend to use the GUI based installation of JBoss once and then go for the more advanced command-line installation of JBoss. Once the installation is complete you try http://localhost:8080/ if you can see the test page, you are done with it.