Sam Soffes

Easy Deployment with Heroku

Posted on

I put together a quick screencast that shows the power of Heroku and how easy it is to deploy your app in literally seconds. I've started moving all of my little sites there. My company is even going to try a few of our new apps on there to see how we like it for bigger things.

Heroku is worth checking out even if you're happy with your current host. Their architecture is really impressive and the add-ons are really cool.

At first my app gave me an error saying it couldn't load gems. I thought I needed to unpack my gems, but Heroku replied to me on Twitter and provided a really good alternative to unpacking!

Continue reading →

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 →