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 [...]
To turn on visual indicators of whitespace in Visual Studio, use the keyboard chord (Ctrl-R, Ctrl-W) (setting found in Tools > Environment > Options): Instead of nothing: You can now see: By default, when I set the insertion point on line 12 and hit Enter, Visual Studio inserted spaces instead of tabs: To turn this [...]
Casey Charlton wrote a good post about logging with Castle Windsor, the logging facility and log4net. I’ve been tinkertankering around with Ninject so I decided to see if I could get it working as nicely. Ivan Carrero wrote about a few posts about logging with Ninject, but newerish Ninject 1.0 features have enabled us to [...]
del.icio.us/mhinze posts per month select dateadd(month, datediff(month, 0, [Time]),0) , count(*) from posts group by dateadd(month, datediff(month, 0, [Time]),0) order by dateadd(month, datediff(month, 0, [Time]),0) asc domains all time select top 10 count(*) as [Count], dbo.RegexGroup([Href], N’http(|s)?://(?<domain>([\w-]+\.)*[\w-]+)’, N’domain’) as [Domain] from [posts] group by dbo.RegexGroup( [Href], N’http(|s)?://(?<domain>([\w-]+\.)*[\w-]+)’, N’domain’) order by count(*) desc 206 blogs.msdn.com138 weblogs.asp.net114 [...]
I moved the old stuff to mhinze.com/archive but I wanted to ensure that my links still worked.. for SEO and also for usability. So I got all the post slugs from the WordPress database and added them as redirects to /archive in .htaccess using sed. There’s probably a better way to do this but it [...]
A neat hack is buried in the depths of the TortoiseSVN docs: To create a shortcut to launch the repository browser in a particular repository: “C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe” /command:repobrowser /path:”url:to/your/repository” /notempfile I like to include the shortcut in the trunk.
I have suspended the daily feed of del.icio.us posts. You can still subscribe to the feed or add me to your del.icio.us network. I have over 5000 links posted there, so you might want to take a look. You can learn a lot about a person by looking at their del.icio.us account.
I got tired of looking at the old blog, so I moved it here. I’ll edit the new template.