Scott Hanselman

Blogging directly from a Logitech IO2 Pen

November 9, '05 Comments [9] Posted in Coding4Fun
Sponsored By

UPDATE: In case this seemed like a non sequitur, this is in support of an upcoming article for Coding4Fun on the Logitech io2 pen.

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

What is the difference between Type 1 and Type 2 Diabetes?

November 7, '05 Comments [11] Posted in Diabetes
Sponsored By

I'm asked all the time what the difference is between Type 1 and Type 2 Diabetes. I'm a Type 1 and I wear an Insulin Pump that pushes insulin into my system 24 hours a day. Sometimes folks will say, "Oh, my uncle has diabetes, he got it when he was fifty" and assume it's just like mine.

Type 1 diabetics don't produce enough insulin and need augmentation. Type 2 diabetics product too much because they are resistant to their own insulin. Both of us have high blood sugar because we're not using insulin effectively. Here's a very clear difference:

Dr. Michael Murray clearly identifies the difference between type 1 and type 2 diabetes when he states, "Healthy individuals secrete approximately 31 units of insulin daily; the obese type 2 individual secretes an average of 114 units daily.  Individuals with type 1 diabetes secrete only 4 units of insulin daily."

This is totally true, because I use about 30 units of insulin each day delivered from my pump.

UPDATE: You might also enjoy my "Diabetes: The Airplane Analogy" post from a while back.

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

Caching in ASP.NET - VaryByParam may need VaryByHeader

November 5, '05 Comments [5] Posted in ASP.NET | DasBlog | HttpModule
Sponsored By

I was tidying up the blog this evening and adding a Reviews category when I visited one of my own pages and noticed that chunks of content were in German. I literally did a double take.

Then I realized that one of my performance optimizations since the site's been getting slammed was to add this to Permalink.aspx (the page that ultimately services DasBlog's single-post pages, no matter what you see in the URL.)

<%@ OutputCache Duration="1800" VaryByParam="*"%>

What could be wrong with that you ask? The idea was to handle different combinations of input and cache page output as appropriate. However, what input would cause my site to serve me, an anglophone, German?

Well, if a German fellow browsing with his browser's Accept-Language header set to anything like "de-DE" and he happened to be the FIRST guy to visit a specific page before it was cached, given the directive above, the page would be cached as it was shown to him. DasBlog will generate most non-content text in the requested language.

Ah! So I needed to:

<%@ OutputCache Duration="1800" VaryByParam="*" VaryByHeader="Accept-Language" %>

Problem solved.

NOTE: I do use HttpCompression and some folks add Accept-Encoding to the VaryByHeader, but the HttpModule I use adds that programatically so everyone gets what they expect. All this caching DOES add up to memory. If someone visted every page in my site at least once with every possible language value, along with HttpCompression on in their browers, then again with HttpCompression off, my Web Server would have to hold a least numOfPages*2*numOfLanguages cached versions of pages.

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

View Internet Explorer in a Firefox Tab

November 5, '05 Comments [7] Posted in Musings
Sponsored By

IetabI'm a fan of IEView and FirefoxView, two Firefox extensions that let me Right-click in Firefox and View in IE or Right-click in IE and click View in Firefox. They are very complimentary and have served me well.

Today both MikeG and Lifehacker pointed me to this stunning gem: Internet Explorer in a Firefox tab! I feel dirty already. What kind of world do we live in that creates such mutant children? What price my soul?

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

Listening FASTER and more effectively

November 5, '05 Comments [9] Posted in ASP.NET | PDC | Speaking
Sponsored By

One of the coolest things about Cingular's Voicemail system is it's ability to speed up playback of audio by pressing "6." Each press makes the audio playback faster...2x, 3x, 4x. It's great. I HATE voicemail, make no mistake, but at least it's bearable in double speed.

I noticed that when listening to audiobooks (m4b) files like those from Audible on my iPod Nano, I can also up the speed. It looks like about 1.5x normal speed. Not too bad, but it really makes a different. Now I'm addicted to it. The new iPod's implementation is nice because it speeds up the audio without changing the pitch of the voice. I speculate they are cutting out slices of sound, rather than true speed up.

I read pretty fast, but I've stopped watching most presentations and many podcasts because I just can't stand the pacing. However, while watching the PDC videos (http://microsoft.sitestream.com/PDC05/) I noticed (as did Steve Maine) that you can right-click on the video and select Play Speed->Fast and watch the presentations in 2x speed! (I'd prefer 3x or 4x). As a bonus, the demos (since they are WMVs) are also faster.

Now I feel like I can really get through the PDC sessions at my speed. I feel as if a whole wealth of information has been opened to me. Audiobooks will flow by at the same speed regular books do.

Now if only ABC would play "Grey's Anatomy" in 2x speed...

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.