Now that I’m starting a new iOS development project, I’m trying to have close-to-complete test coverage of critical parts of my code. I’m using XCTest pretty extensively, and found that I needed to test a rather complicated private method that is critical to my app’s user experience. This post shows you how I did it.
A recent post by
Derek Parker introduced me to
advisory locks in PostgreSQL.
Advisory locks are a very straightforward way to prevent multiple instances of a program from running at the same
time. However, there are some cases when you shouldn’t use the database to enforce this constraint.
The stupidity of this is mind-boggling. Essentially, LinkedIn is asking you to insert a man-in-the-middle IMAP server that parses ALL your email and modifies the body so as to ‘enhance mobile email, giving professionals the information they need to be brilliant with people.’ The following tweet from Justin Miller first brought this to my attention:
I recently needed to issue several dozen HTTPDELETERESTAPI calls of the
form http://www.example.com/blah/n where n was a sequential version
number. In this post I’ll show how to do this easily from the command
One of the features of Qur’an Memorizer, my
first iOS app, is the ability to highlight a verse (ayah) when it’s
tapped. To do this I access a database of verse x and y locations and
retrieve the 4 coordinates I need to draw the resulting polygon.
The first version of the code released to the App Store looked a little
bit like this:
As an amateur photographer I like displaying my photos on my blog, especially when there are particularly interesting stories behind them. In this post I’ll show you how to modify the default Octopress theme and add a type of layout that highlights a single photograph. You can see an example of this in this sample blog. more ...