Pages

Friday, 24 June 2011

Eclipse Release History

Go to the site  http://www.eclipse.org/downloads/  to get the latest Eclipse.

For those who want an overview of Eclipse releases, please find below:

3.3: Eclipse Europa

3.4: Eclipse Ganymede

3.5: Eclipse Galileo

3.6: Eclipse Helios

3.7: Eclipse Indigo

3.8 (4.2): Eclipse Juno

4.3: Eclipse Kepler

Sunday, 19 June 2011

EMI calculator and Loan calculator : An xls attached to help you


This time I am attaching an xls file that will help you to find the EMIs of your loan and will help you to get an idea about how your bank is calculating the EMIs and how much principal repayment is done every month.  This will also help you to calculate the total interest and principal repayment for a financial year, that will help you to declare the Tax in case of Home Loans. This calculator is using the PMT excel formula to find the EMI.

Click the link to download the  EMI Calculator.

The xls file has two sheets :

  1. EMI Calculator –> This sheet will help you to calculate the EMIs if you enter the Loan amount, Loan tenure in years and Interest Rate.
  2. EquiDivided_Principal –> This sheet will help you to calculate the monthly payments if your bank is not following the EMI approach and is using the equi divided principal approach for the loan. Here also you need to enter the Loan amount, Loan tenure in years and Interest Rate to get the details.
To compare the home loan rates of different banks, got to the url : http://www.deal4loans.com/home-loans-interest-rates.php

screen shot 1: EMI Calculator sheet :



screen shot 2: EquiDivided principal calculator sheet :




Friday, 17 June 2011

ATG : Oracle started new discussion forum for ATG


Oracle has started a new ATG discussion forum on oracle discussion forums.  It has a main ATG section and is divided into technical and business categories.

You can access the url  http://forums.oracle.com/forums/category.jspa?categoryID=503 .  After Oracle acquired ATG, this was much expected and we can hope this forum might give us a better chance to discuss our ATG doubts and more people will come and discuss about ATG.

Find the ATG docs @  http://www.oracle.com/technetwork/indexes/documentation/atgwebcommerce-393465.html





Tuesday, 14 June 2011

ATG DUST: How to invoke OOB Droplets


ATG DUST(Dynamo Unit and System Tests) is a framework for building JUnit tests for applications built on the ATG Dynamo platform. This framework allows one to quickly write test code that depends up Nucleus or ATG Repositories.

You can download the latest version of ATG DUST from http://sourceforge.net/projects/atgdust/. It provides both both src and lib files.

To write an ATG JUNIT testcase to invoke an existing OOB Droplet, follow the following steps :

  1. Create an Eclipse project with the downloaded src and lib files.
  2. Give class path to the follwing files : <ATG_Folder>\das\lib\classes.jar , <ATG_Folder>\dps\lib\classes.jar  and <ATG_Folder>\das\lib\resources.jar ,  <ATG_Folder>\dps\lib\resources.jar
  3. Create an environment variable DUST_HOME and point it to your ATG junit folder, for example: D:\SonyTools\Atg_DUST_JUnitTest\java
  4. To compile the ATG DUST for ATG 2007 version, edit the downloaded DUST java src file atg.servlet.ServletTestUtils to correct the imports atg.test.io.ByteBufferInputStream; and atg.test.io.ByteBufferOutputStream;
  5. Create a folder named “licenseconfig” under DUST_HOME and copy the ATG License files from <ATG_Folder>\home\localconfig\ to this new licenseconfig folder.
  6. Create your test java file, for example find below the DropletInvokerTest.java to do the unit testing of the OOB droplets : /atg/dynamo/droplet/Switch  and /atg/dynamo/droplet/ForEach.
  7. Create a folder named \data\DropletInvokerTest\config\  in the  <DUST_HOME>\src folder if your test file is DropletInvokerTest.java
  8. After doing the build, execute your code by invoking Run as JUNIT Test from Eclipse.

     package com.mycompany.test;

     import java.io.IOException;
     import java.util.HashMap;
     import java.util.List;

     import javax.servlet.ServletException;

     import atg.droplet.DropletInvoker;
     import atg.droplet.DropletInvoker.DropletResult;
     import atg.droplet.DropletInvoker.RenderedOutputParameter;
     import atg.nucleus.Nucleus;
     import atg.nucleus.NucleusTestUtils;
     import atg.servlet.DynamoHttpServletRequest;
     import atg.servlet.ServletUtil;
     import atg.test.AtgDustCase;

     public class DropletInvokerTest extends AtgDustCase {
Nucleus mNucleus;
/**
* Start up Nucleus with Initial services
*/
protected void setUp() throws Exception {
 super.setUp();
 mNucleus = NucleusTestUtils.startNucleusWithModules(
new String[] {"DAS","DafEar"}, this.getClass(),
"/atg/dynamo/droplet/Switch");
}
/**
* Shut down Nucleus
*/
protected void tearDown() throws Exception {
super.tearDown();
ServletUtil.setCurrentRequest(null);
if (mNucleus != null) {
  NucleusTestUtils.shutdownNucleus(mNucleus);
  mNucleus = null;
 }
}
/** Test the DropletInvoker */
public void testInvoker() throws ServletException, IOException {
 doTestSwitch();
 doTestFor();
}
public void doTestSwitch() throws ServletException, IOException {
 DropletInvoker invoker = new DropletInvoker(mNucleus);
 DynamoHttpServletRequest request = invoker.getRequest();
 DropletResult result = null;
 request.setParameter("value", "foo");
 result = invoker.invokeDroplet("/atg/dynamo/droplet/Switch");
 assertNotNull("Make sure that foo got rendered",result.getRenderedOutputParameter("foo"));
 System.out.println("result.getRenderedOutputParameter(foo)-->"+ result.getRenderedOutputParameter("foo"));
}
public void doTestFor() throws ServletException, IOException {
 DropletInvoker invoker = new DropletInvoker(mNucleus);
 DynamoHttpServletRequest request = invoker.getRequest();
 DropletResult result = null;
 String[] strings = new String[] { "one", "two", "three", "four", "five" };
 HashMap<String, Object> params = new HashMap<String,Object>();
 params.put("array", strings);
 result = invoker.invokeDroplet("/atg/dynamo/droplet/ForEach", params);
 assertNotNull("Make sure output got rendered at least once",result.getRenderedOutputParameter("output", false));
 List<RenderedOutputParameter> listOutputs = result.getRenderedOutputParametersByName("output");
 assertEquals("Make sure output was rendered 5 times",5, listOutputs.size());
 for (int i = 0; i < strings.length; i++) {
   RenderedOutputParameter oparam = listOutputs.get(i);
   assertEquals("Should be the same as from the list ", oparam, result.getRenderedOutputParameter("output", i));
   System.out.println(" result.getRenderedOutputParameter(output, i)-->"+ result.getRenderedOutputParameter("output", i));
   assertEquals("Element should be our string", strings[i], (String)oparam.getFrameParameter("element"));
   System.out.println("(String)oparam.getFrameParameter(element)-->"+ (String)oparam.getFrameParameter("element"));
 }
}

Saturday, 11 June 2011

SSL configuration in JBoss


To configure an SSL port with keystore , check the following steps:

1. Generate the keystore with the following command ( using the java keytool command)
keytool -genkey -alias tomcat -keyalg RSA -keystore NAME_OF_KEYSTORE -validity NUMBER_OF_DAYS
( For more details check the url http://download.oracle.com/javase/1.5.0/docs/tooldocs/windows/keytool.html )

2. Copy the file into the jboss/server/<NAME>/conf/ directory

3. Edit the server.xml in the following path
JBoss version 4.0.4 = jboss/server/<NAME>/deploy/jbossweb-tomcat55.sar/
JBoss version 4.2.2 = jboss/server/<NAME>/deploy/jboss-web.deployer/

4. For JBOSS 4.0.4 the SSL-connector should be configured like:

<!– SSL/TLS Connector configuration using the admin devl guide keystore     –>
<Connector port=”THE_PORT_YOU_LIKE” address=”${jboss.bind.address}”
maxThreads=”100? strategy=”ms” maxHttpHeaderSize=”8192?
emptySessionPath=”true”
scheme=”https” secure=”true” clientAuth=”false”
keystoreFile=”${jboss.server.home.dir}/conf/THE_KEYSTORE_NAME”
keystorePass=”PASSWORD_FOR_THE_KEYSTORE” sslProtocol = “TLS” />

For JBOSS 4.2.2, configure it like this:

<Connector port=”THE_PORT_YOU_LIKE” protocol=”HTTP/1.1? SSLEnabled=”true”
maxThreads=”150? scheme=”https” secure=”true”
clientAuth=”false”
strategy=”ms”
address=”${jboss.bind.address}”
keystoreFile=”${jboss.server.home.dir}/conf/THE_KEYSTORE_NAME”
keystorePass=”PASSWORD_FOR_THE_KEYSTORE”
truststoreFile=”${jboss.server.home.dir}/conf/THE_KEYSTORE_NAME”
truststorePass=”PASSWORD_FOR_THE_KEYSTORE”
sslProtocol=”TLS”/>

5. Now you should be able to access your application through https. Remember to use https:// instead of http:// in your browser-url, or else it will fail.

6. If you want to disable the non-secured port 8080, comment and disable that connector in the same server.xml.

7. Example for jboss-4.0.5.GA
jboss-4.0.5.GA\server\<application>\deploy\jbossweb-tomcat55.sar\server.xml

<!– SSL/TLS Connector configuration using the admin devl guide keystore –>
<Connector port=”8443? address=”${jboss.bind.address}”
maxThreads=”100? strategy=”ms” maxHttpHeaderSize=”8192?
emptySessionPath=”true”
scheme=”https” secure=”true” clientAuth=”false”
keystoreFile=”${jboss.server.home.dir}/conf/my.keystore”
keystorePass=”pwd123? sslProtocol = “TLS” />

Saturday, 4 June 2011

Google Chrome : Extensions and Applications


Following are some set of configurations that you can do after installing the Google Chrome :

------------------------------------------------------------------------------------------------------------------
To get the home button in the toolbar go to Options – Show Home button in the toolbar

------------------------------------------------------------------------------------------------------------------
World time application –> https://chrome.google.com/webstore/detail/jdhpjomiingppeefgnohkiapmnaeakoj?hl=en-US




------------------------------------------------------------------------------------------------------------------
Stop watch application –> https://chrome.google.com/webstore/detail/ggnidjbcahhbnleinchgobfnabopeioh?hl=en-US



------------------------------------------------------------------------------------------------------------------
chrome SEO extension –> https://chrome.google.com/webstore/detail/oangcciaeihlfmhppegpdceadpfaoclj



------------------------------------------------------------------------------------------------------------------
click and clean extension  –> https://chrome.google.com/webstore/detail/ghgabhipcejejjmhhchfonmamedcbeod



------------------------------------------------------------------------------------------------------------------
fire bug extension –> https://chrome.google.com/webstore/detail/bmagokdooijbeehmkpknfglimnifench

------------------------------------------------------------------------------------------------------------------
google translate extension  –> https://chrome.google.com/webstore/detail/aapbdbdomjkkjkaonfhkkikfgjllcleb

------------------------------------------------------------------------------------------------------------------
JS error view extension  –> https://chrome.google.com/webstore/detail/nnplccbllaclkbbmoldiamkhgohelbjh?hl=en#

------------------------------------------------------------------------------------------------------------------
screen capture extension  –> https://chrome.google.com/webstore/detail/cpngackimfmofbokmjmljamhdncknpmg



------------------------------------------------------------------------------------------------------------------
Ghostery, protect your privacy extension  –> https://chrome.google.com/webstore/detail/mlomiejdfkolichcflejclcbmpeaniij?hl=en-US



------------------------------------------------------------------------------------------------------------------
save web page as PDF extension –> https://chrome.google.com/webstore/detail/kpdjmbiefanbdgnkcikhllpmjnnllbbc?hl=en-US

------------------------------------------------------------------------------------------------------------------
edit Cookie extension   –> https://chrome.google.com/webstore/detail/fngmhnnpilhplaeedifhccceomclgfbg?hl=en-US



------------------------------------------------------------------------------------------------------------------
YSlow , yahoo performance helper extension  –> https://chrome.google.com/webstore/detail/ninejjcohidippngpapiilnmkgllmakh?hl=en-US#







------------------------------------------------------------------------------------------------------------------
Youtube Optoins  extension –>  https://chrome.google.com/webstore/detail/bdokagampppgbnjfdlkfpphniapiiifn

Options like  disable auto-play, disable pre-buffering , hide comments, hide video suggestions,  hide top or bottom or ads , set default view size or view quality, …



------------------------------------------------------------------------------------------------------------------
Configure the other downloaders like FDM extension –> https://chrome.google.com/webstore/detail/lfjamigppmepikjlacjdpgjaiojdjhoj?hc=search&hcp=main

------------------------------------------------------------------------------------------------------------------
Use the following Themes for a better look :

https://chrome.google.com/webstore/detail/amcjdnpgfhnnpajlgopbglkmnjngfoam?hl=en-US

https://chrome.google.com/webstore/detail/fhnhloefcajlkhmkklpgphhdjiogdcng?hl=en-US

------------------------------------------------------------------------------------------------------------------
Font for the site mathrubhumi can be downloaded from :
http://www.mathrubhumi.com/story.php?id=49930 –>
http://www.mathrubhumi.com/new09/Meera_04-2.ttf

------------------------------------------------------------------------------------------------------------------
Font for the site manoramaonline can be downloaded from : http://www.manoramaonline.com/cgi-bin/mmonline.dll/portal/common/footer/footerHtmls.jsp?contentHtml=FAQ&BV_ID=@@@ –>
http://www.manoramaonline.com/mmfont/Manorama.ttf

------------------------------------------------------------------------------------------------------------------