Find your phone using Google

Try this:

  1. Go to google.com
  2. type "find my phone" without the quotes
  3. You should see in the screen something similar to the image below:
  4. Go ahead and try to ring your Android phone.

Pacquiao vs. Mayweather live stream

I looked for some live streams for the Pacquiao vs. Mayweather fight. I found one at teampilipinas.info
Here are the links:

Live stream 1
Live stream 2
Live stream 3
Live stream 4
Live stream 5

If the links don't work, try this one
http://www.phisdown.com/2015/05/manny-pacman-pacquiao-vs-floyd.html?m=1

Affordable VPS

I have been using shared hosting services from various providers and I thought it is time to use a virtual private server (VPS). I was told that Digital Ocean is a great option. So I did try Digital Ocean, and I wasn't disappointed. They have great service, and a fast server. It is also easy to add another VPS, and it is also easy to delete if you don't need it anymore. I've been using Digital Ocean's service for months now and I highly recommend it. For more information click here.


Delete images older than one year in php

 The following code deletes images that contain the word "snapshot" and are older than one year.

<?php
$imagePattern = "/snapshot/i";
$directory = "./images";

if (($handle = opendir($directory)) != false) {
    while (($file = readdir($handle)) != false) {
        $filename = "$directory/$file";
        //echo $filename."
";
       
        if ( filemtime($filename) <=strtotime("-1 year") && preg_match($imagePattern, $filename)) {
            unlink($filename);
            //$filetime=filemtime($filename);
           
            //echo $filename."  ".date('l dS \o\f F Y h:i:s A', $filetime)."
";
        }
       
    }
    echo "Successfully deleted old images";
    closedir($handle);
}


?>