<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.thomasfreudenberg.com/~d/styles/itemcontent.css"?><rss xmlns:media="http://search.yahoo.com/mrss/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Thomas Freudenberg</title><link>http://thomasfreudenberg.com/blog/</link><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.thomasfreudenberg.com/ThomasFreudenberg" /><description>Confessions of a caffeine addict</description><language>en</language><lastBuildDate>Tue, 24 Apr 2007 15:09:00 PDT</lastBuildDate><generator>Community Server http://communityserver.org</generator><feedburner:info uri="thomasfreudenberg" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><geo:lat>50.8233</geo:lat><geo:long>6.1242</geo:long><item><title>Creating Dynamic Windows 7 Taskbar Overlay Icons, the MVVM Way</title><link>http://feeds.thomasfreudenberg.com/~r/ThomasFreudenberg/~3/_Xv1eqBlDx8/creating-dynamic-windows-7-taskbar-overlay-icons-the-mvvm-way.aspx</link><category>WPF</category><category>MVVM</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Freudenberg</dc:creator><pubDate>Sun, 15 Aug 2010 08:35:00 PDT</pubDate><guid isPermaLink="false">http://thomasfreudenberg.com/blog/archive/2010/08/15/creating-dynamic-windows-7-taskbar-overlay-icons-the-mvvm-way.aspx</guid><description>&lt;p&gt;&lt;img style="border-right-width:0px;margin:0px 0px 0px 8px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;" class="wlDisabledImage" title="metrotwit" border="0" alt="metrotwit" align="right" src="http://thomasfreudenberg.com/blogs/blog/metrotwit_516A72C4.png" width="83" height="53" /&gt;Since Windows 7 the icon of an application can get an overlay bitmap. You can use that to indicate some state of the application, or–like &lt;a href="http://www.metrotwit.com/"&gt;MetroTwit&lt;/a&gt;–to show the number of unread items.&lt;/p&gt;  &lt;h2&gt;Overlay Icon in WPF&lt;/h2&gt;  &lt;p&gt;In WPF, the API is pretty simple:&lt;/p&gt;  &lt;pre class="brush: xml;"&gt;&amp;lt;Window.TaskbarItemInfo&amp;gt;
    &amp;lt;TaskbarItemInfo 
        Overlay=&amp;quot;{StaticResource ResourceKey=MyOverlayImage}&amp;quot; /&amp;gt;
&amp;lt;/Window.TaskbarItemInfo&amp;gt;&lt;/pre&gt;

&lt;p&gt;However, in one of my projects I have to display dynamic text in the overlay, similar to MetroTwit, but above example only shows a static resource.&lt;/p&gt;

&lt;p&gt;While searching in the internet I found Pete Brown’s article &lt;a href="http://10rem.net/blog/2010/05/29/creating-dynamic-windows-7-taskbar-overlay-icons"&gt;Creating Dynamic Windows 7 Taskbar Overlay Icons&lt;/a&gt;. He uses a WPF DataTemplate to define the content of the overlay, and in his code-behind he takes that template, renders it to a bitmap and assigns it to the TaskbarItemInfo’s Overlay property. See his article for the detailed steps.&lt;/p&gt;

&lt;p&gt;Though I think Pete’s solution pretty clever, it lacks the separation of logic and presentation. In my application I don’t want to create images in the code-behind, code-aside, whatever. It follows the &lt;a href="http://en.wikipedia.org/wiki/Model_View_ViewModel"&gt;MVVM&lt;/a&gt; pattern, so the creation of the overlay image shouldn’t be the concern of my viewmodel.&lt;/p&gt;

&lt;h2&gt;Solution&lt;/h2&gt;

&lt;p&gt;Extending TaskbarItemInfo doesn’t work because it is sealed. Therefore I took the same route as in my &lt;a href="http://thomasfreudenberg.com/blog/archive/2010/08/01/binding-webbrowser-content-in-wpf.aspx"&gt;previous post&lt;/a&gt;, attaching dependency properties:&lt;/p&gt;

&lt;pre class="brush: csharp;"&gt;public class TaskbarItemOverlay  {
    public static readonly DependencyProperty ContentProperty =
        DependencyProperty.RegisterAttached(
            &amp;quot;Content&amp;quot;, 
            typeof(object), 
            typeof(TaskbarItemOverlay), 
            new PropertyMetadata(OnPropertyChanged));

    public static readonly DependencyProperty TemplateProperty =
        DependencyProperty.RegisterAttached(
        &amp;quot;Template&amp;quot;, 
        typeof(DataTemplate), 
        typeof(TaskbarItemOverlay), 
        new PropertyMetadata(OnPropertyChanged));


    public static object GetContent(DependencyObject dependencyObject) {
        return dependencyObject.GetValue(ContentProperty);
    }

    public static void SetContent(DependencyObject dependencyObject, object content) {
        dependencyObject.SetValue(ContentProperty, content);
    }

    public static DataTemplate GetTemplate(DependencyObject dependencyObject) {
        return (DataTemplate)dependencyObject.GetValue(TemplateProperty);
    }

    public static void SetTemplate(DependencyObject dependencyObject, DataTemplate template) {
        dependencyObject.SetValue(TemplateProperty, template);
    }

    private static void OnPropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e) {
        var taskbarItemInfo = (TaskbarItemInfo) dependencyObject;
        var content = GetContent(taskbarItemInfo);
        var template = GetTemplate(taskbarItemInfo);

        if (template == null || content == null) {
            taskbarItemInfo.Overlay = null;
            return;
        }

        const int ICON_WIDTH = 16;
        const int ICON_HEIGHT = 16;

        var bmp =
            new RenderTargetBitmap(ICON_WIDTH, ICON_HEIGHT, 96, 96, PixelFormats.Default);
        var root = new ContentControl {
            ContentTemplate = template, 
            Content = content
        };
        root.Arrange(new Rect(0, 0, ICON_WIDTH, ICON_HEIGHT));
        bmp.Render(root);

        taskbarItemInfo.Overlay = bmp;
    }
}&lt;/pre&gt;

&lt;p&gt;The first lines a boilerplate code to define the attached properties. There are two of them, &lt;em&gt;Content&lt;/em&gt; and &lt;em&gt;Template&lt;/em&gt;. The former defines, well, the content we’re going to bind to our model. The latter defines the template used to render the content.&lt;/p&gt;

&lt;p&gt;The actual work is done in the method &lt;em&gt;OnPropertyChanged&lt;/em&gt;. It takes the template together with the content, renders it, and assigns the resulting bitmap to the Overlay property of the TaskbarItemInfo element.&lt;/p&gt;

&lt;h2&gt;Usage&lt;/h2&gt;

&lt;p&gt;I have created a small application to demonstrate the use of the attached properties. The XAML of the window is this:&lt;/p&gt;

&lt;pre class="brush: xml;"&gt;&amp;lt;Window 
    x:Class=&amp;quot;WpfApplication1.MainWindow&amp;quot;
    xmlns=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot;
    xmlns:x=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot;
    xmlns:src=&amp;quot;clr-namespace:WpfApplication1&amp;quot; 
    Title=&amp;quot;MainWindow&amp;quot; Height=&amp;quot;350&amp;quot; Width=&amp;quot;525&amp;quot;&amp;gt;
    &amp;lt;Window.Resources&amp;gt;
        &amp;lt;DataTemplate x:Key=&amp;quot;OverlayIcon&amp;quot;&amp;gt;
            &amp;lt;Grid Width=&amp;quot;16&amp;quot; Height=&amp;quot;16&amp;quot;&amp;gt;
                &amp;lt;Ellipse 
                    Fill=&amp;quot;Red&amp;quot; 
                    Stroke=&amp;quot;White&amp;quot; 
                    StrokeThickness=&amp;quot;.5&amp;quot; /&amp;gt;
                &amp;lt;TextBlock 
                    Text=&amp;quot;{Binding}&amp;quot; 
                    TextAlignment=&amp;quot;Center&amp;quot; 
                    Foreground=&amp;quot;White&amp;quot; 
                    FontWeight=&amp;quot;Bold&amp;quot; 
                    Height=&amp;quot;16&amp;quot; 
                    VerticalAlignment=&amp;quot;Center&amp;quot; 
                    FontSize=&amp;quot;10&amp;quot;/&amp;gt;
            &amp;lt;/Grid&amp;gt;
        &amp;lt;/DataTemplate&amp;gt;
    &amp;lt;/Window.Resources&amp;gt;
    &amp;lt;Window.TaskbarItemInfo&amp;gt;
        &amp;lt;TaskbarItemInfo 
            src:TaskbarItemOverlay.Content=&amp;quot;{Binding Count}&amp;quot; 
            src:TaskbarItemOverlay.Template=&amp;quot;{StaticResource OverlayIcon}&amp;quot; /&amp;gt;
    &amp;lt;/Window.TaskbarItemInfo&amp;gt;
    &amp;lt;Viewbox&amp;gt;
        &amp;lt;TextBlock Text=&amp;quot;{Binding Count}&amp;quot; /&amp;gt;
    &amp;lt;/Viewbox&amp;gt;
&amp;lt;/Window&amp;gt;&lt;/pre&gt;

&lt;p&gt;&lt;img style="border-right-width:0px;margin:0px 8px 0px 0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;" class="wlDisabledImage" title="TaskbarItemOverlay" border="0" alt="TaskbarItemOverlay" align="left" src="http://thomasfreudenberg.com/blogs/blog/TaskbarItemOverlay_0F838D76.png" width="219" height="244" /&gt;In the window’s resources we define the template for the overlay. Notice that the Text is bound! Later you can see the TaskbarItemInfo with the attached properties in action: Content binds to the Count property of my viewmodel, and Template references the DataTemplate defined in the resources.&lt;/p&gt;

&lt;p&gt;The code-behind is straight forward. I won’t repeat it here, but you can &lt;a href="http://github.com/thoemmi/TaskbarItemOverlay/blob/master/MainWindow.xaml.cs"&gt;see it at GitHub&lt;/a&gt;. Basically it increments the Count property of the viewmodel every seconds in a background thread. You can see the result in the image to the left.&lt;/p&gt;

&lt;p&gt;The source code is attached, but also &lt;a href="http://github.com/thoemmi/TaskbarItemOverlay"&gt;available at GitHub&lt;/a&gt;.&lt;/p&gt;&lt;img src="http://thomasfreudenberg.com/aggbug.aspx?PostID=258609" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.thomasfreudenberg.com/~ff/ThomasFreudenberg?a=_Xv1eqBlDx8:U8zxb3HLU5E:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ThomasFreudenberg?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~ff/ThomasFreudenberg?a=_Xv1eqBlDx8:U8zxb3HLU5E:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ThomasFreudenberg?i=_Xv1eqBlDx8:U8zxb3HLU5E:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~ff/ThomasFreudenberg?a=_Xv1eqBlDx8:U8zxb3HLU5E:M5qWlks22Lk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ThomasFreudenberg?d=M5qWlks22Lk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~ff/ThomasFreudenberg?a=_Xv1eqBlDx8:U8zxb3HLU5E:2mJPEYqXBVI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ThomasFreudenberg?d=2mJPEYqXBVI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~ff/ThomasFreudenberg?a=_Xv1eqBlDx8:U8zxb3HLU5E:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ThomasFreudenberg?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ThomasFreudenberg/~4/_Xv1eqBlDx8" height="1" width="1"/&gt;</description><enclosure url="http://thomasfreudenberg.com/blog/attachment/258609.ashx" length="9625" type="application/octet-stream" /><media:content url="http://thomasfreudenberg.com/blog/attachment/258609.ashx" fileSize="9625" type="application/octet-stream" /><feedburner:origLink>http://thomasfreudenberg.com/blog/archive/2010/08/15/creating-dynamic-windows-7-taskbar-overlay-icons-the-mvvm-way.aspx</feedburner:origLink></item><item><title>Binding WebBrowser content in WPF</title><link>http://feeds.thomasfreudenberg.com/~r/ThomasFreudenberg/~3/ZyLCZOEX_-4/binding-webbrowser-content-in-wpf.aspx</link><category>WPF</category><category>MVVM</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Freudenberg</dc:creator><pubDate>Sun, 01 Aug 2010 05:23:00 PDT</pubDate><guid isPermaLink="false">http://thomasfreudenberg.com/blog/archive/2010/08/01/binding-webbrowser-content-in-wpf.aspx</guid><description>&lt;p&gt;When you’re using a &lt;a title="WebBrowser control" href="http://msdn.microsoft.com/en-us/library/system.windows.controls.webbrowser.aspx"&gt;WebBrowser control&lt;/a&gt; in your WPF application, you may have noticed that you can’t bind the control’s content. WebBrowser has no property to set its content but a method named &lt;a title="WebBrowser.NavigateToString" href="http://msdn.microsoft.com/en-us/library/system.windows.controls.webbrowser.navigatetostring.aspx"&gt;NavigateToString&lt;/a&gt;. So when you’re following a strict MVVM approach you’re lost because you don’t want any code-behind for your views.&lt;/p&gt;  &lt;p&gt;But then there are &lt;a href="http://msdn.microsoft.com/en-us/library/ms749011.aspx"&gt;attached properties&lt;/a&gt;. As their name implies they allow you to attach new properties to existing dependency objects. In your XAML code you apply such a attached property to your element and can access it as any other property of the object.&lt;/p&gt;  &lt;p&gt;Ok, first here’s the code of an attached property to set a WebBrowser’s content:&lt;/p&gt;  &lt;pre class="brush: csharp;"&gt;public class WebBrowserHelper {
    public static readonly DependencyProperty BodyProperty =
        DependencyProperty.RegisterAttached(&amp;quot;Body&amp;quot;, typeof (string), typeof(WebBrowserHelper), new PropertyMetadata(OnBodyChanged));

    public static string GetBody(DependencyObject dependencyObject) {
        return (string) dependencyObject.GetValue(BodyProperty);
    }

    public static void SetBody(DependencyObject dependencyObject, string body) {
        dependencyObject.SetValue(BodyProperty, body);
    }

    private static void OnBodyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) {
        var webBrowser = (WebBrowser) d;
        webBrowser.NavigateToString((string)e.NewValue);
    }
}&lt;/pre&gt;

&lt;p&gt;The static &lt;em&gt;BodyProperty&lt;/em&gt; defines the type of the attached property: its name is &lt;em&gt;Body&lt;/em&gt;, the type is &lt;em&gt;string&lt;/em&gt;, and whenever it is changed the method &lt;em&gt;OnBodyChanged&lt;/em&gt; should be called.&lt;/p&gt;

&lt;p&gt;The accessors for a attached property must be conventionally named &lt;em&gt;SetXxx&lt;/em&gt; and &lt;em&gt;GetXxx&lt;/em&gt;. They are called whenever you set or get the property’s value.&lt;/p&gt;

&lt;p&gt;Last but not least OnBodyChanged is called when the value of the property has changed. The first parameter is the object the property is attached to, so we can cast it to WebBrowser and call its NavigateToString method.&lt;/p&gt;

&lt;p&gt;The actual usage of the new Body property is pretty simple:&lt;/p&gt;

&lt;pre class="brush: xml;"&gt;&amp;lt;WebBrowser
    src:WebBrowserHelper.Body=&amp;quot;{Binding MyHtml}&amp;quot;
    /&amp;gt;&lt;/pre&gt;

&lt;p&gt;given that the ViewModel has a property named &lt;em&gt;MyHtml&lt;/em&gt; providing the desired content for the control.&lt;/p&gt;

&lt;p&gt;A complete sample application is available on &lt;a title="GitHub" href="http://github.com/thoemmi/WebBrowserHelper"&gt;GitHub&lt;/a&gt;. &lt;/p&gt;&lt;img src="http://thomasfreudenberg.com/aggbug.aspx?PostID=258000" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.thomasfreudenberg.com/~ff/ThomasFreudenberg?a=ZyLCZOEX_-4:1ifvCnGjmvQ:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ThomasFreudenberg?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~ff/ThomasFreudenberg?a=ZyLCZOEX_-4:1ifvCnGjmvQ:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ThomasFreudenberg?i=ZyLCZOEX_-4:1ifvCnGjmvQ:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~ff/ThomasFreudenberg?a=ZyLCZOEX_-4:1ifvCnGjmvQ:M5qWlks22Lk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ThomasFreudenberg?d=M5qWlks22Lk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~ff/ThomasFreudenberg?a=ZyLCZOEX_-4:1ifvCnGjmvQ:2mJPEYqXBVI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ThomasFreudenberg?d=2mJPEYqXBVI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~ff/ThomasFreudenberg?a=ZyLCZOEX_-4:1ifvCnGjmvQ:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ThomasFreudenberg?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ThomasFreudenberg/~4/ZyLCZOEX_-4" height="1" width="1"/&gt;</description><feedburner:origLink>http://thomasfreudenberg.com/blog/archive/2010/08/01/binding-webbrowser-content-in-wpf.aspx</feedburner:origLink></item><item><title>Reactivating this site</title><link>http://feeds.thomasfreudenberg.com/~r/ThomasFreudenberg/~3/hlEF2fGYMF4/reactivating-this-site.aspx</link><category>Site news</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Freudenberg</dc:creator><pubDate>Sun, 25 Jul 2010 11:16:40 PDT</pubDate><guid isPermaLink="false">http://thomasfreudenberg.com/blog/archive/2010/07/25/reactivating-this-site.aspx</guid><description>&lt;p&gt;&lt;img style="border-right-width:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;" title="germany.hamburg" border="0" alt="germany.hamburg" align="right" src="http://thomasfreudenberg.com/blogs/blog/germany.hamburg_4531E44E.png" width="203" height="240" /&gt;Yes, this blog is still alive, though the last post is about two and a half years old.&lt;/p&gt;  &lt;p&gt;It has happened a lot since then, but it can be condensed in two points: a) I moved again, this time to &lt;a href="http://en.wikipedia.org/wiki/Bernau_am_Chiemsee"&gt;Bernau am Chiemsee&lt;/a&gt; at the “other end” of Germany, and b) I got married. And the latter caused the former :-)&lt;/p&gt;  &lt;p&gt;Anyway, after 30 month of silence I think I should reactivate this blog. In the past I hesitated because most of the time I thought my topics are too trivial to write about. But that’s because whenever I had a particular programming error, I thought about it and tried to solve it. But at the point of the solution I’m already so familiar with the problem that I think it’s not interesting enough anymore to blog about it. &lt;/p&gt;  &lt;p&gt;But on the other hand, other might have had the same problem, so why not help them and publish a possible solution? At least Google will find it.&lt;/p&gt;  &lt;p&gt;Additionally blogging will help me to sharpen my rusty English skills ;)&lt;/p&gt;  &lt;p&gt;Anyway, in my profession and in my spare time I deal with WPF, IoC containers, ASP.NET MVC, NoSQL databases (RavenDB in particular) among others, so you know what to expect in the future.&lt;/p&gt;&lt;img src="http://thomasfreudenberg.com/aggbug.aspx?PostID=257646" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.thomasfreudenberg.com/~ff/ThomasFreudenberg?a=hlEF2fGYMF4:qRPHR1Cl5d8:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ThomasFreudenberg?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~ff/ThomasFreudenberg?a=hlEF2fGYMF4:qRPHR1Cl5d8:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ThomasFreudenberg?i=hlEF2fGYMF4:qRPHR1Cl5d8:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~ff/ThomasFreudenberg?a=hlEF2fGYMF4:qRPHR1Cl5d8:M5qWlks22Lk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ThomasFreudenberg?d=M5qWlks22Lk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~ff/ThomasFreudenberg?a=hlEF2fGYMF4:qRPHR1Cl5d8:2mJPEYqXBVI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ThomasFreudenberg?d=2mJPEYqXBVI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~ff/ThomasFreudenberg?a=hlEF2fGYMF4:qRPHR1Cl5d8:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ThomasFreudenberg?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ThomasFreudenberg/~4/hlEF2fGYMF4" height="1" width="1"/&gt;</description><feedburner:origLink>http://thomasfreudenberg.com/blog/archive/2010/07/25/reactivating-this-site.aspx</feedburner:origLink></item><item><title>Sharing Extension for Graffiti</title><link>http://feeds.thomasfreudenberg.com/~r/ThomasFreudenberg/~3/yYstItcjVH4/sharing-extension-for-graffiti.aspx</link><category>Graffiti</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Freudenberg</dc:creator><pubDate>Mon, 04 Feb 2008 08:52:00 PST</pubDate><guid isPermaLink="false">http://thomasfreudenberg.com/blog/archive/2008/02/04/sharing-extension-for-graffiti.aspx</guid><description>&lt;p&gt;Two weeks ago &lt;a href="http://telligent.com/"&gt;Telligent&lt;/a&gt; published the second beta of their upcoming new product &lt;a href="http://graffiticms.com/"&gt;Graffiti&lt;/a&gt;. It is a simple lightweight content management system. And by simple I don&amp;#39;t mean lame. Far from it! It is simple in the sense of easy deployment, management, and publishing.&lt;/p&gt;&lt;p&gt;Additionally it&amp;#39;s easy to extend. &lt;a href="http://nayyeri.net/" rel="friend"&gt;Keyvan&lt;/a&gt;, who I got to know and appreciate while working on the &lt;a href="http://csmvps.com/news/archive/2007/05/13/community-server-mvps-cinnabar-csmodule-package.aspx"&gt;Community Server Modules&lt;/a&gt;, already &lt;a href="http://nayyeri.net/blog/post-navigator-extension-for-graffiti/"&gt;wrote&lt;/a&gt; &lt;a href="http://nayyeri.net/blog/community-credit-plug-in-for-graffiti/"&gt;several&lt;/a&gt; &lt;a href="http://nayyeri.net/blog/search-relevancy-extension-for-graffiti/"&gt;extensions&lt;/a&gt; for Graffiti. To wrap up all his addons and provide a simple installation experience &lt;a href="http://nayyeri.net/blog/introducing-graffiti-extras/"&gt;he started&lt;/a&gt; the &lt;a href="http://www.codeplex.com/GraffitiExtras"&gt;Graffiti Extras project&lt;/a&gt; on CodePlex. And he was kind enough to accept me as a contributor.&lt;/p&gt;&lt;p&gt;&lt;img src="http://thomasfreudenberg.com/photos/images/58256/original.aspx" alt="" align="right" border="0" height="" hspace="8" width="" /&gt;So here it is, my first extension for Graffiti. In fact, I was inspired by Danny Douglass&amp;#39; &lt;a href="http://www.dannydouglass.com/post/2008/01/Add-Social-Bookmarking-Links-To-Your-Blog.aspx"&gt;Social Bookmarks extension&lt;/a&gt; for BlogEngine.NET. It enables you to link your posts to some of the most popular social bookmarking sites. The image to the right depicts an exemplary post with the extension rendered below.&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight:bold;"&gt;Implementation&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The Sharing extension is implemented as a so called &lt;a href="http://graffiticms.com/support/advanced-options/chalk-overview/"&gt;&lt;span style="font-style:italic;"&gt;chalk&lt;/span&gt;&lt;/a&gt;. Think of chalks as of macros. How to write your own chalk is &lt;a href="http://graffiticms.com/support/advanced-options/extending-chalk/"&gt;well-documented&lt;/a&gt;, so I won&amp;#39;t describe how I implemented the Sharing extension. If you want to have a look at the sources, go to the &lt;a href="http://www.codeplex.com/GraffitiExtras"&gt;GraffitiExtras project&lt;/a&gt; on CodePlex and either download them or browse them online. &lt;/p&gt;&lt;p&gt;&lt;span style="font-weight:bold;"&gt;Installation&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;To install the Sharing chalk (and all other extensions provided in Graffiti Extras) download the attached &lt;a href="/files/folders/58253/download.aspx"&gt;ZIP File&lt;/a&gt;. This archive contains two root folders: in the &lt;span style="font-style:italic;"&gt;bin&lt;/span&gt; folder you can find the &lt;span style="font-style:italic;"&gt;GraffitiExtras.dll&lt;/span&gt; which you must drop into the &lt;span style="font-style:italic;"&gt;bin&lt;/span&gt; folder of your Graffiti installation. The second folder, &lt;span style="font-style:italic;"&gt;sharing-images&lt;/span&gt;, contains two flavors of icons in different sizes (16x16, 24x24, 32x32, and 48x48) for several social bookmarking sites (original icons are provided by &lt;a href="http://fasticon.com/freeware"&gt;FastIcon&lt;/a&gt;). Either copy that folder entirely or only the desired flavor/sizes somewhere to the Graffiti web folder.&lt;/p&gt;&lt;p style="font-weight:bold;"&gt;Usage&lt;/p&gt;&lt;p&gt;To add the sharing extension to your posts, you just have to add a single line to your theme file:&lt;/p&gt;&lt;p&gt;&lt;span style="font-style:italic;"&gt;$sharing.Write($post, &amp;quot;&lt;/span&gt;&amp;lt;image folder&amp;gt;&lt;span style="font-style:italic;"&gt;&amp;quot;)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Replace &lt;span style="font-style:italic;"&gt;image folder&lt;/span&gt; with the path to the desired images. E.g. if you have copied the entire &lt;span style="font-style:italic;"&gt;sharing-images&lt;/span&gt; folder to the root of your web application, and you want to see the round images with a size of 16x16, you would add following line:&lt;/p&gt;&lt;p&gt;&lt;span style="font-style:italic;"&gt;$sharing.Write($post, &amp;quot;/sharing-images/circle/16x16/&amp;quot;)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;By default the different images are separated by a non-breaking space (&lt;span style="font-style:italic;"&gt;&amp;amp;nbsp;&lt;/span&gt;) but you can change that with the optional third parameter:&lt;/p&gt;&lt;p&gt;&lt;span style="font-style:italic;"&gt;$sharing.Write($post, &amp;quot;&lt;/span&gt;&amp;lt;image folder&amp;gt;&lt;span style="font-style:italic;"&gt;&amp;quot;, &amp;quot; | &amp;quot;)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://thomasfreudenberg.com/aggbug.aspx?PostID=58262" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=ws4jKp3q"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=zNphRd3E"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?i=zNphRd3E" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=sVEROu13"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=2322" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=AEs4Pynf"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ThomasFreudenberg/~4/yYstItcjVH4" height="1" width="1"/&gt;</description><enclosure url="/files/folders/58253/download.aspx" length="168800" type="application/octet-stream" /><media:content url="/files/folders/58253/download.aspx" fileSize="168800" type="application/octet-stream" /><feedburner:origLink>http://thomasfreudenberg.com/blog/archive/2008/02/04/sharing-extension-for-graffiti.aspx</feedburner:origLink></item><item><title>.NET-Forum.de launched</title><link>http://feeds.thomasfreudenberg.com/~r/ThomasFreudenberg/~3/f1vslu0cens/net-forum-de-launched.aspx</link><category>Community Server</category><category>Community</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Freudenberg</dc:creator><pubDate>Tue, 29 Jan 2008 10:21:00 PST</pubDate><guid isPermaLink="false">http://thomasfreudenberg.com/blog/archive/2008/01/29/net-forum-de-launched.aspx</guid><description>&lt;p&gt;&lt;a href="http://dotnet-forum.de/"&gt;&lt;img src="http://thomasfreudenberg.com/images/dotnet-forum.gif" alt=".NET Forum" width="306" align="right" border="0" height="39" hspace="8" /&gt;&lt;/a&gt;A couple of days ago &lt;a href="http://blog.jan-welker.de/" rel="friend"&gt;Jan Welker&lt;/a&gt; launched a new German .NET related community site, &lt;a href="http://dotnet-forum.de/"&gt;.NET-Forum.de&lt;/a&gt;. I didn&amp;#39;t expect the developsphere to require just another site, but there are already 51 users registered, even though the site wasn&amp;#39;t advertised anywhere except the &lt;a href="http://dotnet-snippets.de"&gt;dotnet-snippets.de&lt;/a&gt; newsletter.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Jan set up Community Server 2007.1 to drive the site (Did you know that .NET related non-profit communities may receive &lt;a href="http://docs.communityserver.org/kb/article.aspx/160/i-am-a-net-user-group-or-not-for-profit-net-community-site-do-you-have-discounts-available/"&gt;a free license&lt;/a&gt;?) I try to support Jan whenever he experiences issues with CS or has a configuration question. So for me it&amp;#39;s an &lt;span&gt;appreciated opportunity&lt;/span&gt; to get to learn CS&amp;#39;s forum capabilities (Till now I only used the blogging part.) &lt;/p&gt;&lt;p&gt;I wish Jan success, and maybe this post will lead some more people to his site. &lt;/p&gt;&lt;img src="http://thomasfreudenberg.com/aggbug.aspx?PostID=57736" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=ZveQgB6r"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=7pfVWPrA"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?i=7pfVWPrA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=6tX646Wt"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=2322" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=H1KqhLe6"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ThomasFreudenberg/~4/f1vslu0cens" height="1" width="1"/&gt;</description><feedburner:origLink>http://thomasfreudenberg.com/blog/archive/2008/01/29/net-forum-de-launched.aspx</feedburner:origLink></item><item><title>String.IsNullOrEmpty as Extension Method</title><link>http://feeds.thomasfreudenberg.com/~r/ThomasFreudenberg/~3/CmKZaPZ8uAc/string-isnullorempty-as-extension-method.aspx</link><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Freudenberg</dc:creator><pubDate>Fri, 25 Jan 2008 10:53:00 PST</pubDate><guid isPermaLink="false">http://thomasfreudenberg.com/blog/archive/2008/01/25/string-isnullorempty-as-extension-method.aspx</guid><description>&lt;p&gt;Most you will probably know about Extension Method introduced with C# 3.0. If not, I strongly recommend to read ScottGu&amp;#39;s &lt;a href="http://weblogs.asp.net/scottgu/archive/2007/03/13/new-orcas-language-feature-extension-methods.aspx"&gt;explanation&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;Anyway, a couple of days ago Brad Wilson posted &lt;a href="http://bradwilson.typepad.com/blog/2008/01/c-30-extension.html"&gt;an experiment&lt;/a&gt;:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;What I wasn&amp;#39;t sure was whether or not you could call these extension methods when you have a null instance of the object, since they&amp;#39;re instance methods. The C++ guy in me said &amp;quot;sure, that should be legal&amp;quot;, and the C# guy in me said &amp;quot;it&amp;#39;s probably illegal, and that&amp;#39;s too bad&amp;quot;. Amazingly, the C++ guy in me won!&lt;/p&gt;    &lt;p&gt;This code executes perfectly:&lt;/p&gt;    &lt;pre&gt;using System;&lt;br /&gt;&lt;br /&gt;public static class MyExtensions {&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; public static bool IsNull(this object @object) {&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; return @object == null;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public class MainClass {&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; public static void Main() {&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; object obj1 = new object();&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Console.WriteLine(obj1.IsNull());&lt;br /&gt;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; object obj2 = null;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Console.WriteLine(obj2.IsNull());&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; }&lt;br /&gt;}&lt;/pre&gt;

  &lt;p&gt;When you run it, it prints out &amp;quot;False&amp;quot; and &amp;quot;True&amp;quot;. Excellent!&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;When I read that I immediatley thought of another application. I guess all my readers are familiar with &lt;a style="font-style:italic;" href="http://msdn2.microsoft.com/en-us/library/system.string.isnullorempty.aspx"&gt;String.IsNullOrEmpty&lt;/a&gt; which was introduced with .NET 2.0. So I asked myself if you can make &lt;span style="font-style:italic;"&gt;IsNullOrEmpty&lt;/span&gt; a parameterless extension method:&lt;/p&gt;

&lt;pre class="brush: csharp;"&gt;using System;

public static class MyExtensions
{
    public static bool IsNullOrEmpty(this String s)
    {
        return String.IsNullOrEmpty(s);
    }
}

public class MainClass
{
    public static void Main()
    {
        string s1 = &amp;quot;Hello world&amp;quot;;
        Console.WriteLine(s1.IsNullOrEmpty());

        string s2 = null;
        Console.WriteLine(s2.IsNullOrEmpty());
    }
}&lt;/pre&gt;

&lt;p&gt;Again, it prints out &lt;span style="font-style:italic;"&gt;False&lt;/span&gt; and &lt;span style="font-style:italic;"&gt;True&lt;/span&gt;. And in my opinion this &lt;a href="http://en.wikipedia.org/wiki/syntactic%20sugar"&gt;syntactic sugar&lt;/a&gt; looks much more elegant than the ordinary &lt;span style="font-style:italic;"&gt;String.IsNullOrEmpty(s2)&lt;/span&gt;.&lt;/p&gt;

&lt;p&gt;If only C# would support &lt;a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1170257&amp;amp;SiteID=1"&gt;extension &lt;span style="font-weight:bold;"&gt;properties&lt;/span&gt;&lt;/a&gt;...&lt;/p&gt;&lt;img src="http://thomasfreudenberg.com/aggbug.aspx?PostID=57390" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=iDZVy6dZ"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=WJoKYR9s"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?i=WJoKYR9s" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=gR9xyjdH"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=2322" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=3sUYJqcs"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ThomasFreudenberg/~4/CmKZaPZ8uAc" height="1" width="1"/&gt;</description><feedburner:origLink>http://thomasfreudenberg.com/blog/archive/2008/01/25/string-isnullorempty-as-extension-method.aspx</feedburner:origLink></item><item><title>Goodbye Aachen, Hello Hamburg</title><link>http://feeds.thomasfreudenberg.com/~r/ThomasFreudenberg/~3/wYiwBU6YM7Y/goodbye-aachen-hello-hamburg.aspx</link><category>Hamburg</category><category>Proximity</category><category>Cycos</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Freudenberg</dc:creator><pubDate>Mon, 29 Oct 2007 09:02:00 PDT</pubDate><guid isPermaLink="false">http://thomasfreudenberg.com/blog/archive/2007/10/29/goodbye-aachen-hello-hamburg.aspx</guid><description>&lt;p&gt;&lt;a href="http://www.cycos.com/"&gt;&lt;img alt="Cycos" hspace="8" src="http://thomasfreudenberg.com/blogs/blog/Cycos_Logo.png" align="left" border="0" /&gt;&lt;/a&gt; After more than 8 years I´ll leave my current employer &lt;a title="Cycos" href="http://www.cycos.com/"&gt;Cycos&lt;/a&gt; by the end of this year. Starting 1/1/08 I&amp;#39;ll work as a Senior Software Developer at &lt;a title="Proximity" href="http://www.proximity.de/"&gt;Proximity&lt;/a&gt; (&lt;a title="Proximity worldwide" href="http://www.proximityworldwide.com/"&gt;international website&lt;/a&gt;.)&lt;/p&gt;
&lt;p&gt;Cycos is my first employer, I started here right after university in 1999. Originally I didn&amp;#39;t plan to stay that long here but 5 years at maximum. However, because the work was so diversified and the working atmosphere so prolific, I stayed some years longer.&lt;a href="http://proximity.de/"&gt;&lt;img alt="Proximity" hspace="8" src="http://thomasfreudenberg.com/blogs/blog/Proximity_logo.png" align="right" border="0" /&gt;&lt;/a&gt; E.g. I was delegated to Munich and San Jose (CA) for several month each, and they paid me the attendances and expenses for both PDC´03 and ´05 in LA. In other words, I can´t accuse myself of being inflexible or inmobil. And it was always fun working at Cycos. I´ll be contended if the working atmosphere at my new job is half as prolific as I got to know it in the past.&lt;/p&gt;
&lt;p&gt;However, after 8 years it´s time for a change. Most of my time at Cycos I wrote proprietary software, mainly clients for &lt;a href="http://en.wikipedia.org/wiki/computer%20telephony%20integration"&gt;computer telephony integration&lt;/a&gt;. In contrast, at Proximity I will leverage Microsoft products such as MOSS and BizTalk, i.e. areas &lt;span style="TEXT-DECORATION:line-through;"&gt;I don´t have a clue about&lt;/span&gt; where I can gain experience. But don´t get me wrong, I´m really looking forward for the new job.&lt;/p&gt;
&lt;p&gt;And I´m not only changing the employer, but the town as well. I´ll move to Hamburg, which is 500 km away from Würselen/Aachen (for my American friends: that´s about 310 miles). Therefore the search of a new domicile has my highest priority at the moment. I have 18 paid leave days left, and I want to complete my relocation this year. So this blog will stay quite silent the next few weeks. But stay tuned, I´ll keep&amp;nbsp;you informed. &lt;/p&gt;&lt;img src="http://thomasfreudenberg.com/aggbug.aspx?PostID=44355" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=Eg0aZhAh"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=BtxHrwfK"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?i=BtxHrwfK" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=tX8kICNO"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=2322" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=sgsqYQLt"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ThomasFreudenberg/~4/wYiwBU6YM7Y" height="1" width="1"/&gt;</description><feedburner:origLink>http://thomasfreudenberg.com/blog/archive/2007/10/29/goodbye-aachen-hello-hamburg.aspx</feedburner:origLink></item><item><title>XTOPIA 2007</title><link>http://feeds.thomasfreudenberg.com/~r/ThomasFreudenberg/~3/P_F2F3DEx68/xtopia-2007.aspx</link><category>Community</category><category>Conference</category><category>Xtopia</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Freudenberg</dc:creator><pubDate>Mon, 08 Oct 2007 10:23:00 PDT</pubDate><guid isPermaLink="false">http://thomasfreudenberg.com/blog/archive/2007/10/08/xtopia-2007.aspx</guid><description>&lt;p&gt;&lt;img src="http://thomasfreudenberg.com/images/Xtopia.png" alt="" align="right" border="" height="53" hspace="4" width="231" /&gt;Now Germany has its own Mix conference, though here Microsoft calls it &lt;a href="http://www.xtopia-konferenz.de/"&gt;Xtopia&lt;/a&gt;. It will cover Silverlight, WPF, the Expression suite, and much more. It will take place in Berlin from 10th to 12th of October (if you include the post-conference on Friday).&lt;/p&gt;&lt;p&gt;I&amp;#39;ll go to Berlin tomorrow already, and stay until Saturday. My Hotel is the &lt;a href="http://www.quality-hotel-berlin.de/en/"&gt;Quality Hotel &amp;amp; Suites Berlin City East&lt;/a&gt;. If you want to join me for a beer or two, drop me a line or call me at +49 (173) 285 21 81. &lt;a href="http://blog.lars-keller.net/PermaLink,guid,331497aa-dee3-4a90-a81b-126f2727f292.aspx"&gt;Lars&lt;/a&gt;, I&amp;#39;m expecting your call. &lt;/p&gt;&lt;img src="http://thomasfreudenberg.com/aggbug.aspx?PostID=42336" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=qQ92mfd9"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=IBSFsOTG"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?i=IBSFsOTG" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=2vTjdKkg"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=2322" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=hgM47qCR"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ThomasFreudenberg/~4/P_F2F3DEx68" height="1" width="1"/&gt;</description><feedburner:origLink>http://thomasfreudenberg.com/blog/archive/2007/10/08/xtopia-2007.aspx</feedburner:origLink></item><item><title>All Firefox Extensions Gone after upgrading to 2.0.7</title><link>http://feeds.thomasfreudenberg.com/~r/ThomasFreudenberg/~3/A13ZwNXeCJ4/all-firefox-extensions-gone-after-upgrading-to-2-0-7.aspx</link><category>Software</category><category>Tips 'n Tricks</category><category>Firefox</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Freudenberg</dc:creator><pubDate>Thu, 20 Sep 2007 10:09:00 PDT</pubDate><guid isPermaLink="false">http://thomasfreudenberg.com/blog/archive/2007/09/20/all-firefox-extensions-gone-after-upgrading-to-2-0-7.aspx</guid><description>&lt;p&gt;&lt;img src="http://thomasfreudenberg.com/images/firefox_logo.png" alt="Firefox" align="right" border="" height="" hspace="4" width="" /&gt;Today I upgraded Firefox to 2.0.7, which &lt;a href="http://www.mozilla.org/security/announce/2007/mfsa2007-28.html"&gt;fixes a flaw in the QuickTime plugin&lt;/a&gt;. However, after the upgrade &lt;span style="font-weight:bold;"&gt;Firefox didn&amp;#39;t load any of the extensions&lt;/span&gt; I have installed&lt;/p&gt;&lt;p&gt;Fortunately I found &lt;a href="http://forums.mozillazine.org/viewtopic.php?t=586691&amp;amp;sid=38821ef113f1c7b841643b0101e6f1e6"&gt;this thread&lt;/a&gt; in the support forum. Simply delete &lt;i&gt;extensions.ini&lt;/i&gt;, &lt;i&gt;extensions.cache&lt;/i&gt;, and &lt;i&gt;extensions.rdf&lt;/i&gt; from &lt;a href="http://kb.mozillazine.org/Profile_folder_-_Firefox#Finding_the_profile_folder"&gt;your profile folder&lt;/a&gt;. On its next start Firefox will scan for installed extansions and regenerate these files.&lt;/p&gt;&lt;p&gt;I hope this post will be indexed properly so you can find this information faster than me.&amp;nbsp;&lt;/p&gt;&lt;img src="http://thomasfreudenberg.com/aggbug.aspx?PostID=40563" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=wpG4ixRn"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=gCIcBT8J"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?i=gCIcBT8J" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=gaOF0Ku1"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=2322" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=quhroXZe"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ThomasFreudenberg/~4/A13ZwNXeCJ4" height="1" width="1"/&gt;</description><feedburner:origLink>http://thomasfreudenberg.com/blog/archive/2007/09/20/all-firefox-extensions-gone-after-upgrading-to-2-0-7.aspx</feedburner:origLink></item><item><title>Shot myself in the foot</title><link>http://feeds.thomasfreudenberg.com/~r/ThomasFreudenberg/~3/SAKgHwOD2G0/shot-myself-in-the-foot.aspx</link><category>Site news</category><category>Comment Spam</category><category>CAPTCHA</category><category>Honeypot</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Freudenberg</dc:creator><pubDate>Thu, 20 Sep 2007 07:02:00 PDT</pubDate><guid isPermaLink="false">http://thomasfreudenberg.com/blog/archive/2007/09/20/shot-myself-in-the-foot.aspx</guid><description>&lt;p&gt;If you have tried to leave a comment on my site in the last two days, you may have noticed that they werenâ€™t accepted. Here is why:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Because the rate of incoming spam decreased dramatically after I implemented the &lt;a href="http://thomasfreudenberg.com/blog/archive/2007/09/17/honeypot-captcha-for-community-server.aspx"&gt;Honeypot CAPTCHA&lt;/a&gt; on this site, I wondered if I could really give that solution the credit. Therefore I entered a comment myself to check it. And what happened? Nothing! Instead, that small red asterisk appeared next to the comment field, indicating that nothing was entered. WTF? I did enter some text! Garbage, I admit, but at least a few characters. Then I remembered that I switched the identifiers of the regular comment text box and the honeypot box. Then I had a sneaking suspicion, and I quickly checked &lt;i&gt;post.aspx&lt;/i&gt;. My apprehension proved true: I have forgotten to point the RequiredFieldValidor to the other identifier! So as long as you didn&amp;#39;t fill in the hidden honeypot, you couldn&amp;#39;t post your comment. How stupid is that? The ironic side of the story is, that only comment spammers were able to cross that barrier, just to get marked as spam instantly afterwards. &lt;/p&gt;&lt;p&gt;Anyway, itâ€™s fixed by now, and your comments are welcome (again)!&lt;/p&gt;&lt;img src="http://thomasfreudenberg.com/aggbug.aspx?PostID=40544" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=wdW6wcJO"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=630WrfQS"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?i=630WrfQS" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=XU15ckGN"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=2322" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=MNfnIZPq"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ThomasFreudenberg/~4/SAKgHwOD2G0" height="1" width="1"/&gt;</description><feedburner:origLink>http://thomasfreudenberg.com/blog/archive/2007/09/20/shot-myself-in-the-foot.aspx</feedburner:origLink></item><item><title>Honeypot Captcha for Community Server</title><link>http://feeds.thomasfreudenberg.com/~r/ThomasFreudenberg/~3/5ttZ3ZrC5tU/honeypot-captcha-for-community-server.aspx</link><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Freudenberg</dc:creator><pubDate>Mon, 17 Sep 2007 10:34:00 PDT</pubDate><guid isPermaLink="false">http://thomasfreudenberg.com/blog/archive/2007/09/17/honeypot-captcha-for-community-server.aspx</guid><description>&lt;p&gt;A few days ago &lt;a href="http://haacked.com/" rel="acquaintance"&gt;Phil Haack&lt;/a&gt; wrote about &lt;a href="http://haacked.com/archive/2007/09/11/honeypot-captcha.aspx"&gt;Honeypot Captcha&lt;/a&gt;:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;At the same time, spam bots tend to ignore CSS. For example, if you use CSS to hide a form field (especially via CSS in a separate file), they have a really hard time knowing that the field is not supposed to be visible.&lt;/p&gt;    &lt;p&gt;To exploit this, you can create a &lt;i&gt;honeypot&lt;/i&gt; form field that &lt;i&gt;should be left blank &lt;/i&gt;and then use CSS to hide it from human users, but not bots. When the form is submitted, you check to make sure the value of that form field is blank.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;A great idea, which didn’t occur to me before. And Phil wasn’t even the first one with that idea.&lt;/p&gt;  &lt;p&gt;I added a “regular” captcha control to my site some time ago, but removed it again after a couple of days. Why burden the innocent commentor? He’s not the problem. The comment spammers are.&lt;/p&gt;  &lt;p&gt;So I took the idea of the honeypot and leveraged Community Server’s spam filtering capabilities.&lt;/p&gt;  &lt;p&gt;First, I replaced the original Community Server’s &lt;a href="http://code.communityserver.org/?path=CS+Tree%5cCS+2007+3.0%5cBlogs%5cControls%5cForms%5cWeblogPostCommentForm.cs"&gt;WeblogPostCommentForm&lt;/a&gt; with my own version by simply copying it to my own assembly. (If you build CS from the SDK, you can also just edit the existing one.)&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Added the private member      &lt;pre class="brush: csharp;"&gt;private TextBox HoneyPot;&lt;/pre&gt;
  &lt;/li&gt;

  &lt;li&gt;Added the property &lt;i&gt;HoneyPotTextBoxId&lt;/i&gt;, which references the actual TextBox in the form: 

    &lt;pre class="brush: csharp;"&gt;public string HoneyPotTextBoxId
{
    get { return ((string)ViewState[&amp;quot;HoneyPotTextBoxId&amp;quot;]) ?? string.Empty; }
    set { ViewState[&amp;quot;HoneyPotTextBoxId&amp;quot;] = value; }
}&lt;/pre&gt;
  &lt;/li&gt;

  &lt;li&gt;Added following lines to the method &lt;i&gt;AttachChildControls&lt;/i&gt;: 

    &lt;pre class="brush: csharp;"&gt;HoneyPot = WeblogControlUtility.Instance().FindControl(this, HoneyPotTextBoxId) as TextBox;
StringBuilder sb = new StringBuilder();
sb.AppendLine(&amp;quot;\n&amp;lt;script type=\&amp;quot;text/javascript\&amp;quot;&amp;gt;&amp;quot;);
sb.AppendLine(&amp;quot;document.getElementById(\&amp;quot;&amp;quot; + HoneyPot.ClientID + &amp;quot;\&amp;quot;).style.display = \&amp;quot;none\&amp;quot;;&amp;quot;);
sb.AppendLine(&amp;quot;&amp;lt;/script&amp;gt;&amp;quot;);
CSControlUtility.Instance().RegisterStartupScript(HoneyPot, typeof (TextBox), &amp;quot;honeypot&amp;quot;, sb.ToString(), false);&lt;/pre&gt;
You see that the honeypot field is hidden dynamically via JavaScript. No CSS is giving a hint to the spammer that the control will not be visible. Instead, as soon as the page is loaded, the textbox will be hidden programmatically. &lt;/li&gt;

  &lt;li&gt;Added following lines in &lt;i&gt;Submit_Click&lt;/i&gt; right before &lt;i&gt;WeblogPosts.Add&lt;/i&gt; is called: 

    &lt;pre class="brush: csharp;"&gt;if (!string.IsNullOrEmpty(HoneyPot.Text)) { 
    EventLogs.Info(&amp;quot;Spammer entered \&amp;quot;&amp;quot; + HoneyPot.Text + &amp;quot;\&amp;quot; in the honey pot&amp;quot;, &amp;quot;Spam Rules&amp;quot;, 0); 
    c.SetExtendedAttribute(&amp;quot;GotchaInMyHoneyPot&amp;quot;, &amp;quot;trapped&amp;quot;); 
}&lt;/pre&gt;
So whenever the honeypot textbox is filled in, the comment gets an extended attribute named &lt;span style="font-style:italic;"&gt;GotchaInMyHoneyPot&lt;/span&gt;. &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Now this new form must be used on the actual page. There’s only one page (per theme), which allows visitors to leave comments, which is &lt;i&gt;post.aspx&lt;/i&gt;. Unfortunately, this must be done for every theme.&lt;/p&gt;

&lt;p&gt;So open &lt;i&gt;post.aspx&lt;/i&gt; and replace the original &lt;i&gt;WeblogPostCommentForm&lt;/i&gt; with our new one, add the &lt;i&gt;HoneyPotTextBoxId&lt;/i&gt; attribute to the form, and add the textbox. Don’t forget to use the same id for the textbox (this example uses &lt;i&gt;tbBody&lt;/i&gt;, which shouldn’t ring a bell for the spammer.) Here’s the modified form declaration from the PaperClip theme:&lt;/p&gt;

&lt;pre class="brush: xml;"&gt;&amp;lt;tfr:HoneyPotWeblogPostCommentForm runat=&amp;quot;server&amp;quot; ValidationGroup=&amp;quot;CreateCommentForm&amp;quot; 
    MessageTextBoxId=&amp;quot;tbComment&amp;quot; 
    NameTextBoxId=&amp;quot;tbName&amp;quot; 
    RememberCheckboxId=&amp;quot;chkRemember&amp;quot; 
    SubjectTextBoxId=&amp;quot;tbTitle&amp;quot; 
    SubmitButtonId=&amp;quot;btnSubmit&amp;quot; 
    UrlTextBoxId=&amp;quot;tbUrl&amp;quot; 
    ControlIdsToHideFromRegisteredUsers=&amp;quot;RememberWrapper&amp;quot; 
    HoneyPotTextBoxId=&amp;quot;tbBody&amp;quot; 
    &amp;gt; 
    &amp;lt;SuccessActions&amp;gt; 
        &amp;lt;CSControl:GoToModifiedUrlAction runat=&amp;quot;server&amp;quot; QueryStringModification=&amp;quot;CommentPosted=true&amp;quot; TargetLocationModification=&amp;quot;commentmessage&amp;quot; /&amp;gt; 
    &amp;lt;/SuccessActions&amp;gt; 
    &amp;lt;FormTemplate&amp;gt; 
        &amp;lt;fieldset id=&amp;quot;commentform&amp;quot;&amp;gt; 
        &amp;lt;legend&amp;gt;&amp;lt;CSControl:ResourceControl runat=&amp;quot;server&amp;quot; ResourceName=&amp;quot;Weblog_CommentForm_WhatDoYouThink&amp;quot; id=&amp;quot;rc_think&amp;quot;/&amp;gt;&amp;lt;/legend&amp;gt; 
            &amp;lt;p /&amp;gt; 
            &amp;lt;div&amp;gt;&amp;lt;CSControl:FormLabel runat=&amp;quot;server&amp;quot; ResourceName=&amp;quot;Title&amp;quot; LabelForId=&amp;quot;tbTitle&amp;quot; /&amp;gt; &amp;lt;em&amp;gt;(&amp;lt;CSControl:ResourceControl runat=&amp;quot;server&amp;quot; ResourceName=&amp;quot;Required&amp;quot;/&amp;gt;)&amp;lt;/em&amp;gt;&amp;lt;asp:RequiredFieldValidator runat=&amp;quot;server&amp;quot; ErrorMessage=&amp;quot;*&amp;quot; ControlToValidate=&amp;quot;tbTitle&amp;quot; ValidationGroup=&amp;quot;CreateCommentForm&amp;quot; /&amp;gt;&amp;lt;/div&amp;gt; 
            &amp;lt;div&amp;gt;&amp;lt;asp:TextBox id=&amp;quot;tbTitle&amp;quot; runat=&amp;quot;server&amp;quot; CssClass=&amp;quot;smallbox&amp;quot; ValidationGroup=&amp;quot;CreateCommentForm&amp;quot; /&amp;gt;&amp;lt;/div&amp;gt; 
            &amp;lt;p /&amp;gt; 
            &amp;lt;div id=&amp;quot;NameTitle&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;CSControl:FormLabel LabelForId=&amp;quot;tbName&amp;quot; runat=&amp;quot;server&amp;quot; ResourceName=&amp;quot;Weblog_CommentForm_Name&amp;quot; /&amp;gt; &amp;lt;em&amp;gt;(&amp;lt;CSControl:ResourceControl runat=&amp;quot;server&amp;quot; ResourceName=&amp;quot;Required&amp;quot; /&amp;gt;)&amp;lt;/em&amp;gt;&amp;lt;asp:RequiredFieldValidator runat=&amp;quot;server&amp;quot; ErrorMessage=&amp;quot;*&amp;quot; ControlToValidate=&amp;quot;tbName&amp;quot; ValidationGroup=&amp;quot;CreateCommentForm&amp;quot; /&amp;gt;&amp;lt;/div&amp;gt; 
            &amp;lt;div id=&amp;quot;NameDesc&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;asp:TextBox id=&amp;quot;tbName&amp;quot; runat=&amp;quot;server&amp;quot; CssClass=&amp;quot;smallbox&amp;quot; ValidationGroup=&amp;quot;CreateCommentForm&amp;quot; /&amp;gt;&amp;lt;/div&amp;gt; 
            &amp;lt;p /&amp;gt; 
            &amp;lt;div&amp;gt;&amp;lt;CSControl:FormLabel runat=&amp;quot;server&amp;quot; LabelForId=&amp;quot;tbUrl&amp;quot; ResourceName=&amp;quot;Weblog_CommentForm_YourUrl&amp;quot; /&amp;gt; &amp;lt;em&amp;gt;(&amp;lt;CSControl:ResourceControl runat=&amp;quot;server&amp;quot; ResourceName=&amp;quot;Optional&amp;quot; /&amp;gt;&amp;lt;/em&amp;gt;)&amp;lt;/div&amp;gt; 
            &amp;lt;div&amp;gt;&amp;lt;asp:TextBox id=&amp;quot;tbUrl&amp;quot; runat=&amp;quot;server&amp;quot; CssClass=&amp;quot;smallbox&amp;quot; ValidationGroup=&amp;quot;CreateCommentForm&amp;quot; /&amp;gt;&amp;lt;/div&amp;gt; 
            &amp;lt;%-- the honeybot textbox --%&amp;gt; 
            &amp;lt;asp:TextBox id=&amp;quot;tbBody&amp;quot; runat=&amp;quot;server&amp;quot; CssClass=&amp;quot;smallbox&amp;quot; ValidationGroup=&amp;quot;CreateCommentForm&amp;quot; /&amp;gt; 
            &amp;lt;p /&amp;gt; 
            &amp;lt;div&amp;gt;&amp;lt;CSControl:FormLabel LabelForId=&amp;quot;tbComment&amp;quot; runat=&amp;quot;server&amp;quot; ResourceName=&amp;quot;Weblog_CommentForm_Comments&amp;quot; /&amp;gt; &amp;lt;em&amp;gt;(&amp;lt;CSControl:ResourceControl runat=&amp;quot;server&amp;quot; ResourceName=&amp;quot;Required&amp;quot; /&amp;gt;)&amp;lt;/em&amp;gt;&amp;lt;asp:RequiredFieldValidator runat=&amp;quot;server&amp;quot; ErrorMessage=&amp;quot;*&amp;quot; ControlToValidate=&amp;quot;tbComment&amp;quot; ValidationGroup=&amp;quot;CreateCommentForm&amp;quot; /&amp;gt;&amp;lt;/div&amp;gt; 
            &amp;lt;div&amp;gt;&amp;lt;asp:TextBox id=&amp;quot;tbComment&amp;quot; runat=&amp;quot;server&amp;quot; Rows=&amp;quot;5&amp;quot; Columns=&amp;quot;25&amp;quot; TextMode=&amp;quot;MultiLine&amp;quot; ValidationGroup=&amp;quot;CreateCommentForm&amp;quot; /&amp;gt;&amp;lt;/div&amp;gt; 
            &amp;lt;asp:PlaceHolder runat=&amp;quot;server&amp;quot; id=&amp;quot;RememberWrapper&amp;quot;&amp;gt; 
                &amp;lt;p /&amp;gt; 
                &amp;lt;div&amp;gt;&amp;lt;asp:CheckBox id=&amp;quot;chkRemember&amp;quot; runat=&amp;quot;server&amp;quot; Text=&amp;quot;Remember Me?&amp;quot; ValidationGroup=&amp;quot;CreateCommentForm&amp;quot;&amp;gt;&amp;lt;/asp:CheckBox&amp;gt;&amp;lt;/div&amp;gt; 
            &amp;lt;/asp:PlaceHolder&amp;gt; 
            &amp;lt;p /&amp;gt; 
            &amp;lt;asp:Button id=&amp;quot;btnSubmit&amp;quot; runat=&amp;quot;server&amp;quot; Text=&amp;quot;Submit&amp;quot; ValidationGroup=&amp;quot;CreateCommentForm&amp;quot;&amp;gt;&amp;lt;/asp:Button&amp;gt; 
        &amp;lt;/fieldset&amp;gt; 
    &amp;lt;/FormTemplate&amp;gt; 
&amp;lt;/tfr:HoneyPotWeblogPostCommentForm&amp;gt;&lt;/pre&gt;

&lt;p&gt;But that’s only the first half. Now whenever the honeypot field is filled with some text the comment will have an extended attribute &lt;i&gt;GotchaInMyHoneyPot&lt;/i&gt;.&lt;/p&gt;

&lt;p&gt;The second step is to give the comment “spam points”, which is done by a CS spam rule. &lt;a href="http://nayyeri.net/" rel="friend"&gt;Keyvan Nayyeri&lt;/a&gt; published a &lt;a href="http://nayyeri.net/archive/2006/09/15/CS-Dev-Guide_3A00_-How-to-Write-a-Spam-Rule.aspx"&gt;complete tutorial&lt;/a&gt; how to write your own spam rules, so I won’t get into details. Here’s the complete code for the new rule:&lt;/p&gt;

&lt;pre class="brush: csharp;"&gt;public class HoneyPotRule : BlogSpamRule { 
    private static readonly Guid _ruleId = new Guid(&amp;quot;57E216D4-D100-468d-BB37-1B7A0A103CEF&amp;quot;); 
    private const int _defaultPoints = 10; 

    public override ArrayList GetAvailableSettings() { 
        ArrayList list = new ArrayList(); 
        list.Add(new RuleSetting(_ruleId, &amp;quot;points&amp;quot;, &amp;quot;Points&amp;quot;, _defaultPoints.ToString())); 
        return list; 
    } 
    
    public override int CalculateSpamScore(WeblogPost weblogPost, CSPostEventArgs e) { 
        if (weblogPost.BlogPostType == BlogPostType.Comment) { 
            if (!String.IsNullOrEmpty(weblogPost.GetExtendedAttribute(&amp;quot;GotchaInMyHoneyPot&amp;quot;))) { 
                EventLogs.Info(&amp;quot;A spammer fell for the honey pot&amp;quot;, &amp;quot;Spam Rules&amp;quot;, 0); 
                return Globals.SafeInt(GetSettingValue(&amp;quot;points&amp;quot;), _defaultPoints); 
            } 
        } 

        return base.CalculateSpamScore(weblogPost, e); 
    } 

    public override string Name { 
        get { return &amp;quot;HoneyPot&amp;quot;; } 
    } 

    public override string Description { 
        get { return &amp;quot;HoneyPot description&amp;quot;; } 
    } 

    public override Guid RuleID { 
        get { return _ruleId; } 
    } 
}&lt;/pre&gt;

&lt;p&gt;I’m running this solution for a couple of days now on my site, and it works pretty well. It’s amazing how many spam bots fill each and every textbox they can find. But I admit that a lot of steps are involved in my solution, there’s lot of programming required. However, I decided against publishing an all-inclusive package, because I’d like to add this solution to next release of either the &lt;a href="http://www.codeplex.com/CSModulesRepository"&gt;CSMVP CSModules&lt;/a&gt; or &lt;a href="http://www.codeplex.com/csstuff"&gt;Community Server Stuff&lt;/a&gt;. So either follow my instructions above, wait for an official release, or leverage &lt;a href="http://haacked.com/"&gt;Phil&lt;/a&gt;’s honeypot control which is part of the &lt;a href="http://www.codeplex.com/subkismet"&gt;Subkismet&lt;/a&gt; project (not released yet too, but you can already get the sources.)&lt;/p&gt;&lt;img src="http://thomasfreudenberg.com/aggbug.aspx?PostID=40205" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=mIwvDspT"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=KRVVmyiG"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?i=KRVVmyiG" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=CsP68SLI"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=2322" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=qrkrp01k"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ThomasFreudenberg/~4/5ttZ3ZrC5tU" height="1" width="1"/&gt;</description><feedburner:origLink>http://thomasfreudenberg.com/blog/archive/2007/09/17/honeypot-captcha-for-community-server.aspx</feedburner:origLink></item><item><title>nrw07 Slides</title><link>http://feeds.thomasfreudenberg.com/~r/ThomasFreudenberg/~3/RNVNEk3cDaA/nrw07-slides.aspx</link><category>Community Server</category><category>nrw07</category><category>Conference</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Freudenberg</dc:creator><pubDate>Mon, 10 Sep 2007 09:00:00 PDT</pubDate><guid isPermaLink="false">http://thomasfreudenberg.com/blog/archive/2007/09/10/nrw07-slides.aspx</guid><description>&lt;p&gt;In &lt;a href="http://thomasfreudenberg.com/blog/archive/2007/08/30/nrw07-follow-up.aspx"&gt;my nrw07 talk&lt;/a&gt; I promised that I would publish my slides. Originally they´re German, so I translated them first (no, it did &lt;span style="font-weight:bold;"&gt;not&lt;/span&gt; take me two weeks to translate them &lt;img src="http://thomasfreudenberg.com/emoticons/emotion-4.gif" alt="Stick out tongue" /&gt;). Here they are:&lt;/p&gt;&lt;p&gt;&lt;a href="/files/folders/39452/download.aspx"&gt;&lt;img src="/utility/filethumbnails/pptx-Small.gif" border="0" align="absmiddle" /&gt; CustomizingCommunityServer - en.pptx&lt;/a&gt;&lt;/p&gt;&lt;img src="http://thomasfreudenberg.com/aggbug.aspx?PostID=39454" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=rgRcZ3Gx"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=0iotX49B"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?i=0iotX49B" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=AbkuEUT6"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=2322" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=qjLyTN2v"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ThomasFreudenberg/~4/RNVNEk3cDaA" height="1" width="1"/&gt;</description><enclosure url="/files/folders/39452/download.aspx" length="2914489" type="application/octet-stream" /><media:content url="/files/folders/39452/download.aspx" fileSize="2914489" type="application/octet-stream" /><feedburner:origLink>http://thomasfreudenberg.com/blog/archive/2007/09/10/nrw07-slides.aspx</feedburner:origLink></item><item><title>Deflowered twice on one day at nrw07</title><link>http://feeds.thomasfreudenberg.com/~r/ThomasFreudenberg/~3/ZHARCd61G70/nrw07-follow-up.aspx</link><category>Community Server</category><category>User Group</category><category>Community</category><category>nrw07</category><category>Conference</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Freudenberg</dc:creator><pubDate>Thu, 30 Aug 2007 11:28:00 PDT</pubDate><guid isPermaLink="false">http://thomasfreudenberg.com/blog/archive/2007/08/30/nrw07-follow-up.aspx</guid><description>&lt;p&gt;&lt;img src="http://thomasfreudenberg.com/images/speakernrw07.jpg" alt="nrw07 speaker" align="left" border="0" height="100" hspace="4" width="100" /&gt; Last Friday the &lt;a href="http://nrw07.de/"&gt;nrw07&lt;/a&gt; took place in Wuppertal, the biggest community
conference in North Rhine-Westphalia. About &lt;b&gt;100 attendees&lt;/b&gt; including
the 22 speakers! The Diebels brewery contributes a couple of beer
crates, and Subway served lots of sandwiches for lunch.
&lt;/p&gt;&lt;p&gt;
And I was deflowered twice on that day.
&lt;/p&gt;&lt;p&gt;
&lt;a href="http://thomasfreudenberg.com/photos/images/38355/original.aspx" target="_blank"&gt;&lt;img src="http://thomasfreudenberg.com/photos/images/38355/150x200.aspx" alt="me speaking" align="right" border="0" hspace="4" /&gt;&lt;/a&gt;First, it was my very first talk! I gave a Community Server
presentation a couple of month ago at our local .NET UserGroup, and
the other guys suggested that I should repeat that at the nrw07.
Unfortunately, I didn´t object enough.&lt;/p&gt;&lt;p&gt;
When I sat in the hotel lobby with some other speakers the night
before nrw07, I started getting nervous, but they managed to calm me
down (or was it the beers we had?). The next day was fine, my talk was one of the first. It ran pretty well (as far as I am
concerned). Of course we experienced the usual technical difficulties
such as a projector, whose picture was twice as large as the screen and &lt;b&gt;not&lt;/b&gt; resizable. Although I got the second largest room in the facility,
there were only 7 attendees. Seems to me as Community Server is not of
interest for everyone. The good thing about that is that those folks
already knew CS, so I didn´t have to start at square one, but instead
dive right into the technical stuff. The time flew, I ran over about
10 minutes and had still enough material for another hour. Nevertheless my talk can not have been that bad because the audience asked the right questions afterwards. I &lt;strike&gt;hope&lt;/strike&gt;think that´s a good sign. 
&lt;/p&gt;&lt;p&gt;
&lt;a href="http://thomasfreudenberg.com/photos/images/38357/original.aspx" target="_blank"&gt;&lt;img src="http://thomasfreudenberg.com/photos/images/38357/400x267.aspx" alt="all speakers" align="left" border="0" hspace="4" /&gt;&lt;/a&gt;My second premiere happened later that night, when &lt;a href="http://www.craigmurphy.com/" rel="acquaintance"&gt;Craig Murphy&lt;/a&gt;
interviewed me for a podcast (not aired yet). At that point in time I
already had a couple of beers, so it went quite smooth. It´s
self-evident that we talked much about Community Server. Because I
mentioned Twitter in my talk, Craig took me up on that, and somehow we
drifted into social networking, a topic I´m quite interested in. Even
when the podcast was over, we continued the discussion.
&lt;/p&gt;&lt;p&gt;
To sum it up, it was a great event, where I met many smart people.
Many thanks to the orga team, &lt;a href="http://www.stephanon.net/" rel="friend"&gt;Stephan Oetzel&lt;/a&gt; and &lt;a href="http://www.lennybacon.com/" rel="friend"&gt;Daniel Fisher&lt;/a&gt;!
&lt;/p&gt;&lt;p&gt;
And now that I lost my virginity, I´m looking forward to give a talk
again next year (assumed they let me on stage ever again)
&lt;/p&gt;&lt;p&gt;
Here are some other speakers and attendees blogging about nrw07:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://www.craigmurphy.com/blog/?p=664"&gt;Craig Murphy&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.sturmnet.org/blog/archives/2007/08/27/great-time-at-nrw-07/"&gt;Oliver Sturm&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://blog.solinske.de/PermaLink,guid,4dd2f795-7701-424a-90ac-e7e14f66e860.aspx"&gt;Frank Solinske&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://blogs.dotnet-braunschweig.de/Lars/PermaLink,guid,0133f6d7-7c8d-4bd7-ad2a-144c36f0cff5.aspx"&gt;Lars Keller&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://blog.veloursnebel.de/PermaLink,guid,ae8d952c-07ae-460e-a5eb-0e67448d4c19.aspx"&gt;Kai Gloth&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://blogs.dotnet-braunschweig.de/Karim/PermaLink,guid,254f3b98-e748-483c-97f2-d40995c44cca.aspx"&gt;Karim El Jed&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;I met some more nice guys, who didn´t blog about this event. Nevertheless I´d like to send them my regards because we had such a good time and talks: &lt;a href="http://dawsonsgeek.net/"&gt;Andreas Hoffmann&lt;/a&gt;, Christian Schütz, &lt;a href="http://www.prodot.de/"&gt;Mischa Hüschen&lt;/a&gt;, &lt;a href="http://www.prodot.de/"&gt;Pascal Kremmers&lt;/a&gt;, Constantin Klein, &lt;a href="http://www.gnoth.net/"&gt;Marcel Gnoth&lt;/a&gt;, and &lt;a href="http://www.marcelfranke.com/"&gt;Marcel Franke&lt;/a&gt;. Sorry if I forgot one, there were so many faces new to me. When you see me next time, just stop by and treat me to a beer...&lt;/p&gt;&lt;p&gt;&lt;b&gt;Update:&lt;/b&gt; Craig uploaded a video he took in the Gaming Lounge. HP placed several laptops so we could play some tracks of NFS:Most Wanted and NSF:Carbon:&lt;br /&gt; &lt;a href="http://soapbox.msn.com/video.aspx?vid=f36786ce-8a7b-4a7e-affb-3e740d89d631" target="_new" title="NRW07 - let the games begin!"&gt;&lt;img src="http://a1596.g.akamai.net/f/1596/23830/v0001/msnuuv1.download.akamai.com/23830/thumbs/prod/76/c7/97/35f9be06-62ee-43a9-8e94-d38a5b97c776.jpg" alt="NRW07 - let the games begin!" border="0" height="84" width="112" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://thomasfreudenberg.com/aggbug.aspx?PostID=38361" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=OXpOzV1Z"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=llKjJRcC"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?i=llKjJRcC" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=U5I2Rk8e"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=2322" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=mWLUxqAX"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ThomasFreudenberg/~4/ZHARCd61G70" height="1" width="1"/&gt;</description><feedburner:origLink>http://thomasfreudenberg.com/blog/archive/2007/08/30/nrw07-follow-up.aspx</feedburner:origLink></item><item><title>ReSharper 3.0 Released</title><link>http://feeds.thomasfreudenberg.com/~r/ThomasFreudenberg/~3/TM69p-YXqfY/resharper-3-0-released.aspx</link><category>Development</category><category>Tools</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Freudenberg</dc:creator><pubDate>Thu, 21 Jun 2007 12:26:00 PDT</pubDate><guid isPermaLink="false">http://thomasfreudenberg.com/blog/archive/2007/06/22/resharper-3-0-released.aspx</guid><description>&lt;p&gt;&lt;a href="http://blogs.jetbrains.com/dotnet/2007/06/come-one-come-all-resharper-30-is-here/"&gt;JetBrains released ReSharper 3.0&lt;/a&gt;:&amp;nbsp;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;ReSharper 3.0 is finally out and itâ€™s better than ever. C#, VB.NET, XML, XAML or 
ASP.NET - we got it all for you right here!&lt;/p&gt;&lt;p&gt;You simply owe it to yourself 
to test-drive this baby and learn a whole new way to code in Visual 
Studio!&lt;/p&gt;&lt;p&gt;Get the dirty low-down on ReSharper 3.0 at &lt;a href="http://www.jetbrains.com/resharper/features/newfeatures.html"&gt;New 
Features&lt;/a&gt; or use one of the links below:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://www.jetbrains.com/resharper/features/newfeatures.html#Productivity_Enhancers"&gt;In-depth 
code analysis for C# code&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.jetbrains.com/resharper/features/newfeatures.html#vbImprovements"&gt;New 
productivity enhancers&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.jetbrains.com/resharper/features/cross-language.html"&gt;Full-featured 
Visual Basic .NET support&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.jetbrains.com/resharper/features/newfeatures.html#XML_and_XAML_Support"&gt;Cross-language 
functionality&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.jetbrains.com/resharper/features/newfeatures.html#XML_and_XAML_Support"&gt;XML 
and XAML support&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;Grab a free 30-day evaluation of ReSharper at &lt;a href="http://www.jetbrains.com/resharper/download/index.html"&gt;http://www.jetbrains.com/resharper/download/index.html&lt;/a&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;blockquote&gt;
&lt;/blockquote&gt;&lt;img src="http://thomasfreudenberg.com/aggbug.aspx?PostID=32139" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=lTsutBf5"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=pZ0TNCWV"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?i=pZ0TNCWV" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=tOFXQnpf"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=2322" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=WCahkOhz"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ThomasFreudenberg/~4/TM69p-YXqfY" height="1" width="1"/&gt;</description><feedburner:origLink>http://thomasfreudenberg.com/blog/archive/2007/06/22/resharper-3-0-released.aspx</feedburner:origLink></item><item><title>Twitter Publisher for CruiseControl.NET</title><link>http://feeds.thomasfreudenberg.com/~r/ThomasFreudenberg/~3/6-dPEkr33u4/twitter-publisher-for-cruisecontrol-net.aspx</link><category>Development</category><category>ccnet</category><category>Twitter</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Freudenberg</dc:creator><pubDate>Sun, 17 Jun 2007 11:09:00 PDT</pubDate><guid isPermaLink="false">http://thomasfreudenberg.com/blog/archive/2007/06/17/twitter-publisher-for-cruisecontrol-net.aspx</guid><description>&lt;p&gt;Some weeks ago &lt;a href="http://thomasfreudenberg.com/blog/archive/2007/04/29/blog-publisher-for-cruisecontrol-net.aspx"&gt;I posted a CC.NET&lt;/a&gt; task which pushes build results to a blog using the MetaWeblogAPI. This might be a feasable solution for projects which sources arenâ€™t updated that often. Otherwise that blog would be really cluttered, and you wonâ€™t be able to keep track of all the build results.&lt;/p&gt;
&lt;p&gt;Several month ago a new social networking site started called &lt;a href="http://twitter.com/" title="Twitter"&gt;Twitter&lt;/a&gt;. It offers a kind of micro-blogging service, allowing its users to send text-only stati, up to 140 characters long. Whenever you update your status, it is delivered instantly to other users who have put you to their â€œfriendsâ€ list. Though you can receive the updates of your friends via an RSS feed, it is more common to either use Twitterâ€™s website or a desktop client such as &lt;a href="http://www.teletwitter.com/"&gt;TeleTwitter&lt;/a&gt;. Additionally, Twitter offers a &lt;a href="http://en.wikipedia.org/wiki/RESTful"&gt;RESTful&lt;/a&gt; API.&lt;/p&gt;
&lt;p&gt;Therefore it was pretty obvious to write a CC.NET task which announces new build results on Twitter. The project manager creates a special Twitter account and configures CC.NET to post build results as updates for that user. The developers then just have to add that user to their friend list, and will get the announcements in the Twitter front-end of their choice.&lt;/p&gt;
&lt;p&gt;The &lt;a href="/files/folders/31809/download.aspx"&gt;attached ZIP file&lt;/a&gt; contains both the sources and the compiled assembly, which you have to dump into CC.NETâ€™s &lt;span style="font-style:italic;"&gt;server&lt;/span&gt; directory. The configuration of the task is pretty easy, just specify the user and the password of the Twitter account.&lt;div style="overflow-x: auto;"&gt;&lt;pre&gt;&lt;span style="color:#0000FF"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#800000"&gt;publishers&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; ...
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#0000FF"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#800000"&gt;twitter&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#0000FF"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#800000"&gt;user&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;username&lt;span style="color:#0000FF"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#800000"&gt;user&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#0000FF"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#800000"&gt;password&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;password&lt;span style="color:#0000FF"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#800000"&gt;password&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#0000FF"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#800000"&gt;twitter&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; ...
&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;
&lt;img src="http://thomasfreudenberg.com/aggbug.aspx?PostID=31811" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=es6PvWpi"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=kw6A7Q1O"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?i=kw6A7Q1O" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=SG2vRzaJ"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=2322" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=XR0egOGj"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ThomasFreudenberg/~4/6-dPEkr33u4" height="1" width="1"/&gt;</description><enclosure url="/files/folders/31809/download.aspx" length="135429" type="application/octet-stream" /><media:content url="/files/folders/31809/download.aspx" fileSize="135429" type="application/octet-stream" /><feedburner:origLink>http://thomasfreudenberg.com/blog/archive/2007/06/17/twitter-publisher-for-cruisecontrol-net.aspx</feedburner:origLink></item><item><title>CommunityServer MVPs CSModules Pack for CS2007 released</title><link>http://feeds.thomasfreudenberg.com/~r/ThomasFreudenberg/~3/2rVrfyiP55w/communityserver-mvps-csmodules-pack-for-cs2007-released.aspx</link><category>Community Server</category><category>Akismet</category><category>CSMVPs</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Freudenberg</dc:creator><pubDate>Mon, 14 May 2007 08:56:00 PDT</pubDate><guid isPermaLink="false">http://thomasfreudenberg.com/blog/archive/2007/05/14/communityserver-mvps-csmodules-pack-for-cs2007-released.aspx</guid><description>&lt;p&gt;Yesterday a new version of the CSMVPs CSModules package was released. Except the new LinkManager (which enables you to add customizable attributes to links in your posts automatically) it´s mainly a technical refresh targeting CommunityServer 2007 (SP1).&lt;/p&gt;&lt;p&gt;Read the full announcement is available on the &lt;a href="http://csmvps.com/blogs/news/archive/2007/05/13/community-server-mvps-cinnabar-csmodule-package.aspx"&gt;CS MVP site&lt;/a&gt;.&lt;/p&gt;&lt;img src="http://thomasfreudenberg.com/aggbug.aspx?PostID=29098" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=DSr9L1II"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=Qd5hkdYF"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?i=Qd5hkdYF" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=vCCqmd7t"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=2322" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=uaVppDzN"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ThomasFreudenberg/~4/2rVrfyiP55w" height="1" width="1"/&gt;</description><feedburner:origLink>http://thomasfreudenberg.com/blog/archive/2007/05/14/communityserver-mvps-csmodules-pack-for-cs2007-released.aspx</feedburner:origLink></item><item><title>Blog Publisher for CruiseControl.NET</title><link>http://feeds.thomasfreudenberg.com/~r/ThomasFreudenberg/~3/TS4DTaOazRs/blog-publisher-for-cruisecontrol-net.aspx</link><category>Development</category><category>MetaWeblogApi</category><category>ccnet</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Freudenberg</dc:creator><pubDate>Sun, 29 Apr 2007 07:47:00 PDT</pubDate><guid isPermaLink="false">http://thomasfreudenberg.com/blog/archive/2007/04/29/blog-publisher-for-cruisecontrol-net.aspx</guid><description>&lt;p&gt;Some time ago I wrote a blog publisher for &lt;a href="http://ccnet.thoughtworks.com/"&gt;CruiseControl.NET&lt;/a&gt;, but didn&amp;#39;t manage to blog about it. In fact, it totally slipped my mind. However, my machine behaves more and more weird lately, so I started to clean up the hard disks and back up all my data. So today it happened that I stumbled over my old blog publisher and finally posted it here.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Background: CruiseControl.NET (CC.NET) is a &lt;a href="http://en.wikipedia.org/wiki/continuous%20integration"&gt;continuous integration&lt;/a&gt; server for .NET. Publishers are tasks that are executed by CC.NET after a build is done, and are primarily used to report the build results, e.g. by sending emails.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;There are instructions on &lt;a href="http://confluence.public.thoughtworks.org/display/CCNET/Custom+Builder+Plug-in"&gt;how to write your own publisher&lt;/a&gt; available, so I created one which posts the build results to a blog. It stood to reason to access the blog using &lt;a href="http://en.wikipedia.org/wiki/MetaWeblog"&gt;MetaWeblog&lt;/a&gt; API. Fortunately,&amp;nbsp;&lt;a href="http://www.cookcomputing.com/blog/index.html"&gt;Charles Cook&lt;/a&gt; wrote  the &lt;a href="http://www.xml-rpc.net/"&gt;XML-RPC.NET&lt;/a&gt; library, so my publisher degenerated to a simple gateway &lt;img src="http://thomasfreudenberg.com/emoticons/emotion-5.gif" alt="Wink" /&gt;&lt;/p&gt;
&lt;p&gt;The installation is simple: just drop the assemblies from the &lt;a href="/files/folders/28234/download.aspx"&gt;ZIP file&lt;/a&gt; to the &lt;span style="font-style:italic;"&gt;server&lt;/span&gt; folder of CC.NET and restart the server. CC.NET uses a fixed naming scheme to find all extensions, that&amp;#39;s why the assembly has that weird name &lt;span style="font-style:italic;"&gt;ccnet.BlogPublisher.plugin&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;The minimal configuration just takes details required to access a particular blog:&lt;/p&gt;
&lt;p&gt;&lt;div style="overflow-x: auto;"&gt;&lt;pre&gt;&lt;span style="color:#0000FF"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#800000"&gt;publishers&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; ...
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#0000FF"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#800000"&gt;blog&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#0000FF"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#800000"&gt;url&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#800000"&gt;a&lt;/span&gt; &lt;span style="color:#FF0000"&gt;href&lt;/span&gt;=&lt;span style="color:#0000FF"&gt;&amp;quot;http://localhost/MetaWeblog&amp;quot;&lt;/span&gt; &lt;span style="color:#FF0000"&gt;class&lt;/span&gt;=&lt;span style="color:#0000FF"&gt;&amp;quot;linkification-ext&amp;quot;&lt;/span&gt; &lt;span style="color:#FF0000"&gt;title&lt;/span&gt;=&lt;span style="color:#0000FF"&gt;&amp;quot;Linkification: http://localhost/MetaWeblog&amp;quot;&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;http://localhost/MetaWeblog&lt;span style="color:#0000FF"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#800000"&gt;a&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt; url&lt;span style="color:#0000FF"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#800000"&gt;url&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#0000FF"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#800000"&gt;blog&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;blog&lt;span style="color:#0000FF"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#800000"&gt;blog&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#0000FF"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#800000"&gt;username&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;username&lt;span style="color:#0000FF"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#800000"&gt;username&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#0000FF"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#800000"&gt;password&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;password&lt;span style="color:#0000FF"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#800000"&gt;password&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#0000FF"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#800000"&gt;blog&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;With this configuration the publisher uses the default XSL files to transform the build results before posting them. But if you want to change the content of the blog post, you can specify which XSL files sould be used. Additionally you can specify categories for the post:&lt;/p&gt;
&lt;p&gt;&lt;div style="overflow-x: auto;"&gt;&lt;pre&gt;&lt;span style="color:#0000FF"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#800000"&gt;publishers&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;...
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span style="color:#0000FF"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#800000"&gt;blog&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span style="color:#0000FF"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#800000"&gt;url&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#800000"&gt;a&lt;/span&gt; &lt;span style="color:#FF0000"&gt;href&lt;/span&gt;=&lt;span style="color:#0000FF"&gt;&amp;quot;http://localhost/MetaWeblog&amp;quot;&lt;/span&gt; &lt;span style="color:#FF0000"&gt;class&lt;/span&gt;=&lt;span style="color:#0000FF"&gt;&amp;quot;linkification-ext&amp;quot;&lt;/span&gt; &lt;span style="color:#FF0000"&gt;title&lt;/span&gt;=&lt;span style="color:#0000FF"&gt;&amp;quot;Linkification: http://localhost/MetaWeblog&amp;quot;&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;http://localhost/MetaWeblog&lt;span style="color:#0000FF"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#800000"&gt;a&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt; url&lt;span style="color:#0000FF"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#800000"&gt;url&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span style="color:#0000FF"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#800000"&gt;blog&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;blog&lt;span style="color:#0000FF"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#800000"&gt;blog&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span style="color:#0000FF"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#800000"&gt;username&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;username&lt;span style="color:#0000FF"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#800000"&gt;username&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span style="color:#0000FF"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#800000"&gt;password&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;password&lt;span style="color:#0000FF"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#800000"&gt;password&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span style="color:#0000FF"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#800000"&gt;categories&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span style="color:#0000FF"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#800000"&gt;category&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;category 1&lt;span style="color:#0000FF"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#800000"&gt;category&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span style="color:#0000FF"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#800000"&gt;category&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;category 2&lt;span style="color:#0000FF"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#800000"&gt;category&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span style="color:#0000FF"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#800000"&gt;categories&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span style="color:#0000FF"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#800000"&gt;xslFiles&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span style="color:#0000FF"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#800000"&gt;xslFile&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;xsl\header.xsl&lt;span style="color:#0000FF"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#800000"&gt;xslFile&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span style="color:#0000FF"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#800000"&gt;xslFile&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;xsl\modifications.xsl&lt;span style="color:#0000FF"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#800000"&gt;xslFile&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span style="color:#0000FF"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#800000"&gt;xslFile&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;xsl\msbuild2ccnet.xsl&lt;span style="color:#0000FF"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#800000"&gt;xslFile&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span style="color:#0000FF"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#800000"&gt;xslFiles&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span style="color:#0000FF"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#800000"&gt;blog&lt;/span&gt;&lt;span style="color:#0000FF"&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;The assembly is built with .NET 2.0, but it shouldn&amp;#39;t be too difficult to change that. I even put the .NET 1.1 version of XML-RPC.NET into the ZIP file.&lt;br /&gt;&lt;/p&gt;
&lt;img src="http://thomasfreudenberg.com/aggbug.aspx?PostID=28236" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=V8WAu0Fh"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=Ft0Ss26I"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?i=Ft0Ss26I" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=940lQrGm"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=2322" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=HJiOLa7V"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ThomasFreudenberg/~4/TS4DTaOazRs" height="1" width="1"/&gt;</description><enclosure url="/files/folders/28234/download.aspx" length="262717" type="application/octet-stream" /><media:content url="/files/folders/28234/download.aspx" fileSize="262717" type="application/octet-stream" /><feedburner:origLink>http://thomasfreudenberg.com/blog/archive/2007/04/29/blog-publisher-for-cruisecontrol-net.aspx</feedburner:origLink></item><item><title>CAPTCHA for CommunityServer 2007</title><link>http://feeds.thomasfreudenberg.com/~r/ThomasFreudenberg/~3/j4nQAZU4tME/captcha-for-communityserver-2007.aspx</link><category>Site news</category><category>Community Server</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Freudenberg</dc:creator><pubDate>Sun, 29 Apr 2007 06:50:00 PDT</pubDate><guid isPermaLink="false">http://thomasfreudenberg.com/blog/archive/2007/04/29/captcha-for-communityserver-2007.aspx</guid><description>&lt;p&gt;Brendan Tompkins released &lt;a href="http://codebetter.com/blogs/brendan.tompkins/archive/2007/04/27/captcha-for-community-server-2007.aspx"&gt;CAPTCHA for CommunityServer 2007&lt;/a&gt;:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;I&amp;#39;m happy to announce that CodeBetter.Com is carrying on the legacy of CAPTCHA 
for &lt;a href="http://codebetter.com/controlpanel/blogs/www.communityserver.org"&gt;Community 
Server&lt;/a&gt;.&amp;nbsp; CAPTCHA for CS2007 is the next generation of &lt;a href="http://codebetter.com/controlpanel/blogs/www.dbvt.com"&gt;CS Guru Dave 
Burke&amp;#39;s&lt;/a&gt; most excellent &lt;a href="http://dbvt.com/files/folders/addons/entry5198.aspx"&gt;CAPTCHA control for 
Community Server 2.1&lt;/a&gt;.&amp;nbsp; &lt;a href="http://weblogs.asp.net/scottgu/archive/2005/12/21/asp-net-2-0-control-adapter-architecture.aspx"&gt;This 
version is implemented as a Control Adapter&lt;/a&gt; which allows CAPTCHA to be added 
to Community Server site-wide without touching any ASPX or ASCX markup code.&lt;/p&gt;&lt;a href="http://codebetter.com/files/folders/community_server_add-ons/entry162534.aspx"&gt;You 
can get the dll and source code here.&lt;/a&gt;&lt;/blockquote&gt;&lt;p&gt;The installation is pretty easy since Brendan leverages the same technique as I did for my &lt;a href="http://thomasfreudenberg.com/blog/archive/2007/04/24/cocomment-for-cs-2007-updated.aspx"&gt;CS2007 coComment support&lt;/a&gt;: by using ControlAdapters not a single page or control must be touched.&lt;/p&gt;&lt;p&gt;In the past I always hesitated to use &lt;a href="http://en.wikipedia.org/wiki/CAPTCHA"&gt;CAPTCHA&lt;/a&gt; on my blog because it´s an additional obstacle a commenter must overcome. Adding this hurdle seemed like a capitulation. But because spam has taken the upper hand over all comments I get, and CAPTCHAs are commonly used everywhere so the regular visitor is used to them, I´ll give it try and add Brendan´s CAPTCHA to my blog.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://thomasfreudenberg.com/aggbug.aspx?PostID=28232" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=VyIYW4Xz"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=TY58eX4O"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?i=TY58eX4O" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=8HHmt0j0"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=2322" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=v0woOemf"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ThomasFreudenberg/~4/j4nQAZU4tME" height="1" width="1"/&gt;</description><feedburner:origLink>http://thomasfreudenberg.com/blog/archive/2007/04/29/captcha-for-communityserver-2007.aspx</feedburner:origLink></item><item><title>nrw07 - Solution.Technology.Community</title><link>http://feeds.thomasfreudenberg.com/~r/ThomasFreudenberg/~3/9Lg4V8mQoeM/nrw07-solution-technology-community.aspx</link><category>User Group</category><category>Community</category><category>nrw07</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Freudenberg</dc:creator><pubDate>Sat, 28 Apr 2007 02:20:00 PDT</pubDate><guid isPermaLink="false">http://thomasfreudenberg.com/blog/archive/2007/04/28/nrw07-solution-technology-community.aspx</guid><description>&lt;p&gt;&lt;a href="http://nrw07.de/" title="nrw07"&gt;&lt;img src="http://nrw07.de/images/dabeirmini.png" title="nrw07" alt="nrw07" align="left" border="0" height="100" hspace="8" width="100" /&gt;&lt;/a&gt;Mark August 24th 2007 in your calendar. On that date we (&lt;a href="http://justcommunity.de/"&gt;Just Community e.V.&lt;/a&gt;) stage &lt;a href="http://nrw07.de" style="font-weight:bold;"&gt;nrw07&lt;/a&gt;, the largest community event 2007 in North Rhine-Westphalia.&lt;/p&gt;&lt;p&gt;This year it will take place in &lt;a href="http://www.dieboerse-wtal.de/"&gt;Die Börse&lt;/a&gt; in Wuppertal.&lt;/p&gt;&lt;p&gt;List of Speaker and agenda are not finished yet, but we&amp;#39;ll promise it will be a top-class conference.&lt;/p&gt;&lt;p&gt;Don&amp;#39;t miss it!&amp;nbsp;&lt;/p&gt;&lt;img src="http://thomasfreudenberg.com/aggbug.aspx?PostID=28203" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=oBHZvMTi"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=RSw2F5fc"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?i=RSw2F5fc" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=5EzY6NCf"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=2322" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=GxmVM733"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ThomasFreudenberg/~4/9Lg4V8mQoeM" height="1" width="1"/&gt;</description><feedburner:origLink>http://thomasfreudenberg.com/blog/archive/2007/04/28/nrw07-solution-technology-community.aspx</feedburner:origLink></item><item><title>coComment for CS 2007 updated</title><link>http://feeds.thomasfreudenberg.com/~r/ThomasFreudenberg/~3/DoVLhRFJsZ0/cocomment-for-cs-2007-updated.aspx</link><category>Community Server</category><category>coComment</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Freudenberg</dc:creator><pubDate>Tue, 24 Apr 2007 10:09:00 PDT</pubDate><guid isPermaLink="false">http://thomasfreudenberg.com/blog/archive/2007/04/24/cocomment-for-cs-2007-updated.aspx</guid><description>&lt;p&gt;Every day you can learn something new. Today it was &lt;a href="http://scottwater.com/" rel="acquaintance"&gt;Scott&lt;/a&gt; who taught me &lt;a href="http://weblogs.asp.net/scottgu/archive/2005/12/21/433692.aspx"&gt;ControlAdapter&lt;/a&gt;s after he read my post about &lt;a href="http://thomasfreudenberg.com/blog/archive/2007/04/23/cocomment-support-for-cs-2007.aspx"&gt;coComment with CommunityServer 2007&lt;/a&gt;. You know, ControlAdapters are not only good for tweaking CSS.&lt;/p&gt;
&lt;p&gt;My original solution was a replacement for the WeblogPostCommentForm, i.e. for every blog theme you had to edit its &lt;i&gt;post.aspx&lt;/i&gt;, register my new control and replace the original control.&lt;/p&gt;
&lt;p&gt;ControlAdapters however give you the power to inject your code into any desired existing control. In a central file you specify which controls you want to customize, and that&amp;#39;s it. No editing of any pages or controls is required.&lt;/p&gt;
&lt;p&gt;So I took the chance and transformed my custom comment form into a ControlAdapter. In fact, it&amp;#39;s as easy as writing a control. Here&amp;#39;s the simplified code, just in case you&amp;#39;re interested:&lt;br /&gt;&lt;div style="overflow-x: auto;"&gt;&lt;pre&gt;&lt;span style="color:#0000FF"&gt;public&lt;/span&gt; &lt;span style="color:#0000FF"&gt;class&lt;/span&gt; WeblogPostCommentFormAdapter : ControlAdapter
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#0000FF"&gt;protected&lt;/span&gt; &lt;span style="color:#0000FF"&gt;override&lt;/span&gt; &lt;span style="color:#0000FF"&gt;void&lt;/span&gt; OnPreRender(EventArgs e)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#0000FF"&gt;base&lt;/span&gt;.OnPreRender(e);

&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; WeblogPostCommentForm commentForm = &lt;span style="color:#0000FF"&gt;base&lt;/span&gt;.Control &lt;span style="color:#0000FF"&gt;as&lt;/span&gt; WeblogPostCommentForm;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#0000FF"&gt;if&lt;/span&gt; (commentForm != &lt;span style="color:#0000FF"&gt;null&lt;/span&gt;)
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#0000FF"&gt;string&lt;/span&gt; coCommentScript = GetCoCommentScript(commentForm);
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#0000FF"&gt;if&lt;/span&gt; (!String.IsNullOrEmpty(coCommentScript))
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; CSControlUtility.Instance().RegisterStartupScript(&lt;span style="color:#0000FF"&gt;base&lt;/span&gt;.Control, 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#0000FF"&gt;typeof&lt;/span&gt; (WeblogPostCommentForm), &amp;quot;&lt;span style="color:#8B0000"&gt;cocomment&lt;/span&gt;&amp;quot;, coCommentScript, &lt;span style="color:#0000FF"&gt;false&lt;/span&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#0000FF"&gt;private&lt;/span&gt; &lt;span style="color:#0000FF"&gt;static&lt;/span&gt; &lt;span style="color:#0000FF"&gt;string&lt;/span&gt; GetCoCommentScript(WeblogPostCommentForm commentForm)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#008000"&gt;// just boring stuff which creates the javascript code to make coComment happy&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}
&lt;/pre&gt;&lt;/div&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Just drop the attached assembly to your &lt;span style="font-style:italic;"&gt;~/bin&lt;/span&gt; folder and add following line to the &lt;span style="font-style:italic;"&gt;controlAdapters&lt;/span&gt; section in &lt;span style="font-style:italic;"&gt;~/App_Browsers/default.browser&lt;/span&gt;:&lt;div style="overflow-x: auto;"&gt;&lt;pre&gt;&lt;span style="color:#0000FF"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#800000"&gt;adapter&lt;/span&gt; &lt;span style="color:#FF0000"&gt;controlType&lt;/span&gt;=&lt;span style="color:#0000FF"&gt;&amp;quot;CommunityServer.Blogs.Controls.WeblogPostCommentForm&amp;quot;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#FF0000"&gt;adapterType&lt;/span&gt;=&lt;span style="color:#0000FF"&gt;&amp;quot;ThomasFreudenberg.CS2007.WeblogPostCommentFormAdapter, ThomasFreudenberg.CS2007&amp;quot;&lt;/span&gt; &lt;span style="color:#0000FF"&gt;/&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;That&amp;#39;s all, without further editing of any files&lt;sup&gt;1&lt;/sup&gt; coComment support is enabled for all blog themes automagically.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;sup&gt;1&lt;/sup&gt; unless of course if you&amp;#39;re already using the assembly I published yesterday; in this case revert all changes done to your &lt;span style="font-style:italic;"&gt;post.aspx&lt;/span&gt;&amp;#39;&lt;/p&gt;
&lt;img src="http://thomasfreudenberg.com/aggbug.aspx?PostID=28125" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=gcRadUKX"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=mUpUXeE1"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?i=mUpUXeE1" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=PGius5CO"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=2322" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.thomasfreudenberg.com/~f/ThomasFreudenberg?a=v5ZnvCgy"&gt;&lt;img src="http://feeds.feedburner.com/~f/ThomasFreudenberg?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ThomasFreudenberg/~4/DoVLhRFJsZ0" height="1" width="1"/&gt;</description><enclosure url="http://thomasfreudenberg.com/blog/attachment/28125.ashx" length="303104" type="application/x-msdownload" /><media:content url="http://thomasfreudenberg.com/blog/attachment/28125.ashx" fileSize="303104" type="application/x-msdownload" /><feedburner:origLink>http://thomasfreudenberg.com/blog/archive/2007/04/24/cocomment-for-cs-2007-updated.aspx</feedburner:origLink></item><media:credit role="author">Thomas Freudenberg</media:credit><media:rating>nonadult</media:rating></channel></rss>
