New website and blog

Welcome to my new website! I hope you like it. After a long time with a pretty awful landing page, I finally decided to put some effort into building my own website, for a change. I’m also planning on starting to blog more in the future, because Twitter’s 140-character limit is getting pretty annoying to describe some projects.

Expect Arduino, DIY, photography, new media and other goodness to show up!

Edit: moved my old blogposts from simplePHPBlog to WordPress thanks to this tip.

Piwik stats from flash

SNIP:
var imageLoader:Loader;

function loadImage(url:String):void {

// Set properties on my Loader object
imageLoader = new Loader();
imageLoader.load(new URLRequest(url));
imageLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, imageLoading);
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);

}
loadImage(“http://www.domain.nl/piwik/piwik.php?idsite=1&url=http%3A%2F%2Fwww.domain.nl%2Fsubfolder%2F&urlref=http%3A%2F%2Fwww.domain.nl%2Fsomeotherreferralsubfolder&dir=0″);

function imageLoaded(e:Event):void {

// Load Image
statsimg.addChild(imageLoader);

}

function imageLoading(e:ProgressEvent):void {

// Use it to get current download progress
// Hint: You could tie the values to a preloader :)

}

Use this to track embedding / opening of your flash files.

How to handle engineers.

“There's a word for this. It's called “no.” Have you heard of it? I mean, fine, let them fuck around with stuff. Engineers like to tinker. So let them tinker. Then when they bring you whatever it is they've made, first you say you're too busy to meet with them. Then you say you've changed your mind and you will meet with them after all. Then you wait until they're all in the conference room with everything set up, and you send Katie down to tell them that you're going to be a little bit late. You make them wait an hour. Then two hours. Then, at six in the afternoon, you send Katie down to tell them that you've changed your mind again and now you can't make it. Then, finally, you set up another appointment and this time you do meet with them — but before they can even speak you just look at whatever it is they've made and you say, I'm sorry, that's a piece of shit, and you walk out. Trust me, engineers love this. They're all masochists. That's why they became engineers in the first place. “

Fake Steve on engineers