article

Reading and writing 18-bit RGB VGA Palette (pal) files with C#

18-bit RGB palettes are an old format used by VGA displays of yesteryear. These palettes use 6-bits for each of the red, green and blue channels and usually allowed a maximum of 256 colours from the 262,144 unique colours available. This article describes how to read and write 18-bit palette files.

avatar
Richard Moss
article

Redirecting to HTTPS when using IIS behind a load balancer

A short article on using IIS URL rewriting to force insecure HTTP requests to HTTPS when behind a load balancer that is configured to terminate the secure connection, including support for excluding LetsEncrypt challenge requests.

avatar
Richard Moss
article

Installing the URL Rewrite module into Internet Information Services

A short article on installing the optional URL Rewrite module into Internet Information services.

avatar
Richard Moss
article

Upload data to blob storage with Azure Functions

How to store data sent to an Azure Function in blob storage.

avatar
Richard Moss
article

Arranging items radially around a central point using C#

Recently I was looking for a way of display hierarchical information in a more compact form than the previous horizontal/vertical trees I was using. One of the concepts I looked into during this was the idea of arranging children radially around a central node. This article describes an approach for doing this using circular nodes.

avatar
Richard Moss
article

Painting animated images using C#

A short article on using the ImageAnimator class to allow animated GIF's to be properly painted using System.Drawing and C#.

avatar
Richard Moss
article

Book Review: The C# Helper Top 100

A review of the book "The C# Helper Top 100" by Rod Stephens

avatar
Richard Moss
article

Getting a window rectangle without the drop shadow

A short article which describes how to get a window rectangle without including offsets for drop shadows

avatar
Richard Moss
article

Capturing screenshots using C# and p/invoke

I was recently updating some documentation and wanted to programmatically capture some screenshots of the application in different states. This article describes how you can easily capture screenshots in your own applications using the `BitBlt` Win32 API call.

avatar
Richard Moss
article

Writing custom Markdig extensions

Markdig is an extensible Markdown processor built with performance in mind. This article details how to create a simple Markdig extension to extend the parsing functionality to create inline links for MantisBT issue numbers (or GitHub or similar).

avatar
Richard Moss
article

Announcing MantisSharp, a .NET client for using the MantisBT REST API

I've released a new open source project named MantisSharp, a simple .NET client for working with the recently introduced REST API for Mantis Bug Tracker.

avatar
Richard Moss
article

Restoring missing Authorization header when using PHP with Apache

A short post which describes how to adjust .htaccess to enable the REST API in Mantis Bug Tracker to work.

avatar
Richard Moss