iPhone JSON Benchmarks
Posted on
Update: Check out my updated benchmarks.
Yesterday I wrote a post on parsing JSON with Apple's private framework. I thought it might be worth benchmarking TouchJSON, JSON Framework, and Apple JSON (what I'm calling the private framework). My results were very interesting.
Parsing JSON with the iPhone's Private JSON Framework
Posted on
So my post on Cocoa web services got a lot of attention when Gruber linked me the other day. This started a conversation on Twitter and basically ended up landing on using binary property lists over JSON for size and parsing, but that's for another blog post.
All of this got me thinking about how Apple does their JSON parsing, since they are obviously using JSON in several of the built in apps. I happened to notice that there was a JSON.framework
in the Private Frameworks folder this evening. I tried class-dumping it and it surprising worked! (Most of the other private frameworks I tried to class-dump didn't produce any results.)
I figured what the heck, might as well try it. It turns out that it was really easy to implement. I posted a sample project demonstrating this on GitHub.
Markdownr.com
Posted on
Markdownr.com is a neat little tool I wrote in a couple of hours for myself. I wanted a quick way to preview markdown (if you don't know what markdown is, you should go read about it) since I write all of my blog posts in markdown.
It's a pretty simple site. Just type on the left, and see your rendered HTML on the right. All of the parsing is done with Maruku in a Rails Metal, so it's real fast.
I wanted to be a good citizen, and give it all away, so you can get all of my code on GitHub. Feel free to fork and improve.
iPhone Push Development Issues
Posted on
To the wayward googler, if you are getting this error:
Failed to register for remote notifications. Error: Error Domain=NSCocoaErrorDomain Code=3000 UserInfo=0x2782a0 "no valid 'aps-environment' entitlement string found for application"
You need to make sure that your provisioning profile has the app id of the app you have setup push for. Double check that you are actually building with it.
I Like Gowalla
Posted on
Gowalla is a cool newish iPhone game from Alamofire (I love those guys). Here's the official blurb:
Gowalla is about going new places, doing remarkable things and meeting great people along the way.
I really enjoy using it. I took a small vacation with my mother to Denver, CO this week. We were hanging out in Estes Park wondering where to eat. I popped open Gowalla and found a nice little place to eat dinner. After we ate, we walked around town and got all of the other spots in Estes Park (I even created one).