labs.shiftperception.com/ soft launch

Announcing the (playstation-style underwhelming) launch of labs.shiftperception.com/ (NOTE: there is currently no way of accessing the content in this directory, but there will be soon). I wanted a place for unfinished experiments to live on my server, and all / the / cool / guys / seem / to / have / one, so I decided, to make myself cooler (than I already am), I needed to get in on the action.

So as I get new things to show off, i’ll be adding them to the lab. Come back and check soon!

Political advertising and the web

Regardless of if you think NSW is “heading in the right direction” politically, by now most NSW constituents would probably be (as I am) grateful that we are in a political advertising blackout. So why is it, then that SMH.com.au (and probably other) websites are still displaying annoying political banner ads?

Heading in the right direction!
Screenshot taken from SMH.com.au

From The Australian Electorial Commission :

Under Schedule 2 of the Broadcasting Services Act 1992, which is administered by the Australian Communications and Media Authority (ACMA), election advertising in the electronic media is subject to a ‘blackout’ from midnight on the Wednesday before polling day to the end of polling on the Saturday. This three-day blackout effectively provides a “cooling off” period in the lead up to polling day, during which political parties, candidates and others are no longer able to purchase time on television and radio to broadcast political advertising.

So why doesn’t this law cover internet advertising? …perhaps the Pollies like the freedom this technical loophole gives them to harass us right until we mark that little box on Sunday. The site this ad points to is no better either. Except for the tiny “Authorised by” line, it eeks of the kind of campaign that’s been looked into in the past.

And let’s not get into the legitimacy of placing political ads like these on a news website (let alone TV stations, radio stations or any of the other “traditional” media outlets). The only saving grace is that the ad doesn’t appear to run while your in the nsw 07 election sub domain.

I’ll be glad when Sunday has come and gone… then at least the rest of Australia can start to enjoy the spin and lead up to the Federal Election!

Download simulator

OK, so this isn’t so amazing or new or anything other than what it is… which is a very simply Flash tool I made today at work to help describe to clients how long something takes to download on a 56k dialup vs a DSL connection.

Props to OJ for the functions to calculate the speed, as I was suffering from lack of coffee, or lack of sleep, or both. Either way, let’s call this our first collaborative widget!! Hehehe!

[kml_flashembed movie="/blog/swf/download-simulator.swf" width="350" height="200" fversion="8" /]

Excel PMT function in Actionscript

Just thought id share this as it will come in useful for someone in the future. Ever wanted to use the PMT function from Excel in Flash? Well, after some digging, and after some modifications, here is it.

PMT = function(r,np,pv,fv,t) {
/*
r = the percentage rate of the loan. (decimal: 8% = 0.08)
np = number of monthly payments (integer)
pv = present value or principal of the loan (decimal)
fv = future value of the loan (after payments) (decimal)
t = paid before or after (0/1)
*/
  var vPow = Math.pow( ( 1 + r ), np );
  var vT = (t == 0) ? r : ( r /( 1 + r ) );
  return ( (vPow * pv) - fv ) / (vPow - 1) * vT;
}

Don’t say I never give you anything! (Thanks OJ for your hint on consolidating the last 2 lines into 1)