A passionate programmer’s findings in the world of internet.

Archive for the 'Programmers should read' Category

Setup CVSNT for Personal Use

Thursday, June 21st, 2007

After developed a small system, I find it hard to keep track all versions of my source files, especially when there are bug fixes and enhancement requests. I have to create a whole new folder to keep track all changes in the past to allow me rollback to a specific version that I need. I'm sure there are version control system that could help me. In my day work, my company is using SCCS/CSSC but it requires Linux environment.

I asked my friends who do programming in Windows environment for suggestions. Most of them confirmed that CVSNT is the thing I need.

There are lots of good and detail guide out there to setup CVSNT, but I there is none that is simple and straight forward, or it's probably too complicated for my simple mind. Let me try to put up a simple guide, with my own experience.


Page Break for Printed Web Pages

Sunday, May 6th, 2007

After I get my invoice to be printed differently from screen, I need to have page breaks for invoices that have more than 1 page. The way to achieve it, is to use CSS, again.

It's just as simple as putting the following code at wherever you need the page break:

<div style="page-break-after: always;"></div>

Also note that there's also page-break-before which you can specify a page break before some tags.

Make Web Page Prints Differently From Screen

Sunday, April 29th, 2007

I have been working on an web-based invoicing system for a while and I'm almost finishing it. This system will be replacing my client's system that runs on Windows and prints invoices with dot matrix printers.

My client has all the invoice template pre-printed on 3-layered carbon paper. My invoicing system only has to fill up the values into invoice form, and not the whole form. But, to only showing only field values on the screen will be hard to read.

Therefore, I need to make my invoice has to be shown in full when it is on the screen, but to print only field values in the printed copy.

eGenting Programming Competition 2006: Sample Answer

Tuesday, November 14th, 2006

Like previous year, I went to the yearly eGenting Programming Competition to help around. Compared to previous years we can see that more people are participating in the competition, although the number of participants in new professional category is quite low.

Anyway, whether you have participated, or interested to participate next year, it would be nice to take a look at the sample answer for this year's competition: eGenting Programming Competition 2006 - Answer

Update: For your information, the winners of the competition will be announced at a prize presentation ceremony on 3 February 2007 in Genting Highlands Resort.

eGenting Programming Competition 2006

Wednesday, October 18th, 2006

The eGenting Programming Competition is coming again, with better prize and new category. The cash prizes are becoming more attractive this year, with RM6000 for first prize, RM3000 for first runner up and RM2000 for second runner up. All the 3 prizes come with a job offer to work in eGenting R&D department.

The old tradition of this competition disallows anybody who is older than 25 years old to take part. But this year, they are opening a new category for 26 and above. The first prize for this category is very attractive: 5 nights ex-Port Klang cruise onboard SuperStar Gemini for 2 persons worth over RM11,000 + HP Compaq Notebook worth over RM5,000. Then, there's another notebook for first runner up and a training programme for second runner up.


  • Competition Date: 11 November 2006
  • Time: 10:00 a.m - 6:00 p.m
  • Venue: Genting Hotel Ballroom
  • Nature: Open-book, hand-written programming task

Be sure you check out the past year questions and register before 20th of October 2006.

All related materials: Official website of eGenting Programming Competition