Saturday, February 23, 2008

Phun - 2D physics sandbox

I can't wait for the Mac OS X version!

Link to Phun website ...

Saturday, February 09, 2008

"Radio Ladio" - Metronomy

The 80's have returned in glorious colour!

<a href=""><img alt="No user-serviceable parts inside: " radio="" src=""/></a>

Tuesday, February 05, 2008

Eat Krispy Kremes, save taxpayers dough

Dutch researchers found that the health costs of thin and healthy people in adulthood are more expensive than those of either fat people or smokers.
Link ...

Sunday, February 03, 2008

Symphony In SLANG

Fake Steve Jobs on Real Steve Balmer

FSJ may be fake, but his insights are real. Here's his take on the Microhoo! buyup plan. Brilliant.

[...] here's the really dark part of all this. He knows it won't work. He has to know this. He's not stupid. The cultures will never fit together. And the deal is too big. It's not manageable. And it's completely anathema to Microsoft. It's totally out of character for them. It goes against everything the company has ever stood for. Ballmer knows this, and he's doing it anyway. Because this is exactly what every old-guard CEO does when all else fails. I mean it's right there in the official playbook that you get in business school. And ultimately, smart as he is, Ballmer is an old-school kind of guy. He's not really a tech guy. He has a mindset that was formed in Detroit, where he grew up. He's a Big Three automaker kind of guy. And this is a Big Three move. It's Ford buying Jaguar and Land Rover and Volvo because they can't think of anything else to do.

So if the deal happens -- and I'm not convinced it will -- Ballmer will have bought himself maybe two years before it becomes clear to the entire world that it has failed. By then maybe Ballmer will be gone and someone else will have to mop up the mess. [...]

Friday, February 01, 2008

Post to instapaper (AppleScript)

Update (26-Jun-09): This script doesn't handle more recent versions of InstaPaper very nicely. Another NNW-to-InstaPaper script, "NNWInstaPost", has appeared in the meantime and I suggest that you give that one a try ...

Here's a little script to post the currently selected headline in NetNewsWire (my favourite Mac OS X newsfeed reader) to your instapaper account.

You need to create an instapaper account before using this the first time. The script is not very good about errors, so just correct the issue and retry the script. It creates a short summary by "un-HTML'ing" the description, but it does this naively (using a long sed invocation), so it's restricted to a subset of HTML entities -- basically common Western ones.

To install this, select and copy the script from the box, paste it into the AppleScript Script Editor and drop it into NNW's script folder.

* Submit NetNewsWire headines to instapaper for later reading. See
* Create an instapaper account first, select a news item in NNW, then run this script.
* Assumes you're using Safari. Doesn't handle all html entities; works best on English feeds.
* Doesn't check if the submission succeeded, so you need to keep your eyes open. :-)
* -- Bruce Walker <> -- Feb 1, 2008

on unhtml(html)
-- remove markup, convert common entities to ascii (the rest to "?"), nuke blank lines & restrict length
return do shell script "echo " & quoted form of html & "| sed -e 's/<[^>]*>//g' -e 's/&nbsp;/ /g' -e 's/&mdash;/--/g' -e 's/&lsquo;/`/g' -e 's/&ldquo;/``/g' -e 's/&#8220;/``/g' -e \"s/&rdquo;/''/g\" -e \"s/&#8221;/''/g\" -e \"s/&#8217;/'/g\" -e \"s/&rsquo;/'/g\" -e \"s/&#39;/'/g\" -e 's/&[^;][^;][^;]*;/?/g' -e \"s/'/\\\\\\'/g\" | tr '\\r\\n' ' ' | dd ibs=1 count=192"
end unhtml

tell application "NetNewsWire"
set NNWURL to URL of selectedHeadline
set NNWTitle to my unhtml(get title of selectedHeadline)
set NNWSummary to my unhtml(get description of selectedHeadline) & " …"
end tell

tell application "Safari"
-- submit to instapaper using Safari's saved session/account cookies
set foo to do JavaScript "''+encodeURIComponent('" & NNWURL & "')+'&t='+encodeURIComponent('" & NNWTitle & "')+'&s='+encodeURIComponent('" & NNWSummary & "'),'t','toolbar=0,resizable=0,status=1,width=250,height=150')" in document 1
end tell