Friday, July 30, 2010

Exploring IEnumerable

Out of the many useful methods provided in this interface are Skip() and Take().

If you ever need to obtain a subset out of your collection for any reason (eg Pageination) then use these methods in combination:


myCollection.Skip(startPosition).Take(ItemsToReturn)


http://msdn.microsoft.com/en-us/library/bb358985.aspx

http://msdn.microsoft.com/en-us/library/bb503062.aspx

Wednesday, July 28, 2010

visual studio orange theme

A dark visual studio theme is aimed at getting a bit more contrast and readability over the standard 'out-of-the-box' settings. It also has a few Blackle-esque eco benefits etc..

heres my theme based around the best colour in the world - orange.

Download Visual Studio Orange Theme


example:


Friday, July 2, 2010

here be dragons!

if you're using firefox and cassini web server in your dev environment and finding things are running a little slowly, then apply this update:

1. In the Location bar, type about:config and press Enter.
2. In the Filter field, type network.dns.disableIPv6.
3. In the list of preferences, double-click network.dns.disableIPv6 to set its value to true.