Monday, December 18, 2006

Dev : CVS vs VSS

Virtual Source Safe (a.k.a. VSS) and Concurrent Versions System (a.k.a. CVS), which one you prefer?

In general, VSS will lock a file for a user, and this will make sure no one will use the file until the current user checks it in. In the downside, when a user checked out the file for a long time, this means that other user have to wait for a long time too if they wanted to use it.

There are more comparisons we can get online, this is one of them.

Friday, December 15, 2006

ORA-00911: invalid character

ORA-00911: invalid character, I've been seeing this error message for 2 long, headache days. What is wrong with my SQL coding?

At first, I thought it was the values that I have inserted were wrong. After much checking, I decided to print out the whole query, copy it and put it into the Oracle SQL client to see what is fxxking wrong.

Test and test and test and retest. No! My query is totally correct to me, but it keep saying that I am wrong, even using Oracle SQL client! So my last resort for this is to remove each of the character in the query one by one. And there is it, the stupid ";" (semicolon) at the end of the query which cause all the misery!

Wednesday, December 13, 2006

Error: Object doesn't support this property or method

I was wondering for quite a while when I hit a javascript error. It stated "Error: Object doesn't support this property or method". The error was in this function, the line which has the word action:

function InsertRecord(){

var myForm = document.form1;

myForm.action="xxxxxxxxxxxx";
myForm.submit();
}

Lucky for me, my sifu, Steven, helped me out on this. My problem was actually a simple and silly error. What I done wrong was:

<button name="action" value="Attachment">

I have actually define one of my button in the form with the name of "action". After changing the name to a more meaningful one, it works once again. :-)