30 Dec 2012
For Christmas my wife and I brought each other a new FitBit One
device
(Amazon affiliate link included). These are small fitness tracking devices that monitor the number of steps
you take, how high you climb and how well you sleep. They’re great for providing motivation to walk that extra
bit further, or to take the stairs rather than the lift.
I’ve only had the device for less than a week, but already I’m feeling the benefit of the gamification on
FitBit.com. As well as monitoring your fitness it also provides you with goals,
achievements and competitions against your friends. The big advantage of the FitBit One over the previous
models is that it syncs to recent iPhones, iPads, as well as some Android phones. This means that your
computer doesn’t need to be on, and often it will sync without you having to do anything. In the worst case
you just have to open the FitBit app to update your stats on the website. Battery life seems good, at about a
week.
The FitBit apps sync your data directly to FitBit.com, which is great for seeing your progress quickly. They
also provide an API for developers to provide interesting
ways to process the data captured by the FitBit device. One glaring omission from the API is any way to get
access to the minute by minute data. For a fee of $50 per year you can become a Premium
member which allows you do to a CSV export of the raw data. Holding the
data, collected by a user hostage is deeply suspect and FitBit should be ashamed of themselves for making this
a paid for feature. I have no problem with the rest of the features in the Premium subscription being paid
for, but your own raw data should be freely available.
Read More...
29 May 2012
I’m not a quick game player. I don’t rush out a buy the latest games and complete them on the same weekend.
Currently I’m most of the way through both
Alan Wake and L.A. Noire.
Alan Wake is a survival horror game where you’re fighting off hordes of people possessed by darkness. L.A.
Noire is a detective story that has you solving crimes in 1940s Los Angeles. Both feature an over the shoulder
third person camera, and both have excellent graphics. They also both have a film like quality to the story.
In Alan Wake the action is divided up in six tv style “episodes”, with a title sequence between each one. It
also has a number of cut scenes and narration by the title character sprinkled throughout the game which help
to drive the story forward.
Read More...
28 Mar 2012
Many websites have some form of recommendation system. While it’s simple to create a recommendation system for
small amounts of data, how do you create a system that scales to huge amounts of data?
How to actually calculate the similarity of two items is a complicated topic with many possible solutions.
Which one if appropriate depends on your particularly application. If you want to find out more I suggest
reading the excellent Programming Collective Intelligence
(Amazon affiliate link) by Toby Segaran.
We’ll take the simplest method for calculating similarity and just calculate the percentage of users who have
visited both pages compared to the total number who have visited either. If we have Page 1 that was visited by
user A, B and C and Page 2 that was visited by A, C and D then the A and C visited both, but A, B, C and D
visited either one so the similarity is 50%.
Read More...
20 Mar 2012
On my 25 minute train journey to work each morning I like to pass the time by
reading. The two most recent books I’ve read are
The Lean Startup: How Constant Innovation Creates Radically Successful Businesses by Eric Ries and Steve Jobs by Walter Isaacson (both links contain an affiliate id). Although one is a
biography and the other is a book on project management they actually cover similar ground, and both are books
that people working in technology should read.
Walter Isaacson’s book has been extensively reviewed and dissected so I’m not going to go into detail on it.
The book is roughly divided into two halves. The first section is on the founding of Apple, Pixar and NeXT.
This section serves an inspirational guide to setting up your own company. The joy of building a great product
and defying the odds against a company succeeding comes across very strongly. The later section following
Job’s return to Apple is a much more about the nuts and bolts of running a huge corporation. While it’s an
interesting guide to how Apple got to where it is today, it lacks the excitement of the earlier chapters.
Read More...
07 Mar 2012
A little while ago I was asked what my biggest gripe with Django was. At the time I couldn’t think of a good
answer because since I started using Django in the pre-1.0 days most of the rough edges have been smoothed.
Yesterday though, I encountered an error that made me wish I thought of it at the time.
The code that produced the error looked like this:
from django.db import models
class MyModel(model.Model):
...
def save(self):
models.Model.save(self)
...
...
The error that was raised was AttributeError: 'NoneType' object has no attribute 'Model'
. This means
that rather than containing a module object, models
was None. Clearly this is impossible as the class
could not have been created if that was the case. Impossible or not, it was clearly happening.
Read More...