Crowd sourcing Starwars
After the excellent ‘Johnny Cash Project’ comes the crowdsourced remake of another well loved classic, with hilarious results…
Star Wars Uncut “The Escape” from Casey Pugh on Vimeo.
After the excellent ‘Johnny Cash Project’ comes the crowdsourced remake of another well loved classic, with hilarious results…
Star Wars Uncut “The Escape” from Casey Pugh on Vimeo.
More a mental note for myself than anything else, but it’s just taken me an hour of Googling to find this simple solution.
Problem : You want to add & access custom attributes to a page node in the site.xml of a Gaia Flash site.
Solution :
[Site.xml]
<?xml version="1.0" encoding="UTF-8"?> <site title="Gaia Framework Site: %PAGE%" menu="false"> <page id="index" src="index.swf" remotingGateway="http://www.foo.com/services/amfphp" <page id="nav" src="nav.swf" depth="top"> <page id="home" title="Home" src="home.swf" menu="true" /> </page> </page> </site>
…note the custom ‘remotingGateway’ attribute on the index node. Adding a custom property is as simple as adding it as an attribute to the node. But how to read it?
Well, Gaia pages have a property called ‘node’ that contains the xml node for that page, so to access a property you can simply use AS3’s lovely XML functionality to do…
[AS Code]
//get gateway url from index page attributes gatewayUrl = Gaia.api.getPage(Pages.INDEX).node.@remotingGateway; //auto connect connect( gatewayUrl );
As always, simple when you know how
If like me you’ve come from (or still work a lot in) a standard PC environment, you may be used to using the ‘end’ and ‘home’ keys to jump to the start or end of a line when editing text. However by default on a Mac this will jump to the start or end of the entire file, making for lots of infuriating moments when you hit ‘home’ and completely loose the place you are editing.
There’s a fix available here : KeyFixer that fixes this in most standard OSX apps and works great, but it doesn’t fix it for Eclipse which has its own internal bindings.
By default though Eclipse is even odder and has the home/end bound to ‘apple’ + left/right, which if you’re using a modern OSX will instead change spaces, even more infuriating!
So to fix this, simply open Eclipse and go into ‘preferences->general->keys’, then find ‘Line Start’ & ‘Line End’ and in the ‘binding’ area change them to the home/end keys & hit apply, problem fixed!
(You might also want to change the ’select line start/end’ & ’select text start/end’ while you’re there.)
Now this is something I can believe in…
http://news.yahoo.com/s/livescience/20100212/sc_livescience/linkstospiritualityfoundinthebrain
Kind of related, the comments in the original Fark post led me to The Brick Testament, absolute genius…

…reckon everyone needs to brush up on the law section if nothing else, good to know for example when you should stone your children, why you must marry your sister in-law, why you must stone homosexuals and of course when you’re allowed and how much to pay for raping a woman (50 sheckles, or about £8.50 according to xe.com, seems pretty reasonable).
Recent Comments