Posts

Exclude files with a certain extension from list

string invalidExtension = (from p in new List<string>  { ".dll", ".pdb", ".suo", ".docstates", ".ico", ".bmp", ".vs10x", ".vspscc", ".vssscc", ".vsp", ".scc", ".user", ".ctl", ".datasource", ".vsmdi", ".testsettings", ".trx", ".dat" }                             where p == files[i].Extension.ToLower()                            select p).FirstOrDefault(); if (string.IsNullOrEmpty(invalidExtension)) { //Means it has an invalid extension }

The new awesome search engine

Nowadays, I am finding myself using Wolfram Alpha more and more especially in my work day because it can do some really intelligent things like finding the exact number of days between two days or the number of seconds between 2 times. http://www.wolframalpha.com/ This can be really useful!

Pondering over the weird behaviour of w3wp.exe

When my laptop only had 4GB RAM, the process was consuming upto 512MB RAM and also being very slow. Now, when RAM is 8GB, it is fast, but consumes around 155MB RAM. Interesting... Win 2008 r2 x64

When Vista asks you to install search on your 2008 r2 box

Use this link: http://www.nitrix-reloaded.com/2011/03/02/windows-search-4-0-on-windows-server-2008-r2/

Executing a remote process via command line

http://technet.microsoft.com/en-us/sysinternals/bb897553 Such things are useful during the daily life of a developer.

Viewing the debug.writeline output for a windows service

Use this utility:  http://technet.microsoft.com/en-us/sysinternals/bb896647

Best way of finding mac address of local machine

http://www.websofia.com/2011/03/get-local-machines-mac-address-in-c/ I have used a similar technique to iterate through all the network info for the local machine.