One Laptop Per Child

Conceptual, Digital, Fun November 18th, 2008

Moonwalk

Fun October 27th, 2008

Mate Steinforth

Conceptual, Digital October 21st, 2008

Motion designer / art director at Psyop
Did some projects with Universal Everyting too…
Check out his work

Holiday: Sydney & Melbourne 2008

Fun October 21st, 2008

Well, I’ve worked hard and I deserved this.

Bondi Beach, Sydney

Bondi Beach, Sydney

I went crazy on this trip to Sydney and Melbourne. 8 days and 3 days in total respectively. So many things to see and eat. Oh, for those of you who haven’t known me yet, I’m a big foodie. I literally spent more than a quarter of my salary on good food. Let the word good be emphasized here yea? On top of that too, I love Australia :)

Mashing all these pictures into one, actually makes them look gross… but here goes :)

I’ll be looking forward for more of these, maybe the next trip would be Japan?

Flash (AS3): Reading Image From Database Blob Field

Software, Technology October 20th, 2008

Scenario:

  1. You have no write access to a deployment server, thus you have to save user-uploaded image to a Blob field in a database. Sad, but it happens.
  2. You need to read this photo entry in Flash, trying to stream it in and it shows nothing but gibberish.
  3. You might think that setting header("Content-type"); server side would work but IT DOESN’T.

Solution: Base 64 Encoding / Decoding

Note: I’m gonna use PHP server side scripting for this example

  1. Before saving the image data to the Blob field, base64_encode() the file stream. Say… you call this script saveimage.php
  2. Extract out the file from the server using normal query procedure, spit it out using echo. This would be your fetchimage.php
  3. Follow up with this AS3 script

Declare your variables
//variable declarations stuff
private var avatarString:String;
private var bitLoader:Loader;
private var containerImg:MovieClip;

Load the server response
var imgLoader:URLLoader = new URLLoader();
imgLoader.dataFormat = URLLoaderDataFormat.TEXT;
imgLoader.load(new URLRequest("https://www.domain.com/fetchimage.php?id=12345"));
imgLoader.addEventListener(Event.COMPLETE, onDataLoad);

Handle data load
function onDataLoad(evt:Event){
avatarString = evt.target.data.toString();
var decodedString:String = Base64.Decode(avatarString);
var imageBytes:ByteArray = new ByteArray();
for(var i:Number=0; i < decodedString.length ; i++){
imageBytes.writeByte(decodedString.charCodeAt(i));
}

And display it…
bitLoader = new Loader();
bitLoader.loadBytes(imageBytes);
containerImg.addChildAt(bitLoader,0);

British Heart Foundation

Digital October 16th, 2008

Nice typography play, clean and ‘medical’ ????

The faster the speed…

Advertising October 13th, 2008

Luhrnmann Promotes ‘Australia’

Advertising, Conceptual October 13th, 2008

I love Australia, I really do.

Watch the video

Drag and drop world

Conceptual October 12th, 2008

Ads I Like: Nando’s Big Meal

Advertising, Conceptual October 8th, 2008

blank