HTML

PHP is a powerful scripting language and there are many powerful plug-ins available. One of them is GD, which can be used to create images on the fly. GD, originally developed by Thomas Boutell by far is the most popular image-processing library for PHP (it is also available for other languages like Perl). GD has […]

One of the challenges faced when developing applicationf for the iPhone and iPad is the memory limitation.  These devices understandably have much less memory than a computer, so careful memory consumption is essential. cocos2d version introduces several improvements, and one of them is the ability to select the color-depth for sprites.  This is a good […]

If you are getting this kind of error when compiling with Cocos2d for iPhone, then see the solution below. Line Location Tool:0: collect2: ld returned 1 exit status Line Location Tool:0: symbol(s) not found Line Location Tool:0: -[Texture2D(PVRTC) initWithPVRTCData:level:bpp:hasAlpha:length:] in Texture2D.o Line Location Tool:0: -[Texture2D initWithData:pixelFormat:pixelsWide:pixelsHigh:contentSize:] in Texture2D.o Line Location Tool:0: -[EAGLView _createSurface] in EAGLView.o […]

Here are some issues that may happen when upgrading from Cocos2d version 0.71 to 073 (make sure to back-up your project before making changes as these are based on experience and may not work for you): The screen might turn blank (depending on how you configure your application). Possible solution: Remove MainWindow.xib from the project. […]

This tutorial assumes basic familiarity with Android SDK and its XML layouting mechanism. The example is written in Android SDK 2.1. Background Layouting in Android is usually done in an XML file, via the layout editor or by hand.  Below is an example of a layout done in the Eclipse layout editor. Almost every Android […]

There are several method to parse XML data using PHP, one of them is using SimpleXML. SimpeXML requires PHP 5 or better but is one of the easiest way to parse XML in PHP, you can use object notation to refer to nodes. The SimpleXML API documentation is here: http://us3.php.net/manual/en/book.simplexml.php Example 1 Here we show […]

This tutorial is designed specifically for those wanting to use Eclipse Ganymede (although Eclipse Gallileo is similar, this post won’t deal with Gallileo installation). Note: much of this installation process are described in http://developer.android.com/sdk/eclipse-adt.html and for experienced programmer, that document might be enough.   This tutorial is more detailed but if you encounter any problem, you […]

There are times when you might want to capture the screen for demonstration or tutorial purposes.  The easiest way is using the ddms application included in the Android SDK (http://developer.android.com/sdk/index.html).  This example is using Android SDK 2. Connect your phone with the computer Goto the folder where the Android SDK is, (and under tools folder) […]

Xcode Tips
June 9, 2009

More tips can be found in this other post: https://www.permadi.com/blog/2009/05/apple-xcode-shortcuts-and-tips/. Creating Classes Diagram There’s a handy feature to create class diagrams in Xcode, using Class Model feature.  To create a diagram for the whole project, select the project name in the Group & Files panel. Then select Menu->Design->Quick Model->Class Model.  You will be asked to […]

Using iPhone SDK 2.1.   Background User Preferences are data and settings that are saved by your application.  The iPhone OS has a mechanism that enables an application to “associate” its settings with the default iPhone user interface.  You can access applications settings by selecting the Settings icon in the main iPhone screen.  Try it […]