Archive for the ‘Tech’ Category

ubuntu lucid, apparmor, and mysql

I had to move the mysql datadir on my ec2 instance to a different EBS volume. After I move it over, and change the datadir setting in /etc/mysql/my.cnf, I kept getting errno 13 when I started mysql, the error in /var/log/mysql/error.lo looks like this: 100819 15:10:20 [Note] Plugin ‘FEDERATED’ is disabled. ^G/usr/sbin/mysqld: Can’t find file: [...]

Migrating a “degraded” Amazon EC2 Instance

I’ve been using AWS for a few years now, and it has been rock solid. Last Sunday one of my sites became unreachable, when I got home a couple of hours later, I was able to ssh into the instance and everything seemed to be working perfectly. I checked utmp logs and the instance was [...]

Extra space/row in UIPopoverController content?

If you’re using UISplitViewController in your iPad/Universal apps, you probably implemented the UISplitViewControllerDelegate to add a UIBarButtonItem to the detail view controller’s toolbar to display a popover. The popover might have some extra space before the first row after you rotate the simulator or the iPad from landscape to portrait, took me a few hours [...]

Speeding up Core Data-based UITableViewController

It is pretty common for an iPhone/iPad app to make an API call to a server, get the JSON response data back, parse that data, and display it in a table view. The usual way to do this looks like this: – (void)apiCall { NSString *urlString = [[NSString alloc] initWithFormat:@"%@/some_models/some_action.json", apiEndpoint]; NSURL *url = [[NSURL [...]

[Reachability reachabilityForLocalWiFi] crash with OS4 SDK

If you’re using Apple’s reachability framework and compiling with OS4 beta SDK, you might get a crash like this: *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘*** +[Reachability<0xf37d0> init]: cannot init a class object.’ You can fix it by commenting out the [super init] line in + (Reachability*) reachabilityForLocalWiFi in Reachability.m: + (Reachability*) [...]

Kyle Conroy’s Blog – Should I have bought that Apple Product?

Currently, Apple’s stock is at an all time high. A share today is worth over 40 times its value seven years ago. So, how much would you have today if you purchased stock instead of an Apple product? See for yourself in the table below. via Kyle Conroy’s Personal Blog and Portfolio – Should I [...]

Facebook Like Button WordPress plugin

Now you can add a Facebook “Like” button to any webpage, so I quickly created a plugin to add that to WordPress, it will take a day or 2 to publish to the official plugins site, but in the meantime you can grab it at GitHub. If you don’t have Git, then you can download [...]

Dear Amazon, please don’t show me IE8 ads.

When I go to Amazon I see huge IE8 ads everywhere, very annoying. I submitted ad feedback, not sure if that would help. Uploaded with plasq‘s Skitch!

If you switched to Three20′s iPad branch and got a linking error…

If you switched to Three20′s iPad branch and see a linking error about MFMailComposeViewController in TTEmailComposer.o, make sure you add MessageUI.framework to your build target.

re: section 3.3.1

In developing an iPhone app for Pullfolio, we initially went with Titanium as Ray had used it before at Intridea, and we are familiar with web technologies. With that we were able to almost finish the app within a week. However, we quickly found limitations of the framework, more specifically, it was non-trivial to make a [...]