Scott Hanselman

The Friday Five 1 As A Child Who Was Your Favorite Superheroheroine Why I Always Dug Nightcrawler Could Telepor

January 31, '03 Comments [0] Posted in TechEd | Speaking | Africa
Sponsored By

The Friday Five 1. As a child, who was your favorite superhero/heroine? Why? I always dug Nightcrawler (could teleport) and Shadowcat (could walk through walls). Certainly there's no need to read into the depths of standard computer-geek-four-eyes-zip-face-pre-teen angst that can be written in these choices. ;) 2. What was one thing you always wanted as a child but never got? A non-awkward day. 3. What's the furthest from home you've been? As the crow flies? When my wife and I visited her parents in Bulawayo, Zimbabwe; that was pretty far. I felt far away when the dichotomy of the situation hit me. I was boiling the hot water for my bath and checking the values in my insulin pump at the same time. Kuala Lumpur, Malaysia was also pretty far. 4. What's one thing you've always wanted to learn but haven't yet? I've always wanted to learn an African Language FLUENTLY. I used to be OK and could converse in Ethiopian Amharic, but that's fading. I'm working on learning isiNdebele (part of the Zulu sub-family of Bantu languages), my wife's native tongue (clicks and pops and all), but I won't be able to really focus on it until August. 5. What are your plans for the weekend? My friend Ramesh, a Microsofty, and an organizer of TechEd Malaysia is coming to stay with us for the weekend.

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
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Groove - Got Memory?

January 30, '03 Comments [0] Posted in Web Services
Sponsored By

Um...this is a little disconcerting (from Groove 2.5)...anyone have a thought on this?  Mr. Ozzie? Any other Groovesters?

A picture named scarygroove.JPG

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
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

"101 Reason Why I Don't Care if .NET is Better than Java" or "Pick a Religion"

January 29, '03 Comments [1] Posted in Web Services
Sponsored By

Pick a platform, pick a language, pick a religion.  I've seen two different kinds of responses to the 101 Reasons nonsense. 

1. An item by item refuting.  You might as well start dissecting the commandments.

2. A larger essay with lavish prose and a general "I'm taking the high road" attitude.

These are all fine and good I'm sure, but I'm tired.  I would no sooner argue these points than I would argue the pros and cons of Islam vs. Christianity vs. Judaism.  These are all religions based on the God of Abraham.  They are 98% identical and their few  differences are syntactic sugar! (Sound like any popular programming paradigms you know?)

Currently I architect applications for banks at the most successful Windows-provider of eFinance Solutions in the world.  We happen to use .NET.  We also happen to integrate happily with dozens of mainframes, J2EE solutions, Tandems, and all sorts of other stuff.  In the past I worked at Nike programming Java on Solaris talking to a DB2 DB on a Hitatchi Mainframe, and hacking C code on embedded systems.  Personally, my happiness is usually related to whether I'm programming in a managed environment or not. 

Java is here to stay.  .NET is here to stay.  The point is, the future is managed code.  The VAST majority of business componentry of any use in 2005 will be written using managed code.  Today, the majority of the worlds religions have their roots in the God of Abraham.  Pick a religion, be excited about it.  Tell your friends, even those of other religions, but for God's sake, don't nit-pick their belief system.

Scott's Quasi-Religious Thought for Wednesday: "Don't player-hate, integrate."

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
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

DevEnv.com? - Sairama's Tip of the Day

January 29, '03 Comments [0] Posted in Web Services | Bugs
Sponsored By

Try these from the Visual Studio.NET Command Prompt:

            devenv /?
            devenv.exe /?
            devenv

devenv /? shows the options in command line.
devenv.exe /? shows the options in GUI.
devenv launches ide without options

What's happening is when you execute devenv /? (no extension, remember order of precedence BAT, COM, EXE) you are executing devenv.com. Without /?, devenv.com will just chain to devenv.exe.

Here's my which.exe output:

WHICH, Version 1.31
UNIX-like WHICH utility for Windows NT 4 / 2000 / XP
Written by Rob van der Woude
C:\Program Files\Microsoft Visual Studio .NET\Common7\IDE\devenv.com
C:\Program Files\Microsoft Visual Studio .NET\Common7\IDE\devenv.exe

And here's devenv.com from the Command Line:

C:\Program Files\>devenv /?

Microsoft (R) Development Environment  Version 7.00.9466.
Copyright (C) Microsoft Corp 1984-2001. All rights reserved.

Usage:
devenv  [solutionfile | projectfile | anyfile.ext]  [switches]

You can invoke devenv with a first argument to specify a solution file or
project file.  You can also invoke devenv with a first argument that is any
other kind of file that you just want to open in an editor.  When you supply a
project file, the IDE opens it in the context of a solution by looking for a
.sln file with the same base name as the project file in the same
directory as the project file.  If no such .sln file exists, then the IDE
looks for a single .sln file that references the project.  If no such single
.sln file exists, then the IDE creates an unsaved solution with a default .sln
file name that has the same base name as the project file.

Command line builds:
devenv solutionfile.sln  /build solutionconfig [ /project projectnameorfile [ /p
rojectconfig name ] ]

Available command line switches:

/build          build the specified solution configuration
/project        specifies the project to build instead of solution
                must specify /build to use /project
/projectconfig  specifies project configuration to build
                must specify /project to use /projectconfig
/out            write build output to specified file
/rebuild        like /build but forces a clean first
/clean          clean up build outputs
/deploy         build the specified solution configuration and then deploy it
/run            run the specified solution configuration
/runexit        run the specified solution configuration and then terminate
/command        executes the specified internal command line after startup
/mditabs        use tabbed documents interface
/mdi            use MDI interface
/fn             use specified font name
/fs             use specified font size
/LCID           use specified language ID
/noVSIP         disables VSIP developers license key for VSIP testing
/safemode       only default environment and services load for stability
/resetskippkgs  allow VsPackages once flagged for loading failures to
                load again

Product-specific switches:

/debugexe       Open the specified executable to be debugged. The
                remainder of the command line is passed to this
                executable as its arguments.
/useenv         Use PATH, INCLUDE, LIBPATH, and LIB environment variables
                instead of IDE paths for VC++ builds.

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
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Unions (or an equivalent) in C# - Sairama's Tip of the Day

January 28, '03 Comments [0] Posted in Web Services
Sponsored By

Someone needed "union" functionality in C# and Sairama came up with this creative and possible heretical use of Interop Attributes.

      [ StructLayout(LayoutKind.Explicit) ]
      public struct UnionTest
      {
      // Set the offsets to the same position so that both variables occupy
      // the same memory address which is essentially C++ union does.

            [ FieldOffset(0) ] public char                  chVal;
 
           [ FieldOffset(0) ] public System.Int16          intVal;
     }     

      class Class1
      {
            [STAThread]
            static void Main(string[] args)
            {
                  UnionTest u = new UnionTest();
                  // Set via Int and get through Char
                  u.intVal = 65;
                  Console.WriteLine("chVal:{0}",u.chVal );
                  // Set via Char and get through Int
                  u.chVal = 'B';
                  Console.WriteLine("intVal:{0}",u.intVal );
            }

Disclaimer
The code above shows only features of .NET and in no way suggest/dictates/advises usage.  Don't be lame and think this is source code you can actually do something with.

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
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

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