Scott Hanselman

Upgraded to dasBlog 1.6

May 7, '04 Comments [3] Posted in ASP.NET | DasBlog | XML
Sponsored By

Had a lovely (and easiest yet) upgrade to dasBlog 1.6, thank Omar.  I used the Upgrade Zip file that is up on GotDotNet.

Not only is this version faster it also added an Archive feature.  Look in the left bar under Navigation, there's a 'Archives' section with Monthly Archives for all my content.  Don't forget the Search box also!

Note: The upgrade zip is missing the FreeTextBox CodeHighlightDefinitions.xml so I stole it from Omar directly.

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

Using Internet Explorer on High Resolution Displays

May 7, '04 Comments [2] Posted in Musings
Sponsored By

I'm slowly catching up on blog posts (amazing how 7000 entries will go by when you're out of the country for a month!) and I'm noticing that Omar got his Toshiba M200, and as I also own one, I checked out his post.

The M200 (and M205) has the distinction of having a ridiculously high-resolution (1400x1060) display on a very small screen (12").  Since I've been laser'ed, you might thing I run small fonts.  Oh, no!  If you know me, you know I'm ALL about the giant fonts. 

I noticed in Omar's recent posta pointer to this secret registry key that makes Internet Explorer prettier on high-resolution displays.  I haven't decided if I like it better yet, but I'm going to run it for a few week and see how I feel.

Add the UseHR Registry Entry

The UseHR value is added to the Main key under "Internet Explorer" as follows:

HKEY_CURRENT_USER
Software
Microsoft
Internet Explorer
Main
UseHR= dword:00000001

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

Scott's Diabetes Explanation: The Airplane Analogy

May 6, '04 Comments [5] Posted in Diabetes
Sponsored By

I was talking with a friend and they asked some question about my insulin pump or something and I realized I’d never explained diabetes to him.  I did, and he said, “you explained this in 15 minutes better than it’s ever been explained to me. You should blog it.”

So I have a place to point people (and you do too!) here’s:

The Basics:

There are two types of Diabetics:

  • Type I – also called Juvenile Diabetes or Youth-Onset or Insulin Dependant (IDDM).  These folks ALWAYS use Insulin.  If someone says “I’m Type I” you know theyinject insulin.
  • Type II – also called Adult-Onset or Non-Insulin Dependant (NIDDM)

They are so different it’s a shame they are both called Diabetes.

  • Type I – Typically these folks don’t produce any (or much) of their own insulin.  If I don’t make it, I need to get it somewhere.
  • Type II – These folks typically have decreased responsiveness to their own insulin.  If they aren’t using their own insulin well, they need to be made more sensitive to it.  As with any drug, the more you take, the more you need.  If you’re a big carbo eater your whole life, you’ll produce a lot of insulin, and chances are you’ll eventually become resistant to your own insulin.

“Worldwide, there are about 171 million diabetics, but only about 10 percent of those have Type 1 diabetes. The vast majority have Type 2 diabetes, which is linked to obesity. In the United States, about 900,000 to 1.8 million people have Type 1 diabetes, the American Diabetes Association says.” [Wired]

The Airplane Analogy

 You are flying from L.A. to New York. You have to maintain a consistent altitude the whole way.

Note: For this analogy we will focus on a good cruising altitude and pretend that taking off and landings aren’t important.

Food raises blood sugar (altitude.)  Insulin lowers it.  Non-diabetics don’t have to think about altitude, as you all have a working pancreas (autopilot) and don’t sweat altitude.  Diabetics, on the other hand, have to constantly wonder if they are at a safe altitude.  Staying at a consistently high altitude (high blood sugar) will eventually make you sick; while a low altitude (low blood sugar) will kill you quickly.  

When I prick my finger to check my blood sugar with a glucose test strip, that’s an altitude check.  I want to know how I’m doing.  Each time I do it, it costs about 70 US cents.  So, I can only afford about 200 test strips a month, which is about 7 finger pricks a day.

Each time I feel I need to lower my blood sugar, I take insulin.  In the old days I took a manual shot by measuring the insulin and filling the syringe by hand.  I would typically take about 5 or 6 shots a day.  Now I have an insulin pump that’s attached to me 24 hours a day.  I attach it with a needle to a new place every 4 days or so.  I have a remote control that tells it what to do. I keep the whole thing in my pocket with a tube leading under my clothes. 

Note: I’m always asked if an insulin pump does things automatically.  Answer: I wish.  It is delivery only.  I have to “close the loop.”  There are currently no publicly available closed-loop systems that automatically test blood sugar AND deliver insulin.  Not yet.

Here’s where the analogy gets interesting.  Remember in the analogy we are flying from L.A. to New York, except we only get to check our altitude seven times.  And, we only get to change altitude (take insulin) less than ten times.  But, when I check my blood sugar, I’m actually seeing the past.  I’m seeing a reading of what my blood sugar was 15 minutes ago.  And, when I take insulin, it doesn’t start lowering my blood sugar for at least 30 minutes.

Now, imagine yourself in that plane with an altimeter that shows you the altitude 15 minutes in the past, and a yoke that changes the altitude – but when you press on the yoke, your altitude won’t change for a half-hour.  It would be a challenging trip. 

Kind of reminds one of the delays in controlling the Mars Rover by remote, eh?  This is what Type I diabetes is like.  It’s a daily “chasing of one’s tail.”  This is why I prefer to eat at Subway when I’m in NYC or SFO.  It’s consistent.  I can count on it.  I know how much insulin to take for a Steak & Cheese.  Believe me, I’d love to eat new kinds of food every time I visit a new city, but I’d have to discover how much insulin to take and that’s and exhausting series of calculations and trial & error.

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

N.exe

May 6, '04 Comments [9] Posted in Programming | Tools
Sponsored By

I’ve mentioned in a few talks that I long-ago renamed NOTEPAD.exe to N.exe as I have a tendency to “Windows-R, N, Enter” and I wanted to save a least a few hundred “otepad’s” a day. 

I’m also a big fan of starting a drag-drop operation, and without releasing the mouse button, doing an ALT-Tab, bringing my app up, and then releasing the mouse button and completing the drag.  A lot of people don’t know you can do this.

Anyway, the point was that Notepad is kind of lame, and hasn’t really changed in a while.  Sure, there’s lots of other Text editors out there, yada yada yada, but really what I want is a better Notepad.  No fancy toolbars, just Notepad++.

Now I’m using Notepad2 by Florian Balmer.  I’ve even renamed it to N.exe.  It’s really very nice.  It has lots of nice features, but here are the ones I care about:

  • Line Numbers
  • Long Line Indicator
  • Show Line Endings (CR vs. CRLF)
  • Transparent Mode (great with Always on Top)
  • Configurable Syntax Highlighting (all the obvious languages included)
  • Brace Matching
  • Zooming with Ctrl+Mousewheel

It’s definitely going on Scott’s Ultimate Tools List

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

My Last Few Weeks Summary Post

May 6, '04 Comments [1] Posted in XML | Africa
Sponsored By

A couple of kind people have commented on my recent silence in the blogosphere and said they missed me. Certainly I had trouble keeping up with posting while on vacation…not a lot of connectivity where I was. Additionally, with the recent situation, not to mention getting back into the swing of things at work as well as the worst jet lag I’ve had in a while (and lemme tell you, mefloquine gives one some FREAKLY dreams), I’ve been slow to blog.

However, as my mind awakens I’ve been thinking of a few things I wanted to mention.  I’ve actually been too lazy to blog them, but I’ve not been to lazy to put them into notepad.

Here are a few thoughts/comments/interesting things, in no particular order.  Some have conclusions, others do not.

  • Remember the “Does your code think in ink” contest?   They were giving away $15,000 in prizes to folks to write Tablet PC Power Toys.  Well, turns out I was a runner up and came away with $2500 cash and a copy of Visual Studio.NET 2003.  Very cool, considering that my applet (which is apparently to be published as a Power Toy) was not hard to write.  Apparently winners will be announced soon.  There’s a second chance to write a winner with the new Application version of the same contest.  Looks like $100,000 this time.  Cool.
    • Side Note: I now have a copy of Visual Studio.NET 2003 for sale. ;) $1000 OBO.
  • Nerds with glasses.   I went to the eye doctor for my 2 month checkup since my LASIK surgery.  I’m officially 20/10 in both eyes.  This is ridiculous since I was 20/1600 and legally blind.  I can see so well I can see your thoughts.  Seriously.  Having a little dry eye occasionally, but otherwise a fantastic outcome.
    I was talking to the doctor and wondering why so many computer people (read: nerds) wear glasses.  You can call it a stereotype all you want, it’s still true. ;)  He said there’s actually a whole segment of optometric psychology that looks how personality types have different vision.  I proposed that Type-A, borderline ADD, uptight, detail-oriented people like myself should be more likely to have sharp vision if only through shear willpower and want.  He said it’s actually the exact opposite.  People “like me” are so focused and driven and prone to perfectionism, they stress their eye muscles at an early age and can actually CAUSE myopia.  Interesting stuff. 
    Anyone else agree or disagree?  I know I was reading early and taking small electronics apart at a young age when perhaps I should have been using my eyes to avoid dodge balls.  Maybe all that fly-tying when I was 5 caused my problems?
  • Vacation.  Anyone who comes back from vacation saying, “I’m so refreshed and ready to get back to work” is full of crap.  The longer I am away from work, the more I want to retire and hang out.  This is a reflection on how nice NOT working is, not in anyway a reflection on my current employer.  It just would be nice to NOT have to wake up one day, eh?
  • Coders who are born.  A friend is taking a SmallTalk class, and commented on a fellow student who just wasn’t cutting it.  I commented that maybe he wasn’t born a coder.  This turned into a discussion that culminated in the conclusion that while developers can be created, they (the personality type) are fundamentally in-born.  If we weren’t developers, we’d be designing the Jumble, or working in the fields of Math or Physics.
  • Books.  I’ve just finished two amazing books that I recommend highly:
    • The Time Traveler’s Wife: This is a slow-moving, but perfect little book.  It is the story of Clare, a beautiful art student, and Henry, an adventuresome librarian, who have known each other since Clare was six and Henry was thirty-six, and were married when Clare was twenty-three and Henry thirty-one. Impossible but true, because Henry is one of the first people diagnosed with Chrono-Displacement Disorder: periodically his genetic clock resets and he finds himself misplaced in time, pulled to moments of emotional gravity in his life, past and future.  Truly one of the best books I’ve read in the last decade.
    • Ilium: This is the new Space Opera from Dan Simmons, author of Hyperion.  It is virtually a retelling of Homer’s Iliad, through the lens of SF.  Bizarre and amazing.
      “On Earth, a post-technological group of humans, pampered by servant machines and easy travel via “faxing,” begins to question its beginnings. Meanwhile, a team of sentient and Shakespeare-quoting robots from Jupiter’s lunar system embark on a mission to Mars to investigate an increase in dangerous quantum fluctuations. On the Red Planet, they’ll find a race of metahumans living out existence as the pantheon of classic Greek gods. These gods have recreated the Trojan War with reconstituted Greeks and Trojans and staffed it with scholars from throughout Earth’s history who observe the events and report on the accuracy of Homer’s Iliad.”
  • Video Editing: We filmed over 8 hours of digital video while in Africa.   I use a higher-end Digital 8mm Sony camcorder with an external microphone and polarized lens filter.  I did a bunch of Adobe Premiere work back in the day, so I figured when it came time to make DVD with my DVD Burner, I assumed I be using something like Premiere.  I’ve used prosumer things like Pinnacle, but I say again – Nero Burning ROM is flat out the greatest single value in consumer software today.  In one day I ripped all 8 hours (via Firewire) about 90 gigs of DVD AVIs, edited, added a soundtrack, created interactive DVD menus with animation and background music and burned back to a DVD-R a very nice 2 hour tribute to my father in law.  All this with a US$70 piece of software.  Oh, and it also plays DVDs, has a full featured backup app, makes photo CDs, rips MP3s, and squishes DVD9 to DVD4 or CD.  Glorious.

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.