Archive for the 'Programming' Category

XMLUtil

Saturday, April 8th, 2006

During the development of Impresario, we’ve built many many utilities to help us. One of the utility was the XMLUtil. The javax’s XML tutorial isn’t too helpful. We went through many hours of research and finally compiled a set of functions that allows us to convert strings to Documents, convert Documents to File, validate documents, […]

Prepared Statements, Again!

Tuesday, March 28th, 2006

Okay, earlier this year I figured out that the reason for our binary data problems when retrieving stored files from the database was the use of PreparedStatement. Well, we don’t use it for files, however we do still use it in so many other plaves in our code. We kept getting some recurring errors the […]

Using Prototype.js and PeriodicalExecuter

Tuesday, March 14th, 2006

Use PeriodicalExecuter to execute a method every x seconds.

How about this bug?

Monday, March 13th, 2006

Ok, so I select the list of projects, then I select a specific project.
Ok, so only one person is in that project, nice, I click on him and look at his list of projects.
huh? They don’t match!

So Soen390 has Ka Lun as a Manager, Ka Lun shows that he is the a Contribute on Soen490, […]

How to sign a Java Applet

Monday, February 20th, 2006

This is a tutorial on how to sign a Java Applet to allow it to bypass the security of the JVM. Here
Summary:
* To create a certificate:
keytool -genkey -alias myKeyAlias -keypass myKeypassword -keystore mykeystoreFileName.bin -storepass publicKeykeystorePassword
* To sign the applet (it has to be a .jar file):
jarsigner -keystore mykeystoreFileName.bin MyApplet.jar myKeyAlias
* To verify if the applet […]