Angular's 'Unkown Provider' problem after deployment

We've all been there at some point. Your app works great on your machine, all features are ready to be pushed to dev/acc, and when you do, all hell breaks loose.

Specific to Angular apps, the following error gets thrown a lot after you minify your JavaScript:

Unknown provider: eProvider <- e

And you'll be like 'What eProvider, who put it there, where did that come from?' :). Don't worry, we've all been there at one point.

This problem will occur when the injector service is not able to retrieve an implementation that you requested in your module.

Prerender AngularJs templates with MVC HTML helpers

As a .NET Web developer, I'm always looking for better ways to get Angular and MVC.NET to play nicely together. Writing and rendering templates using the templateCache is a good example of these two world that tend to collide if not implemented correctly.

Why

Best Practice: Unless your template is very small, it's typically better to break it apart into its own HTML file and load it with the templateUrl option.

So this is not recommended:

directive('toggleButton', function () {
    return {
        replace: true,
        template: '<div style="float:left; cursor:pointer;">' +
                    /* ...Template Html ...  */ 
                  '</div>

IIS URL Authorization, Forms authentication and the 401.2 error

I recently experienced a confusing, head-ache-causing problem while deploying an MVC application to a Windows Server 2008.
The issue looked simple enough: the Web server returned a 401 (unauthorized) error when I tried to access the application, which required Forms Authentication to function properly.

Analyzing the issue

I started out with the basics. Check the anonymous and forms authentication settings, check the AppPool configuration, check if the AppPool user has all necessary rights, etc.

But all to no real avail. IIS kept redirecting me to the logon page (even when the session was authenticated!). Using fiddler it became more and

Tendencies of the Belgium software market

While working on a new software architecture for my company (the old one was getting a little bit to old :)) I found myself wondering what frameworks and architectures were already out there. And more importantly, which ones the clients that employed my colleagues used.
So, I asked a group of colleagues a series of questions about the tech they used. They are employed in both large and small companies, all of which located in Belgium. The results are documented in this blogpost.

Old habits are hard to break

First things first, old habits seem to die hard. Frameworks and technologies

What's old is new again - the resolutions of a programmer

Today, at the end of 2014, I'm looking back at the past months and reflect on the stuff I've accomplished in my professional career. I do this every year because it is a good way to set high level goals and try to achieve them.

This post was written for self-reflection mostly, but perhaps it can give you some inspiration for your technical ventures next year :).

2014 was a good year

Yes, I am pleased with my (technical) achievements this year. I had a couple of goals, and even though I did had a couple of setbacks, I am glad

Member of The Internet Defense League