Scott Hanselman

Garrick Neal's Ten Commandments of Diabetes

July 28, '03 Comments [2] Posted in Diabetes
Sponsored By

TEN QUICK TIPS FOR TIGHT CONTROL OF TYPE 1 DIABETES

1.  Lots of testing.  Lots.  At least 8 times a day, and preferably 10 to 12, or even more when things get astray.

2.  Disciplined diet. Maximal nutrition, aka healthy foods.  No snacking... there is no insulin available for small meals. Keep the meals to known quantities of carbohydrates, protein and fat.

3.  Stay well exercised.  Exercise provides all the usual benefits that it provides to normal people and maybe 2 times more than that for diabetics.  Including the ability to handle hypoglycemia better, and less bg exasperating illnesses.  One of the most important, to the quality if life issue, is that being fit means that during normal activity you are burning muscle glycogen, instead of blood glucose...

4.  Immediate correction of hyperglycemia.  The sooner hyperglycemia is corrected the less the amount of insulin resistance that sets in.... and hence continued hyperglycemia.  It varies for different people, but it happens at somewhere around 10 (180).  Find out, and avoid breaching it.

5.  Experimentation.  You must know your carbohydrate/insulin ratio.  Also precisely how much lead time you will need to take your rapid insulin, in any, prior to starting to eat.

6.  Watch the fat intake. Watch the protein intake.  Do not eat fat or protein based meals (or snacks) without carbohydrates.  Too much fat in a meal will make you insulin resistant for about 24 hours and too much protein will cause a 'protein spike' at some unexpected later time.

7.  Use glucose tablets.  Always keep them handy.

8.  Watch out for foods that may have high glycemic index values. The carbs will have as much as double the blood glucose effect as average carbs.  Watch out for over ripe fruit.  Again, eat consistently.

9.  Don't over basal.  Too much basal insulin will stuff the liver full of glucose,  and it will spill out... into the blood. 

10.  Never, never worry.  It's not fair that we are diabetics.  We don't deserve it.  We just have it, and we have to do what we can about it.  We cannot be perfect   (though for one whole day I once managed it. 

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

Modifying the namespace PREFIX of the root node of the body of a SOAP Web Services Response....whew!

July 27, '03 Comments [6] Posted in Web Services | ASP.NET | XML
Sponsored By

I've got a client who doesn't fundamentally understand SOAP, much less XML.  They are insisting on a specific prefix for elements in a SOAP Response we are sending to them.

They want:

       <soap:body>
             <samlp:Response xmlns:samlp="thewholedurnthing">  
                  <samlp:somestuff>

I'm producing via an ASMX :

         <soap:body>
             <Response xmlns ="thewholedurnthing" xmlns:samlp="thewholedurnthing">
                  <samlp:somestuff>

and they are not digging it.  Certainly the prefix doesn't matter as the InfoSet is semantically the same.  I suspect the client (who is using Java) is manually <gasp> parsing the Response.

I'm hoping to cover this experience in an upcoming PADNUG talk now tenatively entitled "How NOT to do Web Services: Is ritual suicide the only answer?"

I messed around with the obvious XmlRoot and XmlType attributes and observed they were being wholly ignored for the Root Element of the resulting SOAP payload.  I talked to Christian Weyer and Herr Vasters who confirmed that it is 99.9% not possible via simple attributes. 

So, taking their advice I will write a quickie SoapExtension, probably something along the lines of:
     XmlRootForcePrefix(prefix="samlp", namespace="thewholedurnthing").

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

Ender's Job - Software Engineer or Protector of Mankind?

July 22, '03 Comments [0] Posted in Web Services | Gaming | Tools
Sponsored By

A great analysis of how Ender's Game (one of my all time favorite books, I've read the whole series) can teach us about software engineering.  I'm re-reading the Pragmatic Programmer now and I didn't realize that Andy and Dave were blogging. RSS Subscribed.

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.