You can depend on NDepend (v3)


I have just downloaded my update to NDepend, and also really I think you should too. Why? Well, how do you fancy having the wealth of information that NDepend provides INTEGRATED within your Visual Studio environment? Yeah! Wow.

I have to admit that having to pop out to an external application was beginning to grind a little – especially when I have all my other tools integrated within my VS environment so I was was pretty much blown away by what I saw during the overview tour (http://www.ndepend.com/Features.aspx).

NDepend is a Visual Studio tool that makes it easy to manage complex .NET code base.
With NDepend, hundreds of standard and custom rules are continuously checked in Visual Studio with no performance cost. Hence, the design remains clean, large refactoring are seamless, code reviews are effective and evolution is mastered.
Benefits are better communication, improved quality and faster development.

Download your own copy of NDepend here (Trial Edition) http://www.ndepend.com/NDependDownload.aspx

author: David Christiansen | posted @ Tuesday, February 23, 2010 7:36 PM | Feedback (0)

Wildcard Certificate Mapping Multiple Web Servers using Single IP address


Prerequisites

  • MakeCert.exe (Which should be part of a visual studio install or downloadable here)
  • winhttpcertcfg.exe (downloadable here)
  • APPCMD (Part of Vista / Server 2008 / Windows 7)
  • 'Certificates' snap-in for Personal and Local Computer using MMC

Method

Execute the following command from a command prompt

makecert -r -pe -n CN=*.domain.com -ss my -sr currentuser -sky exchange -sp "Microsoft RSA SChannel Cryptographic Provider" -sy 12 wildcard.domain.cer

then

  • From the RUN command or start menu, type MMC
  • File > Add or Remove Snap-ins - Select Certificates, Click Add, Select My user account, Click Finish
  • Repeat previous step and select My Computer (then selecting Local Computer)
  • Click OK
  • Expand Certificates - Current User > Personal > Certificates
  • Right click *.domain.com and All Tasks > Export. The PFX file contains both the public and private key for this cert, hence why your asked for a password.
  • Copy or Move the Certificate from Current User > Personal > Certificates to Local Computer > Trusted Root Certification Authorities > Certificates
  • Import the PFX into Local Computer > Personal > Certificates (this will be the certificate used by your web services.

Now let's create your web servers

Remove existing demo app pools and sites

%windir%\system32\inetsrv\Appcmd delete site "Demo 1"
%windir%\system32\inetsrv\Appcmd delete site "Demo 2"
%windir%\system32\inetsrv\Appcmd delete AppPool "Demo 1 App Pool"
%windir%\system32\inetsrv\Appcmd delete AppPool "Demo 2 Portal App Pool"

Establish SSL Environment

Tell windows that Network Service is allowed access to your wildcard cert. and tell it to bind the cert to port 443 on your IP address

PathToWinHTTPCertCfg\winhttpcertcfg -g -i "wildcard.domain.com.pfx" -c LOCAL_MACHINE\My -a “Network Service” -p MySecretPassword
 

Then execute the following

netsh http add sslcert ipport=<YOURLOCALIPADDRESS>:443 certhash=<CERTIFICATE THUMBPRINT> appid=<A GUID IN THE FORM OF {ab3c58f7-8316-42e3-bc6e-771d4ce4b201}>

Create App Pools and Sites

This is the code to create app pools and sites

%windir%\system32\inetsrv\Appcmd add site -id:100 -name:"Demo 1" -bindings:http/*:80:YOURLOCALIPADDRESS -physicalPath:<PathToDemo1Source> -logfile.directory:<PathToPutLogFilesIn> -traceFailedRequestsLogging.directory:<PathToPutTraceFiles>
 
%windir%\system32\inetsrv\Appcmd set app "Demo 1/" -applicationPool:"Demo 1 App Pool"
%windir%\system32\inetsrv\Appcmd set site /site.name:"Demo 1" /+bindings.[protocol='https',bindingInformation='*:443:demo1.domain.com']
%windir%\system32\inetsrv\Appcmd add site -id:200 -name:"Demo 2" -bindings:http/*:80:YOURLOCALIPADDRESS -physicalPath:<PathToDemo2Source> -logfile.directory:<PathToPutLogFilesIn> -traceFailedRequestsLogging.directory:<PathToPutTraceFiles>
%windir%\system32\inetsrv\Appcmd set app "Demo 2/" -applicationPool:"Demo 2 App Pool"
%windir%\system32\inetsrv\Appcmd set site /site.name:"Demo 2" /+bindings.[protocol='https',bindingInformation='*:443:demo2.domain.com']

 

...and that should be you ;) Enjoy!

    author: David Christiansen | posted @ Monday, June 01, 2009 12:13 PM | Feedback (0)

    The OpenID levees break: Everyone’s OpenID accepted on Facebook


    Facebook will momentarily add yet another feather to their bow by becoming the biggest example of a social network accepting OpenID from other companies.

    It is maybe now, more than ever we should expect websites to care more about verifying the age and identity of their customers – now that one of the largest in the market has widely accepted a technology that makes asserting verified claims SO easy.

    author: David Christiansen | posted @ Monday, May 18, 2009 10:14 PM | Feedback (0)

    Lions and Tigers – End of Safari evaluation


    So today see’s the end of my week long attempt to use an online bookstore search in replacement of my habitual use of Gooooogle.

    All in all it was a relative success. We were certainly able to find the topics we were looking for – but as expected, Safari was able to best answer questions on ‘best practise’ and ‘how should be approach x’. Where Google steps forward was exposing the real world experiences actually implementing those practises, thanks to the world of Blogging and Forums.

    Has to be said I found the interface to be simple. I don’t think I would ever be able to sit and read a whole chapter let alone a book. I wasn’t able to achieve the ‘flow’ otherwise experienced by reading a book or web page. Having to set the page Zoom each time became rather irritating after a while but I was able to find the information I required – answer the question – and move on.

    I would LOVE to be able to flip pages using my cursors, rather than my mouse. I would love to see all the pages of a book laid out on a ‘whitebox’ table in some kind of deep-zoom visualisation so I can see all the headings, sub heading, illustrations, to mimic what you would do by the ‘flicking’ through a book.

    So, will a Safari subscription kill my GoogleAmazon addiction. No, not yet. Besides, I can’t take Safari to the ‘john’.

    This curiosity was satisfied thanks to my friends at GeekWithBlogs.net and Safari Books Online. Thanks very much guys!

    Update:

    *****

    For a limited time, Safari Books Online is offering GeekswithBlogs readers a 15 day free trial, plus a 15% discount on a monthly subscription for a full year. Learn more and start your free trial at:http://www.safaribooksonline.com/geeks/mobile/?cid=200904-my-geeks-blog

    *****

    author: David Christiansen | posted @ Monday, May 11, 2009 10:37 AM | Feedback (0)

    OpenSocial – Being forward, to move the social web forward …


    Capture[1]Signing up to OpenSocialthis afternoon I found that their registration page shows a woman being a bit more sociable than I was expecting. Not sure how this constitutes toward ‘Moving the social web forward’ – but she certainly is.

    author: David Christiansen | posted @ Tuesday, May 05, 2009 12:52 PM | Feedback (0)