Strongly-typed DataSets in Subversion

Strongly-typed datasets are the default option for creating a data access layer (DAL) with the various .NET versions of Visual Studio. From the XSD file that defines a strongly-typed dataset, Visual Studio generates a [XSD].Designer.cs and [XSD].xss.  They’re regenerated every time you change the XSD, even if you just change the layout.  This can become a problem when working in teams and it’s necessary to merge changes.  If your Subversion repository is configured to version the generated files, they’ll be marked as conflicting when you update.

These are the steps I’ve taken to merge changes in the situation above:

  1. Delete [XSD].Designer.cs and [XSD].xss.
  2. Resolve conflicts in the XSD file (and mark them as resolved).  This will generate new versions of [XSD].Designer.cs and [XSD].xss.
  3. When resolving conflicts in the files generated in step 2, use the whole file that was just generated.

This will be much easier than trying to resolve conflicts in generated files.

Paintball

I spent part of my Sunday running through the woods shooting at friends and strangers.  The place: Outdoor Adventures Paintball.  The occasion was a friend’s 29th birthday.  Paintball has changed quite a bit since I first tried it as a sophomore in college.  There are college and professional leagues now (my alma mater apparently has quite a good team).  There are corporate sponsors.  They even have TV coverage on ESPN2 and the Versus network.

For novices like us, it was a great time.  We teamed up against a group of what looked like undergrads from the University of Maryland.  In three rounds of matches (3 games per match),  we won each 2 games to 1.  Usually it was by killing all of them off, but at least a couple of times we captured their flag and moved it all the way down the field.  The “center flag” variant of the game (one flag midfield that a team must capture and move forward through their opponents) was our least favorite.  We had a really long field for it in the second match, and our strategy didn’t work that well at first.  The one thing I would differently the next time is buy more ammunition.  Even though you have to pull the trigger for each shot, I ran out of ammunition before our third match was over.

Macbeth, Teller-style

I saw this production of Macbeth this afternoon with my friends Jen and Alban.  We were rewarded for our wait in the freezing cold (for standing room tickets) with actual seats for the show.  Thanks to Alban (I owe you big for this one), yours truly got a front row seat to the show.  Directed and produced in large part by Teller (of Penn & Teller), it was anything but your typical Shakespeare production (if there is such a thing).  I’m no aficionado of magic, but they pulled some incredible tricks in this show.  People appeared and disappeared before our eyes.  We saw fake blood which looked uncomfortably real.  I knew we were in for quite a ride when the show began with a Folger Shakespeare Library staffer stabbed through the back while reading us an announcement from the stage.  This doesn’t even include the excellent acting, the great fight choreography, the sound effects and percussion.

Upgraded to Leopard

I installed it last Wednesday. My first upgrade attempt failed, so I paid a visit to the Tyson’s Corner Apple Store to get some help from the Genius Bar. Apparently the DVD wasn’t clean or something (since the guy cleaned it off), because when I tried archive+install as recommended, there were no problems.  The next day, I picked up a 1TB Western Digital MyBook Home Edition at MicroCenter for $220 + tax so the Time Machine feature would have plenty of room to operate.  It’s definitely as cool as advertised.  I was impressed that when you plug in an unformatted drive, Leopard asks if you want to use for Time Machine.  I was pretty lax about my backups before, so this will be a huge help.

Changing Primary Keys from “int” to “uniqueidentifier”

I’m in the process of doing this for a project that uses Microsoft SQL Server.  One of the “gotchas” I came across was that once you’ve switched from “int” to “uniqueidentifier”, @@IDENTITY and SCOPE_IDENTITY references won’t work.  The second response in this thread pointed me in the right direction.  You have to call NEWID() in the context where you need it (and save the value) in order to be able to refer to it later.

Back to the trenches

Instead of management and code, I’ll just be writing code (at least for now). Today, I started a new job at a small consulting firm in Virginia with a software lab that wants to start putting out products.

Today consisted of the environment configuration and filling out of forms typical of a first day.  Most of the last half of the day was taken up by a boot camp.  I found it to be a very enlightening how-to on consulting, as well as an intro to the company’s culture.

Stockholm, Sweden

Yesterday, before our concert at Ekebyholmsskolan, we got to tour Stockholm.  We arrived there from Finland via a Viking Line ferry named Isabella.  Two other chaperones and I spent virtually the entire time touring the older parts of Stockholm, including a number of churches.  Of the cities we’ve visited so far on the concert tour, Stockholm is the most beautiful.  I really like the architecture.  Bicycles get their own lanes.  It’s a city that’s very easy to tour on foot.  The fact that it’s on the water is also a big plus in my book.

We’re getting on our tour bus in another 15 minutes for the drive to Oslo, Norway.

Scandinavia Tour

I’m writing this from a school dorm at Toivonlinna, a Seventh-day Adventist school in Finland.  I’m one of a number of chaperones for a high school choir giving concerts in Scandinavia.  We gave a concert at the school this morning (and I really do mean “we”, since the chaperones got drafted to sing also).  Our concert yesterday in Turku went well enough that the choir went back up to sing an encore.  Iceland was our first stop, and despite its name, it was warmer than Finland is now.  Even as I type, it is snowing.

The next stop on our tour is Sweden.  We’ll be taking an overnight ferry there from Finland (assuming the weather cooperates) after lunch, a cathedral tour, and some shopping.

A More Perfect Union

Barack Obama spoke at length yesterday on the issue of race in general and his former pastor in particular.  If you haven’t already seen and heard the speech, or read the transcript, I encourage you to do so.  There is no soundbite that can do justice to the importance and brilliance of his message.  If there was ever a politician who could legitimately argue that he’s a uniter and not a divider, it is Barack Obama.  I only hope it helps him win in Pennsylvania.

$1.67

That’s how much one (1) euro cost me yesterday when I was converting currency with Chevy Chase Bank for an upcoming trip. You know things are bad when even the branch manager is surprised by the rate of exchange. The exchange rate is probably even worse today. Even if I took out the fees they charged, the exchange rate is probably 20-30 cents worse than it was when I first went to Europe in 2005.

It reminded me of economics classes in business school, and what we learned about what countries do to defend their currency.  The Fed is doing the opposite of those things right now, so between that and deficits our government runs, I expect the dollar to be worth less and less in the near term.