mhinze.com

Matt Hinze, learning in public

Archive for the ‘Tools’ Category

AutoMapper in NerdDinner

Speaking of NerdDinner, Scott asked me to use it to create an AutoMapper example. AutoMapper, the brainchild of Jimmy Bogard, is an object-to-object mapper.  What that means is up to you – but we’ll use it here to map from the domain model to a view model.  The view model is an object heirarchy that [...]

Obligatory Utility Roundup Post

I have set up a few new PCs lately in the course of getting set up on my new job.  Here is what I install: Windows XP SP3 – Vista too much friction Use BlackViper‘s Safe config Turn off System Restore Pop a shortcut to Start Menu in my SendTo folder for easy/lazy Launchy indexing) [...]

Self-signed SSL Certs on IIS 6 part 2

Q: How do I install self-signed SSL certificates on two IIS 6 websites on the same server where both sites use port 443 and are configured with host headers? A: Multiple SSL sites on a single IIS server using host headers.  <- the answer.  Basically, use SelfSSL or SSLDiag to create a cert with CN=*.example.com, [...]

Self-signed SSL certs on IIS 6

Q: How do I install a self-signed SSL certificate on an IIS 6 website? A: Use the SelfSSL utility that comes with the IIS Resource kit! http://codeforeternity.com/blogs/technology/archive/2008/02/15/creating-self-signed-ssl-certificates-on-iis-6-0-and-windows-server-2003.aspx   Q: How do I install self-signed SSL certificates on two IIS 6 websites on the same server? A: SelfSSL.exe is bugged.  Install SSLDiag and use its embedded [...]

Linq to NHibernate in 10 minutes

If you are curious about Linq to NHibernate and want to quickly check it out, here is an easy way to do it. Check out a copy of the CodeCampServer source (svn).  CodeCampServer is easy to work with because it has good tests on an already-working NHibernate implementation. Check out a copy of NH Contrib [...]

For months I have been suffering from long delays when I delete a file from solution explorer in Visual Studio.  Minutes… slow, dreadful minutes.   I thought it was Resharper’s fault or VisualSVN’s but nay.  It’s because I have a large recycle bin, which is fully scanned every time you delete a file.  After I emptied [...]

Dan North, in a recent article about DRY tests, says: [Tests] are the documentation narrative that will guide future programmers (including yourself when you come back to change this code in three months time and you’ve forgotten what it does). In this case, clarity of intent is found in the quality of the narrative, not [...]

Audit options with NHibernate

In this post I am talking about auditing for the business, not the technical infrastructure.  As an example story, users will want to see certain fields highlighted on a grid if that field has changed in the last week, and the info about the change (who, when, what) should be a tooltip for the cell. [...]

Tree Surgeon 2.0 released

Bil Simser just released Tree Surgeon 2.0. TreeSurgeon automates the creation of a new project development tree, complete with a VS solution, a test project, a console project and a “core” project.  It also automates the creation of a Nant build file which is set up to generate an Ncover report.    The first thing [...]

I am building a simple “single sign-on” ASP.NET application that interprets the current user’s ASP.NET integrated security credentials to a vendor site’s credentials.  One of the services I wrote required the IIdentity as a constructor parameter to begin the interpretation process.  This was straightforward with regards to TDD – I simply mocked the IIdentity and [...]