Category Archives: Uncategorized

IIS redirect HTTP to HTTPS but allow Let’s Encrypt

Let’s Encrypt makes it easy for everyone to use HTTPS. The Windows client letsencrypt-win-simple simplifies installing and updating certificate in IIS. Using IIS URL Rewrite function you can allow Let’s Encrypt certificate retrieval/renewal and redirect all visitors to HTTPS URL of site. <?xml version=”1.0″ encoding=”UTF-8″?> <configuration> <system.webServer> <rewrite> <rules> <rule name=”Allow LetsEncrypt” patternSyntax=”Wildcard” stopProcessing=”true”> <match url=”.well-known/*” />… Read More »

Template replacement engine

Using Regex as a template engine is an efficient way to replace strings in a template. Regex replace method supports executing a method upon match. We can populate a dictionary and make a lookup on all matches. This way we do the replacement in a single pass, rather than executing multiple .Replace(). Since dictionaries can be made case… Read More »

ASP.Net 5 Areas

Visual Studio 2015 with ASP.Net 5 doesn’t support Areas in the GUI editor. Hopefully that will come, but until then here is a simple workaround. Create folder structure In the root of your project (not wwwroot) create the folder structure for Areas manually. In this example I created an area named “Foobar”. Edit Startup.cs to… Read More »

Norton Antivirus Idle Scan

I always thought that when Norton Antivirus ran an “idle scan” it meant it would scan the computer when I was in front of it. But very often I find Norton scanning my disks while I’m sitting in front of my computer. So I thought I’d investigate. It seems I was idle about 8 minutes… Read More »

Leaving NimbusTech AS

I’ve left my position at NimbusTech AS. NimbusTech AS was founded by me and Imran Tamboli in 2008 as a joint venture based on a privately held company I have been running since 2003. During our time in NimbusTech we have had a high learning curve and learned a lot about business (and accounting) from a non-developers perspective. We have… Read More »