Categories
Film

Spiderman 2

Although I know I am probably the last person on earth who had not seen Spiderman 2, I have to agree with many others who have seen this movie to say it was just great. Despite special effects that were cartoonish at times, the plot was refreshing and allowed Toby Maguire to actually show off his acting skills. A good movie is emotionally engaging and this movie does not miss on that account. Like Robocop 2, this sequal overshadows the original.

Share
Categories
SQL Server

SQL Server 2000 UDFs and GETDATE()

After trying and trying we researched to understand why SQL Server refused to let us run GETDATE() inside a user-defined-function. This is why:

User Defined Functions cannot be used to modify base table information. The DML statements INSERT, UPDATE, and DELETE cannot be used on base tables. Another disadvantage is that SQL functions that return non-deterministic values are not allowed to be called from inside User Defined Functions. GETDATE is an example of a non-deterministic function. Every time the function is called, a different value is returned. Therefore, GETDATE cannot be called from inside a UDF you create.

(From DatabaseJournal.com)

Share
Categories
Java

Jakarta Commons FileUpload and file names

File this under argh!

We use the Jakrata Commons FileUpload to manage J2EE’s weakest link – file uploads.
So naturally, like an narrow-minded developer I test the functionality with Firefox and voila, the upload works. Wrong, and in a beautiful fashion it is the client who finds this out. It appears that Internet Explorer provides the path name for a file being uploaded differently than Firefox does. That is because when you ask FileUpload’s FileItem getName() method for the file’s name what you get is:
Firefox: filename.xyz
IE: C:\firstdir\another directory\more directory\you get the idea\filename.xyz

Beware!

Share
Share