• BLOG
  • ARCHIVE
  • Apple Bluetooth LE Peripheral

    May 2, 2017

    I personally has lots of experience with CoreBluetooth. I also did look at the GATT for sometime so I understand how service, characteristics, descriptor works. This note will focus mainly on implementation and how to make Android device work as peripheral and iOS as central to get data transfer from Android to iOS.

    This blog will be updated in the future to finish all its contents.

    ...more
  • Apple Bluetooth LE Central

    May 2, 2017

    I personally has lots of experience with CoreBluetooth. I also did look at the GATT for sometime so I understand how service, characteristics, descriptor works. This note will focus mainly on implementation and how to make Android device work as peripheral and iOS as central to get data transfer from Android to iOS.

    This blog will be updated in the future to finish all its contents.

    ...more
  • Get Current Wifi Connection

    Apr 21, 2017

    From <2017-04-21 Fri> it is possible to get the current wifi information from the Captive Network. In the past, apple actually disabled this api for a while, but they seems to re-enabled it due to strong request. It is also possible that they decide to close this api in the future.

    ...more
  • Protected Property in Objective-C

    Apr 21, 2017

    Objective-C do not have protected property. The ivars are protected by default, but you still have to declare them in interface file in order to expose those variables. However, that is not what I can use. Because in the case that my private variables are cpp class but I can only expose .h to the header to Swift.

    ...more
  • Timer On Background Thread

    Apr 19, 2017

    Sometimes when we schedule a timer we might want to schedule it on a background thread if the timer is updating in a short interval. Here is how I managed to do it.

    ...more
  • File Management in Swift

    Apr 8, 2017

    This note including everything I need to with file management on iOS. So it will have notes mostly on File Manager usage. Methods for permanent data storage with files are also included in this note.

    ...more
  • Use Svn - Quick Svn Tutorial

    Mar 29, 2017
    ...more
  • Regression and Classification

    Feb 6, 2017

    Machine learning. In this class we are talking about supervised learning. What is supervised learning? You have examples of inputs and outputs. Based on that, now we are given a new input and predict its output. There are two different type of Questions. Classification and Regression.

    ...more
  • Change Icon Color Programmatically

    Feb 3, 2017

    When I was developing the iOS app, sometimes we need different color for an icon asset. For example, if its a button, the normal state or highlight state color is different.

    ...more
  • Create C++ Static Library and Use in Swift

    Jan 17, 2017

    Here is an overview on what I did. Right now at the very beginning, we have the c++ source code file and the iOS Xcode project file. We need to create a new Xcode project and put in c++ source code and compile it and create .a static library. Then put the new project and my iOS Xcode Project in the same workspace. Import the library path and the header path. At this point, the c++ static library is now successfully imported into our existing swift project. The rest we need to do is to call the c++ library inside our swift file.

    ...more
PREVNEXT