Category: .Net

A case study in micro-optimization

Last week I saw a wrap up from cedric’s coding challenge on his blog, the problem looked simple enough, “write a counter function that counts from 1 to max but only returns numbers whose digits don’t repeat”. My first stab at it consisted of a brute force solution of looking at every natural number up […]

Read More →

Make sure you know what you’re fixing

I’ve been working on this bug for the past one week, basically a call to the GDI+ APIs MeasureString and DrawString was failing with a very useful exception “A generic GDI+ error has occured” šŸ˜‰ , my initial hypotehesis was that the problem was coming because of the length of the string that we were […]

Read More →

Dynamic web service proxies need to be loaded from disk

In our application we generate web service proxies at runtime itself using something similar to this. Initially we were generating the assembly in memory by using ICodeCompiler interface and setting CompilerParameters.GenerateInMemory to true. This works fine but throws an exception when you try to invoke a web service, the message of the exception goes something […]

Read More →

NDepend 2.0 released

Patrick has released version 2.0 of his absolutely cool code analyzer NDepend .The VisualNDepend tool is looking slick and Code Query Lanaguage looks damn interesting. Also be sure to take a look at the metrics that are generated by NDepend, very nice. Also while you’re at the site be sure to check out his excellent […]

Read More →

Back from the dead

After a long gap (almost a year) I’ve managed to bring my site back up. The DB crashed on my ISP’s machine and I lost quite a lot of data, after one more similar situation I never got around to getting the site up. I finally bit the bullet and managed to get the site […]

Read More →