Google’s Eric Schmidt posted this on his twitter account and I liked it so much, I decided to post it on yamdablam too.
Author Archive
PHP matching url to a domain using parse_url
Purpose: My purpose is for a URL forwarding system whereby I need to ensure that the target of the URL forward doesn’t match the domain the forward is being applied to. // Take in the domain and the target url $target=trim($_REQUEST['target']); $domain=trim($_REQUEST['domain']); // always in the format domain.tld // Use parse_url() to get an array [...]
Augmented Reality Layar Submitted
For those residents of the peninsula who have a GPS enabled smart phone, you’ll be able to view Donabate and Portrane area like never before.
PHP – first day of the current month
A really quick post mainly for myself, because I will need to remember this at some stage in the future $startDate=date(“Y-m-d”, strtotime(date(‘m’).’/01/’.date(‘Y’).’ 00:00:00′)); Enjoy!
Augmented Reality and Layar = Exciting times.
To put it simply, I was blown away by this application. My mind was racing with ideas and to be frank, any excuse to get a layer of my own onto this service.
Getting GPS Data out of your images using PHP
Learn how to extract GPS exif data from a images with PHP
Cannot use object of type stdClass as array
Problem I was getting this particular error when decoding JSON data block from a web service. It basically is trying to assert that the data block is a different type to the variable which it is being assigned to. Meet solution Explore the data dump by using something like echo ‘<pre>’; print_r($dataDump); echo ‘</pre>’; and [...]
URL Shortening on your site
This would be very useful for those companies who wish to track their marketing campaigns running on their website/twitter/Facebook accounts.
Recall on the cards for iPhone 4
It doesn’t surprise me. Apple has not been performing well for me or some friends lately. Shortly after its release, punters started reporting the problem. Apple denied it. Then a memo was release informing employees how to handle complaints about it. A.k.a damage control. Now Consumer Reports has done a u-turn and is not recommending [...]
When ‘mv’ fails you
Very handy linux command I keep forgetting so here it is: Scenario: You need to move a few thousand files from one directory to another on a linux server. The mv command gives the following complaint: “Argument list too long…” You can use this bad boy (assuming you are in the directory containing the files [...]