[278,300] -->
Oct 28

Click the Picture below to get a glance of the beautiful picture by NASA. Real cool picture showing the dark side of earth. Never thought that there are some forest fires around the globe at every moment of time.

Earth in the night

Few thoughts striked in my mind about the geographic value of this image.

Great but old!

Another Picture - earth with lights

Oct 28

Halloween Time!!! and runescape is back with some new costume for which you need to complete the Trick or Treat Quest.

1. Go and talk to maggie. (found north of rimmington and south of falador)She will ask you to get 6 popcorn balls, 4 chocolate balls, 5 wrapped candies. (You can talk to Wendy to know more about halloween)

2. Now you can wear any two cloths like a chefs hat, some shirt, mime mask, desert robe etc… If you dont have any go to Thessalia’s Fine Clothes is located in central varrok and buy some cloths.

3. Go to Rimmington village and right click on Rommik you get the option Trick or Treat do it and get some popcorn balls. Do the same with brian, hetty in Rimmington. If they dont treat you keep trying untillthey give you something. If you couldnot succeed in trick then change you costume. Now go to port sarim and trick wydin, gerrant, Grum, Betty in port sarim

4. Return to Maggie and give her the popcorn balls and get a costume in return. Then Gaze into Maggie’s Cauldron to learn more tricks.

5. Now you can trick the same people again and get chochlate drops. There are more people to go to Draynor village and trick Miss Schism for choclate drop, Ned, Morgan, fortunato, wise-old-man, olivia

6. Once you handover the drops to maggie try trick people again and get the candy for maggie

Finish everything and you get a lot of stuff

Oct 03

Small and simple php script to accept payments through paypal right away. I modified the code from paypal developer community. This is a quick and easy integration to your website for accepting payments and directing the user to authorized area.

$req = ‘cmd=_notify-validate’;

foreach ($_POST as $key => $value) {
$value = urlencode(stripslashes($value));
$req .= “&$key=$value”;
}

// post back to PayPal system to validate
$header .= “POST /cgi-bin/webscr HTTP/1.0\r\n”;
$header .= “Content-Type: application/x-www-form-urlencoded\r\n”;
$header .= “Content-Length: ” . strlen($req) . “\r\n\r\n”;
$fp = fsockopen (’ssl://www.paypal.com’, 443, $errno, $errstr, 30);

// assign posted variables to local variables
$item_name = $_POST[’item_name’];
$item_number = $_POST[’item_number’];
$payment_status = $_POST[’payment_status’];
$payment_amount = $_POST[’mc_gross’];
$payment_currency = $_POST[’mc_currency’];
$txn_id = $_POST[’txn_id’];
$receiver_email = $_POST[’receiver_email’];
$payer_email = $_POST[’payer_email’];

if (!$fp) {
// HTTP ERROR
} else {
fputs ($fp, $header . $req);
while (!feof($fp)) {
$res = fgets ($fp, 1024);
if (strcmp ($res, “VERIFIED”) == 0) {
// check the payment_status is Completed
// check that txn_id has not been previously processed
// check that receiver_email is your Primary PayPal email
// check that payment_amount/payment_currency are correct
// process payment
}
else if (strcmp ($res, “INVALID”) == 0) {
// log for manual investigation
}
}
fclose ($fp);
}
?>