Comments

After many years of using a shared webhost, I finally decided to switch to VPS.

The shared webhost I have been using is HostGator, which has been good. But a VPS is even better, and so I switched to Digital Ocean, which cost only $5 a month (I was paying $10 to HostGator for just a shared webhost)!

The Wordpress I was migrating is blog.just2us.com (not this blog). As you might know, this blog is hosted on github using Octopress.

Continue reading →
iOS
Comments

I always have a build error after pod install, because by default, CocoaPods will configure your pods to build for active architecture only (during debugging).

The solution is to change Pods project setting Build Active Architecture Only to NO for debug.

But it is tedious to change every time after you run pod install (as your change will get reverted back to YES).

Continue reading →
iOS
Comments

As much as possible, I use storyboard with autolayout, and create constraints from there.

But when you are required to create controls dynamically, that is not possible.

You have to fall back to coding the controls and writing constraints in code. There are generally 2 ways to create constraints in code:

  1. writing each constraint directly, or

  2. writing Visual Language Format (VLF).

Continue reading →
iOS
Comments

Alcatraz is a must have if you want to make your Xcode even more powerful.

With Alcatraz, you can easily discover and install plugins such as Lin, XcodeColors, HOStringSense, and many others.

One-click install, restart Xcode, and you are ready to use.