subscribe via RSS

  • Daily: UIWebView to PDF

    Very technical and short today. Did you know that it’s super dead easy to create a PDF from the contents of a UIWebView by just using built in Cocoa technologies? Turns out, it is!

    Continue Reading...

  • Daily: The first ten seconds

    Ten seconds. That’s how much time your app has to make a first impression. I just made this number up, but I don’t believe that it’s any less or much more – certainly not 30 seconds or even a minute.

    Continue Reading...

  • Daily: Write ugly code.

    Write ugly code. Use two-char variable names like xy, ignore retain cycles, block the main thread.

    Continue Reading...

  • Daily: Retina Jekyll

    This blog is managed using Jekyll, an awesome, ruby-based static site generator. I like ruby and the idea of not having to manage a database for some static content, so the choice was easy to make. One thing that’s missing though was support for retina images. So I built a tiny plugin that gets the job done. Turns out that plugins for Jekyll are something very, very simple. My plugin just converts (using ImageMagick) a source image into two resolutions, one for retina with the @2x-qualifier and a regular one. It looks like this:

    ```ruby Jekyll::Hooks.register :site, :post_render do |post| Dir[”./img/original/”].each do |x| file = name = File.basename(x, “.”) ext = File.extname(x)

    Continue Reading...

  • Daily: Behavioral Patterns: State's the obvious.

    When I was talking about behavioral patterns yesterday, I was just getting started. While the strategy pattern is great in some situations, the state pattern is useful in almost all situations where there is state.

    Continue Reading...

Newer Posts Older Posts