Reactive Extensions (Rx) – Part 7 – Sample Events
Reactive Extensions (Rx) – Part 1 – Replacing C# EventsReactive Extensions (Rx) – Part 2 – Wrapping C# EventsReactive Extensions (Rx) – Part 3 – Naming ConventionsReactive Extensions (Rx) – Part 4 –...
View ArticleNWebSec ASP.NET MVC Security Through HTTP Headers
ASP.NET MVC BoilerplateSecuritySecuring the ASP.NET MVC Web.config (Updated)NWebSec ASP.NET MVC Security Through HTTP HeadersContent Security Policy (CSP) for ASP.NET MVCSearch Engine Optimization...
View ArticleContent Security Policy (CSP) for ASP.NET MVC
ASP.NET MVC BoilerplateSecuritySecuring the ASP.NET MVC Web.config (Updated)NWebSec ASP.NET MVC Security Through HTTP HeadersContent Security Policy (CSP) for ASP.NET MVCSearch Engine Optimization...
View ArticleC# 6.0 – Saving Developers From Themselves
What’s New in C# 6.0If you haven’t already taken a look at what’s new in C# 6.0, you should certainly read this article. This blog post is going to cover how C# 6.0 can help reduce the number of bugs...
View ArticleBuilding RSS/Atom Feeds for ASP.NET MVC
ASP.NET MVC BoilerplateSecuritySecuring the ASP.NET MVC Web.config (Updated)NWebSec ASP.NET MVC Security Through HTTP HeadersContent Security Policy (CSP) for ASP.NET MVCSearch Engine Optimization...
View ArticleCanonical URL’s for ASP.NET MVC
ASP.NET MVC BoilerplateSecuritySecuring the ASP.NET MVC Web.config (Updated)NWebSec ASP.NET MVC Security Through HTTP HeadersContent Security Policy (CSP) for ASP.NET MVCSearch Engine Optimization...
View ArticleDynamically Generating Robots.txt Using ASP.NET MVC
ASP.NET MVC BoilerplateSecuritySecuring the ASP.NET MVC Web.config (Updated)NWebSec ASP.NET MVC Security Through HTTP HeadersContent Security Policy (CSP) for ASP.NET MVCSearch Engine Optimization...
View ArticleMinifying HTML for ASP.NET MVC
Using Razor comments or blocks of code can cause extra carriage returns to appear in the generated HTML. This has been a problem in all versions if ASP.NET MVC for a while now.<p>Paragraph...
View ArticleWhats New in ASP.NET 5 MVC 6 Boilerplate
I’ve just updated the ASP.NET MVC Boilerplate Visual Studio extension with a new project template targeting ASP.NET 5 MVC 6 Beta 6. This post is just a quick one to talk about what’s new and different...
View ArticleDynamically Generating Sitemap.xml for ASP.NET MVC
What is a sitemap.xml FileThe official sitemaps.org site says it best:Sitemaps are an easy way for webmasters to inform search engines about pages on their sites that are available for crawling. In its...
View ArticleSo I’ve Been Awarded Microsoft MVP Status!
Lucian Wischik contacted me out of the blue one day to update and test one of my NuGet packages using NuGet 3.0. We had a pleasant email exchange and he suggested I nominate myself for becoming a...
View Article.NET Big-O Algorithm Complexity Cheat Sheet
CreditsAll credit goes to the creator of the Big-O Algorithm Complexity Cheat Sheet Eric Rowell and the many contributors to it. You can find the original here. I simply added .NET specific bits to it...
View ArticleLogging with Serilog.Exceptions
Picking a logging framework for your new .NET project? I’ve tried all the best known ones, including log4net, NLog and Microsoft’s Logging Application Block. All of these logging frameworks basically...
View ArticleMake Certificate
Making your own certificate files is quite hard work. You have to use makecert.exe and pvk2pfx.exe, passing in some pretty cryptic arguments which you always have to go back and research.Learning how...
View ArticleColorful.Console
I needed to write a console application a while back and was investigating the best way to do this using the available NuGet packages. I’d seen the DNVM command line tool that Microsoft built for...
View ArticleSubresource Integrity TagHelper Using ASP.NET Core
What is Subresource Integrity (SRI)Can you trust your CDN provider? What if they get hacked and the copy of jQuery you are using hosted by them has some malicious script added to it? You would have no...
View ArticleSubresource Integrity TagHelper Using ASP.NET Core – Part 2
Subresource Integrity TagHelper Using ASP.NET Core – Part 1Subresource Integrity TagHelper Using ASP.NET Core – Part 2Last week I wrote part one of a blog post discussing a Subresource Integrity (SRI)...
View ArticleWriting your Webpack configuration in TypeScript
Webpack Configuration is a Mess Before you get the wrong idea, let me say that Webpack is a super powerful, it’s what you probably should be using these days to deal with static assets and I like its...
View ArticleWriting Code while Asleep
This is a quick post about something I tend to do quite often that has really helped me be more productive and I think has helped the wider developer community in some small way too. It’s something...
View ArticleThe Dotnet Watch Tool Revisited
I talked about using the dotnet watch tool with Visual Studio some time ago. Since then, a lot changed with the Visual Studio tooling and .NET Core 2.0 which broke the use of dotnet watch in Visual...
View Article