Posts

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...