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.

Friday, June 25, 2010

IIS7 and asp.net on windows 7

a quick reminder for anyone trying to setup an asp.net website in IIS7 on windows.
of course, a lot of windows features are locked down (i.e. turned off) so something like IIS7 has to specifically enabled. not only does IIS need to be enabled, but so does the ASP.net component:



more details can be found here:
http://digitizor.com/2009/02/20/how-to-install-microsoft-iis-server-on-windows-7/