Tuesday, 22 October 2013

Sometimes I found that it is pretty annoy to keep editing the hosts file to add a new development domain on my local machine and a colleague told me that there are several domains (and their sub-domains) that automatically loop back to 127.0.0.1 (localhost), for example, 42foo.com, localtest.me, lvh.me, etc.

I personally like localtest.me as it seems more logical to me. So now when I am developing a new site, I could use something like newsite.dev.localtest.me directly without adding an entry in hosts file.

Wednesday, 16 October 2013

The Sitecore.Data.ID class exposes a IsNull property which the documentation says it checks whether the instance is null. However I discovered that when the ID variable is actually null it throws Object reference set to null instance of object exception.

Sunday, 13 October 2013

Linq.js (you can find more info on CodePlex - http://linqjs.codeplex.com) provides convenient way manipulating your javascript collections (mainly arrays) and exposes it as LINQ that we are familiar with in .NET world.

One issue I found that it is hard to find information on how to achieve it is that when I want to apply the where clause on sub collections.