Thursday, August 28, 2014

Monday, August 25, 2014

Friday, August 22, 2014

the errors sign in eclipse confuse developers

some time,we saw the class and method we reference in eclipse,but the eclipse still shows a error sign in that class or method.
the problem is the order of class path.
try to move the java generated code up to top,make sure it is before the class that reference them.
error sign should go away.

Tuesday, August 19, 2014

database lock check

when doing a database lock check of oracle database, we need check following sys tables.

v$active_session_history as a
v$sql as s

join by sql_id
a.user_id <> 0 will exclude SYS user.
a.sample_time to check the data and time.
a.blocking_session is not null


Wednesday, July 30, 2014

Install JDK from command line

jdk-8u11-windows-x64.exe /s ADDLOCAL="ToolsFeature,SourceFeature" INSTALLDIR=D:\Java8\jdk1.8.0_11

Tuesday, July 22, 2014

Quartz job run time overlapped solutioon

normally when we schedule a job,we expected that when job started when at second scheduled time,the first run before this run is not finished,two process will have some time overlapped,this could cause data in db not consistent.

the solution is make job stateful, next run will wait for first run to finished.

public xxxxxJob extends QuartzJobBean implements ApplicationContextAware,StatefulJob{
}

interface StateFulJob is the key here.

Friday, June 20, 2014

Adding CBC radio into foobar2000

open foobar2000,from menu file --> add Location.
put following into the address:
http://playerservices.streamtheworld.com/pls/CBC_R1_TOR_H.pls