iPhone Time Lapse

May 4th 2012

As an experiment, I decided to create, edit and publish a time lapse video using just my iPhone 4S. Here are the results:

I used iMotion HD and iMovie. This would not be possible without the ability for applications to share content between them. I would encourage iOS developers to take this into consideration when building apps, rather trying to bolt in every possible piece of functionality into a given app.

Rendering partials in toto

April 19th 2012

toto is a fantastic lightweight blogging engine. In fact, at the time of writing, this very blog is running on it. By looking at dorothy you can see how it uses a layout and templates to render content. However, by default, it does not provide support for template partials.

However, that’s easily solved with a little monkey patching:

module Toto
  class Site
    class Context
      def to_partial(page)
        to_html page, @config
      end
    end
  end
end

Now you can include partials in your templates like this:

<%= render 'sidebar', :partial %>

Now, I’m not a fan of monkey patching for a number reasons, not least of which is the fact that a good monkey patch is often a missed opportunity to improve an open source project. With that in mind, here is the pull request to have this functionality added to toto itself.

tags: toto, ruby

Stunning landscape photography by Peter Zeglis

April 16th 2012

These images, reminiscent of work by Ansel Adams, were taken in Iceland by Peter Zeglis.

01 02 03 04

More of his Iceland project can be seen here.

subscribe subscribe to this blog

Welcome. Here you'll find Adam Scott's blog and photos. Adam is an agile software developer by trade and a photographer by night.

stuff

popular tags