How Enumerable.Concat brought down a production server

Posted on Wed 26 November 2014 in Coding • Tagged with .net, linq, iis

TL;DR Using Enumerable.Concat to build a long sequence one item at a time is a particularly bad idea, since enumerating the items will consume a lot of stack space.

A while ago, a customer reported that our .NET application running in IIS started crashing on user registration after …


Continue reading

The mysteriously escaped request path in ASP.NET

Posted on Tue 19 November 2013 in Coding • Tagged with asp.net, nancy, uri

This blog post answers the question “Why does Uri.AbsolutePath sometimes return an escaped path and sometimes an unescaped path for the request URL in an ASP.NET application?”

I spent some time googling for a possible reason, but search terms like URL/URI, request, path, encoding, and escaping are …


Continue reading

How git changed my commit behavior

Posted on Fri 11 October 2013 in Opinion • Tagged with git, vcs, commit

Git is my version control system of choice nowadays. Its feature set fits extremely well with my usual software development workflow, and there are so many aspects of git that I could write about, but this particular blog post is about commit behavior.

There is nothing religious about this post …


Continue reading

Why I hate implicit return in CoffeeScript

Posted on Fri 26 October 2012 in Coding • Tagged with coffeescript, javascript

CoffeeScript is “a little language that compiles into JavaScript.” If you haven’t seen or tried it, go check it out! I’ve been using it in a project for a while now, and its obvious advantage over pure JavaScript is that it is very concise and has high expressive …


Continue reading

Tricked by the IDE, broke the build

Posted on Tue 18 September 2012 in Coding • Tagged with fail, vb.net, csharp, vs2010

Over the last year, I’ve written a fair amount of Visual Basic .NET code for a customer project. As a result, I know a lot more VB.NET than I would like to, and I’ve run into a number of peculiar behaviors, such as this one. In this …


Continue reading

Suck it up and be a noob

Posted on Mon 17 September 2012 in Opinion • Tagged with angularjs, pain

This is a whine post, but I really need to get it out of my system. Apologies in advance!

I’ve battled with Angular for a while now. It’s a JavaScript framework that allows you to write rich client-side applications in very short time with goodies such as two-way …


Continue reading

One assertion per test, please

Posted on Wed 25 July 2012 in Coding • Tagged with assertion, qunit, testrules, javascript

When it comes to unit or integration tests, there are of course good ones and bad ones. There are few things more treacherous than a test suite filled with low-quality tests that don’t test what they’re supposed to, if anything at all. When the test suite goes green …


Continue reading

A Chrome extension for easy ID linking

Posted on Sat 21 July 2012 in Tools • Tagged with chrome, extension, linktoid

Occasionally I want to link to specific section of a web page. Previously, I would bring up the source of the web page to see if there was a named anchor tag for the section in question, then I would manually add the anchor name as the URL fragment. Recently …


Continue reading

Changing the user profile path in Windows 7

Posted on Thu 12 July 2012 in Sysadmin • Tagged with profile, windows7

Nothing programmatic about this post, unfortunately. Instead, a bit of rambling about Windows. :-) One of the reasons I don’t use Linux on my desktop computer is that it requires too much constant tweaking, configuring and fixing to get things to work together properly. I tried it twice, and I …


Continue reading

Offline repository sync using git bundle

Posted on Mon 11 June 2012 in Tools • Tagged with bundle, git

Keeping git repositories in sync is usually and easily done using git pull and git push. However, for those rare times when you don’t have network connectivity (or limited connectivity) and still need to transfer the contents of a repository to somewhere else, there’s git bundle.

The bundle …


Continue reading