Core ML’s tools to convert other framework’s machine learning models is a pretty awesome feat in itself. However it is by no means complete. I found some issues in converting models which outputs images. Issues which took me a few weeks to solve even after many consultations to Google and Apple’s own forums. But here’s the solution and I’m sharing it with you so that you don’t have to experience the same predicament which I had.
First Dabbling in Machine Learning
I’ve been toying around with retraining machine learning models — one for generating prose and the other for processing photos and separate objects from its background. Here are some of the challenges I encounter as a total newbie and how I got around it.
Swift Snowflake ID Generator
Lighting talk on creating unique random identifiers yet stay within 63 bits of a long integer.
Getting Rid of Xcode Command Line Tools
Are you being hunted by Xcode command line tools? Have you uninstalled it only to realize that it came back again? If you already have the Xcode installed and really need the full IDE, don’t waste space by having the command line tools installed as well. Here’s how.
Swift Snowflake ID Generator
Make thousands of unique 64 bit identifiers at every millisecond without the need of global synchronization.
State Restoration Hiccups with Swift
Programming Cocoa apps with Swift has it’s many caveats. Many of these are derived from the fact that there are two language runtimes at play, the incumbent Objective-C runtime which is used by system frameworks and the Swift runtime as a newcomer. Here is one hard lesson learned (and workaround) when dealing with state restoration problems in a Swift app.
Trying Core ML with Swift Playgrounds
How to safely try out Apple’s new machine learning libraries without bricking your main machine. Goodbye beta blues, hello new ideas!
A Swift Promise
Futures/promises are great to coordinate persistence and views to ensure responsiveness in today’s native apps. However bringing thousands of lines of foreign code just to have this small functionality may not be cool. Here’s a hundred-line implementation of futures/promises in Swift 3.1
Should You do Free Work to Get Hired?
Have you been asked to do a sample project as part of a hiring process? I’ve done it, not only once but **twice** as part of the same process. Here are those projects. You should be able to learn a thing or two from it Either learn the iOS programming techniques behind these two 40-hour projects or learn how to hunt for purple squirrels.
Is Your Server Ready for iOS 9 and El Capitan?
Apple is enforcing a stronger encryption that applications need to use when connecting to their backends. Is your server secure enough to meet Apple’s standards? Being HTTPS doesn’t necessarily imply that it’s good enough.
Apple’s latest operating system updates – iOS 9 and OS X El Capitan – are enforcing stronger network encryption. This is wonderful for users – however it could mean extra work for developers and system administrators.
In short, applications are strongly encouraged to use HTTPS, TLS 1.2 and perfect forward secrecy. You might be saying to yourself, “We’re already serving through HTTPS, so we’re good.” As it turns out, it may not be that simple. It isn’t for Microsoft and you could be affected as well. Yes, at least one of Microsoft’s web services isn’t yet up to Apple’s security standards as of this writing.
How To Use Your Network Drive as a Git Server
Do you know that WD My Cloud EX2 can serve as a git server for a small team? Now you do and here’s how you can set it up.
Making Cocoapods Play Nice with Xcode Maven Plugin
If you have to use Maven to build your Xcode projects and lusting to move your dependency management to Cocoapods, here is a relief for you. Read on for a tip on how to get Cocoapods work in a Java-dominated enterprise.
The Downside of Using TimerTask with Handler in a Multithreaded Application
I would like to discuss on the downside of using TimerTask with Handler in a multithreaded application for Android, and why using IntentService along with TimerTask is a good idea.
Integrating iAd with Cocos2D
How to incorporate iAd to your Cocos2D director view.