Recently I was having a heck of a time figuring out why I couldn't connect to my work machine through VPN to the console.  I could in the past, but for some reason could not anymore.  I tried a variety of settings, both on my home machine and my work machine to no avail.  Finally, after searching the web, I found that if you have Windows XP SP3 installed, the /console command doesn't work anymore.  After I read that I realized that I did indeed update my home machine (its a Virtual PC) to SP3.  With SP3 you must use /admin instead of /console.  I guess I'm not mad about the change, but what really annoys me is that the new command has no compatibility with the old command.  It simply leaves you dead in the water.  They just removed the /console parameter and removed it from the documentation also.  So the command I use now is:

mstsc /v:machinename /admin /f

I hope this saves someone the frustration I had until I found out the new paramter name.

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
I finally set aside some time to finish my conversion from Community Server 2007 over to BlogEngine.NET 1.4.  The main problem I was having was getting my old posts/comments/categories/etc out of CS2007 and into BE.NET.  The built-in export tool wasn't working and would fail with several hard to decipher errors.  I even tried using the BlogML tool to export all of my data and that wasn't working either (thanks Keyvan Nayyeri for trying to help!).  Just by chance, I was reading Dave Burke's blog and noticed that he just finished his conversion from CS2007 to BE.NET.  I sent him an email asking how he was able to get all of his data out of CS2007 and he told he did it manually via SQL.  He was even kind enough to send me some of the queries he used and it worked!

The first thing you have to do is add a new column to the be_Posts table that allows you to link posts to post comments:

ALTER TABLE be_Posts ADD csPostID int null

Next, we copy over the posts:

INSERT INTO be_Posts

    (PostID, Title, PostContent, DateCreated, DateModified, Author, IsPublished, cspostID)

SELECT

    NEWID(),

    subject,

    body,

    postdate,

    postdate,

    'drohm',

    1,

    postID

FROM

    SQL2005_347492_dougrohm.dbo.cs_Posts

WHERE

    sectionID = 3 AND

    postlevel = 1


You'll need to change 'drohm' to the name of your blog in CS2007.  The section id for my blog in CS2007 is '3'.  This most likely is different for you and you'll need to get that value and enter it here.  Also, change 'SQL2005_347492_dougrohm' to whatever the name of your CS2007 database is named.

Next, we can migrate over post comments:

INSERT INTO be_PostComment

    (postID, CommentDate, author, email, website, comment, isapproved)

SELECT

    b.postid,

    c.postdate,

    (SQL2005_347492_dougrohm.dbo.FetchExtendendAttributeValue('SubmittedUserName', c.PropertyNames, c.PropertyValues)),

    'doug@dougrohm.com',

    (SQL2005_347492_dougrohm.dbo.FetchExtendendAttributeValue('TitleUrl', c.PropertyNames, c.PropertyValues)),

    c.body,

    1

FROM

    be_posts b INNER JOIN SQL2005_347492_dougrohm.dbo.cs_posts c

ON

    b.csPostID = c.parentID

WHERE

    c.sectionid = 3 AND

    c.postlevel = 2 AND

    c.posttype = 1 AND

    c.applicationposttype <> 8


Trackbacks are not being migrated here so if you want to capture that information you'll need to update this query.  Also, you'll need the FetchExtendedAttribute SQL function to extract the comment author and website info.  You can find that great tool here.  One other note, I'm using my email address for the email field.  On my CS2007 blog I didn't allow users to register.  If you want to migrate this information, you'll need to modify that here as well.

I then update the author field for any comments that don't have a value for the name:

UPDATE

    be_PostComment

SET

    author = 'Douglas Rohm'

WHERE

    author is null


The last step is to migrate over categories:

ALTER TABLE be_Categories ADD csCategoryID int null

 

INSERT INTO be_Categories

    (categoryname, csCategoryID) select [name], categoryID

FROM

    SQL2005_347492_dougrohm.dbo.cs_post_categories c

WHERE

    c.isenabled = 1 AND

    sectionID = 3

 

UPDATE

    be_Categories

SET

    csCategoryID = c.categoryID

FROM

    SQL2005_347492_dougrohm.dbo.cs_post_categories c, be_Categories b

WHERE

    b.categoryname = c.name

 

INSERT INTO be_PostCategory

    (postid, categoryid)

SELECT

    b.postid, bc.categoryID

FROM

    be_Categories bc

        INNER JOIN SQL2005_347492_dougrohm.dbo.cs_post_categories c ON c.categoryID = bc.csCategoryID

        INNER JOIN SQL2005_347492_dougrohm.dbo.cs_posts_incategories cic ON c.categoryID = cic.categoryID

        INNER JOIN SQL2005_347492_dougrohm.dbo.cs_posts p ON cic.postid = p.postid

        INNER JOIN be_posts b ON b.cspostID = p.postID


Like earlier, I'm adding a column to the be_Categories table so we can link the two.  Be sure to change the section id and 'SQL2005_347492_dougrohm' to the name of your CS2007 database and you should be all set.

Now that I have BlogEngine.NET 1.4 running, I have to say it's very fast and super easy to configure.  Kudos to the BE.NET team.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
drohm, Fri 10/06/06 06:03 PM

As I'm writing this post Detroit is beating New York 6-0 in game 2 of the ALDS. Earlier, I watched Oakland beat Minnesota to win its division series 8-3.  Oakland now advances to face either Detroit or New York in the ALCS.  Detroit and New York's series is currently tied one game each in a best of 5 series. I was reading the write-up for the Oakland game on ESPN and found a disturbing sentence in the article (which you can read here):

On Deck
The A's advance to the American League Championship Series for the first time since 1992. Game 1 of the ALCS will be played on Tuesday in either New York or Oakland.

The last part of that is what really pisses me off.  Is ESPN assuming New York will beat Detroit?  I thought ESPN was all about reporting sporting news and not what they "think" or "hope" will happen.  I love ESPN, but it seems to be they're going too far.  The only explanation I can think of would be if its based off of home-field advantage.  If it is, I think it should have been worded differently.

Thoughts?

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Finally, a good Visual Studio add-in for subversion, VisualSVN.  I just found out about this plugin yesterday and so far have been using it without any problems or issues. It integrates with Visual Studio and uses TortoiseSVN to perform its actions. It also creates a new menu to access all of the Tortoise functions.  When you invoke any of the actions it creates a new Tortoise screen as a modal window over Visual Studio.  Here is a quick screenshot:

You can use the fully functional demo version free for 30 days.  After that, you can register it for a measly $19.  It's well worth the money in my opionion. I highly recommend this plugin for anyone doing .NET development with subversion as your source control repository.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Scott Hanselman just released a new and improved list of tools for developers and power users:

Scott Hanselman's 2006 Ultimate Developer and Power Users Tool List for Windows

If you've seen his previous lists, this one won't disappoint.  I'm always guaranteed to fine a gem or two here.  I have to admit that its satisfying to see another CodeRush fan.  If you're a geek, power user or developer, go check it out.  There are tools in his updated list you didn't know you needed until you saw them.  Definitely worth the read!

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
drohm, Fri 02/24/06 03:48 AM

I just watched an excellent presentation on Identity 2.0 by Dick Hardt, Founder and CEO of Sxip Identity. The greatest thing about this presentation was not the content, but the style in which it was given. 

You simply have to watch it.

Sxip = Simple eXtensible Identity Protocol

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
drohm, Thu 02/02/06 07:15 PM

I just came across this new method of sending payments that should rival PayPal - TextPayMe.  This new service allows you to send money to anyone through your mobile phone via SMS. You just text 'pay <amount> <phonenumber>' to TextPayMe's 5 digit number. You will then get a phone call back confirming that you really wanted to send the payment and then you authorize it with your PIN. The two forms of security are 1) the confirmation is sent to your phone and 2) you have to know your PIN.

They're also running a special if you sign up now during the beta you'll get $5.00 added to your account and are guaranteed to never have any transaction fees - for life!  You'll also have a chance of winning a new XBox 360.

SignUp at TextPayMe

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
drohm, Thu 12/01/05 09:35 AM

After getting CS installed, I decided to search for some nice skins.  There are a bunch out there created by some very creative people.  Here are some links to some really good skins:

Take the time to look around, there are tons of good looking skins to spice up your site.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
drohm, Thu 12/01/05 03:06 AM

Took a bit of time, but I finally got CS 1.1 up and running.  A couple of things...if you're looking for a good hosting provider for .NET with a good reputation and great service, ORCS Web is the only one to look at.  Simply amazing customer service, 'nuff said.  Second, Community Server is great.  Tons of features and very good documentation.

More soon...

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5