How to use Sublime Text to edit files over SSH
One of the things that I missed when swithcing from Textmate to Sublime Text was rmate, the CLI to open files in the server your are logged in over SSH in you local editor. Since I'm too lazy to learn advanced editing in vim I started searching for an alternative, and the good news is that it exists.
The first step is install rsub on Sublime Text, it's available on Package Control. Then you should change you ~/.ssh/config
to
How to fix performance problems when using NSDateFormatter
Unfortunately the majority of web services return dates in the ISO-8601 format and not in time interval. So to parse the date we end up using NSDateFormatter which is extremely slow at doing that.
But there is a way for you to improve date parsing performance, you can use the SQLite library to make the conversion. You may have to write a few more lines to get the same result, but the performance gain is totally worth it.
Let's take
… Read moreiOS app versioning with git tag
Wouldn't it be great if your iOS or OS X projects just take their version and build number automatically from git? Well, it can!
Using a script in your build phase, you can run a shell script to determine the version number and inject this into the Info.plist of a build.
It will change your plist based on the last git tag that you have. If that is the current SHA it will show the version as 0.9.