1. Beware of Unsigned Integers

    July 28, 2013

    Here's a little quiz: What value does m have after running the following code:

    unsigned int one = 1;
    long minusOne = -1;
    long m = MAX(one, minusOne);

    If your answer was "it depends" – congratulations, you can probably stop reading now.

    Here's the thing: If you run this on a ...

  2. Copy/Paste in the iOS Simulator

    July 21, 2013

    The keyboard shortcuts for copy/paste in the iOS simulator can be a bit confusing. This is especially true for Cmd+C and Cmd+V, which most people have deep in their muscle memory. When you invoke these in the iOS simulator, nothing seems to happen, and the titles in ...

  3. GitHub Mobile Pages

    July 16, 2013

    GitHub has finally introduced a mobile layout for repositories, issues, and some other views (most of what you'd want to access on a phone). I especially like the "less fancy, more fast" approach – they've not just tweaked the layout to make it more readable on a small screen ...

  4. Regex Crossword

    July 16, 2013

    This is such a brilliant idea: Crossword puzzles that use regular expressions as clues. There are five puzzles in each of the six levels of difficulty. It starts out easy enough, but the "Experienced" (4th) level is already quite challenging (but doesn't feel unfair).

    Link: regexcrossword.com

  5. First Look at Editorial for iPad

    I tweeted earlier today that I've registered the name for a new app in iTunes Connect. It's called Editorial, and I've actually been working on this for over a year now.

    At its core, it's a Markdown editor for iPad, but you can also think of ...

  6. Formatting File Sizes with NSByteCountFormatter

    July 14, 2013

    This is one of the little things that are easy to overlook (or quickly forget) when a new SDK is released. NSByteCountFormatter was introduced in iOS 6, but I somehow just found out about it yesterday. As the name implies, this class converts a number of bytes into a human-readable ...

« Previous Page