Saturday, 15 October 2011

Speed up OS X Lion

Speed up Mission Control

In terminal, enter the following commands to speed up the Expose and Workspaces transition delays:

defaults write com.apple.dock expose-animation-duration -float 0.15
defaults write com.apple.dock workspaces-edge-delay -float 0.15 
killall Dock

You can modify the 0.15 to whatever you want, but this is my preferred settings :)

Remove mouse acceleration

defaults write .GlobalPreferences com.apple.mouse.scaling -1

It should come into effect after relogging.

Remove Window delay

This will get rid of the animation when opening a new window.

defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool NO


Other useful links:

http://gigaom.com/apple/how-to-undo-a-lot-of-lions-little-changes-using-terminal/
http://superuser.com/questions/313055/how-to-make-mission-control-keyboard-friendly
http://bresink.de/osx/TinkerTool.html


Grr....

Thursday, 6 October 2011

Installing Cocos2d on Windows








Cocos2d uses Python 2.6. The official python website no longer releases an installer for 2.6.x. Therefore, to install, the easiest way is to get the installer (32 bit) from ActivePython.

Make sure to add Python 2.6 to your system environment variables. If you don't know how to do that, see my blog post here. Now, you can type python2.6 in Powershell/cmd to launch this version. I believe the path that is first in the environment variables string is called by default, so typing python for me will still launch Python 2.7

Get the latest version of cocos2d and pyglet. I have multiple versions of Python installed, so I went with the source distribution for the latter (.zip file).

Both packages are then easily installed by extracting them somewhere, browsing to the folders in Powershell/cmd (type powershell or cmd in the address bar in windows explorer) and typing:

python2.6 setup.py install

Test by opening up an instance of python and type:

import cocos