XML Stringbuilder Gotcha
Ran into another annoying gotcha earlier today, it has to do with the encoding format that XML uses when writing out using various methods. If you look at the following code segment for an...
View ArticleString reversal in C
Recently I have been trying out a simple but really interesting interview question – how do you reverse a string in C? Hopefully most people should be aware that string functions in C are limited,...
View ArticleTroubleshooting Video Playback in WPF
For a long time Microsoft has offered an OCX or COM componentised version of the Windows Media player for inclusion into C# applications. With the introduction of WPF a few years back Microsoft...
View ArticleUp in the air with Cloud Development
The Cloud seems to be the buzz word of the modern generation, such as HTML5, Ruby on Rails and AJAX were before it. Everyone is scrambling to use it, some bash out an idea or two after a few days...
View ArticleCurrying Function C#
A while ago I did a post about Lambda calculus in C#, mainly focusing on how you can implement the concept of Y combinators. Y combinators are one of the simplest fixed point combinators in Lambda...
View ArticleQuis custodiet ipsos custodes
Quis custodiet ipsos custodes? is a Latin phrase literally translated as “Who will guard the guards themselves?” but commonly rendered as “Who watches the watchmen?” made famous paraphased from its...
View ArticlePlugin Architecture in Azure
Trade-offs have to be made when moving to Cloud platforms, that’s a fact, the question is how much of a comprise do you have to make. Performance and flexibility are two such entities that are...
View ArticleImproving WPF Rendering Performance
I have posted quite a few times previously covering WPF, its quirks and workarounds as well as ways to improve its overall perceived performance to end users. In this article I will summarise them all,...
View ArticleSubclassing .Net Compact Framework Controls
To aid development of rich interactive applications, and reduce the amount of time spent on handling OS specific interactions. .Net applications hide a lot of the underlying message passing that occurs...
View ArticleApple shows the world its hippy inspired view of the future with Mavericks...
Its one of the worlds worst kept secrets. Every year at the WWDC; Apples World Wide Developer Conference, they will show off the latest and greatest. Most years they have showed off software releases –...
View ArticleDiving into the .Net JIT engine
Managed development using .Net has always been akin to the concept of ‘standing on the shoulders of giants’ where code reuse and using the tools are concerned. Most .Net developers are happily content...
View ArticleImmutable objects in .Net
For years there has been an ever growing Elephant in the room for most programming languages; concurrency and multithreading. Most underlying languages implement the concept of threads allowing...
View ArticlePorting WPF applications to Windows Universal Apps
Windows Presentation Foundation or WPF is one of the few things of the Windows Vista era that has survived, or that people actually use and enjoy. It was originally called Avalon and was the first step...
View ArticleOpenCV Colour space and LAB WhitePoint
Recently I have had the fun task of trying to normalise colours between two sets of images in OpenCV. Being a photographer I thought the easiest way of doing this would be to use a Macbeth Colour Chart...
View ArticleOpenCV Colour Temperature Calibration via rendition chart
Different types of light output different colour temperatures which is expressed in kelvin; ranging from the yellow end of the spectrum e.g. 2800k up to blue e.g. 6500k. Natural sunlight is around...
View Article