blog
My blog of techy stuff, ranging around SQL (SQL Server, that is), C# and .net, JavaScript and a smattering of stuff about the Orchard CMS (that powers my site) as I get more familiar with it. There's the occasional non-technical post when something is of interest to me that I feel is worth sharing, but they should be few and far between
-
Escaping identifiers in SQL when building up commands in C#
I answered a question on Stack Overflow recently about how to "encode" identifiers so that they aren't a source of SQL injection. As it's something I'm likely to keep "in the bank" I wanted to put up …
-
Ensuring an action filter is only executed once per request
If you have a view that's composed of the result of more than one action, for example by having something like:
@Html.Action("PartialContentForHome", "Home")
in one view, to pull in the content for …
-
Blog spam from "essay captains"
Recently I've had some blog comment spam from https://essaycaptains.com/. I'm just putting this out there so that (yes, the link has a nofollow!) anyone that searches for them might see this and know …
-
Making the PJS.Bootstrap theme work with Orchard 1.10.x
The PJS.Bootstrap theme, along with several other themes and modules doesn't work when combined with Orchard 1.10.x, with the orchard-debug-YYYY-MM-DD.log files generated in ~/App_Data/Logs …
-
Using SQL Server CLR to add "earliest" and "latest" aggregate functions
Whilst there are undoubtedly very funky ways to achieve the same result, many moons ago I wrote a couple of SQL CLR aggregate functions for retrieving the earliest and latest values for a given …
-
Using MiniProfiler with a hybrid asp.net Web Forms / MVC application - Part 3
Previous parts:
Part 1 - Installing MiniProfiler and showing the UI
Part 2 - Hooking MiniProfiler into an MVC controller
Controlling when MiniProfiler is visible
More often than not, you won' …
-
Using MiniProfiler with a hybrid asp.net Web Forms / MVC application - Part 2
Part 1 covered creating a hybrid ASP.NET WebForms / MVC project, adding MiniProfiler to the project, showing MiniProfiler output on the WebForms page and adding an event to the MiniProfiler output. …
-
Using MiniProfiler with a hybrid asp.net Web Forms / MVC application - Part 1
If you've got an application, like we have, that uses asp.net Web Forms for the UI components and MVC (5) for the endpoints that are used by JavaScript to retrieve/save data, it's still posible to …
-
2017-08 update for Windows 10 Anniversary Update ("1607") breaks WSUS
NOTE: Microsoft appear to have resolved this issue with a new update for Windows 10, see here for details.
We've discovered that (now listed as a known issue in the Windows 10 Update History) the …
-
[Non-Tech] Usable instructions for descaling Sage "the Oracle" coffee machine
Totally non-techy post ahead:
The instructions in the provided manual for the Sage "by heston blumenthal" the Oracle cofee machine that are supposed to guide you through de-scaling the machine are …