Sam Soffes

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.

Continue reading →

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.

Continue reading →

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.

Continue reading →

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).

Continue reading →

New Blog on GitHub and Jekyll

Posted on

So today I moved my blog from Ruby on Rails on SliceHost to Jekyll on GitHub. It only took a two hours to figure it out and move everything over.

The main reason for moving to the new setup (besides the fact that I love redoing my blog for some reason) was being able to manage all of my posts via Markdown files locally, then pushing then up with Git when I had a good version.Jekyll lets me do this easily and quickly.

I'm going to give this a shot for now. I don't really want to write a blogging platform, even thought I've written a ton. I just like programming. Now that I have more projects than I have time for, I'm looking for something simple that I can simply post with. When I roll my own solution, I end up working on it for a few hours each time instead of just writing my post.

Continue reading →