Scott Hanselman

Great "Top Ten Tips for Web Services Interoperability" from Simon Guest

August 13, 2004 Comment on this post [0] Posted in Web Services | ASP.NET | Tools
Sponsored By

Simon Guest posts his "Top Ten Tips for Web Services Interoperability" - preach on brother.

  • Watch out for Empty Arrays
  • Use Package and Type Name Options when Generating Client Proxies
  • Testing Generated Java Beans for Null
  • Null Dates and Times are recognized by Java, but not by .NET
  • Always use compareTo() when comparing dates/times
  • Use Trace Tool to Investigate
  • Add Option to Change Host and Port
  • Ensure Document/Literal when generating Web Services
  • Use Unit Tests to Test Interoperability
  • Use XSD First

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook bluesky subscribe
About   Newsletter
Hosting By
Hosted on Linux using .NET in an Azure App Service

The Zen of .NET

August 12, 2004 Comment on this post [2] Posted in Programming
Sponsored By

I just saw Joe Bork's Zen Post today which reminded me of the .NET Zen Koans that I did a little over a year ago.  I thought I'd re-post a few of them.  I have a looping PPT of these with pictures that I use to start my talks. 


 Managed Zen Koan
"One day as Sam was writing Managed C++, the Buddha called to him, "Sam, Sam, why do you not enter the runtime and write in C#?" Sam replied, "I do not see myself as outside. Why enter?"


Unsafe Zen Koan
"Scott showed out his unsafe code and said, "If you call this unsafe code, you oppose its reality. If you do not call it unsafe code, you ignore the fact. Now what do you wish to call this?"


 Languages Zen Koan
"One day Fred was working with .NET. He overheard a programmer say to his superior, "Give me the best programming language you have." "Every language in .NET is the best," replied the butcher. "You can not find any language in .NET that is not the best." At these words, Fred was enlightened. "


MSDN Zen Koan
One minute of sitting,
one inch of Buddha,
one line of code.
Like lightning all thoughts come and pass.
Just once look into your mind-depths:
Now look it up on MSDN. 


.NET Framework Zen Koan
 However deep your
knowledge of the .NET Framework,
it is no more
than a strand of hair in the vastness of space.
However important seeming your object model,
it is but a drop of water in a deep ravine.

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook bluesky subscribe
About   Newsletter
Hosting By
Hosted on Linux using .NET in an Azure App Service

Disneyland - a Software Engineer's Perspective

August 12, 2004 Comment on this post [10] Posted in Learning .NET | Web Services | Movies
Sponsored By

So, we went to Disneyland last week.  It was my first time.  Personally I was a little iffy about going.  I've traveled to enough third world countries (and lived with locals) to have a healthy dose of First World Guilt and I'm usually very uncomfortable in large crowds especially when there is a good deal of "excess" being bandied about.  Certainly Disneyland is a place of excess.  All that preamble said, here's a few of my thoughts as I experienced Disney for the first time as a 30-year-old adult.

Herding Cats

There were a crapload of people.  A lot.  At $50 per head, per day, I began to wonder how folks were paying for the trip.  We saved for a few months to make it happen, and there were some church groups there with 20+ kids in tow.  That adds up. 

The crowd control is minimal, mostly being handled by thoughtfully placed ropes and small barriers.  In two days we were only officially "herded" once by a couple of usher-types into the Snow White musical. 

Kids were easily lost and there was an official "Lost Parents" office.  This doesn't make me feel to good about the potential for kids getting nabbed.

Security

I was very underwhelmed by the security.  There are three places to go, Disneyland itself, Disneyland California, and a free place called Downtown Disney.  There are checkpoints when you enter the whole compound where disinterested and likely underpaid workers glance at your purse or backpack.  It actually makes me MORE uncomfortable to have lousy security than no security at all. 

The first time I went through security I had to show them my insulin pump and blood sugar meter as I was carrying them in my hand.  The second time, as a test, I simply clipped the whole apparatus to my belt as a front-fanny-pack and even ASKED if they need to see it.  They said "too small" and let me pass unmolested.

Queuing Theory

They've got this new FastPass system that is meant to shorten the line length at the most popular rides.  When you buy a Disneyland ticket you're given a small cardboard credit card with a printed bar code. 

At the popular rides there are three lines:

  • FastPass tickets - This is where you put your card in a machine and a receipt is printed with a one hour time window.  That "reserves" your place in line and you are to return between that time.
  • FastPass return - This is a special line that you come to at your designated time.  I didn't wait more than 10 mins in a FastPass return line.
  • Standby - This is a standard line that you stand in until you get into the attraction.  They know how many FastPass people are supposed to arrive at a certain time, and the standby people fill the leftover seats.  I waited in on of these lines for 65 minutes for the Soaring Over California attraction.

Some interesting things to me:

  • There are digital signs that tell you at a glance:
    • When you'd have to return if you got a FastPass that moment.
    • How long the average wait is in the standby line.

Additionally, when you get a FastPass (here's a clever part) you can't get another FastPass ANYWHERE for at least 60 minutes.  This foils the plan we had of running around the park collecting FastPasses up front then visiting the rides as our times came up.

This system worked great as the FastPasses would typically be in an hour or two from the present time.  We'd say, "Oh, cool, we'll do this and that and come back at four."  So, I think for the 80% solution it works - it maximizes customer satisfaction as well as the "ride saturation."  Certainly a lot of angry people waiting in line or worse, leaving a line, doesn't help anyone.  This makes sure the ride is always 100% in use. 

The problem happens - just as it does with freeway onramps - when the system is VERY saturated.  We were at a ride at 2:45pm on a Saturday and the FastPass system said to come back at 8:15pm and the standby time was 205 mins.  Certainly this was the exception, not the rule, but the point was made nonetheless.

Software

Some of the systems were clearly very simple, take Pirates of the Caribbean for example.  The animatronics were in a repeating loop and didn't vary from that loop.  Same with the New Orleans Haunted Mansion.

The systems that did synchronization between the physical and the not-physical were interesting.  In Star Tours there was an animatronic robot pilot talking to video screens with characters supposedly in remote locations.  I believe these systems (Star Tours) may have been created before the proliferation of digital media, so I wonder if they are using old style Laser Discs or 1/4" Video, or what?  And do they have a keyframing technology to make sure the tracking doesn't float as the system repeats and get off by a second or two.  None of the systems I saw ever got "off track" as I thought they might.  I'm clearly missing something around my understanding of how the control systems communicate with the media (audio, video) that support them.

Safety

Having taken mechanical physics classes, I was comfortable riding the roller coasters, but I'm always a little nervous when I feel centrifugal force that might mean my little car could shear right off the edge of the track.  Some of the older steel tracks had some spot welds that looked a bit dodgy.

While we were there, the Indiana Jones ride broke down and they had to walk everyone out of the right.  I'm not sure if the shutdown was manual or automatic.  I'd be interested in understanding if the system can detect derailments.

Our Favorite

It was all very interesting and shiny, but our favorite ride, and the one I will remember was the one I didn't think I'd care that much for.  The Soaring Over California ride sounds boring.  They strap you into something and show you a movie shot from the air over various California landmarks.

The catch is that they actually dangle you from a chair/harness that is lifted 15+ feet into the air and pushed forward into an Imax-sized screen.  They move you forward until the dome of the screen fills your field of vision completely.  They FULLY cover 180 degrees, so no peripheral vision is there to stop the illusion.  Additionally they gently blow wind and (we think smells) at your face, accelerating and decelerating as the on-screen action changes.  the effect is staggering and I highly recommend it.  It can make you motion sick though.

Conclusion

It takes a lot of people to make that place work and I was impressed that they could pull it off every day, day after day.  I don't think I'll go back for a few years though.

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook bluesky subscribe
About   Newsletter
Hosting By
Hosted on Linux using .NET in an Azure App Service

Classes at OIT - C# and Applied Web Services

August 11, 2004 Comment on this post [5] Posted in Learning .NET | Web Services
Sponsored By

Want to take some classes?

  • I'm teaching CST407 C# and .NET at OIT again this term.  It's Tuesday nights from 6pm to 9pm. 
  • Also, Patrick Cauldwell is teaching Applied Web Services on Mondays from 6pm to 9pm.

These two classes would be a great (and inexpensive) way to learn these technologies, and maybe pick up a little college credit while you're there.  Classes start September 27.

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook bluesky subscribe
About   Newsletter
Hosting By
Hosted on Linux using .NET in an Azure App Service

Come hang at the South Sound User's Group with INETA

August 10, 2004 Comment on this post [0] Posted in INETA | Web Services
Sponsored By

I'll be talking Web Services at the South Sound User's Group in Olympia, WA on Thursday night at 7pm.  Come hang out!  I'll be scouring downtown Olympia for a Quiznos around 6pm.

Afterwards, I'm heading to Redmond to visits folks on Campus on Friday.  Maybe I'll see you there!

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook bluesky subscribe
About   Newsletter
Hosting By
Hosted on Linux using .NET in an Azure App Service

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.