Posts

Showing posts from 2008

I am a Hindu

Though I am not sure about the authenticity or the original source of this mail, which was forwarded to me by Mr. Jayaprakash [ jayan_tkdm@yahoo.co.in ], I find the message simple, apparent and relevant. This conversation indeed is a very interesting and simple presentation of the basic concepts of Hinduism. Four years ago, I was flying from JFK NY Airport to SFO to attend a meeting at Monterey, CA. An American girl was sitting on the right side, near window seat. It indeed was a long journey - it would take nearly seven hours ! I was surprised to see the young girl reading a Bible - unusual of young Americans! (Later I came to know that September 11 has changed mind-set of lot of US citizens. They suddenly turned religious, it seemed.) After some time, she smiled and we had few acquaintances talk. I told her that I am from India. Then suddenly the girl asked, 'What's your faith?' 'What?' I didn't understand the question. 'I mean, what's your re...

Quote of the day !!

Image

The 4 Liquid STAGES of LIFE...!!!!

Image

More on resizing html tables

Hi friends, We have already discussed, how to resize html tables . This script is very nice but the common requirement is to fix the headers i.e. there should be only data scroll and fixed headers. I have achieved this with help of another script available here . In short, just put following style tag in your script, <style> /* This style tag contains classes for fixed headers */ body{ overflow:auto; } div.tableContainer { position:absolute; top:0; left:0; width:100%; /* table width will be 99% of this*/ height:100%; /* must be greater than tbody*/ overflow:auto; } table>tbody { /* only for mozilla - child selector syntax which IE6 and older do not support*/ overflow: auto; height: 550px; overflow-x: hidden; } thead tr{ position:relative; top: expression(offsetParent.scrollTop); /*IE5+ only*/ } </style> Put your 'tablekit' table inside 'div'. My table looks like following, <div class="tableContainer"> <table border="0" cellpad...

Keep the Spark

Inaugural Speech by Chetan Bhagat for the new batch at the Symbiosis BBA program 2008 Good Morning everyone and thank you for giving me this chance to speak to you. This day is about you. You, who have come to this college, leaving the comfort of your homes (or in some cases discomfort), to become something in your life. I am sure you are excited. There are few days in human life when one is truly elated. The first day in college is one of them. When you were getting ready today, you felt a tingling in your stomach. What would the auditorium be like, what would the teachers be like, who are my new classmates - there is so much to be curious about. I call this excitement, the spark within you that makes you feel truly alive today. Today I am going to talk about keeping the spark shining. Or to put it another way, how to be happy most, if not all the time. Where do these sparks start? I think we are born with them. My 3-year old twin boys have a million sparks. A little Spiderman toy can...

Brain Teasers

Image
It's too cool !! Try to solve the puzzles given below scroll down for answers . . . . . . . . . . . . . . . . . . . . . . . . .

Resize table columns of html table

Hi friends, I was replicating a desktop application in php. Everything was going fine but I was stuck at one of the requirements by client. He wanted column resize functionality just like we have in windows environment. User should be able to resize table cell width by dragging the separator between 2 columns. When I was looking for suitable solution on net, got a very robust one. Take a look at, http://www.millstream.com.au/view/code/tablekit/ It's not as powerful as the resize functionality in windows environment because of limitations in html table. The 100% width of table is maintained automatically. So, once you drag one column, other columns are resized. But still, this script is very much helpful. This script not only provides column resize functionality but also column sorting with a single click and that to without any additional code !! You just have to call respective class in the table and that's all !! You are ready to go. The column type can be specified so the so...

Peanuts !!

Image
A tour bus driver is driving with a bus load of seniors down a highway when he is tapped on his shoulder by a little old lady. She offers him a handful of peanuts, which he gratefully munches up. After about 15 minutes, she taps him on his shoulder again and she hands him another handful of peanuts. She repeats this gesture about five more times. When she is about to hand him another batch again he asks the little old lady, " why don't you eat the peanuts yourself?". "We can't chew them because we've no teeth", she replied. The puzzled driver asks, "Why do you buy them then?" . . . . . . . . . . . . . . . . . . . . . . . . . . . The old lady replied, . . . . . . . . . . . . . "We just love the chocolate around them."

Good........Give it a try !

Image
Can you read this in the first attempt ? Not possible to read anything ? then follow the guidelines given below . . . . . . . . . . . . . . . . . . . . . . Close your eyes almost 90% so that you can actually read it Its really superb !!!

Compress file size in browser...... Just Like That !!

Hi there, While working on one of my projects, I came across one of the very useful tricks. It's about compressing file size in browser and believe me, the compression ratio is amazing !! Checkout yourself. I am going to discuss 'php' part of this. You'll find other counterparts on net. Just write ob_start("ob_gzhandler") as first line of your php script and you are done !! You can check the difference in file size by commenting the above code first in your php script. This will show your file's actual size in browser. Enable the first line again and see the magic !! To see file size in mozilla firefox browser, right click your mouse, select 'View Page Info' and see value next to 'Size' under 'General' tab. For techies out there, who really want to know, what's this and what goes on behind the scene, checkout http://www.whatsmyip.org/mod_gzip_test/phpgzip/ for details. If you are in doubt or don't how to check the file ...