Virtual PC 2007 released

myvirtualmachines Environment variable

Earlier today Microsoft released Virtual PC 2007. Generally this wouldn't be worthwhile to be mentioned on my blog. However, I'll write this nevertheless because whenever I install Virtual PC, I want to customize the path where the files for the virtual machines are stored, and each time I have look up the information how to accomplish that.

By default, Virtual PC's setup creates a My Virtual Machines folder in My Documents. Though the primary HDD of my machine is a 10.000 RMP beast, I have two additional 10.000s combined to a RAID0, and that's a perfect host for my virtual machines.

Luckily, you are able to customize where Virtual PC stores that files. You only have to specify your desired path in an environment variable named myvirtualmachines.

Though it's even documented in a knowledge base article, I know my blog better than the knowledge base so I post it here [;)]

FeedBurner Site Statistics for CommunityServer

Today Nick Bradbury wrote:

The statistics packages offered by most popular blogging services are either limited or non-existent, leaving many bloggers struggling to get good information on traffic to their blog.  Those of us who use FeedBurner have long had good feed-related statistics, but we've had to rely on other services to get information on blog traffic.

In my case, I've been using Google Analytics for blog stats, and while it's a good service I've found it awkward to have my feed stats and blog stats in different places.  So when I was offered an early look at FeedBurner's site statistics service (announced earlier today), I jumped at the chance.

I've been using FeedBurner's site stats for several days now, and overall they've done a great job of providing a lot of information in a very friendly way.  Now in addition to seeing information about my feed subscribers, I can also see things like:

  • Which searches lead people to my blog
  • Which external links are bringing visitors to my blog
  • Which pages are being viewed the most
  • What browsers, operating systems and screen resolutions my visitors are using

In other words, I can see the sort of information you'd expect from a site statistics service, except that it's integrated with my feed stats.

I share the same history, been using Google Analytics and FeedBurner's Feed Stats for several month. Though Analytics is a nice service, it's mainly targeted at marketing. Too much for me simple guy, how only wants to know if the number of his readers becomes two-digit.

However, as Nick said FeedBurner announced their site statistic service, based on the acquired Blogbeat. I set it up for my blog two hours ago, and I already like it. Though not as sophisticated as Google Analytics, its interface is much cleaner and more appropriate for my simple needs.

But how do I come into play? Well, I was promoted a CommunityServer MVP more than two month ago, and since then I never gave back anything to the community.

Till now.

In the simplest case you only have to insert one line of HTML code to the page displaying your blog posts. However, since FeedBurner Site Stats can track your entire site, I developed a more generic implementation for CommunityServer:

  • You only have to change one file (at least one per blog theme)
  • It distinguishes blog posts from other pages automatically
  • It disables tracking if you are an owner of a particular blog
  • last but not least enable site stats only if the blog uses FeedBurner Feed stats, i.e. FeedBurner is configured as the External Feed URL

Anyway, here are the instructions. For each theme you have to make following changes in LayoutTemplate.ascx:

Add these two lines right after the <%@ Register directives at the top:

<%@ Import Namespace="CommunityServer.Components" %>
<%@ Import Namespace="CommunityServer.Blogs.Components" %>

Add following block right before the closing </body> tag:

<% CSContext context = CSContext.Current; %>
<% Weblog currentBlog = Weblogs.GetWeblog(context.ApplicationKey); %>
<% if (!Globals.IsNullorEmpty(currentBlog.ExternalFeedUrl) && currentBlog.ExternalFeedUrl.StartsWith("")) { %>
<% if (!context.IsAuthenticated || !Permissions.ValidatePermissions(currentBlog, Permission.Post, context.User)) { %>
<%     string feedBurnerAccount = currentBlog.ExternalFeedUrl.Substring("".Length); %>
<%     BlogThreadQuery query = new BlogThreadQuery(); %>
<%     query.PostID = context.PostID; %>
<%     if (context.PostName != null) { %>
<%     query.PostName = context.PostName; %>
<%     } %>
<%     query.IncludeCategories = false; %>
<%     query.ReturnFullThread = false; %>
<%     query.SectionID = currentBlog.SectionID; %>
<%     PostSet postSet = WeblogPosts.GetPosts(query, true); %>
<%     WeblogPost blogPost = postSet.ThreadStarter as WeblogPost; %>
<%     if (blogPost != null) { %>
<script src="<%= feedBurnerAccount %>?i=<%= Globals.FullPath(BlogUrls.Instance().Post(blogPost)) %>" type="text/javascript" charset="utf-8"></script>
<%     } else { %>
<script src="<%= feedBurnerAccount %>" type="text/javascript" charset="utf-8"></script>
<%     } %>
<%   } %>
<% } %>

That's all.

Back from Mexico

Vacation, Mexico Comments

Faster than expected, my trip to Mexico is over. The fourteen days passed in an instant. I selected Mexico as my destination, since I wanted to escape the cold December in Europe. Indeed the first few days were predominantly hot and sunny, but in the second week the rain outweighed. They said that this is not the usual whether in Mexico in December, but that did not help much.

Nevertheless I enjoyed my stay a lot. I undertook several Trips to Maya places (e.g. Chichen Itza, and I snorkeled at the reef (BTW the second largest reef worldwide after the Great Barrier Reef) and in cenotes. I got to know lots of people, mainly Italians and Americans. Amazing how many Americans go to Mexico for marrying.

Now I'm back in Germany for three days, and finally the jet lag is gone. The inbox is cleaned, and now I going to check what happened in the CommunityServer community while I was away.

Gosh, I think I need some vacation already.