iOS 5 introduces something interesting, which is some sort of Facial Detection capability. Right now it only detects the position of eyes and mouth but expect it to have more in future iOS versions. First, the requirements: Compile with iOS SDK version 5 or later You need to include CoreImage.framework into your project. Your build […]

The Android NDK comes with several examples. This guide assumes you have the NDK environment setup as described here: https://www.permadi.com/blog/2011/09/setting-up-android-jni-projects-in-windows-eclipse-and-sequoyah/. When you extract the NDK, you will see a samples folder. There’s no Eclipse project file in these samples, but it’s very easy to create them. 1. Do File->New->New Project->Android->Android Project. 2. Select Create Project […]

I was having some issue customizing the look and behavior of the default SeekBar so I tried writing a custom one. Here’s the result, hope it’s useful and interesting: My approach is to create a Layout consisting of two ImageViews: a “slider bar” and a “slider thumb” images. Then, in the onDraw function, I draw […]

UISlider can be skinned to produce output like these: There are three sections that you can change: The bar portion on the left side of the thumb, using setMinimumTrackImage:UIImage The bar portion on the right side of the thumb, using setMaximumTrackImage:UIImage The thumb, using setThumbImage:UIImage For the UIImage, you will most likely need to stretch […]

This guide walks you through in getting the Facebook Credits Sample running in test mode. 1. Download the official sample code from: https://github.com/facebook/credits-api-sample 2. Read the overview. 3. Copy the files into your server into a subfolder (your server must support PHP): – callback.php – index.php – xdreceiver.html 4. Create a test application. Fill out […]

Here’s the Press Release I received from them: Integrate Flash applications with Facebook using Packt’s new book Packt is pleased to announce Flash Facebook Cookbook, a new book that will teach developers to work with the key Graph API objects and their social connections, using the Facebook ActionScript 3 SDK. Written by James Ford, this […]

One of the things that I played around several years ago was the GD library, which allows image manipulations and creations on the server-side. I have always want to automate repetitive things such as creating glossy-icons for web-pages.  Basically I want to automate the process of converting: From this To this: I wasn’t sure if […]