My Writings. My Thoughts.
Leads of Life
// November 23rd, 2009 // No Comments » // Life
- Never laugh at anyone’s dreams.
- Don’t let a little dispute injure a great friendship.
- Once in a while, invite the person behind you in the queue to go ahead of you.
- Buy ladders, extension cords and garden hoses longer than you think you’ll need.
- Ask anyone giving directions to repeat them at least twice.
- Rehearse a joke before telling it.
- Accept a breath mint if someone offers you one.
- Over-estimate travel time by fifteen minutes.
- Someone will always be looking at you as an example of how to behave. Don’t let him/her down.
- Give people more than they expect, and do it cheerfully.”Don’t be so concerned with your rights that you forget your manners.
- Don’t dismiss a good idea simply because you don’t like the source.
- Put the strap around your neck before looking through binoculars.
- Trust in God, but lock your car.
- Pray. There is immeasurable power in it.
- Brush your teeth before putting on your tie.
- Never ask your barber if you need a haircut.
- Never say anything uncomplimentary about your wife or children in the presence of others.
- When you say “I am sorry” look the person in the eye.
- No matter how old you get, hug and kiss your mother.
- Phone home if you are going to be more than 20 minutes late.
- Remember that everyone is influenced by kindness.
- Never be the first to break a family tradition( as far as possible).
- Do your homework and know your facts, but remember its passion that persuades.
- When someone asks you a question you don’t want to answer, smile and say, “why do you want to know?
- Be friendly to the janitor as you are to the chairman of the board.
- Be bold. Providence loves boldness and will assist you in ways you wouldn’t imagine.
- Never take anybody for granted and never let anybody take you for granted.
- Never marry a woman you love. Marry the woman who loves you.
- Never say NO to life.
- When it comes to worrying or painting a picture, know when to stop.
- Remember that no time spent with your children is ever wasted.
- Hold your child’s hand every chance you get. The time will come when he or she won’t let you.
What’s so special about iPhone 3GS
// November 10th, 2009 // No Comments » // Gadgets, iPhone
iPhone 3GS is the most awaited Phone of the year. it has a cool new features under the hood.
The list of features goes like this:
- Good news for all those who is complaining about iPhone being unresponsive at times, the new iPhone 3GS has better and faster processor, which makes it a snap to launch applications, better browsing experience over wifi, games load faster and exit faster without making the iPhone unresponsive.
- It has a good improvement with respect to battery life.
- Talktime: 12 hours on 2G, 5 hours on 3G.
- Standby: 300 hours.
- Internet use: 5 hours on 3G, 9 hours on WiFi.
- Audio Playback: 30 hours.
- Video Playback: 10 hours.
- It has got voice control. It lets you control iPhone using voice control, you no more have to dig your pocket for your iPhone 3GS to control music or to make calls. With voice control you can tell phone to call a number in your contacts by speaking into the microphone.
- A whole lot of accessibility features.
- text-to-speech voice over: lets the phone read text for you, from now on you can hear e-books for a change.
- Zooming: lets you zoom the phone screen.
- It has got Compass. it shows you which direction if you are heading in case you are stuck in amazon jungles.
- Camera is best thing that has happened to iPhone 3GS next only to faster processor.
- It’s a 3 Mega Pixel camera with Autofocus.
- Tap to focus. It lets you record videos, edit them and send as MMS.
type music hearts cloud and other cool symbols using iphone or ipod keyboard
// November 10th, 2009 // No Comments » // Gadgets, iPhone, iPod
Here are the steps to follow, which enables you to enter special characters like stars, clouds, rain, sun music symbols on iphone, ipod touch
How to enable special symbols:
- Click Settings
- Select General
- Select International
- Select Keyboards
- Select Japanese
- Enable Kana Keyboard

Click on Settings

Choose General from Settings Menu

Select International from General Page

Select Keyboards from International Menu

Select Japanese from Keyboards Page

Enable Kana Keyboard
Procedure to type special numbers
- Click World icon at the bottom of the keyboard until japanese Keyboard comes up
- Click on ABC twice (until you see numbers 1,2,3… with special symbols just below them)
- After clicking ABC twice the screen looks like this
- Click and hold on any button with desired symbol, for example click and hold 1 (it has music, star and arrow symbols) to get symbols around
- Drag and release your finger over one of those symbols
- Wait for 2 seconds
A small menu pops up near the character you just typed, click on the small blue arrow to the extreme right of the popup menu - Here you’ll find a whole bunch of symbols to serve you including but not limited to clouds, love, music, sun, star, brackets, dots and triple dots, not equal etc

Click on world until japanese keyboard comes up

Click ABC twice to show numbers with special symbols just below them

View of Keyboard screen with special symbols

Click and Hold any digit to get desired corresponding symbols

Drag and Release your finger over one of desired symbol

A small menu pop up near the typed character with some symbols and blue arrow to the extreme right

A whole lot of symbols to let you express your feelings better
PHP time since function, works similar to twitter
// October 27th, 2009 // 2 Comments » // General
If you need to display time in the format 5 seconds ago or 7 minutes ago like twitter feel free to use the following script. This function returns the time since specified datetime. refer timezones if you need help on them.
// SET TIMEZONE SO THAT RESULTS ARE ACCURATE date_default_timezone_set('Asia/Calcutta'); // THIS METHOD WILL COMPUTE TIME DIFFERENCE AND RETURNS A STRING SPECIFYING THE TIME SINCE THE SPECIFIED TIMESTAMP // INPUT: $time REPRESENTING A TIMESTAMP // OUTPUT: A STRING SPECIFYING THE TIME SINCE THE SPECIFIED TIMESTAMP // NOTE: this script as it is, will return -1 if hours > 24, which means the difference is more than a day function time_since ($time) { $now = time(); $now_day = date("j", $now); $now_month = date("n", $now); $now_year = date("Y", $now); $time_day = date("j", $time); $time_month = date("n", $time); $time_year = date("Y", $time); $time_since = ""; switch(TRUE) { case ($now-$time < 60): // RETURNS SECONDS $seconds = $now-$time; // Append "s" if plural $time_since = $seconds>1?"$seconds seconds":"$seconds second"; break; case ($now-$time < 45*60): // twitter considers > 45 mins as about an hour, change to 60 for general purpose // RETURNS MINUTES $minutes = round(($now-$time)/60); $time_since = $minutes>1?"$minutes minutes":"$minutes minute"; break; case ($now-$time < 86400): // RETURNS HOURS $hours = round(($now-$time)/3600); $time_since = $hours>1?"about $hours hours":"about $hours hour"; break; // UNCOMMENT the following lines if you wish to use for general purpose other than twitter /*case ($now-$time < 1209600): // RETURNS DAYS $days = round(($now-$time)/86400); $time_since = "$days days"; break; case (mktime(0, 0, 0, $now_month-1, $now_day, $now_year) < mktime(0, 0, 0, $time_month, $time_day, $time_year)): // RETURNS WEEKS $weeks = round(($now-$time)/604800); $time_since = "$weeks weeks"; break; case (mktime(0, 0, 0, $now_month, $now_day, $now_year-1) < mktime(0, 0, 0, $time_month, $time_day, $time_year)): // RETURNS MONTHS if($now_year == $time_year) { $subtract = 0; } else { $subtract = 12; } $months = round($now_month-$time_month+$subtract); $time_since = "$months months"; break; default: // RETURNS YEARS if($now_month < $time_month) { $subtract = 1; } elseif($now_month == $time_month) { if($now_day < $time_day) { $subtract = 1; } else { $subtract = 0; } } else { $subtract = 0; } $years = $now_year-$time_year-$subtract; $time_since = "$years years"; break;*/ default: $time_since = -1;break; //delete this line if you uncomment the above lines } if($time_since == "0 years ago") { $time_since = ""; } return $time_since; } // END time_since() METHOD
