TypeScript and my three balls

by Christian Nesmark

I am talking about a ping pong ball, squash ball and a golf ball. But more on that later. I hate being wrong, I really do. But what is even worse, is the feeling of being right when someone tells you otherwise. This is the story about how TypeScript came…

Micro-optimizing string comparison in .NET

by Christian Nesmark

With this blog post, I'm targeting the Most Useful Blog Post of the Year Award™. Anyway, I find this stuff interesting, and hope to enlighten others who believe that this might actually matter. TL;DR: It doesn't.   What puzzled me A while ago, I came across this piece of code…

Custom SharePoint RTE CSS caveat

by Christian Nesmark

Recently, I created a custom RTE element style for SharePoint Online. It showed up in the element style list, but did not work. Why? What I did .ms-rteElement-HelpIngress { -ms-name: "Help ingress"; font-size: 1.5em; font-weight: bold; } Well, I wrote everything in a single CSS rule. What I should…

Patch Tuesday tip (especially useful for VM users)

by Christian Nesmark

After updating the .NET framework through Windows Update, you could experience a temporary performance degradation. For users of multiple VMs, this can be a big problem. Here is a tip for speeding up the process. First, a little background. My virtual environment is rigged for several types of developement -…

Authorize and RequireHttps attributes in MVC with claims and ADFS/WIF

by Christian Nesmark

Do you struggle with this error? ID1059: Cannot authenticate (...)? We're here to help. But be warned, facepalms might occur. Update 2013-09-08 After a while, I still had errors, even with the attributes in the correct order in my code. So what was the issue? Well, for MVC, there is a…

Consistent look and feel in a SharePoint 2010 farm

by Christian Nesmark

Developers love hierarchies, inheritance and reuse. In ASP.NET it is possible to create a hierarchy of master pages through nesting, where child master pages inherit the HTML framework from its parent master page. As SharePoint is built on ASP.NET, one could assume that this feature is also available…