In this post I will outline migrating your existing subscription data from Laravel Cashier version 5 to version 6. In version 6, Cashier got a nice update to handle multiple subscriptions but there is not guide to migrate your data. Fear not, it’s actually pretty easy! The first thing you should do is backup your […]
Swift – Google Analytics
I really wanted a simple way to add Google Analytics to my iOS (swift) app without subclassing the way they recommend. Swift makes this easy with Extensions. All you have to do add GA to your swift app (I highly recommend using cocoapods) and add this extension to your code base. Extensions are essentially a […]

Laravel 4 – Pivot vs Polymorphic – Part 1
PHP has come a long way! Coming from the Rails world back to PHP has actually been pretty painless thanks to Laravel. One of the first things that stumped me was under what circumstances to use pivot vs polymorphic relationships. This post is more of a reminder for myself but I hope it clarifies things […]

Creating the bouncy/zoom image effect in the KickStarter iOS app
The KickStarter iOS app is pretty awesome. In particular, I like the bounce/zoom effect they have when you pull down on a UITableView. Turns out, it’s pretty easy to replicate. Since UITableView inherits from UIScrollView, we can simply implement the scrollViewDidScroll delegate method and detect when a scroll happens. From there, we just scale the […]

Creating a pull to refresh animation like the popular Vine iOS app
I liked some of the details in Twitter’s Vine iOS app so I set out to make some of them. I thought the pull to refresh animation was pretty cool so I started with that. You can view the code on my github page. This is still a rough proof of concept version. https://github.com/lostincode/UIVinePullToRefresh

Creating a log in view controller for your app in iOS5 with a PHP backend (1/2)
In this two part tutorial we will cover creating a simple iOS5 app using storyboards that enables users to log in to your app by calling a PHP page to authenticate. We’ll also discuss techniques used to keep log in state using NSUserDefaults and NSNotificationCenter to notify other view controllers about our state. The goal […]