Code Metrics in Visual Studio 2008 and the EvNet project

I don’t know if this is good or bad, but I thought it was neat that I could right-click the main project (excluding all our client script and HTML) that runs behind, pick code metrics and see cool #s like “23,442 lines of code” 🙂


Lately though, I’ve seen us reducing that number while adding features, so this might the highest result I’ll ever see for this project 🙂

The Viewport Meta Tag and the iPhone

I’ve been fiddling around with mobile interfaces for both my personal site and for the various sites I work on (,, amongst others) and I noticed the use of <meta name=”viewport” content… /> on some other mobile sites. A quick search and I found a great discussion of the viewport meta tag on (the apple developer site provides the same info in a more reference format). Turns out this simple meta tag helps Mobile Safari determine how best to scale your site for the smaller screen of the iPhone (relative to a desktop that is). I don’t have an iPhone, or an iPod touch for that matter (I gather the experience would be similar… if you don’t want to get a full blown cell account I’d suggest the ‘touch’ for testing purposes), although I found a great testing site for the iPhone (best viewed with Safari 3.0 on your desktop). Personalities answer a bunch of holiday questions

Trixie had all of us column writing folks answer a bunch of holiday themed questions recently, and I noticed tonight that the answers are all up on the site! Check out some interesting Q&A with Trixie, Major Nelson and others (including me, Xbox Dad). Personalities at the Holidays

We asked the personalities to share some information on their holiday favorites. What did we learn? Egg nog, “A Christmas Story,” and Dean Martin pwn. Plus Major Nelson is a Grinch.

Search Engine Optimization Tweaks over the long weekend

My team builds a fair number of community sites including Channel 8 (for Students), TechNet Edge (for IT Pros), Channel 10 (for enthusiasts, power users and gamers), Mix Online (for web developers and designers) and the original site… Channel 9 (aimed mostly at developers) … and we’ve recently starting putting out sites on a new code base. One of the changes in that new code base was a move to an AJAX style interface for viewing lists of posts on the page. We like the way this works for paging through lists of entries, comments, etc… but we have known from the beginning that it was going to cause us some trouble in the world of search engines and other crawlers. Without JavaScript, there was very little being output onto the page, and what was there was mostly navigational chrome. Taking a look at Google’s cache of TechNet Edge from a few days ago gives this:

not much to see without script

Checking how your page appears in the cache of Google or Live is one way to check how you appear to crawlers, but it doesn’t work great when you are making changes or running in development. One handy way is to check your site using Lynx, like Joshua mentions in this post on Mix Online.

The content on the site was ending up in the index of search engines anyway, through the virtue of RSS feeds and incoming links… but the value of your site to crawlers is going to be much lower than it should be if they don’t see any content when they visit. As I said earlier… we always knew this would be a problem, but I guess we just didn’t get around to fixing it before pushing out a full three sites using AJAX based paging. Last week I had a meeting with a SEO consultant and they pointed out the exact issue I’ve been describing. Well… given a long weekend… and no interest in working on my actual planned tasks… I decided to implement two features to help how our sites appear to crawlers.

First, I added some code that swaps out our fancy Ajax entry list with a simple ASP.NET repeater if the browser doesn’t appear to be one that is supported by Microsoft Atlas, making our site usable to other browsers (Atlas supports the bulk of users, but not all) and also making our content visible to a crawler. So far, I only output the first page of any given entry list, but that makes the results go from blank to this:

current cached version from

Next, I added an XML sitemap, following the specs from, by outputting a sitemap index at http://<site>/sitemapindex.ashx and then outputting a series of sitemaps (by page #) from http://<site>/sitemap.ashx?page=<number> (see Mix’s sitemap index, and sitemap as an example). Finally, I put a link to the sitemap index into the robots.txt file for each site.

Between the two, I’m hoping our content will get indexed better by a variety of search engines, resulting in more people finding us when searching for relevant topics. These changes also help to make us a little bit more usable to some users, but that is another area where we need to do a lot more work. If these changes improve our accessibility that’s great, but I’d hate to even suggest that they get us anywhere near our goals in that area.

Picked up Mass Effect today… built XML site maps instead of playing it :(

I’m very excited about it… really! I just got distracted on and ended up building a site map for this site… real brute force, just grabbed all the blog entries and tags and output the appropriate absolute paths into some objects that I then wrote out into an XML document. Same method wouldn’t work on Channel 9 though, it has too many entries, so I’ll need to move to a site map index with multiple sub site maps… now I just have to figure out how to divide the entries up (by tag, by type of content, by date?).

Ice Cube talking about Silverlight…

and the Group Manager of Platform Evangelism at Adobe feels the need to comment about it.

Let me summarize. Ice Cube is involved in an Internet video project and has chosen to use Silverlight, and you can watch an interview with him about it in Silverlight. (on a side note, I decided not to include the video into my post, even though the instructions to do so are right there in the original blog entry, because it is set to auto-start when someone visits the page and I think that is just downright rude 🙂 )

The post is interesting, the video is interesting… but what is really interesting is the fun going on in the comments on that blog entry, including comments from Mike Downey of Adobe and Scott Barnes of Microsoft… fun stuff. The old ‘if you have nothing nice to say…’ rule probably should have been applied for both of them.


found via Mix Online

More Xbox Dad articles, Viva Piñata Party Animals and Xbox Live

I’ve obviously been busy, I never even posted a link to these articles here… I’ve written two new Xbox Dad article in the past few weeks, one all about Xbox Live (to coincide with the Xbox Live is Five event going on) and one that I wrote this week about Viva Piñata Party Animals.

Viva Piñata Party is a great game, the ‘party’ nature of it means that it is quick to get started, even for non-gamers, and the quick little matches means that you can pick it up and play even if you only have a little bit of time available.

New Xbox Dad column: My take on the Bee Movie Game

If you or your kids are all excited about the upcoming Bee Movie with Jerry Seinfeld, then you should definitely check out my latest article on Along with the movie, an Xbox 360 game is also on its way…. and a demo is already up on the Xbox Live Marketplace. Not the most representative demo (more on that in the article!), but still fun and the game promises even more.