September 24, 2013

Entity Framework T4 view generator and .NET 4.5

I have been happily using Sanjay Nagamangalam's T4 template to pre-generate Entity Framework views, which substantially speeds up application startup. Unfortunately after upgrading the project to .NET 4.5, the T4 view generator failed with the following error:

Running transformation: System.ArgumentException: Argument 'xmlReaders' is not valid.  The set contains a null value.
   at System.Data.EntityUtil.CheckArgumentContainsNull[T](IEnumerable`1& enumerableArgument, String argumentName)
   at System.Data.Metadata.Edm.EdmItemCollection..ctor(IEnumerable`1 xmlReaders)
   at Microsoft.VisualStudio.TextTemplatingAED4E591A16DD045E483CD58B20DB126.GeneratedTextTransformation.GenerateViews(String edmxFilePath)

It turns out the original T4 template is incompatible with .NET 4.5. I've fixed it to support .NET 4.5. See below for the fixed code.

September 23, 2013

Open plan office scares away creativity, kills productivity

Damage to productivity by open plan offices is a well established fact. My point is that open plan office has profound impact on creativity as well. And it's not caused by the noise.

September 19, 2013

Is it possible to use web accelerator to make websites faster?

Web accelerators used to be an important tool a long time ago, but they are falling out of fashion today. Why? There's no doubt the web today could use a boost in performance. I grind my teeth every time I wait for some blog post to display. Could accelerators help here?

September 17, 2013

Faster Adobe PDF Reader alternatives

Adobe's PDF Reader is the gold standard, but my netbook is too slow to handle it. I need something faster. What's holding me back is all the security problems with alternative PDF readers.