Blog. January 2012

  • Look back at 2011

    In 2011 I seemed to spend a lot of time trying to make various numbers increase, such as my Khan Academy energy points, StackOverflow points, and blog visitors. This may be a result of the increasing "gamification" of websites, or maybe just that I'm so easily drawn in by such mechanics.

  • Simulating a demand curve

    Recently, I've been watching the new microeconomics lectures at Khan Academy, which got me thinking about creating an economics simulation, something I've thought about many times. Specifically, I was wondering about how to come up with a reasonable demand curve. They always seem to be drawn as a straight line but with no justification other than simplicity.

  • SVG optimiser

    I've started work on a program I've been meaning to make for a while: an SVG optimiser. I've often found myself spending a lot of time tidying, simplifying and compressing SVGs created by Inkscape or Illustrator. Sometimes, changes are merely aesthetic, e.g. reducing numbers from an unnecessary six decimal places to one, or removing unused attributes. These changes make it easier to read the file, and can reduce its size noticeably. Other changes are more practical, such as removing transforms which otherwise make it difficult to see where paths and shapes are actually placed.