The Eternal Truth...

There are only 3 ways to write a blog... The Right Way, The Wrong Way and MY Way :-)

Programming Myself....

If you want something you never had, you must do something you never have done!!! - That's meee!!! can't be better:-)

Da Vinci Code

I wanted to read The Da Vinci Code, because enough people had harassed me about reading it. You haven't read the Da Vinci Code? and I think I was the only one that hadn't read it. It had been out for a some time now, and finally, it was as easy as Thiru saying, Here, I finished, and he gave it to me. It's about a quest to find truth, just in the middle of everything that's established. I think it got popular, because it's not only fiction, but it mixes in some aspects of truth, that it has people scratching their heads, saying, "Hum, could this be true?" I like the pace of the book. I felt like I was sweating, and rushing, and moving, and looking for things. The more i read, the more i felt it drew similarities with the movie - National treasure. In any case, it was fun. Fun to know that Mary Magdelene was Jesus's mistress and they had a heir who actually lives to date. I wonder what sort of research Dan had put it. All credit to him. Not many write such books which cause an uproar.

Ping Pong

The ultimate nostalgic "action" game, I developed when i was in college. This is how it all started! Click on "Run Program!" to start the game. Left player: Q=up, A=stop, Z=down. Right player: P=up, L=stop, <=down.


While rummaging some old backups, I came across this code and though would share it.As always, feel free to change the BASIC code to make this your game. For example you can add score keeping and new ball angles to make it more interesting :-)


1000 REM Ping Pong
1010 REM V Project
1020 REM ------------------------
1030 CLS
1040 PRINT "***** V- PING PONG *****"
1050 PRINT "LEFT PLAYER RIGHT PLAYER"
1060 PRINT "UP: Q UP: P"
1070 PRINT "STOP: A STOP: L"
1080 PRINT "DOWN: Z DOWN: <"
1090 PRINT "****************************"
1100 PRINT
2000 REM X,Y hold the position of the ball 2010 LET X = 10 2020 LET Y = 3
2030 REM U,V hold the speed of the ball
2040 LET U = 1
2050 LET V = 1
2060 REM P and Q are the vertical positions of the paddles
2070 REM R and S are the speeds of the paddles
2080 LET P = 11
2090 LET R = 0
2100 LET Q = 11
2110 LET S = 0
2120 REM W is a random component to the y-direction speed
2130 LET W = 1
2140 REM Draw the paddles at their initial positions
2150 FOR I = 11 TO 14
2160 PLOT 0, I, "white" 2170 PLOT 24, I, "white"
2180 NEXT I
3000 REM The keyboard input loop
3010 PAUSE 25 + 50 * (5 - LEVEL)
3020 REM Before moving ahead, we ensure we handle all of the keyboard buffer
3030 LET C = GETCHAR()
3040 IF C = "" THEN GOTO 4000
3050 IF C = "Q" OR C = "q" THEN LET R = 1
3060 IF C = "A" OR C = "a" THEN LET R = 0
3070 IF C = "Z" OR C = "z" THEN LET R = -1
3080 IF C = "P" OR C = "p" THEN LET S = 1
3090 IF C = "L" OR C = "l" THEN LET S = 0
3100 IF C = "<" OR C = "," THEN LET S = -1
3110 GOTO 3000 4000 REM Move the ball
4010 PLOT X, Y, "gray" 4020 LET X = X + V
4030 LET Y = Y + U * W
4040 PLOT X, Y, "white"
4050 REM Bounce off the top and bottom walls
4060 REM The plotted y-position is rounded so we round here
4070 REM when we are doing collision detection
4080 LET Z = ROUND(Y)
4090 IF Z <= 1 OR Z >= 23 THEN LET U = -U
4100 REM Check paddle position before bouncing
4110 IF X <> 1 AND X <> 23 THEN GOTO 5000
4120 IF X = 1 AND (Z <> P + 4) THEN GOTO 6000
4130 IF X = 23 AND (Z <> Q + 4) THEN GOTO 6000
4140 REM Bounce on the paddle
4150 LET V = -V
4160 REM Change the random component of the y-speed
4170 LET W = 0.9 + RAND(0.6)
5000 REM Move the paddles
5010 IF P = 21 AND R = 1 THEN LET R = 0
5010 IF P = 0 AND R = -1 THEN LET R = 0
5010 IF Q = 21 AND S = 1 THEN LET S = 0
5010 IF Q = 0 AND S = -1 THEN LET S = 0
5100 IF R <> 1 THEN GOTO 5200
5110 PLOT 0, P, "gray"
5130 LET P = P + R
5140 PLOT 0, P + 3, "white"
5200 IF R <> -1 THEN GOTO 5300
5210 PLOT 0, P + 3, "gray"
5230 LET P = P + R
5240 PLOT 0, P, "white"
5300 IF S <> 1 THEN GOTO 5400
5310 PLOT 24, Q, "gray"
5330 LET Q = Q + S
5340 PLOT 24, Q + 3, "white"
5400 IF S <> -1 THEN GOTO 5500
5410 PLOT 24, Q + 3, "gray"
5430 LET Q = Q + S
5440 PLOT 24, Q, "white"
5500 GOTO 3000
6000 REM Game Over
6010 CLT
6020 PRINT "***** V BASIC PONG *****"
6030 PRINT
6040 PRINT "******** GAME OVER *********"
6050 IF X = 1 THEN PRINT "RIGHT"; ELSE PRINT "LEFT";
6060 PRINT " PLAYER IS THE WINNER!"
6070 PRINT "****************************"
6080 PRINT
6090 PRINT "Click 'Run Program' to play again,"




Blue Screen of Death Saver?

Someone at Microsoft has a very good sense of humor. They’ve released a blue
screen of death screen saver... to remind people of the good old days. Only a matter of time before it gets pulled I reckon :)

Download it while you still can! ... More details can be found on The Register


Data Models

Found a cool Site : - http://www.databaseanswers.org/data_models/

Whats so cool about this? Well this is has around 100's of Data Models already ready in place, be it Airline Resrvation to School Management System. Its ready with schema and business rules. So from next time onwards before doing a data model just check in this site for your schema.....

Interview on CNBC with Warren Buffet, the second richest

Interview on CNBC with Warren Buffet, the second richest
READ SPECIALLY the LAST LINE
There was a one hour interview on CNBC with Warren Buffet, the second richest man who has donated $31 billion to charity. Here are some very
interesting aspects of his life

1) He bought his first share at age 11 and he now regrets that he started too late!
2) He bought a small farm at age 14 with savings from delivering newspapers.
3) He still lives in the same small 3 bedroom house in mid-town Omaha , that he bought after he got married 50 years ago. He says that he has everything he needs in that house. His house does not have a wall or a fence.
4) He drives his own car everywhere and does not have a driver or security people around him.
5) He never travels by private jet, although he owns the world's largest private jet company.
6) His company, Berkshire Hathaway, owns 63 companies. He writes only one letter each year to the CEOs of these companies, giving them goals for the year. He never holds meetings or calls them on a regular basis.
7) He has given his CEO's only two rules. Rule number 1: do not lose any of your share holder's money. Rule number 2: Do not forget rule number 1.
8) He does not socialize with the high society crowd. His past time after he gets home is to make himself some pop corn and watch television.
9) Bill Gates, the world's richest man met him for the first time only 5 years ago. Bill Gates did not think he had anything in common with Warren Buffet. So he had scheduled his meeting only for half hour. But when Gates met him, the meeting lasted for ten hours and Bill Gates became a devotee of Warren Buffet.
10) Warren Buffet does not carry a cell phone, nor has a computer on his desk.
11) His advice to young people: Stay away from credit cards and invest in yourself.