• Programming

    Currying Function C#

    by  • April 7, 2013 • .Net, Journal, Programming • 0 Comments

    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 calculus, and was discovered by a Mr Curry. One of the other interesting concepts of Lambda calculus is...

    Read more →

    Up in the air with Cloud Development

    by  • February 10, 2013 • .Net, Programming • 0 Comments

    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 tinkering but its only a few that actually understand the technologies. So what does...

    Read more →

    Troubleshooting Video Playback in WPF

    by  • January 11, 2013 • .Net, Journal, Programming • 0 Comments

    This article is part of a series of articles I have written covering WPF; improving its performance, its quirks and associated workarounds, as well as porting it to WUA Applications: Improving WPF Rendering Performance (Part 1) Improving WPF Rendering performance (Part 2) Improving WPF Rendering performance (Part 3) Troubleshooting Video Playback in WPF Writing...

    Read more →

    String reversal in C

    by  • October 27, 2012 • Programming • 0 Comments

    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, there are ones like strlen, strcopy etc. but there isn’t a string.reverse such as those present in high level...

    Read more →

    XML Stringbuilder Gotcha

    by  • October 24, 2012 • .Net, Programming • 0 Comments

    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 XmlWriterSetting class, you will straight away notice the encoding property being assigned, and thus be thinking ‘well it must output...

    Read more →

    Writing HLSL Pixel Shaders for WPF

    by  • October 18, 2012 • .Net, Journal, Programming • 0 Comments

    This article is part of a series of articles I have written covering WPF; improving its performance, its quirks and associated workarounds, as well as porting it to WUA Applications: Improving WPF Rendering Performance (Part 1) Improving WPF Rendering performance (Part 2) Improving WPF Rendering performance (Part 3) Troubleshooting Video Playback in WPF Writing...

    Read more →

    Improving WPF Rendering performance (Part 2)

    by  • October 12, 2012 • .Net, Journal, Programming • 0 Comments

    This article is part of a series of articles I have written covering WPF; improving its performance, its quirks and associated workarounds, as well as porting it to WUA Applications: Improving WPF Rendering Performance (Part 1) Improving WPF Rendering performance (Part 2) Improving WPF Rendering performance (Part 3) Troubleshooting Video Playback in WPF Writing...

    Read more →

    The dark side of the Hosting Process (vshost.exe)

    by  • September 4, 2012 • .Net, Programming • 1 Comment

    By default Visual Studio wraps managed projects around a Hosting Process to improve the performance when debugging and to enable a subset of features that would not be possible via direct debugging. However just like most things, there are trade-offs to be had, and can introduce new bugs into your application. The end goal...

    Read more →

    64bit HKLM Registry Gotcha

    by  • August 23, 2012 • .Net, Programming • 0 Comments

    I’ve recently ran into some interesting problems when trying to access the registry on a 64bit machine via C#. Now most people should know that writing (and sometimes even reading) from certain sections of the registry results in either an exception or would return null; indicating the registry key is empty or does not...

    Read more →