Secure Amazon EC2 instances

Recently my EC2 server was hacked and it was totally my fault. I  enabled  password authentication and I set the password way too simple. I took a look at the log and I found out there are indeed many free people who keep trying to log in using brute force method. To secure my server, I decided […]

Continue reading →

My knowledge of Asian fonts

Quite often, websites developed in Singapore need to be localized (translated) into other Asian languages. Here’s my experience of working on Asian fonts. This is more useful for Flash designer and developers. But since embedding fonts for HTML is becoming a norm, this may be helpful for HTML work, too. Most fonts only have English […]

Continue reading →

Don’t mess with Core Data

I had a weird error when working with Core Data. The App crashes without giving anything information. After adding break points here and there for  a few hours, I narrowed that the problem is caused by failure to retrieve the NSManagedObjectModel file. I re-created another project and re-created the xcdatamodeld file from scratch and everything works fine. […]

Continue reading →

Installing Yum on CentOS 5.5

Here’s the step by step instruction: Create a “installyum.sh” file: vi installyum.sh Paste the code below inside Change the [mirror-site-address] to somewhere near you. The list can be found at CentOS’s Website. Remember to change i386 to x86_64 if you are using 64 bit system. Press Shift+ZZ to save and exit Grant executable right to […]

Continue reading →

Using Google Analytics IOS SDK

The library is great and it’s very simple to implement. You can follow the instructions on Google to get things ready. When calling the function, assuming trackPageview, it will be like this NSError* error; [[GANTracker sharedTracker] trackPageview:@”/page name” withError:&error] Just two things to note: the page name must start with forward slash “/” withError cannot be […]

Continue reading →