Revised coComment support

Yesterday Jayson Knight described how to add coComment support to CommunityServer. I'm a user of coComment too, therefore I added Jayson's hack to my blog.

However, I don't like how the URL to the blog post is rendered (it's the rewritten URL, not the friendly one), so I decided to fix that. Furthermore, his solution does not work if you're logged in in CommunityServer, because in this case there's no field for the comment author's name. No offense, Jayson, since you admitting that your implemention is only a quick hack ūüėČ

Anyway, here's what I came up with:

<%@ Import Namespace="CommunityServer.Components" %>
<%@ Import Namespace="CommunityServer.Blogs.Components" %>
<% WeblogPost currentPost = WeblogPosts.GetWeblogEntry(CSContext.Current.BlogGroupID, CSContext.Current.PostID); %>
<% bool isAuthor = CSContext.Current.IsAuthenticated && CSContext.Current.User.UserID == currentPost.AuthorID; %>
<script type="text/javascript">
    var blogTool                = "<%=SiteStatistics.CommunityServerVersionVersionInfo %>";
    var blogURL                 = "<%=Globals.FullPath(currentPost.Weblog.HomePage) %>";
    var blogTitle               = "<%=currentPost.Weblog.Name %>";
    var postURL                 = "<%=Globals.FullPath(BlogUrls.Instance().Post(currentPost)) %>";
    var postTitle               = "<%=currentPost.Subject %>";
    var commentAuthorLoggedIn   = <%=Convert.ToString(isAuthor).ToLower() %>;
<% if (isAuthor) { %>
    var commentAuthor           = "<%=CSContext.Current.User.DisplayName %>";
<% } else{ %>
    var commentAuthorFieldName  = "<%=tbName.UniqueID %>";
<% } %>
    var commentFormName         = "__aspnetForm";
    var commentTextFieldName    = "<%=tbComment.UniqueID %>";
    var commentButtonName       = "<%=btnSubmit.UniqueID %>";
</script>

Update: There were two bugs: the value for commentAuthorLoggedIn was quoted and must be lower cased, and commentButtonID must be commentButtonName. I updated the script above.

My Tool List

Software, Tools Comments

At the last meeting of our UserGroup I've presented a list of tools I'm using frequently. Because of strong demand I promised to publish it here on my blog:

General Tools and System Tweaking

TweakUI
This PowerToy gives you access to system settings that are not exposed in the Windows XP default user interface, including mouse settings, Explorer settings, taskbar settings, and more.

ClearType Tuner PowerToy
This PowerToy lets you use ClearType technology to make it easier to read text on your screen, and installs in the Control Panel for easy access.

TaskSwitchXP
is a replacement for the standard Windows Alt-Tab switcher, which adds visual styles to the dialog and offers a thumbnail preview. It can also minimize applications to the taskbar notification area by right-clicking their minimize button.

LClock
An enhanced clock for the taskbar notification area.

MSN Toolbar Suite
No need to describe this, right?

NotePad2
A nifty lightweight notepad replacement.

4NT
A powerful command line processor.

Synergy
Allows you to share a single mouse and keyboard between multiple computers. I use to control both my desktop and my laptop with the devices attached to the desktop. It even synchronizes the clipboard.

SpamBayes
An anti-spam Outlook add-in using a Bayesian filter.

Plaxo
Synchronizes my contacts and appointments between my work and my home machines.

ClipPath
A little shell extension which copies the selected files path to the clipboard. One of those little tools which value you don't appreciate until you need it.

FolderShare
Synchronizes files between multiple computers. Bought by Microsoft last year

Developer's Friends

SysInternals' Tools
DebugView, Process Explorer, PsTools,FileMon, and RegMon.

Dependancy Walker
Scans any Win32 module and builds a hierarchical tree diagram of all dependent modules.

psubst
Similar to subst, but persistent, i.e. the substitutions are kept after reboots.

WinCvs and TortoiseCVS
The former is a stand-alone GUI client for CVS, while the latter is a shell extension.

BeyondCompare
A powerful file and folder comparison utility.

ReSharper
A refactoring add-in for Visual Studio, which also supports enhanced highlighting (including errors and warnings), intellisense, and much more.

TestDriven.NET
An unit testing add-in for Visual Studio.

Reflector
A .NET class browser.

GhostDoc
An add-in for Visual Studio automating the creation of XML documentation comments.

That's it for today. I bet the real list of tools on my machine is more than two times as long as the list above, so perhaps I'll update this post later... at least I've planned so.

Cyber Squatters - Part 2

Site news Comments

I wrote two weeks ago that a cyber squatter registered my domain thomasfreudenberg.com. I've contacted her, and I want to share the exchanged mails with you:

Dear Sir or Madam,

I'm writing to you because you have registered the domain name thomasfreudenberg.com.

I'm the former registrant of this domain, but my registrar failed to renew it for me, so it expired at the end of last October. I now wanted another registrar to register my domain, but they told me that someone else already registered it.

Therefore I want to ask you for your intention of registering that domain. As far as I can see you have no relation to this name, and visiting http://thomasfreudenberg.com showed me that you use this domain only to transfer the visitor to another site (gogogo.com). Because I don't see your interest in the particular domain name thomasfreudenberg.com I kindly ask you to transfer the domain back to me.

Best regards,
Thomas Freudenberg

Please visit the FAQ page regarding domain names http://www.mainstreamemail.com/faq.html .

Thank you,
Shelly

Dear Shelly,

thanks for your quick reply, even if it was rather short. Do I understand your FAQ correctly that you demand at least $1000 for the domain name thomasfreudenberg.com?!?

Regards,
Thomas Freudenberg

The mimium offer that we will consider is $1000.00.

Hi Shelly,

in this case I'm not interested, and I doubt anyone else is.

However, do you know the Uniform Domain Name Dispute Resolution Policy (UDRP)? In paragraph 4(b)(i) it says:
[... the following circumstances ... shall be evidence of the registration and use of a domain name in bad faith] circumstances indicating that you have registered or you have acquired the domain name primarily for the purpose of selling, renting, or otherwise transferring the domain name registration to the complainant who is the owner of the trademark or service mark or to a competitor of that complainant, for valuable consideration in excess of your documented out-of-pocket costs directly related to the domain name.
Since you're demanding $1000 for the domain name this evidence is produced, so I'm considering filing a case at WIPO.

Regards,
Thomas Freudenberg

Hi Thomas,

We would like to recoup the $60.00 US Dollars that was spent acquiring the domain. We accept money orders or a certified check. Please let me know if you are interested.

Thank you,
Shelly

This conversation happened about two weeks ago. Since a couple of hours I'm the owner of thomasfreudenberg.com again. (Jayson already noticed )

One final question remains: which of the two domains thomasfreudenberg.com and thomas-freudenberg.com should I keep up with?