Scott Hanselman

Interesting...Man Sets Himself on FIRE near the White House...and no one covers the story?

November 15, '04 Comments [10] Posted in Musings
Sponsored By

Patrick saw this on CNN for literally 5 seconds, but I figured this would be a lead story today.  A fellow tries to set himself on fire near the White House, and noone covers the story? It's not on CNN.com or ABCNEWS.com...it's buried on the Reuter's Wire.

UPDATE: It's trickling in now via Google News.

Color me reactionary, but when someone tries to self-immolate (thanks Patrick) I figure they're pretty upset about something.

I wonder what it could be?

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Lutz Roeder's Documentor updated as a CodeRush Plugin/Visual Studio.NET Add-In

November 15, '04 Comments [0] Posted in XML | CodeRush | Tools
Sponsored By

Recently Lutz Roeder took Documentor off his list of .NET Tools, and I was bummed.  Mark Miller and I have been talking about doing a documentation plugin for CodeRush.  I was working on one that did MSDN style help, and Mark did one that was more stylized and painted directly over the XML Comments.

However, Travis Illig (who works with me) in his wisdom, emailed Lutz and got the source to the now defunct Documentor. He then updated Documentor and implemented it as a drop-in CodeRush PlugIn!

He adds a new VS.NET ToolWindow that will render the XML comment that your cursor is currently on as MSDN-Style Help. As you type, about a second later (when CodeRush parses next), the ToolWindow is updated.

This is nice if you're using NDoc to generate your MSDN-style CHM Help files and you want to use some of the more advanced (and useful) C# XML Comment tags, but are not sure how it's going to turn out.

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Scott's List of Ultimate Visual Studio.NET AddIns

November 12, '04 Comments [18] Posted in ASP.NET | Web Services | NUnit | XML | CodeRush | Bugs | Tools
Sponsored By

In the vein of my Ultimate Tools List, here's my list of Ultimate Visual Studio.NET Add-Ins.  This list is by no means exhaustive, but I loves me some Add-Ins, so here's the ones that make my life better.

  • CodeRush - Of course. It's the bomb, enough said.
  • Peter Blum's ADME - ASP.NET Design Mode Extender (“ADME”) helps custom controls to provide a better design mode interface. This supports his Validation Controls, which rock, but also controls that you might write that need richer Design Mode Support.
  • CodeSmith Explorer - Generate CodeSmith code and templates directly from VS.NET
  • CopySourceAsHtml - Better than a Macro, this Add-In puts syntax-highlighed HTML on your clipboard. Now it supports "Embedded Styles" for use in BlogJet and other tools.
  • GhostDoc - Here's an Add-In I'd overlooked previously, now in it's 1.2 version.  GhostDoc attempts to generate C# documentation that can be gleaned from the name and type of methods and properties. Roland Weigelt has big plans for version 1.30 that will include customizable text and rules. One to watch, and while it sometimes guesses wrong, it's a completely unique Add-In worth your download.
  • devMetrics - devMetrics is a free tool for measuring various attributes of your C# code so that you can accurately assess your product for quality and maintainability. I use it to measure cyclomatic complexity and abuse people during code reviews.
  • QuickCode.NET - This has been largely supplanted by CodeRush, but if you don't want to pay as much, this cool tool gives you phrase expansion and a surprising number of code expansions available on their user forum.
  • Mindreef SOAPscope - The original. The glory forever, this is more than an Add-In, it's a complete XML Web Services design studio. It's a bargain and works even better when setup in a workgroup. It keeps a database of all Web Services traffic, but it's more than a sniffer. It also analyzes data for WS-I compliance and allows for record and replay of messages. "It's Tivo for Web Services!"
  • NUnit Addin, now TestDriven.NET - If you're serious about TDD, stop fooling with NUnitGui and Attach Process and start using TestDriven.NET. It's a simple as Right-Click -> Test With -> Debugger.
  • pinvoke.net - Adam Nathan continues to innovate with an add-in that lets you "Insert PInvoke Signature" from the VS.NET Editor by communiating with a server-side repository with best-practice signatures to make calling unmanaged code a breeze. Also, be sure to visit the PInvoke.NET Wiki.
  • Reflector as an AddIn - A joint effort, run Lutz's unbelievable decompiler/explorer with Jamie's Add-In support. (There's a number of other slick, but alpha-quality addins at that link as well, including FxCop as an AddIn.)
  • Regions AddIn - Finally, something useful from CodeProject, this add-in helps organize your code with a simple Right-Click -> Add To New Region and Right-Click -> Add To Existing Region. You'll wonder how you lived without it!
  • Unleash it! - The great ASP.NET deployment tool with the unfortunate name. Formerly known as WebDeploy, this Add-In lets you deploy your ASP.NET application using whatever it takes. Now with plugin support!
  • WS Contract-First - Christian Weyer leads the pack with custom Web Service code generation, and coming soon, generation of WSDL itself from Message-based XSD. How's that for SOA and contract-first development?
  • VSCmdShell - Open a Command Prompt within a Visual Studio.NET 2003 Docked Toolbox Window!
  • CommentReflower - Really detail-oriented? This tool reformats your code comments to your specifications.
  • OnlineSearch - Search the Internet and Google directly from VS.NET!

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

A potential CAPTCHA Comment Spam Solution for dasBlog (and others) with no recompile or code changes

November 11, '04 Comments [10] Posted in ASP.NET | DasBlog
Sponsored By

I took Jeff Atwood's CAPTCHA example and added a new event called "UserValidationEvent"

Public Event UserValidationEvent As EventHandler

Then I raise the event at the VERY end of ValidateCaptcha I raise it:

RaiseEvent UserValidationEvent(Me, New EventArgs)

I made it a separate event because I want the CaptchaControl to integrate with my blogging software WITHOUT any code on the server side.  I didn't want to have to recompile dasBlog or check anything in the Page_Load.

I made the appropriate web.config changes as per Jeff's instructions, and I added the control to the CommentViewBox.ascx and put this code at the top:

<%@ Register TagPrefix="cc1" Namespace="WebControlCaptcha" Assembly="WebControlCaptcha" %>
<script Language="C#" Runat="Server">
  protected void Foo(object sender, System.EventArgs e)
  {
  if (Page.IsPostBack == true && CaptchaControl1.UserValidated == false)
   {
    Response.Redirect(Request.RawUrl);
   }
  }

  protected void Page_Load(object sender, System.EventArgs e)
  {
   //Ya, ya, I know I could have hooked this event up a number of ways
   // including AutoEventWireUp but I like this fine, and it feels
   // more explicit to moi.
   CaptchaControl1.UserValidationEvent += new EventHandler(Foo);
  }  
</script>

There are a few Font issues to work out...he has it setup with a number of "no-no" fonts, while I'd prefer a list of "allowed" fonts. 

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

CommentSpam: It has begun, next steps?

November 10, '04 Comments [12] Posted in DasBlog
Sponsored By

Some one has started comment spamming me. What's the comment spam solution for dasBlog (other than turning them off?)

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.