cat dumped in rubbish!!

This is so wrong! A Coventry couple couldn’t find their cat, and it was 15 hours later they discovered her in their wheelie bin. A review of their CCTV cameras covering the front of their house revealed a shocking story. A middle-aged lady had stopped to pat their cat, Lola, before suddenly grabbing Lola by the scruff of the neck and throwing her into the nearby wheelie bin.


TOTALLY SICK!! The video as been posted on Facebook and Youtube in the hopes of having someone recognise this $%&*.

Unimpressed is what I am.

(thanks to


quick update – van front wheel wheelie

Just bumped into this on YouTube and it has to be shared:

The Final Countdown – 3 part documentary

A brilliant documentary on one of the greatest songs of all time, Europe’s The Final Countdown, posted by SteinVidarEUROPE. Here are all three parts in all their glory.

Part One:

Part Two:

Part Three:

Nothing else needs to be said really except, here’s the entire official music video!!

Federer’s amazing trick shot

The video below was shot on the set of Roger Federer’s new commercial for Gillette Fusion in the U.K., and has more than 4 million views on YouTube so far. Still, no-one’s sure if it’s real or faked. Federer knocks an empty water bottle off a crew member’s head (twice) with blazing speed.


Gillette won’t say if it’s real or a digital trick, however a spokeswoman tells Mashable:

All we’ll say at the moment is we’ll leave the ‘real or fake’ debate up to the viewers, but the evidence is there to see. Roger’s skill and ability is incredible (that’s why he’s a Gillette ambassador!) so of course it was filmed in one take during a shoot for Gillette Fusion’s partnership with the British Skin Foundation.

I think it’s real personally, I mean he is the world’s #1 with a racket and ball, and he should have that sort of accuracy. That said, I wouldn’t have wanted to be the crew member.

embedding Javascript in PHP

One of the less known uses of external JavaScript is the ability to reference a PHP file instead of a .js file. This does seem to breach scripting etiquette, as we all "know" that server side and client side scripts are prohibited from interacting. Well, it turns out superficial exchange is allowed. Using external JavaScript, you’ll see how PHP and JavaScript can work together in a way you may not have thought possible, and to the great benefit of JavaScript.

The syntax to referencing a PHP file using external JavaScript is consistent enough with what we already know:

<script type="text/javascript" src="myscript.php"></script>

where myscript.php is either an absolute or relative path to a PHP script instead of the usual .js file. You can even pass parameters to the PHP script through the URL string:

<script type="text/javascript" src="myscript.php?param1=bob&param2=thomas"></script>

Your PHP script can then get to these parameters using the global variable $HTTP_GET_VARS[]. So you’re probably wondering at this point: "So what’s the catch?" Well, there is no catch really, just a few limitations. Since we are invoking the PHP script indirectly and via JavaScript, the final output of the PHP script needs to be valid JavaScript. Think of it as a dynamic .js file, bounded by the same limitations as a regular .js file. A normal PHP script called inside a PHP page can output raw HTML and modify the source code of the page. The JavaScript invoked version obviously cannot, but don’t worry, there’s plenty of what it can do.

Here’s a basic example of a PHP script- ip.php – being called by external JavaScript to do something that JavaScript alone cannot:



//"ip.php" example- display user IP address on any page

Header("content-type: application/x-javascript");


echo "document.write(\"Your IP address is: " . $serverIP . "\")";


And once called by external JavaScript:

<script type="text/javascript" src="ip.php"></script>

Output: Your IP address is:

In the above, we have a normal PHP script that writes out the IP address of the visitor when referenced using external JavaScript, with two important details:

  • A JavaScript header is sent at the very beginning to inform the page that our PHP script is outputting a JavaScript file.
  • Since the final output of our PHP script needs to be a valid .js file, whatever the PHP outputs must conform to valid JavaScript syntax. So to display the IP address from the perspective of JavaScript, the echo function above includes document.write() as part the content to send back to the page.

Notice how I didn’t output the JavaScript script tag itself <script></script>), as just like inside a regular .js file, this isn’t required nor valid.

The ability to reference a PHP script inside your external JavaScript can be very useful! It means your JavaScript now has access to once exclusive information on the server side, whether it’s the server time, the visitor’s IP address, a list of all the files within a certain directory, or mySQL database information. Now even regular HTML pages can utilize this dynamic information, as all they need is a JavaScript on the pages that in turn references the desired PHP script on your server or elsewhere.

Enjoy 😉

quick update – U2 coming to New Zealand in November

The rumours are true!!! It has been confirmed this morning that U2 will be playing one concert in New Zealand on November 25th at Mount Smart. The U2360 Tour is coming to New Zealand!!

All that big stage goodness and wonder, here again. Money is not an object here, I will be going. Front of crowd, directly in-front of main stage, that’ll be me.

Tickets go on sale September 3rd at all usual outlets.


Google working on Search As You Type

Google has been testing search results that will change in real time as you type into your Google Search box. When you start typing, the search box is moved to the top of the page and results are updated as you type, kind of like a Firefox page search, Spotlight on the Mac, or Windows 7’s “Search programs and files” field in the start menu.

These live search results are not available to the public at present as Google regularly tests new features with very small selections of users. Some of those features never see a public launch, but some do.

It is, honestly, anyone’s guess as to what the benefit of such results would be. The question that ultimately comes to mind, as noted by TechCrunch, is what effect this would have on keyword-based advertising. Given that the entire context of a word can change based on a few letters, it leads to an interesting outcome when your search changes that quickly; but, Google does make its money by displaying contextual ads based on your searches.

Blogger Rob Ousbey discovered the feature and wrote about it. Video follows.


(via Mashable)