Skip to content

Monthly Archives: February 2008

Perl Testing Walkthrough for Beginners

This article by Michael G Schwern is exceptional. Perl testing is one area where you do not want to just jump in and see what works. The whole point of testing is to make sure you’re doing things right. So read the article – get the best start you can.

Basic Trigger in Oracle

Nearly every database record insert should automatically populate two required fields: ID and ADDED_DATE. Every table should have these fields, and it would be nice if the database automatically filled them in for you each time you add a record.

This script creates a trigger that populates those two fields for you each time you insert a new ‘RECORD’.

CREATE OR REPLACE TRIGGER "DatabaseName"."RECORDADDED" 
before insert on "RECORDTABLE"
for each row begin
if inserting then
select CURRENTDATE into :NEW."ADDEDDATE" from dual;

External Hard Drive Backup Solution

I just got my new external hard drive case. Picture of the case

As you can see from the picture above, it’s very nice looking.

Stay tuned. I will update this article with code, tools and instructions for my complete backup solution – as soon as it is finished.