Scott Hanselman

When Less Is More A Hrefhttpwwwdictionarycom

October 31, '02 Comments [0] Posted in Web Services | XML
Sponsored By

When less is more.

Synchronicity is crazy.  We are so singular and egocentric as people (*maybe it's just me*), and even in the face of instantaneous communication in this global village we are sure that our thoughts are unique…at least for today.  I wonder, just with 5 billion people on the world (or maybe just amongst the population of connected blogging programmers depending own your own .NET-y version of the Drake Equation) why ideas come and go like waves in the general populous. Perhaps I’m just looking for and seeing the patterns I want to see.

I’ve been working on some Domain Objects for a project…fairly tedious, but they really aim to abstract away a lot of complexity.  They’re mostly “data holders” more than objects with lots of of behaviors.  They are hiding icky data and presenting property accessors and data validation…mostly making life easy.  But there's LOTS of them.  I’m seeing more and more points of intersection amongst a larger family of objects I’m working with.  Each object family is unique, but the spec for these objects really just defines it’s own grammar…why not just define 99% of it in my own throw-away XML grammar and generate the code?   Code generation of course, not being a new thing by ANY stretch, has been on my mind.  Hell, I’ve been dreaming about it, and waking up the following morning and running to the computer.  I’d known of Gen<X> from Chris Sells, his office was down the street from my house.  I've worked a chunk with the CodeDom.  Lately I've just used XSLT which has served me quite well - I create code via makefiles as a part of the whole build with just my XML grammer and a bunch of stylesheets.  This week, I'm also really grooving XCode.NET from Shawn Van Ness.  

One day, I wake up and look around and John Lam is having epiphanies about code generation…what a fantastic world this is that I have access to others ideas this way.  One might say that Code Generation is "on the collective conciousness."  I don’t have to wade through the flamewars of the USENET, I don’t have to have a huge network of friends I email and chat with daily.  I’ve syndicated the minds of John Lam, Chris Sells, Clemens Vasters, and a whole bunch of .NET, OOP, Web Services, XML, patterns thinkin' people.  I’m really enjoying the ride.  

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

No Title

October 31, '02 Comments [0] Posted in Web Services
Sponsored By

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

My Friend And Yours Shawn Wildermuth Perhaps Better Known As The A Hre

October 30, '02 Comments [0] Posted in Web Services
Sponsored By

My friend and yours, Shawn Wildermuth, perhaps better known as the ADOGuy is the Editor for O'Reilly's new .NET community site OnDotNet. He's announced his appointment at as Content Editor and I expect great things from him.  I recently chatted with him on my personal life-line, MSN Messenger, and I don't know who's more stoked, him or me.  It's good to have another .NET site producing SOLID and USEFUL content.

It's also worth mentioning Shawn's book, Pragmatic ADO.NET which gets points for its title.  I much prefer it to Practical or Professional or Problematic ADO.NET.  Chapter 6 is up and free for the online reader, just don't reproduce it!

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

The Consistently Excellent Dino Exposito Has A Nice A Hrefhttpmsdnmicrosoftcomlibrarydefaultaspurlmsdnmagissue

October 29, '02 Comments [0] Posted in Web Services
Sponsored By

The consistently excellent Dino Exposito has a nice introduction to .NET Remoting. Unfortunately its in VB.NET but he's a great writer and teacher and it looks good. [Sam Gentile's Weblog]

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

Starting November 4 Im Going To Be Joining Microsoft As A A Hrefhttpmailserverdiunipiitpipermaildotnetssclimsg

October 29, '02 Comments [0] Posted in Web Services
Sponsored By

Starting November 4, I'm going to be joining Microsoft as a Program Manager in the CLR team, doing my bit to "ensure that the CLR remains the most innovative multi-language runtime in the industry".
[Peter Drayton's Radio Weblog]

Wow!  Big changes there!  Congrats Peter...wow...DonBox, Yasser, Peter...there IS a "giant sucking sound" coming from Redmond. 

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

XCode NET I Was A Huge Fan Of GenltXgt Fro

October 28, '02 Comments [0] Posted in Web Services | Bugs | Tools
Sponsored By

XCode .NET.

I was a huge fan of Gen<X> from DevelopMentor. It was an unusual move for a training company to release a software product, and unfortunately it didn't do well sales wise, because they cancelled it.

What is Gen<X>? It's a generative programming tool. It lets you use code to generate code. An example of a generative programming task for .NET would be to create type-safe collection classes. The classes are pretty much just copy/paste, and you change around some data types on function signatures. Chris Sells already has a specialized tool for doing this, but now I expect that something using XCode .NET will probably be made from his excellent templates.

What is XCode .NET? It's a port of the Gen<X> code generation engine (XCode) to .NET; however, it uses JScript.NET instead of JScript internally. This has some great advantages: you get strong typing, good debugging, and access to the .NET CLR. It doesn't appear that there is any analogue to the Gen<X> GUI, or any VS.net integration yet; just the command line tool that does all the heavy lifting. I see potential future add-ons... :) Hopefully XCode .NET will inspire a nice community of "template code builders" like Gen <X> did! [The .NET Guy]

Oh hell ya...I'm all about this.  I've been using XSL to generate code lately...

 

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

If MSN Messenger Signs Me Out Automatically Again Im Gonna Kill Someonenbsp Ive Got Messenger On 3 Different Boxes And

October 28, '02 Comments [0] Posted in Musings
Sponsored By

If MSN Messenger signs me out automatically again I'm gonna kill someone.  I've got Messenger on 3 different boxes, and I keep getting automatically signed out every 10-20 minutes.  It's REALLY irritating because I'm sure the 140+ people I have on my list are getting tired of seeing me pop up on their screen. 

Am I the only person having this problem?  Apparently not...

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

As Some Of You May Have Seen A

October 25, '02 Comments [0] Posted in Web Services | XML | Tools
Sponsored By

As some of you may have seen, a draft version of the WS-I Basic Profile has been released (http://www.ws-i.org/Profiles/Basic/2002-10/BasicProfile-1.0-WGD.htm).  There has been some interesting commentary so far, and for those of you interested I encourage you to read up.  Strangely enough, the profile supports RPC/Literal but not RPC/Encoded.  I’ve been lobbying for dropping RPC/Lit as well, since there’s so little tool support out there for this mode and there’s really no reason to not just use Doc/Lit if you are going to use literal (XML schema-based) encoding of types. [Chris Brooks - Corillian CTO]

 

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

OK So I Just Aggregated My Own RSS Feed Then Reposted Over Itnbsp Cheesy Thoughnbsp In The Words Of A Hrefhttp

October 23, '02 Comments [0] Posted in XML
Sponsored By

OK, so I just "aggregated" my own RSS feed, then reposted over it.  Cheesy though.  In the words of Clemens (just before he lost all his Radio data) "I thought everything was just XML-based!"

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

First Draft Of WSI Basic Profile An

October 23, '02 Comments [0] Posted in Web Services
Sponsored By

First Draft of WS-I Basic Profile. And the WSDL "use" attribute fades into the sunset... [Don Box's Spoutlet]

Also good stuff, as I'm on the Basic Profile Working Group...

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

NET Pet Shop 2 NET Pe

October 23, '02 Comments [0] Posted in Web Services | ASP.NET
Sponsored By

.NET Pet Shop 2. ".NET Pet Shop 2.0 is a reference application for building highly scalable ASP.NET Web applications. The application is functionally equivalent to the Sun Microsystems Java Pet Store 1.2 blueprint application, and can be used to compare the coding concepts, basic application server features, and architectures of .NET and J2EE™. It also includes benchmark data for comparison." [sellsbrothers.com: Windows Developer News]

Good news that this aging reference app has been updated!

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

OK Due To A Delayed Write Failure And Corruption In The MFT My Laptop Is DOAnbsp After I Post This Entry Ill Lose

October 23, '02 Comments [0] Posted in XML
Sponsored By

OK, due to a "Delayed write failure" and "Corruption in the $MFT" my laptop is DOA.  After I post this entry, I'll lose my entries from a few days back. All I have is the RSS.XML file I've saved just before I post this entry.  How do I get my old entries back in to Radio?  Or, do I just move to Moveable Type?

Sigh.

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

Matt Griffith Did Me A Solid Today By Having A Nice A Hrefhttpmattgriff

October 21, '02 Comments [0] Posted in Web Services
Sponsored By

Matt Griffith did me a solid today, by having a nice C# wrapper around Win32's QueryPerformanceCounter.  Big ups to Matt.

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

Ive Always Wondered And Often Been Asked Is There Anywhere To Control Page Breaks When PRINTING From IEnbsp Id Alway

October 21, '02 Comments [0] Posted in Web Services
Sponsored By

I've always wondered (and often been asked) "Is there anywhere to control Page Breaks when PRINTING from IE?"  I'd always said no. 

Well, there sure is and it's part of CSS Level 2.  This is going to be VERY useful for me as you would not believe the hacks I've had to go through controlling page layout and printing from the browser.

<DIV HEIGHT=6 STYLE="page-break-after:always">&nbsp;</DIV>

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

This Is The Napster Of SpamFightingits SpamNetits Fantasticnbsp I Tried Sp

October 17, '02 Comments [1] Posted in
Sponsored By

This is the Napster of SpamFighting....it's SpamNet...it's fantastic.  I tried SpamAssassin Pro, but after messing with it, I stuck with SpamNet.  The only drawback is that you need to open up port 2703 or use socks...but since it's outgoing it's not a big deal.  It litterally saves me from messing with >= 50 spam emails a day.

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

XML 11 Becomes A W3C Candidate Recommendation 15 October 2002 W3C Is Ple

October 16, '02 Comments [0] Posted in Web Services | XML
Sponsored By

XML 1.1 Becomes a W3C Candidate Recommendation. 15 October 2002: W3C is pleased to announce the advancement of XML 1.1 to Candidate Recommendation. Comments are welcome through 14 February 2003. The specification addresses Unicode, control character, and line ending issues. Everything that is not forbidden is permitted in XML 1.1 names. Visit the XML home page. (News archive) [The World Wide Web Consortium]

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

Im Presenting At The Software Association Of Oregon SAO On A Hrefhttpdbsaoorgcalendarofeventseventdescription

October 16, '02 Comments [0] Posted in Web Services | XML | Tools
Sponsored By

I'm presenting at the Software Association of Oregon (SAO) on November 20th, come for the pizza, stay for the WSDL.

Web Services: Behind the Music

This month's Developer’s SIG is a hands-on demystification of Web Services. This technical talk is good for the beginner as well as the expert; helpful for the programmer and the business user. You will leave this presentation with:

  • A "Zen-like" understanding of how Web Services work and how to make them work for you.
  • Insight in how TCP/IP, HTTP, XML, XSD, SOAP, and WSDL all work together to become "XML WebServices"
  • A sense of the vast landscape of Web Service space you can choose from when working with Web Services
  • A view into how Web Services work from .NET, Java, COM (VB6, VB Script, Office, etc)
  • Your own bat-belt of free tools & utilities that make working with Web Services just that much easier

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

XML Spy Visual StudioNET

October 15, '02 Comments [0] Posted in Web Services | XML
Sponsored By

XML Spy Visual Studio.NET Integration Add-in Beta 2 (201kB)

Download the XML Spy Visual Studio.NET Integration Add-in Beta. The Add-in allows you to use XML SPY Features directly within Visual Studio.NET. (This add-in requires Visual Studio.NET and XML Spy Suite 4.3)
[Peter Stanski]

Now THIS is something special! The question now is do I use this Add-In, or stick with the glorious Visual XSLT from ActiveState.  I shall install and explore...

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

IMG Height394 AltA Picture Named SoapExtWizJPG Hspace15 Srchttpradioweblogscom0108971images2002101

October 15, '02 Comments [0] Posted in Web Services | ASP.NET | Bugs
Sponsored By

A picture named SoapExtWiz.JPGIt's a 0.1 version! Don't expect miracles!

Here's the C# wizard for ASP.NET Soap Extensions.

What works: It'll generate a compiling SoapExtension that will exactly do nothing. However, the code should have all the hooks to get started.

What doesn't work: (a) You need to click on "Application Options" once to initialize the settings correctly. (b) I haven't had the time to test all option combinations. (c) Any project name that isn't a single word will likely cause the wizard to create garbage. (d) The namespace from the project settings page isn't picked up. (e) Probably several bugs in the template code.

Purpose: Demonstrates that custom stuff can be plugged into VS.NET. Makes creating full SOAP Extensions a bit easier and helps understanding how they are built.

What to do with it: If you need adjustments, poke around in the wizard's templates1033 subdir.

How to install: Unpack the archive, read the readme.txt. It's just three steps. Unpack an archive, copy one file, edit one file. Once that's done, start VS.NET and try.

And as always: It may just not work for you. If that's the case, mail me.

[Clemens Vasters: Enterprise Development & Alien Abductions]

Once again, my main man Clemens proves that he's the hardest working man in show business.

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

Ken Bereskin Talks About My Favorite Feature In Jaguar Th

October 15, '02 Comments [0] Posted in Musings
Sponsored By

Ken Bereskin talks about my favorite feature in Jaguar. The Archive Install always tickles me, since it saves a lot of time. Could Microsoft ever come close to something like this? Probably not, because user stuff is still half in the registry, half on the hard drive. Plus, Microsoft is still working on what they call "xcopy deployment," something that we call "dragging shit from a disk image to your Applications folder and having it just work." [Brian Jepson's Radio Weblog]

Fabulous...ROTFLMAO

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

A Hrefhttprsscomcom21001001961994htmltypeptamppartrssa

October 14, '02 Comments [0] Posted in Web Services | XML
Sponsored By

Microsoft "regrets" Mac-to-PC ad. The software giant's "Confessions of a Mac to PC convert" was a short-lived conversion. The ad, which took a cue from Apple, is already dead. [CNET News.com]

Microsoft pulls Ad after Web Flap.  An employee at a public relations company hired by Microsoft, Valerie G. Mallinson of Shoreline, Wash.,later acknowledged she was Microsoft's mysterious convert. [Yahoo! News]

THE DEVILS IN THE DETAILS

I tell ya...it's the little stuff like this that's going to kill us.  I was mentioning this on a conference call recently with some friends.  It's the DETAILS.  It's all about the thoughtful details...if you lose concentration or dedication for a moment, you'll be pounced upon.

The trick is remembering that these details extend from the tiniest of icons, to the most innocuous of device drivers, to the marketing literature.   With users, systems and the net all working as fast as Google, little details like sourcing highly visible ad campaigns from Stock Photography will never hold up.  The Internet is decreasing patience and attention-spans and increasing users' attention to details and cynicism. 

Microsoft is a fantastic company that I respect greatly, but when one is such a large target the bar is raised just that much higher.  They are highly visible and I hope they rise to the occasion at all levels, including externally facing marketing for an increasingly savvy audience.

GUIS AS AN AGENT OF CHANGE

Personally, I really enjoy Windows XP, but if ever there were an OS to get me to switch (at least for home email, photos, etc), it'd be OS X.  I used removable hard drives and have given other OSes a try forever.  I've always loved GUIs...I've run GEOS on a C64 and GeoWorks on a PC, I've run GEM.   I've even run the shell that dare not speak its name. I've been a Windows User "officially" since the Executive (remember Windows 1.01?) But I've always tried other OSes...kind of like keeping your finger on a chess piece as you visualize moving to other squares.  I've run OS/2 very seriously in the very early 90s, I've run Desqview as well as all flavors of X-Windows shells. 

But it ALWAYS comes down to: The Details.  I mean, right now, Explorer is eating up 8-15% of my CPU.  I have NO IDEA what that process is doing.  Sometimes I just blow it away randomly because it's pissing me off.  I hope Lornhorn changes the Shell architecture, because my system is getting "Windows Arthritis."

There's nothing like a fresh GUI.  I'll always have a Windows system around, it's a great platform to design and architect around and .NET and COM+ just makes it better.  Plus, I've run it for years.  As a server, it really runs great.  Runs forever.  Even now the server next to me has Explorer.exe completely hung and the keyboard is locked, but IIS and my app continues to run.  Little details.  Like a truly reliable shell to match our reliable kernal and reliable component container.

 

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

Hawthorne Hunts Life My Cousin

October 13, '02 Comments [0] Posted in Musings
Sponsored By

Hawthorne Hunt's Life

My cousin Hawthorne Hunt died on September 28th, 2002.  Her memorial service was on October 6th.  My great Uncle Ronald Lawson has written about the memorial for those who didn't make it.  She was a drummer, an artist, an amazing person.   Rest in peace.

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

I Was On A Great Conference Call Yesterday With Some Folks Talking About J2EE Vs NET Linux Vs Windows And A Great Quote C

October 11, '02 Comments [0] Posted in Web Services
Sponsored By

I was on a great conference call yesterday with some folks talking about J2EE vs. .NET, Linux vs. Windows and a great quote came up (forgive me, I don't know who):

"Ya, Linux is cheap . . . like a puppy."

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

De

October 11, '02 Comments [0] Posted in Web Services
Sponsored By

DevCon II becomes BlogCon I
The amazing thing is that the
Web Services DevCon II is turing into BlogCon I. [Sam Gentile]

Sigh...I attended the original Web Services DevCon on the west coast a while back.  Figured it would be overkill to attend the east coast DevCon.  But, sounds like everyone is having a blast in Boston.  Sigh.  And Brian Jepson is blogging the whole thing session by session over a GPRS wireless phone from a laptop running OS X...I miss my geeks!

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

No Title

October 11, '02 Comments [0] Posted in
Sponsored By

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

Theres A Story About Me And M

October 9, '02 Comments [0] Posted in Diabetes | TechEd | Speaking
Sponsored By

There's a story about me and my diabetes in the New Straits Times!  The NST is a newspaper in South Asia, primarily Malaysia.  This story is significant since I live in Portland, Oregon!  I did this interview while I was at TechEd 2002 Malaysia this summer.  Thanks to Umah Papachan for the story!

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

Ive Ported My Tiny Abstract OS And CPU In C Projectnbspfr

October 9, '02 Comments [0] Posted in Web Services | TechEd | Speaking
Sponsored By

I've ported my "Tiny Abstract OS and CPU in C#" project from GotDotNet over to VB.NET.  I've also put up the PowerPoint deck from my presentation on this project at TechEd 2002 Malaysia.  The Tiny OS VB.NET version is up here.  (no warranty express or implied).  I had a little trouble with the conversion initially, but it went smoothly in other places.

Next step will be to see if I can get it running on my Linux Mono machine...

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

And Now For Something Completely Different A Hrefhttpw

October 9, '02 Comments [0] Posted in Web Services | Ruby
Sponsored By

And now for something completely different. Shelley Powers: The Parable of Languages.  Well worth a read. [Sam Ruby]

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

Top Subtle As A Brick In The Face Issues When Converting My Tiny OS From C To VBNET Array LengthsI Knew

October 8, '02 Comments [0] Posted in Web Services
Sponsored By

Top subtle (as a brick in the face) issues when converting my Tiny OS from C# to VB.NET:

  1. Array Lengths...I knew we were warned, and there were all those arguments from Beta1 to Beta2 to RTM, but still...

         byte[] bytes = new byte[4];

    has length 4, from 0 to 3

         Dim bytes(4) As Byte

    has length 5, from 0 to 4

  2. Integer Divison... "/" and "\" are different operators in VB.NET than C#.  "/" doesn't round, while "\" does...

         (uint)(boundary * ((number / boundary) + ((number % boundary > 0) ? 1: 0)))

    where boundary is 16 and number is 82 returns 96.  While "equivalent (not)" VB.NET

         CType(boundary * ((number / boundary) + IIf(number Mod boundary > 0, 1, 0)), Integer)

    where boundary is 16 and number is 82 returns 98 because (number / boundary) returns 5.25, not 5.  This was fixed by using a backslash.

         CType(boundary * ((number \ (BACKSLASH) boundary) + IIf(number Mod boundary > 0, 1, 0)), Integer)

    This is one of these obvious, silly things you've known since VB3, but you don't think about it when converting from C# to VB.NET. 

  3. UInt32 isn't supported in VB, so I had to wimp out and switch to Integers.

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

And The Answer Shall Comethis Is Itnbsp This Is Why I Love The Hell Out Of NETnbsp I Tell This To My Students When

October 8, '02 Comments [0] Posted in Web Services
Sponsored By

And the answer shall come...this is it.  This is why I love the hell out of .NET.  I tell this to my students when I teach .NET, but each day I use the Framework I start to live it even more.  Sure, there are things you fight with, there are things you hate, but really when it comes down to it: A LOT of good thought was put into the Framework.  There are Utility Classes galore.  (Of course, there's no HashMap, but that's another day)

What I did in a cheesy moment (a 3am moment) of frustration:

public unsafe static byte[] UIntToBytes(uint UIntIn)
{
    //turn a uint32 into 4 bytes
    byte[] fourBytes = new byte[4];
    uint* pt = &UIntIn;
    byte* bt = (byte*)&pt[0];
    fourBytes[0] = *bt++;
    fourBytes[1] = *bt++;
    fourBytes[2] = *bt++;
    fourBytes[3] = *bt++;
    return fourBytes;
}

Here's what it looks like now (in VB.NET):

Public Shared Function IntToBytes(ByVal IntIn As Integer) As Byte()
   
Return BitConverter.GetBytes(IntIn)
End Function

I can't believe I stooped to writing unsafe :) code to do something as simple as getting the Bytes out of an Integer.  Fool me once, shame on you.  Fool me twice, shame on me.

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

Heres An Interesting Thing Jon Udell Founda POPSMTP Proxy And Web Server That Googles And Blogs Your Email Seems Like A

October 8, '02 Comments [0] Posted in
Sponsored By

Here's an interesting thing Jon Udell found...a POP/SMTP Proxy and Web Server that Googles and Blogs your email. Seems like a thinner/cleaner/smarter version of Enfish.

Googling your email. ... [Jon's Radio]

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

Well I Got The Big Idea That Id Convert My Tiny Abstract OS In C

October 8, '02 Comments [0] Posted in Web Services
Sponsored By

Well, I got the big idea that I'd convert my Tiny Abstract OS in C# to other languages (VB.NET, J#, etc)  and platforms (.NET CF, Mono).  I figured it'd be a good exercise to practice VB.NET since it's moderately complex and moderately OOP.  I've never been one who can bang out little samples - I really need something cohesive and meaty if I'm going to really dig into it.  Plus, it'd be cool to have other versions of the TinyOS around in other languages. It really exercises the basics of the .NET Framework, and it's been downloaded 4955 times from http://www.gotdotnet.com, which is very exciting and I get mail about it all the time.

So, I figured I'd start with VB.NET before I fire up VMWare and my Mono VM.  I sat down and started using the C# to VB.NET converter VS.NET Add-In.  I converted the who project and received 102 Todos, which is about more than I expected.  I had no idea what was really going on...until I saw things like this in my new VB Project:

If instr.Param2 <> System.UInt32.MaxValue Then 'ToDo: Unsigned Integers not supported

and:

Public Sub New(id As System.UInt32, memorySize As System.UInt32)
'ToDo: Unsigned Integers not supported
'ToDo: Unsigned Integers not supported
pid = id
registers(8) =
CType(pid, System.UInt32) 'ToDo: Unsigned Integers not supported
processMemorySize = memorySize
End Sub 'New

Turns out, from a CLS point of view, I really shot myself in the foot on this one.  I wrote this Tiny OS using exactly what I needed - when the system called for UInt32, I used one.  Apparently (I knew this, but never really grokked it) the CLS does not define an unsigned integer, and the UInt32 type is marked as not CLS compliant. So, what type should I use?  It was a silly thing really, to build something low-level bits-and-bytes with a managed language, but since I was at a low level, it seemed silly to only use the signed half of an Integer.

Well, I'm going to re-think this little exercise, perhaps I'll first try to get it running as a C# app in Mono and go from there.


Let me add one particuar point of note.  I'm interested in this valiant attempt by the C# to VB.NET Converter and appreciate any insights.  When trying to convert this particularly icky (hacky...now that I look at it, I could have done it easier with adding the bytes and shifting bits as I added...ah, how time refactors for you...) bit of C# code:

public unsafe static uint BytesToUInt(byte[] BytesIn)
{
     fixed(byte* otherbytes = BytesIn)
     {
    
uint newUint = 0;
    
uint* ut = (uint*)&otherbytes[0];
     newUint = *ut;
    
return newUint;
     }
}

The C# to VB.NET converter came up with this:

Private Declare Sub CopySystem.UInt32 Lib "Kernel32.dll" Alias "RtlMoveMemory" (ByRef Destination As System.UInt32, ByRef Source As System.UInt32, ByteCount As Integer)

Public Shared Function BytesToUInt(BytesIn() As Byte) As System.UInt32 'ToDo: Unsigned Integers not supported
    
Dim otherbytes As Machine.BytePtr = New Machine.BytePtr(BytesIn)
    
Try
          Dim newUint As System.UInt32 = 0 'ToDo: Unsigned Integers not supported
         
Dim ut As Machine.TypePtr = New Machine.TypePtr(Machine.TypePtr.Cast(Machine.NewPointer(otherbytes(0)), GetType(System.UInt32)), typeof(System.UInt32)) 'ToDo: Unsigned Integers not supported
         
CopySystem.UInt32(newUint, ut.Address, Runtime.InteropServices.Marshal.SizeOf(GetType(System.UInt32)))
         
Return newUint
    
Finally
         
otherbytes.Dispose()
    
End Try
End Function 'BytesToUInt

Hmm...

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

Couple Of New Books Over At My Bookstore DiabeticBookscomnbsp Check Them Out

October 7, '02 Comments [0] Posted in Diabetes
Sponsored By

Couple of new books over at my bookstore, DiabeticBooks.com - check them out!

Guide to Healthy Restaurant Eating, 2nd ed - Hope Warshaw

This best selling book, now in it's bigger and better second edition, is just the resource you need if you frequently eat restaurant meals. If you are like most Americans you eat out at record breaking frequency and know, only too well, the hazards of restaurant foods-fat and sodium count and overwhelming portions. You can still eat restaurant meals, you just need to learn the skills of healthier restaurant eating and to get the low down on the nutrition data of restaurant foods. Guide to Healthy Restaurant Eating helps you do just that.

You'll get the nutrition low down for over 3500 menu items at more than 55 of the best known restaurant chains across America-McDonalds, Boston Market, Denny's, KFC, Pizza Hut, Taco Bell, Dunkin' Donuts and more. In addition to calories, you'll find carbohydrate, fat, saturated fat, cholesterol, sodium and more as well as the diabetes servings or exchanges.  

The Guide to Healthy Restaurant Eating also helps you learn the pitfalls of today's restaurants, strategies for self-defense, and the keys to healthy eating. Plus you'll get hundred of tips to estimate restaurant portions.

Simply put, this book is an indispensible resource for people who eat out regularly.

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

Chris Brooks Pointed This A HrefhttpwwwcsharpcornercomCode2002Se

October 7, '02 Comments [0] Posted in Web Services
Sponsored By

Chris Brooks pointed this C# SNMP Library out to me...I wonder if it's better to go lightweight like this when doing SNMP or to go through WMI?

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

Sam Gentile Makes An Important Point About The Golden Rule Of Blogging And R

October 7, '02 Comments [0] Posted in
Sponsored By

Sam Gentile makes an important point about the Golden Rule of Blogging and reminds me of the differences between respectful Blogging and just Copy-Pasting!

Sam says: "If you...take stories off [a blog] please attribute [the source]. This is extremely important to building the blogging community. By doing this, we create links to one another."

Thanks Sam!

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

Wireless Electricity BLOCKQUOTE Dirltr S

October 7, '02 Comments [0] Posted in Web Services
Sponsored By

Wireless Electricity

picture of the desktop mat with a notebook and PDA on it, recharging"Fresh from the 'used to be sci-fi' file, you may soon be able to charge your mobile gadgets without the use of any wires, ports, connectors, or cradles. MobileWise, a California-based semiconductor company, is demonstrating a product called the Wire-Free-Electricity Base, a large mousepad-like mat that sits on the desktop. When combined with a Wire-Free-Electricity Adapter that is mounted in or on mobile devices, you can charge and power devices like cell phones, PDAs, and laptops just by setting them on top of the pad. MobileWise won[base ']t sell this technology directly to consumers; instead, it is looking to partner with vendors that will integrate it into devices or sell add-on adapters." [PDABuzz.com]

This is quickly becoming a high priority on my list. The battery on the notebook is nearing death; it's down to 20 minutes without a power cord, and that's if you make it a candlelight dinner and talk nice to it first. The house has wireless internet access but more and more, I find myself tethered to a power outlet. This particular product may not be the most ideal solution, but I need this next step!

Syndicated from [The Shifted Librarian] [deeje.com] [Simon Fell]

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

Chris Sells SharesXML Comments And Documentation Generation For VBNET Develo

October 7, '02 Comments [0] Posted in Web Services | XML
Sponsored By

Chris Sells shares:
XML Comments and Documentation Generation for VB.NET Developers...
http://vbxmldoc.tor-erik.net/

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

Review Red Dragon Rich Empty Meal Ya B

October 4, '02 Comments [0] Posted in Movies
Sponsored By

Review: 'Red Dragon' rich, empty meal. Ya, but I'm still going to go see it...

Review: 'Red Dragon' rich, empty meal

[Google Top Stories]

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

A ClassnavLinkSmall HrefhttpbuildercomcomauthorbiosauthorbiojhtmljsessionidLEPQREGFEDWMPTQQACQCFEYauthorIdjm

October 4, '02 Comments [0] Posted in Web Services
Sponsored By

Matthew Osborn is nuts

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

I Do A Lot Of Work With Small Offices On The Side And Consequently I Have To Write A Lo

October 4, '02 Comments [0] Posted in XML
Sponsored By

I do a lot of work with small offices on the side, and consequently I have to write a lot of VBA code.  I tried writing some of that in C# and ended up wrapping the Office Automation interfaces automatically with Visual Studio.NET. Fortunately, Microsoft has released the blessed Microsoft Office Primary Interop Assemblies.  There's also a tutorial which touches on the importances of PIAs in bridging the .NET to COM gap.

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

Web Services Are Like High School Sex Everyone Is Talking About Doing It But Hardly Anyone Is And Those That Are Probably

October 4, '02 Comments [0] Posted in Web Services
Sponsored By

"Web services are like high school sex. Everyone is talking about doing it, but hardly anyone is, and those that are probably aren't doing it well."  - as heard by Dion Almaer

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

Lots Of Thoughts On Web Services Todayits No Because Doubt Of Chris Sells Upcoming A Hrefhttpwwwsellsbrothersco

October 4, '02 Comments [0] Posted in Web Services | ASP.NET | NUnit | Tools
Sponsored By

Lot's of thoughts on Web Services today...it's no because doubt of Chris Sell's upcoming WebServices DevCon

Some great info from Sam Gentile today.  He says:

Peter Drayton offers:

  • Mayank Prakash's Web services architectures: Easier said than done is a great article.  It is one of the first articles that reminds the layman that SOAP and Web Services are not one and the same.  It mentions a good example services from the W3C that uses the REST Protocol.

Sam also notes that on the .NET tip, NUnit 2.0 was released today and Lamont Adams loves C#:

  • NUnit 2.0 Released.
    "This is the second major release of the xUnit based unit testing tool for Microsoft .NET. It is written entirely in C# and has been completely redesigned to take advantage of many .NET language features, for example custom attributes and other reflection related capabilities."
  • How I Learned to Stop Worrying and Love C#
    Lamont Adamas: "How I learned to stop worrying and love C#-After arguing for a long time that there's no difference between VB.NET and C#, the author is jumping on the C# bandwagon." 

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

Heres A List Of Useful NET Related Web Sites SPAN StyleFONTFAMILY

October 3, '02 Comments [0] Posted in Web Services | ASP.NET | XML
Sponsored By

Here's a list of useful .NET related web sites...

www.gotdotnet.com www.dotnetwire.com

www.codeproject.org www.dotnetjunkies.com

www.dotnetforce.com www.devx.com

www.dotnet247.com www.4guysfromrolla.com

www.angrycoder.com www.aspalliance.com

www.csharp.org www.devcity.net

www.developmentor.com www.windowforms.com

www.learnvisualstudio.net www.windowsforms.net

www.asp.net www.vbcity.net

www.Ibuyspy.com www.fmstocks.com

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

I Have To Admit Ive Had These Thoughts Myselfnbsp What Would It Be Like To NOT Know Anything About Computersnbsp Just

October 3, '02 Comments [0] Posted in
Sponsored By

I have to admit, I've had these thoughts myself.  What would it be like to NOT know anything about computers?  Just go work somewhere else, be a nurse, a car salesman..."Hey, my Windows crashed at home, you know anything about computers?"

No...I never touch 'em.

The Fallout Begins. Justin Rudd shakes my faith. [sellsbrothers.com: Windows Developer News]

About Scott

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

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web

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