TypeScript and my three balls

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

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…

Custom SharePoint RTE CSS caveat

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 have done…

Patch Tuesday tip (especially useful for VM users)

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

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…