Why Starting a New Task in the Task Parallel Library (TPL) Doesn’t Always Start a New Thread

The Task Parallel Library in .Net is a wonderful resource.  However, one thing that is a little confusing is that it is actually possible to start a task that runs on the same thread as the current code.  That is, we can do Task.StartNew and it still runs on the same thread.  This isn't the … Continue reading Why Starting a New Task in the Task Parallel Library (TPL) Doesn’t Always Start a New Thread

CPDOs for Beginners

Introduction CPDOs (constant proportion debt obligations) are in the news currently.  In spite of a judge describing a CPDO issued by ABN Amro as 'grotesquely complicated' the basic concept behind the instrument is pretty straightforward.  This article describes the strategy behind a CPDO at a high level. Overview of a CPDO A CPDO is a financial … Continue reading CPDOs for Beginners

Beginner’s Guide to Techniques for Refreshing Web Pages: Ajax, Comet, HTML5

Introduction This article briefly discusses the technologies used in modern browsers to display web pages, and goes into a little more detail about the user experience on those web pages, in particular how we can get part of a web page to refresh automatically when data changes on a web server. Browsers and HTML I'm … Continue reading Beginner’s Guide to Techniques for Refreshing Web Pages: Ajax, Comet, HTML5

Credit Default Swap Index Trading: Bid/Offer, Rolls, Roll Conventions

Introduction I apologize in advance for the rather esoteric subject here, but I have in the past done some work with our CDS index trading desk.  The roll dates for the US indexes are once again approaching.  Immediately after the roll date we trade both the old index, the new index, and the roll between … Continue reading Credit Default Swap Index Trading: Bid/Offer, Rolls, Roll Conventions

15-Minute Beginner’s Guide to Windows 8

Introduction Windows 8 has been released to manufacturing, and is available to developers on MSDN.  It's quite disorientating for people who've worked with Windows for a while.  I've been playing with it and wrote some notes for myself, so I thought I'd turn them into a quick guide to navigating your way around it. I'm … Continue reading 15-Minute Beginner’s Guide to Windows 8

Creating Code Listings in WordPress using Visual Studio

In WordPress it has historically been quite hard to paste code listings into the editors and get them to look good.  There are some plugins that try to do it, but none of them seem to work very well with code copied out of Visual Studio. Edit 2016:  Wordpress themselves have now solved the problem … Continue reading Creating Code Listings in WordPress using Visual Studio

Delegate Syntax in C# for Beginners

Introduction I have been programming with C# since it came out but I still find the delegate syntax confusing.  This is at least partially because Microsoft have changed the recommended syntax regularly over the years.  This article is a quick recap of the various syntaxes.  It also looks at some of the issues with using … Continue reading Delegate Syntax in C# for Beginners

Blurry Text with Small Fonts in WPF

Introduction The difficulties with text rendering in WPF have been well documented elsewhere.  However, every time I get a blurry button I can't remember how to fix it.  This brief post shows the usual solutions. TextOptions.TextFormattingMode With small font sizes the default WPF text rendering can lead to text looking very blurry.  This is particularly … Continue reading Blurry Text with Small Fonts in WPF