All posts tagged osx

Update time coming!

According to the Apple site, OSX Lion will include such ground breaking features as ‘The App Store’ (a shop), ‘Launchpad’ (a big start menu), ‘fullscreen button’ (a working maximize button finally, which fanboobies have argued for years was a silly idea in Windows), ‘Mission Control’ (expose with more stuff in it), ‘Auto Save’ (because alt+s is kinda hard to remember) & ‘Versions’ (a nice idea stuck in the stupid timemachine interface).

Android game prototyping with LibGDX on OSX


LibGDX from Badlogic Games is “a cross-platform game development library written in Java with some JNI code for performance hungry sections. It abstracts away the differences between writting desktop and Android games based on OpenGL. This allows you to prototype and develop your application entirely on the desktop and only needing 6 lines of code to make it run on Android.”

After trying various Android libs I think Libgdx will be what I use in the future, it’s got a clever bunch of people developing it and forms the basis of many of the other libraries available (Andengine, Rokon etc) without all the extra cruft.

However, until now the prototyping on the desktop has only worked in Windows & Linux, but that’s all changed thanks to the help of ‘pirato’ on the Libgdx forum, who’s built an OSX version of the required dynamic lib.

Before you can use it, you’ll need to have the mpg123 library installed, which is pretty straight forward…

You can then grab pirato’s library file from here (until it’s been officially added to the libgdx repos) and add it to your projects ‘libs’ folder.

You should now be able to run the desktop version of your app under OSX.

Woot, Android dev just got a step easier!

Fixing ‘End’ & ‘Home’ keys in Eclipse/Flex/FlashBuilder on OSX

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.)

Fixing dsdt.dsl for IP35 pro

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