Scott Hanselman

Sairama's Interesting Code of the Day

January 22, 2003 Comment on this post [0] Posted in Web Services | Bugs
Sponsored By

Take note of the Debugger.IsAttached property to find out whether the code is running in debugger or not.

                  if( System.Diagnostics.Debugger.IsAttached )
                  {
                        // Do special things (give more info to the development user)
                        Console.WriteLine("Yes, running in debugger");                  
                  }
                  else
                  {
                        Console.WriteLine("Not running in debugger");
                  }

System.Data.dll uses the above feature to debug Stored procedures.  Opens a memory mapped file for enabling debugging of sprocs. It issues sp_sdidebug which is used to turn on or off TSQL debugging.

Disclaimer:
The code above shows only the features of .NET and in no way suggest/dictates/advices the usage of this particular feature.

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 twitter subscribe
About   Newsletter
Hosting By
Hosted in an Azure App Service

It's official, my twenties are winding down

January 22, 2003 Comment on this post [0] Posted in Web Services | Diabetes | Africa
Sponsored By

I'm too tired to write more than a few lines, but I thank you all for your kind thoughts, on this, my birthday and the beginning of the last year of my twenties. 

No doubt it's all over soon since after this, 30, and death, lay around the corner.

Yep, my twenties were a blur, people, and somewhere in there I gained a wife, and a whole pile of in-laws, cousins, sisters, brothers, a few bozos, and I must say, I've done well. ;) 

I've squeezed my 4-year Bachelors of Software Engineering into only 11 years (!) and finally there's a light at the end of the tunnel.  I should graduate this June with a decade of full time software work under my belt and a freshly minted piece of B.S. by my side.  That will be a nice way to begin my 30s. 

My 20's were punctuated with (in no particular order):

  • Getting married to a fabulous woman, and going to Zimbabwe for 3 weeks to meet her Parents, ask their approval and offer them 'lobola' - a bride gift
  • Being diagnosed with Type 1 Insulin Dependant Diabetes and being hooked to an Insulin Pump 24 hours a day
  • Giving Technical Presentations in Germany, London, Singapore and Malaysia
  • Going on a 14-city roadshow with Microsoft during the .COM years
  • Watching my Dad retire from the Portland Fire Department after 30 years as my younger brother begins his first year as a Fire Fighter
  • 9/11 - I remember it like my Dad remembers the moment Kennedy was shot
  • Selling Don Box his first Apple Newton while I worked at Incredible Universe, went to school at night and wrote 'C' code on Windows 3.1 even later at night
  • Creating a successful shareware product, marketing it, selling it, and finally selling the company and buying a house
  • Doing Standup Comedy at a few local open mikes
  • Working for a startup in California and watching it disintegrate
  • Writing 'C', the C++, then OWL, then VB3, then C++/MFC, then 16 bits became 32 and all my ints changed, then COM, then VB5, then VB6, then C++ again, then Java, then C#, and then C again (on a PalmPilot).

It's been a whirlwind decade, and I've gotta say, I REALLY didn't see any of the last 10 years coming!  But, I suppose that's the curse, right: "May you live in interesting times."

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 twitter subscribe
About   Newsletter
Hosting By
Hosted in an Azure App Service

Cringely is killing me

January 21, 2003 Comment on this post [0] Posted in Musings
Sponsored By

Cringely is killing me.  Dvorak is killing me.  Computer Pundits are killing me.  I swear, I get more valuable insight from the average Joe working at Subway Sandwiches than I do reading this drivel.  All is succeeds in is frustrating me. 

Silly Cringley Quote of the Day

"Even today, you can still get to a C: prompt under Windows XP, which means a disk operating system is hiding there no matter what Microsoft wants us to believe."

Is this even English? (well, arguably "Is this even English" probably isn't a complete sentence, but that's neither here nor there.) 

<sarcasm>Thanks, Cringley, clearly Microsoft needs to remove the command-line interface to gain street credibility.</sarcasm> Since when did the addition of of a Windowing Interface leave the realm of "Operating System Services."  If I run an X-Server under Windows, what does that mean, I'm two OSes, or half of one?  If I access my headless Windows box entirely via VNC or RDP then what does that mean?  Explorer.exe is a shell, as is KDE and Gnome...but GDI and X are still optional, but often core OS Services.

Now, Norton Desktop, that should have been an OS, baby.

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 twitter subscribe
About   Newsletter
Hosting By
Hosted in an Azure App Service

Recent Command List Popup

January 20, 2003 Comment on this post [0] Posted in Web Services
Sponsored By

Recent command list. Here's something nifty that I recently (and accidently) found out. If you're in a console window hitting the F7 key... [kilic.net]

Holy Crap! Feels like 4DOS!

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 twitter subscribe
About   Newsletter
Hosting By
Hosted in an Azure App Service

HOW TO: Know when Microsoft has posted new "how to" or KB articles on your favorite technology:

January 20, 2003 Comment on this post [0] Posted in
Sponsored By

HOW TO: Know when Microsoft has posted new "how to" or KB articles on your favorite technology:
Sign up for kbAlertz, which is run by the ever popular Dave Wanta (who also runs 123aspx.com).  It will send you an e-mail whenever Microsoft posts a new KB on the technologies that you care about. 
BTW, they just dumped in a ton of new .NET related how-to articles.  I've set up a page to list them.
[Sean 'Early' Campbell & Scott 'Adopter' Swigart's Radio Weblog]

Great Page, but give me an RSS Feed...I get enough email ;)

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 twitter subscribe
About   Newsletter
Hosting By
Hosted 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.