Eager to Code, Enjoy to Debug ~ Embark into Each Stage with Your Heart

Archive for March 2008

Linux Command of the Month – March

Posted by: Chyne on: March 31, 2008

1.  Unix setting the date (must change to user root to do the setting)
# date –set = “20080331 10:42”
2008 – current year
03 – current month
31 – current date
10 – current hour
42 – current minute
2.  To view the latest contents in the log file:
# tail –f /log/atp.log
3.  To know what scripts are being used during the [...]

Compiling a JSP File

Posted by: Chyne on: March 25, 2008

When compiling a .jsp file, Tomcat will create a .java file before creating a class. If you want to check the java file, you can find the java file in this location:
Tomcat5.0workCatalinalocalhost\orgapachejsp

Linux – Failure using Command: ‘locate’

Posted by: Chyne on: March 24, 2008

If using the ‘locate’ command to perform a search is failed to return the results and the return message is “/var/lib/slocate/slocate.db is more than 8 day old”, you can update the database by using the command: updatedb

Primary Key Constraint

Posted by: Chyne on: March 22, 2008

Notes:

1. The primary key only can be set constraint during the creation of the table. Else it will display an error that the field returns null value and primary key cannot be created.
2. If you want to change the primary key after the table has been created, you have to drop the table and creates the table [...]

Subreports Guidelines

Posted by: Chyne on: March 22, 2008

Main Report
1. In main report, add SubReport icon.
2. Double click SubReport
3. In Subreport(Other) tab, add in the Subreport Expression:
$P{SUBREPORT_DIR+”/VoterList_subreport0.jasper”} (subreport name)
* If the report name has been changed, compile the report else it won’t bring any effects.
SubReport
1. Double click the subreport icon in the main report.
2. In the subreport tab, choose ‘Use connection expression‘ —> [...]


Friday’s Java Snack


In Java, "thread" means:

  • An instance of class java.lang.Thread
  • A thread of execution


An instance of Thread is just an object that has variables and methods, and lives and dies on the heap.
 
A thread of execution is an individual process that has its own call stack (one thread per call stack).

 

March 2008
M T W T F S S
« Feb   Apr »
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Archives


StatCounter

free hit counters