Author Archive

The Surprising Truth About What Motivates Us

Google’s Eric Schmidt posted this on his twitter account and I liked it so much, I decided to post it on yamdablam too.

Continue reading » No comments

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 [...]

Continue reading » No comments

Augmented Reality Layar Submitted

Tags: , , , , , , ,

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.

Continue reading » No comments

PHP – first day of the current month

Tags: , ,

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!

Continue reading » No comments

Augmented Reality and Layar = Exciting times.

Tags: , , , ,

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.

Continue reading » 1 Comment

Getting GPS Data out of your images using PHP

Tags: , , , , , ,

Learn how to extract GPS exif data from a images with PHP

Continue reading » No comments

Cannot use object of type stdClass as array

Tags: , , , , , ,

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 [...]

Continue reading » 1 Comment

URL Shortening on your site

Tags: , , ,

This would be very useful for those companies who wish to track their marketing campaigns running on their website/twitter/Facebook accounts.

Continue reading » No comments

Recall on the cards for iPhone 4

Tags: , ,

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 [...]

Continue reading » No comments

When ‘mv’ fails you

Tags: , , , ,

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 [...]

Continue reading » No comments