Splitting unit of work and repository functionality

For years we (a lot of people I know and myself included) have been using the Unit of Work and Repository pattern combined with each other. This makes quite a lot of sense as, in most cases, they both have something to do with your database calls. When searching for both of these patterns you’ll often be directed to a popular article on the Microsoft documentation site. The sample code over there has a very detailed implementation on how you can implement both of these patterns for accessing and working with your database. Read more →

Using the decorator pattern with Autofac

On a recent project I had to implement the decorator pattern to add some functionality to the existing code flow. Not a big problem of course. However, on this project we were using Autofac for our dependency injection framework so I had to check how to implement this pattern using the framework built-in capabilities. One of the reasons I always resort to Autofac is the awesome and comprehensive documentation. It’s very complete and most of the time easy to understand. Read more →

Reinstall Modern apps via PowerShell

As of late, there are a couple of Store apps which just won’t install on any of my Windows 10 machines (One Commander and Open Live Writer in case you are interested). The message shown is: The error code is 0x80073CF9, in case you need it. If you do a search on the error number you’ll find numerous posts and articles explaining on how this error might be solved. As it happens, the error also occurs on Windows Phone/Mobile systems. Read more →

Custom deployment steps for an Azure App Service

I’ve just started setting up some continuous deployment for my personal websites. All of the sites are hosted within Azure App Services and the sources are located on either GitHub or BitBucket. By having the source code located on a public accessible repository (be it private or public), it’s rather easy to connect Azure to these locations. On my day-job I come across a lot of web- and desktop applications which also need continuous integration and deployment steps in order for them to go live. Read more →

Deleting NPM folders when path is too long

When doing modern web development you will probably have to start using NPM sooner, rather than later. Not a big deal of course, since it’s a great addition to the frontend development environment. However, most NPM packages have quite a bit of dependencies to other packages. All of these dependencies get pulled towards your system also. Still not a big problem as you want a working solution. The problem arises when you are on a Windows environment, there are a lot of dependencies and you want to delete a project folder on your system. Read more →

Mounting a VMWare disk in Windows

As of late I’ve started using the VMWare products for virtualizing my development environments again as a replacement for Hyper-V. Today I wanted to access some files of my virtual machine on the host in order to write a blog post on some code I had saved in there. The VMWare disk files are stored as a VMDK file and it’s not possible to mount these type of files in Windows like a VHD file. Read more →

Selecting multiple wallpapers for your multiple monitors in Windows 10

With Windows 10 we’ve gotten a lot of nice little features which help us modifying the theme. There is however 1 option which the team hasn’t implemented (yet). The option to select different wallpapers for all of your connected displays. I’m working with a triple monitor setup at home and at work most of the time with a dual or also a triple setup. Of course I don’t really need different wallpapers on all of my monitors, but it’s a nice feature. Read more →

IPv4 properties of VPN connection does not work

While I was setting up a VPN connection to my Azure Virtual Network I wanted to uncheck the option to use the Default Gateway of the connected network. Normally you’d do this by clicking on the Properties button of the selected protocol. However, there appears to be a bug in Windows 10 and VPN connections for this button which causes the Properties window not to appear. I have solved this with the help of Todorovic Dragan’s post about this matter. Read more →

Setting up a VPN connection to an Azure Virtual Network

One of the reasons for me to create an Azure virtual network is being able to connect to my development machines in the Cloud from anywhere, without exposing them to the public. In order to do so, all machines have to be added to the virtual network. You also have to select the option to set up a point-to-site VPN connection to the virtual network. Setting up a point-to-site VPN connection to an Azure virtual network is documented quite well on the Azure documentation pages. Read more →

Creating an Azure Virtual Network

Nowadays it’s possible to create virtual networks within your Azure subscription. This can be very useful for managing your Azure resources within a specific network or setting up a point-to-site or site-to-site connection to expand your current on-premise network. To me creating a virtual network sounds like a great way to manage my virtual machines and services for development purposes which I’m running within Azure. It will also let me connect to them without exposing stuff to the public internet. Read more →