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
-
Trailing slashes in Orchard
Up until about 20 minutes ago, viewing this blog via http://robertwray.co.uk/blog would work, but viewing it via http://robertwray.co.uk/blog/ wouldn't. Logical, no?
The solution is to add a …
-
Getting a type value from the Request object
A little bit of boiler-plate code I've used in the past for retrieving a value from the asp.net Request object (when working with webform back in the day!) is:
/// <summary>/// Retrieve a value from …
-
A custom model binder for XML content
Most of the time the default model binder in MVC suffices and maps everything into your model cleanly. One thing that you can't do automatically is read XML into an XDocument. You could solve this …
-
Creating your own certificates for development/test environments - Part 2
Part 1 covered creating a Root Certificate and adding it to the Local Machine trusted store, as two discrete steps. That leaves the remaining two steps for this part:
Creating a certificate for …
-
Creating your own certificates for development/test environments - Part 1
So that HTTPS bindings can be configured in IIS in a development/test environment, there are a couple of options:
Use IIS to create a Self-Signed certificate
Create your own root certificate to …
-
Windows Forms marquee style progress bar that doesn't, well, marquee..
If you've got a progress bar where the Style is set to "ProgressBarStyle.Marquee" and the progress bar sits there blank, not scrolling and looking rather sorry for itself, one reason for this is that …
-
"Can't sign in to Skype for Business" - you've got Two Factor Auth setup!
This is as much a reminder to myself as anything else, but,.. If you're using Office 365 and have two factor authentication setup against your account, you'll need to use an "app password" for Skype …
-
[Non-Tech] Descaling for 1/3 of the price
Totally non-techy post ahead:
Most supermarket/shop descaling powders (the little sachets) work out at about £15/kg, given that all they contain (for the vast majority of them!) is citric acid, it …
-
The result of a query expression is a query, not the result of the query
This bit me recently. To quote Eric Lippert (last paragraph):
Remember that with LINQ the result of a query expression is a query that can deliver the results when asked, not the results of the …
-
Outlook 2010 Beta - Still not implemented
Previously in the saga: Outlook 2010 Beta - "Not Implemented" on Send/Receive.
It would appear that problems with Outlook complaining that something is "Not Implemented" are more …