Infinite scroll using on UITableView

If we have 100 records, perhaps we can GET them in one short. But what if, we have 1000 or even 10k records?

Thus, here I shows an example on implement lazy loading on iOS app, as well as pull to refresh.

Read More

Distribute iOS app via website

The first time I seen this is emu4ios.net. Then I found this is very useful and convenient for my beta tester.

Read More

Running multiple nodejs app in ONE server using Nginx

Environment

This is running on Ubuntu 13.10

Here I would like to use Sails.js framework (version 0.9.13) to create node.js app.

Read More

UIImageView animation fade in & out between images

To animate between images (not .gif) in a UIImageView like the example below

Original images

First image

Read More

Remove the 1px shadow from UINavigationBar

There is a shadow (only 1 pixel) below the UINavigationBar

With shadow

Read More

UIAlertView delegate in class method

To handle the UIAlertView (or any others class) delegate in class method just have to change the minus - to plus +

Read More

MySQL search order by relevance column using FULLTEXT

I’ve blamed by one of the client and says that the keyword that match the title shown at bottom. So want me to order by column match.

Finally I found the solution which is Full-Text Search.

Read More

Setup PHP environment in Mavericks using XAMPP

I’ve been using MAMP for some time, unfortunately, it seems like outdated (seldom update), now I’ve switched to XAMPP and it is up to date.

Read More

AFNetworking 2 - get JSON on error

I’ve just switched from AFNetworking 1.x to 2.x.

In AFNetworking 1.x, I make a request using JSONRequestOperationWithRequest method. i.e.

Read More

RSA encryption & decryption on PHP

I’ve come across RSA encryption on a very long string.

The solution is divide the long string into chunks according to the length of the key.

Read More