Posts

Showing posts from October, 2010

Top Ten Tomcat Configuration Tips - O'Reilly Media

Top Ten Tomcat Configuration Tips - O'Reilly Media

Modifying the JVM heap size Formula

  The total value of all server JVM heap sizes within the dynamic cluster for a specific node must be less than half of the total RAM of that computer. To determine the maximum heap size setting for a single server instance, use the following equation: total_RAM / 2 / number_of_servers = maximum_heap_size For example, to support three servers on a machine with 1.5 GB of RAM: 1.5 GB / 2 = 750 MB 750 MB / 3 = 250 MB The maximum heap size is 250 MB for each server instance.

Dealing with Micro Manager

A very good article on dealing with Micro Manager,          http://www.hodu.com/micro.shtml

Project Management Learning

http://www.4pm.com/

oracle queries

Covert Date to Timestamp TO_TIMESTAMP(SYSDATE,'DD-MM-RRRR HH24:MI:SS') FROM DUAL;

Oracle Dates difference in Days

create or replace function date_diff( p_date1 DATE , p_date2 DATE) return char is  Years        NUMBER;  months       NUMBER;  days         NUMBER;  day_fraction NUMBER;  hrs          NUMBER;  mints        NUMBER;  sec          NUMBER; begin  Years :=trunc( months_between( p_date2 , p_date1 ) /12 );  months:=mod( trunc( months_between( p_date2, p_date1 ) ), 12 );  days  :=trunc(p_date2 - add_months(p_date1,trunc(months_between(p_date2,p_date1) )));  day_fraction:= (p_date2-p_date1)-trunc(p_date2-p_date1);  hrs   :=trunc(day_fraction*24);  mints :=trunc((((day_fraction)*24)-(hrs))*60);  sec   :=trunc(mod((p_date2-p_date...

Oracle timestamp difference in Days

create or replace FUNCTION timestamp_diff ( start_time_in TIMESTAMP , end_time_in TIMESTAMP ) -- RETURN NUMBER RETURN VARCHAR AS l_days NUMBER; l_hours NUMBER; l_minutes NUMBER; l_seconds NUMBER; l_milliseconds NUMBER; BEGIN SELECT extract(DAY FROM end_time_in-start_time_in) , extract(HOUR FROM end_time_in-start_time_in) , extract(MINUTE FROM end_time_in-start_time_in) , extract(SECOND FROM end_time_in-start_time_in) INTO l_days, l_hours, l_minutes, l_seconds FROM dual; --l_milliseconds := l_seconds*1000 + l_minutes*60*1000 + l_hours*60*60*1000 + l_days*24*60*60*1000; --RETURN ' Milliseconds ' || l_milliseconds; l_milliseconds := (l_seconds - FLOOR(l_seconds) ) * 1000000 ; -- + l_minutes*60*1000 + l_hours*60*60*1000 + l_days*24*60*60*1000; --RETURN 'Days '|| l_days ||' Hours '|| l_hours||' Minutes '||l_minutes||' Seconds '||FLOOR(l_seconds)||' Milliseconds '|| l_milli...

Interesting aspects of life - Warren Buffet

Image
Something to think about.... There was one hour interview on CNBC with Warren Buffet, the second richest man who has donated $31 billion to charity. Here are some very interesting aspects of his life: 1. He bought his first share at age 11 and he now regrets that he started too late!!!! 2. He bought a small farm at age 14 with savings from delivering newspapers. 3. He still lives in the same small 3-bedroom house in mid-town Omaha,  that he bought after he got married 50 years ago. He says that he has  everything he needs in that house. His house does not have a wall or afence. 4. He drives his own car everywhere and does not have a driver or security people around him. 5. He never travels by private jet, although he owns the world's largest private jet company. 6. His company, Berkshire Hathaway, owns 63 companies.  He writes only one letter each year to the CEOs of these companies, giving them goals  for the year. He never holds meetings or calls them on...

Don't be serious, be sincere!!

Image
Don't just have career or academic goals. Set goals to give you a balanced, successful life. I use the word balanced before successful. Balanced means ensuring your health, relationships , mental peace are all in good order. There is no point of getting a promotion on the day of your breakup. There is no fun in driving a car if your back hurts. Shopping is not enjoyable if your mind is full of tensions. "Life is one of those races in nursery school where you have to run with a marble in a spoon kept in your mouth. If the marble falls, there is no point coming first. Same is with life where health and relationships are the marble. Your striving is only worth it if there is harmony in your life. Else, you may achieve the success, but this spark, this feeling of being excited and alive, will start to die. One thing about nurturing the spark - don't take life seriously. Life is not meant to be taken seriously, as we are really temporary here. We are like a pre-paid card...

Moral Encompassed

Image

Open Source Performance Testing Tools

Few open source testing tools,     Pylot – Web Load Testing from Amazon Elastic Compute Cloud (EC2)     Grinder In The Cloud – A cloud based load testing environment     Load Testing From The Cloud (JMeter)

Characteristics of a software architect

Image
Good article on Software architect Characteristics,           Characteristics of a software architect  

Invoking IBM B2B Sterling Integrator WebServices with Security using Java Client

Web Services with Security 1) Generate self-sign certificate. 2) Assign certificate to Webservice and change protocol type to https while publishing webservice. 3) Import certificate into keytool using keytool of java. 4) Write a java client based on generated wsdl. Command to import certificate into keytool C:\>keytool -import -trustcacerts -alias HTTPSCertificateName -file D:\Projects\HTTPSCertificateName .cer -keystore "C:\Program Files\Java\jdk1.5.0_11\jre\lib\security\cacerts" password: changeit Note:      (1) About command will import certificate into C:\Program Files\Java\jdk1.5.0_11\jre\lib\security\cacerts.      (2) Make sure your C:\Program Files\Java\jdk1.5.0_11\jre\lib\security\cacerts file should update with latest date and time if it is successfuly   imported. System Properties to set in Java code     System.setProperty("javax.net.ssl.trustStore","C:\\Program Files\\Java\\jdk1.5.0_11\\jre\\lib...

Inspiring...

Stay hungry Stay foolish...

Cool Speech...

Searching for a Java Class file locatioin in bunch of jars (JAR Scanner)

A Cool open source software I found on internet it can search a .class file from a bunch of .jar files. Download jarscan.jar from below link... Usage: To display the help message type:   java -jar jarscan.jar -help OR java -jar jarscan.jar To find the class ArrayList starting from the root of your c: drive type:   java -jar jarscan.jar -dir c:\ -class ArrayList Here is the URL, http://www.inetfeedback.com/jarscan/

A picture speaks a thousand words

Image