RSS

Monthly Archives: October 2010

Celebrating Festival Of Lights-Deepavali


Deepavali

Deepavali is around the corner.India is  gearing up to celebrate the biggest festival,the  festival of lights.How we celebrate it!People wear new clothes, send wishes to loved ones,exchange  sweets with friends and family,light a row of lamps in their home,fire crackers.Oh what a great day!By the way are we missing something here??!!.You ask many people that why we are celebrating deepavali.Their answer will be ‘I don’t know!’ or they give improper reasons.What is the point celeberating the festival without knowing its importance.

Deepavali (Sanskrit: दीपावली Dīpāvali), which translates into row of lamps (in Sanskrit). It involves the lighting of small clay lamps (diyas) (or Deep in Sanskrit: दीप) filled with oil to signify the triumph of good over evil. The primary reason behind celebrating deepavali is,  Lord Krishna killed narakassura,the evil demon and freed the people.Periyazhwar praising the killing of narakassura in his poem Periyazhwar thirumozhi.
கிழக்கில் குடிமன்னர் * கேடிலாதரை *
அழிப்பான் நினைந்திடு * அவ்வாழியதனால்*
விழிக்குமளவில்*வேரறுத்தானை*
(Periyazhwar thirumozhi 4-3-3)
Meaning:

Pragjothishapuram was a town on the eastern side, where Demon Naraka was ruling. Due to the boons obtained for their welfare and in the background of their own might, they were considered as free from danger.

Some people have different reasons for celebrating it.Let the reasons be alone with them.As a mark of victory and freedom, in ancient days people lit up the lights to show the darkness(narakassura) was gone. Nowadays we forgot the reason behind deepavali.What we know is deepavali is the day to fire the crackers.We succumbed to the materialistic life.Many of us don’t know how crackers came into the  context.Firing crackers is never been  part of the customary.In the name of festival we are spoiling our environment.The sacred books of Hindus never asked to fire crackers. One important activity those who celebrate deepavali must to do is,go to Lord Krishna’s temple,thank him for freeing the people from the  demons and pray him to continue to show his mercy.How many of us doing it?The lighting of lamps is a way of paying obeisance to God for attainment of health, wealth, knowledge, peace, valour and fame.The only reason to celebrate festivals in India is to rejoice and  relive the  glorious past.Teach descendants about orgin and history of deepavali,If you don’t teach them,after 25 years,they will say,we are celebrating  deepavali because US president Mr.Barack Hussein Obama Came India for the first time on 2010.(Note:He is coming to India during deepavali).

So folks,the fact of the matter is there is no reason to fire crackers in deepavali.Celebrate a cracker less deepavali.Have a great deepavali!Enjoy the festival!.

 
1 Comment

Posted by on October 30, 2010 in Environment, Hinduism, History

 

Tags: , , , , , , , , ,

Untold Truth of Smartphones


Many smartphones are marketed with the tagline that ‘It provides out of the box solutions‘.Are they justifying their tagline?.The answer is NO!

Wikipedia definition for Smartphone:

smartphone is a mobile phone that offers more advanced computing ability and connectivity than a contemporary basic feature phone.

More info http://en.wikipedia.org/wiki/Smartphone

A lots of features mentioned in their manuals.Here are the some untold truth of smartphones that they never listed in their manuals.After reading this article you wonder are we in information age!!.

http://en.wikipedia.org/wiki/Information_Age

Anroid

  • You can’t transfer business cards to non anroid phones.
  • More applications that you install  less the battery life.To save battery life, install another application named task killer  to increase battery life

Blackberry

  • You cannot transfer files over bluetooth to other phones,even to other blackberry phones.So the solution is, send files as email attachments.

Iphone

  • You cannot charge iphone without a propriety iphone charger.
  • Its not possible to  send business cards to other iphones
  • You cannot transfer files over bluetooth to other iphones
  • No external storage
  • No third applications can be installed.Shell out your money and buy it from ITUNES.
 
Leave a comment

Posted by on October 27, 2010 in Technology

 

Tags: , , , , , , , ,

How to Send Mail From Localhost-PHP


If  you are using wamp in a windows machine,its quite hard to send mail through native php mail function or sendmail or SMTP.But you can use PHP Mailer program to send mail from localhost.It bypasses native mail,sendmail methods.It works well on windows as well as *nix machines.

Download PHP Mailer from http://sourceforge.net/projects/phpmailer/files/phpmailer%20for%20php5_6/ or from http://phpmailer.worxware.com/

Sample code

<?php
require($_SERVER['DOCUMENT_ROOT'].'/phpmailer/class.phpmailer.php');
require($_SERVER['DOCUMENT_ROOT'].'./phpmailer/class.smtp.php');
$mail  = new PHPMailer();
$body="<b>This mail is sent using PHP Mailer</b>";#HTML tags can be included
$mail->IsSMTP();
$mail->SMTPAuth  = true;                 #enable SMTP authentication
$mail->SMTPSecure = "ssl";               #sets the prefix to the server
$mail->Host  = "smtp.gmail.com";         #sets GMAIL as the SMTP server
$mail->Port       = 465;                 #set the SMTP port
$mail->Username   = "";                  #your gmail username
$mail->Password   = "";                  #Your gmail password
$mail->From       = "";                  #your gmail id
$mail->FromName   = "";                  #your name
$mail->Subject    = "Subject of the mail";
$mail->WordWrap   = 50;
$mail->AddAddress("recipient mail id","recipient name");
$mail->IsHTML(true); // send as HTML
if(!$mail->Send())
{
echo "Mailer Error: " . $mail->ErrorInfo;
}
else
{
echo "Message has been sent";
}

?>

You can also send mail with attachments.For more info refer the documentation of PHP Mailer.

Caution:

Change SMTP Host,port,authentication only if sure of what you are doing.

 
3 Comments

Posted by on October 8, 2010 in PHP, Web Development

 

Tags: , , , , , , , , , , , ,

How To Create an Alias in Wamp


When you install wamp, www will be the default folder to put your site and it will be accessed by http://localhost/site-name.But how can one run site that exists outside www folder.Here ‘s the simple solution

Create a folder in any one of your parititons.Here i have created a folder called trunk in C:\ drive.

  • Right click the wamp icon click and go Apache->Alias directories->add an alias

Wamp-Create-Alias

A new command window will be opened

  • Enter the only(without ant relative or absolute path) the name of the folder that you created and hit enter.

Example:trunk

  • Now specify the path where the folder is located and hit enter.

Example: c:/trunk/

Thats it alias created.Site can be accessed with this url http://localhost/trunk.Store all the files in the folder that you created.

 
1 Comment

Posted by on October 7, 2010 in PHP, Tips & Tricks, Web Development

 

Tags: , , , , ,