Friday, August 29, 2014

Taking a selfie using iPhone and Ti SensorTag (using Bluetooth Low Energy)

I have just finished running an iOS course in beautiful Copenhagen. It was a week of great fun (and laughter!) and what's more impressive than using the app developed by the participants to take a group selfie! Andreas Kleist Svendsen (on the right of this photo), created this app.


The above photo was taken with an app connected to a Ti SensorTag through Bluetooth Low Energy. When a button on the SensorTag is pressed, the app automatically takes a picture with the front camera of the iPhone. How cool is that!


(This class is super smart. Throw them a challenge and the solution pops up in 10 minutes!)

Friday, August 22, 2014

Courses for Sep and Oct 2014

Sep 2014
Sun
Mon
Tue
Wed
Thu
Fri
Sat

1
2
3
4
5
6

7
8
S$699/pax
CONFIRMED
9-10
S$1,097/pax
CONFIRMED
11
12
S$699/pax

CONFIRMED
13

14
15-16
S$1,097/pax
      CONFIRMED
17
S$699/pax
CONFIRMED



18-19
S$1,495/pax
CONFIRMED
20

21
22-23
S$1,097/pax
CONFIRMED
24-25
S$1,097/pax

26
S$699/pax
CONFIRMED
27
28
29-30 Sep, 1 Oct
S$1,695/pax




Oct 2014
Sun
Mon
Tue
Wed
Thu
Fri
Sat

29-30 Sep, 1 Oct
S$1,695/pax

3
4

5
6
S$1,097/pax


11

12

15
16
17
18

19
20
21
22
23
24
25

26
27
28
29
30
31


Monday, August 18, 2014

Developing Android UI - 2 Oct 2014

Want to create professional looking Android UI? Come join our Advanced Android - Developing Android UIcourse on the 2 Oct 2014 and you will learn how to build nice-looking Android UI. Among the topics you will learn is how to build an image gallery viewer where you can download files from the Web onto your device and view it on your device. You will also learn how to access your DropBox account and download pictures onto your devices!

Venue
Bayview Hotel

Fee
S$699 (nett; no GST)
Includes a lunch and 2 tea-breaks

Time
9am to 5pm

Prerequisites
Basic knowledge of Android Programming
Course Outline and Application Form
Download here.

Tuesday, August 12, 2014

New Course - Advanced iOS - HealthKit Programming - 9 Oct 2014

I am pleased to announce a new course that I will be launching on 9 Oct 2014 (Thu)! HealthKit programming for iOS teaches developers how to use the HealthKit APIs in iOS 8 to access and store data from their health-related devices such as glucose monitor, fitness gadgets, blood pressure monitor, etc.

Check back for details soon!

Monday, August 11, 2014

Article on Pebble Programming on Code Magazine

My article on Pebble Programming is on the cover of the Oct/Nov issue of Code Magazine! Check it out here: http://www.codemag.com/Article/1409071

Swift Tip - Singleton Pattern

When you are developing iOS applications, you often need to share data between View Controllers. One way to do that would be to create singletons for sharing data. Here is the singleton pattern in Swift that you can use:

class MySingleton {
    //---typed property to return a shared instance of the current class---
    class var sharedInstance: MySingleton {
    struct Static {
        //---to contain the one and only instance of this class---
        static var instance: MySingleton!
        
        //---a token to ensure that the class is only instantiated once---
        static var token: dispatch_once_t = 0
        }
        
        //---executes a block object once and only once for the lifetime of an application---
        dispatch_once(&Static.token) {
            //---creates an instance of this class---
            Static.instance = MySingleton()
        }
        
        //---returns the instance of this class---
        return Static.instance
    }
    
    //---the properties in your class---
    var num:Int = 0
    var str:String = ""

}

In the above code snippet, MySingleton is a singleton, i.e. you can only create one and only one instance of this class. To make use of this singleton, use the following statements:

        var s1 = MySingleton.sharedInstance
        s1.num = 5
        s1.str = "Hello Singleton!"
        
        println(s1.num)   //---5---
        println(s1.str)   //---Hello Singleton!---
        
        var s2 = MySingleton.sharedInstance
        println(s2.num)   //---5---
        println(s2.str)   //---Hello Singleton!---

Have fun with Swift!

Tuesday, August 05, 2014

AND304 - Android Wear Programming


Come and learn how to write native apps for your Android Wear devices! In this course, you will not only learn how to write Android apps to send notifications to your Android Wear watch, but you will also learn how to write native apps that run on the watch itself. 

What's more, every participant will be issued an Android Wear device!

Venue
Bayview Hotel

Fee
S$1,495 (nett; no GST)
* Includes lunch and 2 tea-breaks
* Includes an Android Wear device

Date
18-19 Sep 2014 (Thu-Fri)

Time
9am to 5pm

Prerequisites
Basic knowledge of Android Programming

Course Outline and Application Form
Download here.