# Wednesday, June 25, 2003

A good start to this trip with an uneventful trans-Atlantic flight. Even bumped into fellow NY RD Andrew Brust and his lovely wife Lauren in the Rome airport. Worked on converting my Using SQL Server CE & SDE to build Enterprise Solutions code from VB .NET to C# on the plane down to Tunis. After clearing customs, Malek picked Goksin, Selcuk and I up and drove us on down to the Hotel where Clemens was already waiting for us. What was great was that there were North African Developers Conference  posters and signs all over the airport and highway! Tunisia really rolled out the red carpet.

 

Reunited from the Wallflowers in Dallas, Clemens, Goksin, Malek and I turned around and headed straight for the beach at Hammamet. Much to the delight of the German speakers in the group, Clemens and I (barely), we were at a resort that catered to Germans. We spend several hours on the beach smoking Goksin's Turkish cigars, drinking beer and talking about why .NET Remoting may or may not suck, DCOM, the bowls of COM+, Regular Expressions and gulp politics. Clemens and I had a disagreement over the difference between an 'Ocean' and  a 'Sea' (eventually we got distracted by some girls topless sunbathing.) I got a great swim workout in, about 20-25minutes in open water. Triathlon training won't suffer (well the several beers I drank after my workout may have hurt a little.)

 

So, when you code, remember a bug is always your fault. This code in SQL Server CE may look harmless, but if you are pointing to the wrong database (ha!) it won't do a damn thing!

 

SqlCeConnection cn = new SqlCeConnection("data source=\\my documents\\bya.sdf");

SqlCeDataReader dr;

cn.Open();

SqlCeCommand cmd = new SqlCeCommand(strSQL, cn);

 

So off to the speakers dinner at a nice place overlooking the Med. Tomorrow are two sessions:

11:00-12:00: Using SQL Server CE & SDE to build enterprise solutions

4:00-5:00: Using Regular Expressions in Windows Forms & ASP.NET (Code and Slide Download)

posted on Wednesday, June 25, 2003 2:48:51 PM (Eastern Daylight Time, UTC-04:00)  #    Comments [1131] Trackback
# Tuesday, June 24, 2003

'as-salâmu alaykum

 

Just about to leave for the airport and fly to Rome, then backtrack to Tunis. Away from New York for 2 weeks (As much as I love it here, I could use a break from the constant rain anyway).

I will be presenting at the North African Developers Conference in Tunis later this week from June 26-28. This is my third time to Africa in the last 28 months and the second time this year.  I am so unprepared from a travel standpoint: I have no local currency and don’t know if I have the correct power adapters. But it will all work out due to technology. Compare this to foreign travel 15 years ago without ATMs, GSM cell phones and high-speed internet at your hotel.

 

After the conference, I will also have a free day to go and see the historic Carthage (I plan on dragging Clemens and Malek with me), sure sure it was raped and pillaged by the Romans two thousand years ago and there is nothing there, but I am the History buff so there.  Then on Sunday I fly off to Barcelona and then judge the Imagine Cup and speak at TechED Europe (July 1-July 4).

 

The hotel in Tunisia looks nice, I just hope that I can find the time to ride my bike, but it looks like swimming in the Med won’t be a problem. Can’t wait to catch up with my fellow Microsoft Regional Directors that are speaking there, off the top of my head the other RDs that are speaking in Tunis are:

 

 

In Tunis I will be presenting (with the help of an Arabic translator):

June 26th from 11:00-12:00: Using SQL Server CE & SDE to build enterprise solutions

June 26th from 4:00-5:00: Using Regular Expressions in Windows Forms & ASP.NET (Code and Slide Download)

June 27th from 11:00-12:00: Asp .Net DataGrid Drill Down (Code and Slide Download)

Ok, first of all, I talk fast and my French sucks (actually I think my Arabic may be better. 'ismî stephen, 'anâ sâ'ih. wa-mâ 'uhibbu 'akthar huwa 'ash-shacri l-'ashqar maca l-hawâjibi s-sawda'). That is gonna be bad for the translator. Second, the sessions are only 1 hour long and I have the standard 75 minutes of material. Stay tuned to see how it turned out! Either way, the sessions are going to be lots of fun and we will geek out at lot. See you all in Africa….

posted on Tuesday, June 24, 2003 6:07:23 AM (Eastern Daylight Time, UTC-04:00)  #    Comments [3] Trackback

New York State Regents Exams

 

Every year in New York State, High School students take a state-wide exam called the Regents in various topics. My mom and dad were high school Social Studies teachers. I have an advanced degree in History and Political Science. Needless to say that we are into this stuff a little. (Much to the disdain of my older Sister.)

 

So each year we have a strange tradition, my dad brings home the Regents exam after it is given and we take it on the dining room table. It is a little competition each year. (Bonus year was 1994 when I taught Summer School at Prep and we got to take two exams that summer, I think even Jack took part in that year’s silliness.) We take the sophomore Global Studies and the Junior American Government, 50 questions each. Out of 100, the competition this year came down to:

 

Stephen 100

Dad 99

Mom 97

 

Not too shabby. Maybe if this computer thing doesn’t work out, I can teach High School Social Studies!

posted on Tuesday, June 24, 2003 6:01:39 AM (Eastern Daylight Time, UTC-04:00)  #    Comments [12] Trackback
# Monday, June 23, 2003

Wanted: A Dutch Tutor

 

I need to learn Dutch. I do a lot of business in the Netherlands. I also have too many friends in the Netherlands that constantly mock me in Dutch. Then they go Dutch on me in IM like so:

 

[09:18] Kim: nee daar zit je goed

[09:19] Kim: vierdaagse feesten is echt wel super als je met een leuke groep bent op donderdag, vrijdag of zaterdag en mooi weer hebt

[09:19] Kim: echt super sfeer

[09:19] Reminator (The): eens maar als import nijmegenaar wordt het niks

[09:19] Reminator (The): net als carnaval boven de rivieren

[09:20] PeakBagger: Stop with the Dutch.

[09:20] Reminator (The): ik snap heel goed dat het dolle pret kan zijn

[09:20] Kim: nou ja; juist bij de vierdaagsefeesten zijn er mensen uit het hele land en de rest van de wereld daar

[09:20] Hello American here who can’t speak Dutch

posted on Monday, June 23, 2003 10:26:21 AM (Eastern Daylight Time, UTC-04:00)  #    Comments [3] Trackback

Bad Relationships

 

I have a lot of bad relationships in my life. Several come to mind immediately: American Airlines, Chase Manhattan bank, American Express and few ex-girlfriends and ex-clients. My relationship with my teammate Tom Halligan, while good for so many reasons (including the triathlons), is not good for my relationship with alcohol. No, no I won’t torture you with the details of my 3pm to midnight 9+ hour party like a rock star drinking binge that ended with me passing out on his sofa. (I hope that Scott Hanselman did not just read that.) Apparently at some point I exchanged cell phones numbers/email addresses with the waitress-when did this scene get so high-tech? At least we woke at some point on Sunday and rode 40K in the park (with a lot of stops for water bottle refill).

 

Anyway, I digress. The worst bad relationship in my life has to be my relationship with Microsoft Outlook, and particularly Outlook 2003 beta 2. This is like one of those abusive relationships that you know that you just have to cut the cord, but you’re just in too deep and you just can’t bring yourself to do it and you continue to live in pain. “You mean so much to me” you say. You have that feeling that there just is nobody out there that you will ever feel the same about. Sounding familiar? I love Outlook 2003 for so many reasons. Tops have to be the preview pane. The new UI is just oh so sexy. The junk filter works like a charm.

 

So why the love-hate? Well it is slow and crashes a few times a day. I mean, like about 5 times a day, easy. I have traced the source of some of my crashes to the using of Word as my email editor. But since Andrew Brust convinced me that my constant typos are unprofessional looking, I HAVE to use Word integration. I am addicted. See the love-hate?

 

So what do we do, not install betas? Stop, we are techies you know. But the beta is soooooo good. At the same time it is soooooo bad, so does that just cancel it out? Techies are just so hungry for betas, we will install just about any piece of crap Microsoft gives us. I know that when this is released to the real world, it will rock the house and my constant bug reports to Microsoft even helps that process. So I guess what I am saying is that we are all adults and made the decision to install the betas, so no complaining!

 

Now isn’t that the pot calling the kettle black…..

 

 

posted on Monday, June 23, 2003 9:55:34 AM (Eastern Daylight Time, UTC-04:00)  #    Comments [7] Trackback
# Sunday, June 22, 2003

41 students, 14 teams, 12 countries, 4 continents, 1 judge

 

The first annual international academic coding competition or Imagine Cup will take place June 29-July 1th at Tech*Ed in Barcelona.  I am the judge and can’t wait to meet all of these bright young students and their killer Web Services. Good luck to all and stay tuned to this blog for more on the competition.

 

We are going to judge the students on:

  • Innovation and Creativity - 25%
  • Implementation of .NET and Web Services - 25%
  • Overall Presentation - 25%
  • Social Responsibility or Commercial Viability - 25%

 

In addition, something that will be important to me as a judge is how the teams worked together (I guess this falls in the “Overall Presentation” part.)

posted on Sunday, June 22, 2003 10:31:30 AM (Eastern Daylight Time, UTC-04:00)  #    Comments [12] Trackback

Toss Me a Bone Honey....

 

I have been told by a friend that my use of this expression is getting kinda old. So I will have to give it up. (I am sure that I will pick up something new in Tunisia or Spain.) Before I do that, I am going to use it one last time.

 

So my company has a Pocket PC (SDE/CF) application that uses a local SQL Server CE on the device with Merge Replication back with an enterprise SQL Server Publication. I have lots of experience making this work, and it works well. I won’t bash the Microsoft SQL Server CE, .NET CF, SDE teams at all.

 

My problem is that at the office I have this all set up properly. We have a dedicated SQL Server production box and a dedicated IIS box. Life is good. Where things go bad is that I hired a developer who knows nothing about SQL Server CE, SDE, CF, etc, so I am setting up a local sandbox for him to play with while I am in Tunisia and Spain. My goal is to give him the TechEd lab demos created by Kevin Collins, myself and others over the years. Setting up merge replication with a backend SQL Server to a device is pretty easy. The steps are as follows:

 

  • Install the SQL Server CE Server Tools on a IIS and SQL Server Machine(s)
  • Install the SQL Server CE Developer Tools on a Developer Workstation
  • Install Active Sync 3.5 or higher on the Developer Workstation
  • Install Visual Studio 2003 (make sure the SDE option is checked in VB & C#) on the Developer Workstation
  • Create a New Publication of your database via Enterprise Manager-make sure that this publication is for “SQL Server CE” and is set up for merge replication
  • Run the SQL Server CE Server Tools to configure a Virtual Directory on IIS for the Pocket PC Client to talk to via code
    • You do have to make sure that the proper security is set up fro the IUSER_MachineName account, a great security white paper is here.
  • Create a new Smart Device Application in VS 2003
  • Programmatically create a database on the device and then sync it back to the backend publication like so:

            Dim ceRep As New SqlCeReplication

            With ceRep

                .Publisher = "KILIMANJARO"

                .PublisherDatabase = "BYA_Data"

                .PublisherLogin = "sa"

                .PublisherPassword = ""

                .Publication = "BYA_Data_CE"

                .Subscriber = "SQLCENETCFLab"

.SubscriberConnectionString = _                                             "Provider=Microsoft.SQLServer.OLEDB.CE.2.0;Data Source=\my  documents\mycooldatabase.sdf"

                .InternetUrl = "http://KILIMANJARO/SSCE_DLL/sscesa20.dll"

 

                'Bring down initial subscription

                .Synchronize()

End With

 

So I have done this a zillion times, install Visual Studio on the development machine along with the SQL Server CE development tools and I am off to the races. This part of course went smooth, except for the fact that I want to sandbox the machine and run everything off it all at once. So I have to make sure IIS 5.0 and SQL Server standard or enterprise is running. Simple you say, just install the SQL Server CE server tools as well on the same machine. The problem is that it took me about two hours to set this up (I have done this a hundred times in less than 15 minutes) because of SERVICE PACK HELL. Basically the server tools would not install since the IIS and SQL Server service packs were too current for the installer on my machine. I did not have to roll back the SPs (that is good!), but I had to dig around and find new installs from Microsoft.

 

So Microsoft, please TOSS ME A FRIGGIN’ BONE here. Get rid of all of the old install drops and just require SQL Server SP3 to install anything-or create a better error message! I am not asking for much. This is such great technology, I don’t want people to be discouraged from using it due to poor locations of downloads.

 

posted on Sunday, June 22, 2003 12:29:21 AM (Eastern Daylight Time, UTC-04:00)  #    Comments [2] Trackback
# Saturday, June 21, 2003

I finally did it!

 

I finally broke 20 minutes for the 10 km bike course at Central Park. The stats: 19:49 minutes, 6.4 miles (slightly more than 10K) at 19.1 mph average speed.

 

What was the secret? Well for starters, it was raining so the circuit was less crowded, meaning no psycho rollarbladers trying to kill me. (Don’t take offence rollarbladers, I am one of you weeknights.) Second was my built up frustration at Microsoft SQL Server Merge Replication-more on that tomorrow…

posted on Saturday, June 21, 2003 1:26:06 PM (Eastern Daylight Time, UTC-04:00)  #    Comments [18] Trackback
# Friday, June 20, 2003

The Microsoft .NET Evagelism Team

All I can say is that they rock. Eileen Crain is one of my heros. Jas Sandhu and I had so much fun in Dallas, he better come to KL!

Listen to them on .NET Rocks, a weekly internet-radio show. (I was on a month or two ago)

posted on Friday, June 20, 2003 12:41:44 PM (Eastern Daylight Time, UTC-04:00)  #    Comments [13] Trackback

Another RD comes to The Dark Side…

 

Welcome to Blogland Jon Box, Microsoft Regional Director (RD) for Memphis and all around great guy. Jon and I have spent a good amount of time together on campus earlier this year for RD meetings and last year for CF Labs. He tolerates me-so he is ok in my book. J Can’t wait to read his blog with all of his CF experience.

 

User Group Heaven…

 

Speaking of RDs, Ken Getz was in the house last night as the speaker for our .NET Users Group in New York. Besides Andrew and myself, we had Boston RD Patrick Hynds in attendance as well as two of the local Microsoft office DEs, Paul Groves and Jim Williams-so people got answers to their questions!

 

Ken is a true rock star, every time I think that I am getting good at this speaking thing, Ken comes and blows me away with something. Last night was truly fabulous, people came from as far away as Albany and Boston to see Ken last night.  At the high point, we have I’d guess well over 135 people standing room only in the Yankee room at Microsoft to hear Ken. Ken spoke on Inheritance in Windows Forms (and mocked me in his slides-story of my life) and really captivated the audience.

 

All in attendance got a free MS Press book courtesy of Microsoft. There was even spontaneous applause for Microsoft! Giving the books and other goodies away at the break reminded me of the Baghdad looting shots on TV, what is it with developers with 6 figure incomes swarming over each other in a mad frenzy to get a $4 tee-shirt for free?

Why are developers cheap bastards? I guess it is in our nature.

 

posted on Friday, June 20, 2003 8:14:20 AM (Eastern Daylight Time, UTC-04:00)  #    Comments [4] Trackback
# Thursday, June 19, 2003

Don't go Changing to try and Please me..

Yesterday I spoke at CeBIT North America and did two sessions: "Patching the holes in the Change Management Process" and "Extreme XML-Interoperability in Action".

This got me to talking with attendees about my favorite topics on change management, EMBRACING CHANGE. Way too many developers fight it, hate it and die by it. I have seen whole applications die over fighting change. Let's face it: CHANGE IS PART OF DEVELOPMENT.

At Zagat we embarked on a new initiative to build the company a new electronic on-line editorial systems. The “old” way of doing things was 100% paper based. So this was a radical change for the business. The business had no clue what they wanted, nor was the changing competitive landscape clear. So change was going to be a part of this system in a major way. But time to market was very important since we were preparing for an Initial Public Offering (IPO).

I told my lead architect that when he was designing version 1.0 of the "CMS" or Content Management System, that I will not evaluate him by how cool Version 1.0 is or how 1.0 is accepted by the business. I will evaluate him by how fast 2.0 is built on top of 1.0's base architecture. Now that was a challenge. Designing a system for change in the first place! This affected the entire culture about change management. Change was embraced.

But how to control it you may ask? A typical project gets at least a 25% change in requirements during development. Also, a typical project tends to experience a 1%-2% growth in requirements per month-so the longer your project takes, the more change you will have to endure in the way of new requirements.

Now that being said, sometimes you have to be a hard nose on change requests. Shipping is a feature. So how do you strike the delicate balance? That is the million dollar question. (And on some projects the cost is higher.) The answer is all about BUY IN. Get the business aligned with the change culture. Set up a change control board with stakeholders from all over the business. Some of the methods of change control are:

•         Allow changes that help to produce the best possible product in the time available. Disallow all other changes, even if budget permits.

•         Allow all affected parties to assess the schedule, resource, and product impacts of the change.

•         All change requests, assessments and re-estimations must be public.

•         Get agreement from Business and Development Team on the New Delivery Schedule and Build Plan.

Now the last bullet is most important. After you decide on a major change and alter the schedule by a month, under no circumstances do you say “Ok the schedule slips back a month” No no no. Bad the word slip in reference to change, slips are when people miss a deadline. When you schedule a change, you are realigning your schedule based on new business reality. Do not perceive this a slip or late. It is a trade off or a compromise. Trust me, this one little thing, changing your attitude on change can change your life! (pun intended)

Give it a try and let me know how it goes.

 

 

 

posted on Thursday, June 19, 2003 2:52:43 PM (Eastern Daylight Time, UTC-04:00)  #    Comments [2] Trackback
# Wednesday, June 18, 2003

New York, NY

"INETA Poster Boy-sort of"

Reuters Technology Director, Microsoft Regional Director for St. Louis and founder of INETA, Bill Evjen was in town last night. So fellow NYC RD, Andrew Brust and I went out on the town with Bill last night. We spent about 5 hours together drinking (there goes that reputation again) and talking about code, Microsoft, INTEA, the cost of developers in Bangkok, user groups, 80s music and eventually politics and women (Bill is married to a Finish national and he admitted that he lets her tell him who to vote for).

What was most amazing was that the huge Reuters electronic billboard in Times Square is #1 the world's largest electronic billboard (bigger than the second largest in the world across the street-the NASDAQ) and #2 runs on Microsoft Windows. Bill said that it has an XML feed to populate the data. This is so cool having such a large public sign run on Windows. I also know that the NASDAQ one runs on Windows as well, making Windows the cool electronic sign technology for Times Square.

 

posted on Wednesday, June 18, 2003 8:25:31 AM (Eastern Daylight Time, UTC-04:00)  #    Comments [3] Trackback