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
oldskool73 Adobe/Flash/Flex, hints & tips gaia, hint, site.xml
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.)
oldskool73 apple, hints & tips eclipse, flashbuilder, flex, key bindings, keys, osx
I recently upgraded a machine to Windows7 and was unable to see mount any of the network Samba shares (from an Ubuntu server). After a bit of Googling I found this fix…
- Open Control Panel -> System and Security -> Administrative Tools
- Launch Local Security Policy
- Select Local Policies->Security Options
- Find the ‘Network security: LAN Manager authentication level’ entry & click to change
- Change the dropdown to ‘Send LM & NTLM responses’ & OK
- Find the ‘Network security: Minimum session security for NTLM SSP based (including secure RPC) clients’ & click to change
- Ensure both options are not checked
That should do it, go back to the network area in explorer and refresh to see your Samba shares again (hopefully).
So far not overly impressed by Windows7, it’s shiny and boots/shuts-down quicker than old Windows (no where near as fast as OSX though, about the same as Ubuntu9.10) but under the hood it still seems as clunky as ever, and there’s dialogues that obviously haven’t changed since XP (e.g. joining a workgroup).
oldskool73 Linux, Microsoft, hints & tips Linux, networking, samaba, ubuntu, win7, windows
If you try to edit a dsdt.dsl generated for an IP35 pro (to fix the cmos reset issue on Snow Leopard for instance), you may get an error when you try to recompile it something like…
5824: Store (GAHS (Zero), Local6)
Error 4060 - Called method returns no value ^
This prevents you recompiling a useable dsdt.aml. The fix is to return a value from the GAHS method. Search for ‘GAHS’ and you will find a function that should look like this…
Method (GAHS, 1, NotSerialized)
{
}
and change it to…
Method (GAHS, 1, NotSerialized)
{
Return (0x1)
}
…and you should be good to go.
NOTE: This issue may not be exclusive to the IP35 Pro, but I did find several others with the same Mobo & issues in my Googling for a solution. Not sure either if 0×1 is the correct return value, or if it even matters, but it does fix the compile error and seems to work fine on my system. YMMV
oldskool73 apple, hints & tips apple, dsdt, fix, ip35, osx
Appears a user tracking component from Pinch Media used by devs in a variety of apps in the app store is sending back a little more info than some people are happy with. You know, like your birthday, age, hardware ID and exact geographic location! (full overview here)
I have to admit, when I click the button to allow the device to use my location it’s never even occurred to me that this was a two way street and this info was being sent out and harvested somewhere. Naive perhaps but I’ll think twice from now on.
If you’re concerned about this issue, a good blog to keep an eye on is http://i-phone-home.blogspot.com/, which reviews apps based on their privacy. They also have a hosts file available (jailbroken phones only of course), which may be a better option than the suggestion from Pinch Media that we simply use all our apps in Airplane mode!
oldskool73 apple, education, hints & tips apple, iphone, spyware
Recent Comments