July 29th, 2009
Silverlight 3.0 moved its featureset closer to that of WPF by adding support for merged Resource Dictionaries and Style Inheritance. Without these features, developing custom templates and styles for Silverlight controls can become a bit of a copy-and-paste nightmare. Since I have used the implicit theming feature built into the Silverlight Toolkit to make my Silverlight controls fit into the overall look and feel of this site, I was hoping that these features would enable me to refactor my themes developed for Silverlight 2.0 to be a bit less unwieldy.
Read the rest of this entry »
Posted in Software | 4 Comments »
April 19th, 2009
Prelude in C♯ Minor by Sergei Rachmaninoff.
In December I had my first piano recital in nearly two years, and so I started to look into various methods that performers use to conquer performance anxiety, something which causes me a lot of grief. Lately I’ve been hanging around with a number of friends involved in Cambridge’s thriving local music scene, and so not willing to go the beta blockers route I started thinking about doing some recordings. This way not only do I get to hear what the audience hears but it also reproduces some of the pressure that comes with performing for an audience. The audiofile above is my first effort, a recording of Sergei Rachmaninoff’s Prelude in C♯ Minor.
Read the rest of this entry »
Posted in Music | No Comments »
April 2nd, 2009
Update – This post was written before the release of Silverlight 3.0b, which provides a number of enhancements relevant to this implementation, such as a WriteableBitmap and Pixel Shaders
Rendering
The first obstacle to implementing the RD simulation is that Silverlight 2.0 does not by default provide a means of generating dynamic images. WPF has a WriteableBitmap, but no equivalent exists in Silverlight. However, it does support PNG streams so we can dynamically update a bitmap by encoding it to PNG on the fly. For this I have used Joe Stegman’s PNGEncoder class, which I have modified slightly to deal with RGB data and to reduce memory usage.
Read the rest of this entry »
Posted in Software | 2 Comments »
April 1st, 2009
Somewhat late, since I have had pictures on my facebook profile for months, but I thought I should add a post about my experiences at the London Triathlon in August 2008. This was the second of three major endurance events I completed in 2008, the others being the Blenheim Triathlon and the New York Marathon, in aid of Epilepsy Research UK. I would like to thank everyone who generously sponsored me for those events, your donations have since been passed on to the charity and will be put towards improving the quality of life for eplieptics who suffer from more severe symptoms than my own.
Read the rest of this entry »
Posted in Sport, Triathlon | 1 Comment »