Posted on August 19, 2010, 10:24 am, by ayn, under
Tech.
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: [...]
Posted on June 22, 2010, 3:13 pm, by ayn, under
Tech.
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 [...]
Posted on May 24, 2010, 5:59 pm, by ayn, under
Tech.
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 [...]
Posted on May 11, 2010, 11:17 pm, by ayn, under
Tech.
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 [...]
Posted on May 6, 2010, 2:51 pm, by ayn, under
Tech.
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*) [...]
Posted on April 26, 2010, 10:31 am, by ayn, under
Tech.
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 [...]
Posted on April 21, 2010, 11:44 pm, by ayn, under
Tech.
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 [...]
Posted on April 20, 2010, 1:15 am, by ayn, under
Tech.
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!
Posted on April 14, 2010, 12:55 pm, by ayn, under
Tech.
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.
Posted on April 11, 2010, 10:14 pm, by ayn, under
Tech.
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 [...]