IMG_6491s

Automate GhostScript in C#

1
This example demonstrates how to send source to GhostScript on the stdin stream, and capture the result on the stdout stream. Test Program In this basic test example we start with a simple “Hello World” PostScript document, call the PostscriptToPdf function, and get the resulting PDF document in a [...]
IMG_6207s

Delimited Lists within Groups using Linq

0
WARNING: It turns out that although functional, this example does not scale well, performance is O(n²)… as the list size doubles, execution time quadruples… back to the drawing board! For detail read the Performance section at the bottom of the post. Given a basic set of values (in this case some [...]
IMG_6171s

Plugin Architecture with Configuration Support

0
For an upcoming project I want to make use of a simple plugin architecture. The application I’m working on processes data for several different clients. Each client will have different rules, and I’m aiming for a data processing plugin for each client. From a deployment perspective I want to load [...]
IMG_5535s

Filter Output is Here

0
So last night I took the plunge and signed up for a hosting package for my personal blog instead of using the free Blogspot service. It’s all been very quick and painless: I quickly found a theme I liked (and will customise it a little later). I wanted code-highlighting, and there’s a plugin for [...]
IMG_4493s

ServiceErrorLog Provider for ELMAH, Part 3

0
Pulling Things Together Finally, it’s time to flesh out the method stubs that I created in Part 1, so that the web services are called. I started by adding a Web Reference in the MyCompany.ElmahExt project to the LoggingService that I created in Part 2. First, I made the following additions to the [...]
IMG_4493s

ServiceErrorLog Provider for ELMAH, Part 2

0
Review In Part 1 I created a basic implementation for a new ELMAH logging provider that will provide indirect logging to SQL Server over a web service interface. Currently, the basic skeleton code is called, but it doesn’t do anything useful at the moment. Eventually, I need to fill in those [...]
IMG_4493s

ServiceErrorLog Provider for ELMAH, Part 1

0
Introduction I’m really interested in using Atif Aziz’s ELMAH (Error Logging Modules and Handlers for ASP.NET) in my next project. Up to now I’ve used the perennial favourite Log4Net, or rolled my own error logging implementation. Currently, all our web errors get emailed to our support team, and… [...]
IMG_4550s

In which I delve into F# for the first time…

0
I eventually got around to installing VS2010 yesterday, and decided to start with something entirely new to me, namely F#. Firstly, I spent an hour or so watching the three lectures given by Dr Don Syme on Channel 9. The presentation is extremely quick-paced, but gives a good feel for the [...]
Go to Top