Canon TS-E 45mm f/2.8 Time Lapse Test

November 6th 2012

I have just purchased a Canon TS-E 45mm f/2.8 for use during time lapse filming. Here is an initial test.

Namespacing in JavaScript

May 30th 2012

JavaScript’s global variables are evil, and namespacing is a good thing. However, as I regularly move from project to project, I find myself rewriting the code to help manage namespaces again and again. Every time I search for something reusable, I find conventions that require unpleasant boilerplate.

I started a little personal project, and ended up writing this. Hopefully somebody might find it useful.

Grab the source here.

Include it in your document like so:

<script src="/path/to/n.js" type="text/javascript"></script>

Register objects and classes like so:

n('foo.bar.baz', function(s) {
  s.Person = function () {
    this.greet = function () {
      alert('hello');
    };
  };
});

Reference registered objects and classes like so:

var myPerson = new foo.bar.baz.Person();
myPerson.greet();

That’s all there is to it!

UPDATE: A minified version can now be found here. Thanks Scott Hamper!

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.

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