spout

September 30, 2008 spout

MS + jQuery: This Is Huge!

Yesterday, the ASP.NET team announced that they were going to ship jQuery, a small, populate open source web client library. And not only is Microsoft going to ship this library, as is, but we’re going to build support into Visual Studio for it, build future versions of our web components assuming it and support it via PSS like any other Microsoft product.

This is huge.

Of course, is it useful for developers using Microsoft tools, because they get another supported library out of the box for them to use to build their applications. But that’s not what makes it huge.

What makes it huge is that, instead of seeing the functionality in jQuery and thinking to themselves, Wow. jQuery is really great. Let’s build something from scratch like that into our products,” the ASP.NET team, in what is the first time in Microsoft history afaik, decided to reuse something from the world that was already working, adding only the thing we do better than anyone else: integration into a suite of libraries and tools.

But isn’t this just embrace and extend?’” I hear you asking. Isn’t Microsoft just going to absorb jQuery, thereby killing it for folks not using Microsoft products?”

There are two ways forward at this point. One, we could push on jQuery in a Microsoft-centric way until the project owners” (which is a slippery concept with an OSS project anyway), decide to either give up and let Microsoft own” it or they decide to fork jQuery, thereby creating jQuery-classic and jQuery-MS. This would not be good for the jQuery community.

The other way to go, and this is the way I hope it goes, is that Microsoft learns to play nicely in this world, submitting features, changes and bug fixes to the jQuery source tree in a way that’s consistent with the vision from which jQuery sprang, making it work better for Microsoft customers and non-Microsoft customers alike.

If we can learn to do that second thing, then we’ve turned a corner at Microsoft. I’m keeping my fingers crossed.

September 5, 2008 spout

I don’t pretend to understand advertising

I’ve always liked the Mac vs. PC ads. They’re clever, they make me laugh and I like both actors (Accepted is very under rated, IMO). Of course, I actually prefer my PC running Windows to a Macintosh (I had a Mac IIcx back in the day), I prefer Vista to XP and I’m a Microsoft employee, so I don’t have any trouble seeing the exaggeration, but there’s always a kernel of truth, which is what makes them funny. The part that kinda annoys me is that Apple seems to be claiming they have no such problems, which is, of course, not true.

The Mac vs. PC ads I understand: they’re meant to put down the PC by having the PC guy look like an idiot, leaving the Mac guy to seem non-threatening and therefore better by comparison.

On the other hand, I can’t say I understand the latest Windows ad with Jerry and Bill. I did enjoy it, however. Not only did Bill seem much friendlier and more approachable than I’ve ever seen him, but the image of someone in the shower with their shoes and socks on made me laugh, as did the image of Bill wiggling his butt in a Deep Throat sorta way.

And the commercials are having an effect: they’re being talked about and folks are interested in the next one. How often do you hear about folks looking forward to a commercial? That in and of itself is an achievement.

September 4, 2008 spout writing

Programming WPF goes into 3rd printing

August 27, 2008 spout

Where did my old Word command go in new Word?

I've been using Word for a long time and my fingers knew where the commands were that I used even though my brain didn't. Most of the those commands I've mapped to the new Ribbon-enabled Word without a problem, but sometimes I still search. For those times, the Office guys have put up a cool tool that shows me where the new version of each command is located in the new Word. Enjoy.
August 14, 2008 spout

Digigirlz Rock!

I gave a talk to the Digigirlz yesterday and it was a blast. It was 25 high school girls that were on the Microsoft campus all week learning various technologies to promote women in IT. The girls are nominated by their teachers for aptitude and attitude and these girls had both in spades.

Vijaye Raji and I were giving the talk, me primarily the pretty front man while he drove the slides, typed the code and made sure I didn’t get things very wrong (he knew the environment and the language far better than I). We were teaching general programming basics using a variant of BASIC that was especially well suited to new programmers. We spent two hours showing them how to do turtle graphics and how to write a game (Pong) all from scratch and we all had a blast doing it.

And these girls were sharp! I’m used to pacing material for rooms of adult software engineers, but I didn’t have enough. I had to take feature requests from the audience and figure out how to implement them on the fly while they followed along, programming their own versions of the game as we went. They were hands on the whole time and eventually I enlisted their help to tell us what code to write. Mind you, this was a language they’d only learned minutes before, but they didn’t have any trouble at all.

They laughed and asked questions and answered my questions and were engaged the whole time (well, most of them — some were seduced by the siren song of the high speed internet connection : ). I figured I was doing OK when one of the girls asked me if I ever thought about being a teacher.

Naw,” I said. I hate kids…”

They didn’t buy it… : )

June 23, 2008 spout

George Carlin, Rest In Peace

When I was a teenager, some kids were sneaking out to get drunk or have sex. I was sneaking into my parents’ record collection to listen to George Carlin. Unfortunately, unleashing my version of his brand of humor on my peers was one of the things that kept me from being invited for parties or sex, but I still dearly loved the man and was very sorry to hear that he passed away yesterday.

Certain situations still trigger George Carlin responses whether I want them to or not; he is permanently lodged in my brain. And of all the things he’s done, his incomplete list of impolite words is stuck in there furthest (*not* safe for work!).

I’ll miss you, George. Give whatever all-powerful being you run into in the next life a piece of your mind about the state they’ve left us in here on Earth.

Update: a very NSFW GC highlight video series.

June 13, 2008 spout

Losing weight the old fashioned way: tonsilectomy

Today is my last day of time off work from a tonsillectomy a week ago Thursday. I’m down to about 20mg of OxyContin/day (from 60mg) and hope to have that down to nothing by Monday (although I still have half a jug for my next party : ).

Why would a grown man fresh off two SDRs and a BillG review feel the need to have his tonsils pulled? Well, I’ve been trying to talk someone into taking them for a coupla years now, even since the recurring strep throat started, but no luck. This time it was because I wasn’t sleeping properly.

A few months ago at a routine checkup, my doctor was working her way down a standard questionnaire, asking me if I had this problem or that problem. I’d been swimming a lot and had lost a few pounds recently, so mostly I didn’t have any health problems. Until she got to sleep:

Are you having any trouble sleep?”

Well, I’ve been waking up about 4am every morning, no matter when I go to bed.”

Any stress?”

I work at Microsoft,” I said, figuring that was answer enough.

She laughed. I mean anything out of the ordinary?”

I couldn’t think of anything that would explain it, so I said so.

Have you ever had a sleep study?”

Well, one time I recorded a chapter of my social studies text book and listened to it all night while I slept. I got an A on that test.”

Now she was just tired of my lip, so she explained what she meant. And then she signed me up. And I went. And it sucked. Imagine trying to get sleep while tied up (and not in a good way!).

The diagnosis of my sleep study was severe sleep apnea,” as defined by more than 10 episodes an hour when I stop breathing and more than 10% decrease in oxygen to my brain. I was at 31 and 17% respectively, the sleep tech told me as they strapped me in for sleep study #2, this time with a C-PAP machine. Now imagine sleeping while being tied up and gagged.

Apparently the gag improved my sleep enough that it cured” my sleep apnea so, without benefit of advice from an actual sleep doctor yet, I was set up with my own C-PAP machine, where I could gag myself every night before going to sleep. And not just gag myself, but strap on a hockey mask while someone blows into your mouth all night long. And now try to sleep while this is happening. My father got one and complained bitterly about it for a full year til he got used to it.

So, being even more stubborn than my father (which, if you knew my father, is stubborn on a Biblical scale), I asked for a second opinion. Or at least a first opinion from an actual sleep doctor (and not just a tech).

And I got one. There are other treatments besides C-PAP machines for sleep apnea, among them tonsillectomy (can work depending on the patient), some kind of dental appliance (generally not very successful) and, I kid you not, learning to play the digeridoo. This last one had me particularly interested as I’ve always wanted to do that anyway. (Come on! Breathing in and out at the same time and making weird noises! It’s like sex without the mess!)

Well, let’s see if a tonsillectomy would help you,” the doctor said, leaning in for a look down my throat. He shined his little light in and then started backward as if scared. Oh, yeah… You’ll want to have those looked at,” he said, his eyes all big.

What?” I asked, a little worried.

Those are within the range where should talk to an ear-nose-throat doctor about having them removed,” he said, hastily writing out a recommendation and stealing a look at my throat out of the corner of his eye as he did so.

And so I went to the ENT doctor, a young’un one step up from Doogie Howser (or maybe just having celebrated my 39th birthday, everyone is starting to look really young to me…). He explained how things worked inside the mouth and throat. He looked at my nose. He looked in my ears. He understood my dislike of the C-PAP machine. He described the four-point scale they used for measuring tonsils, asked me to open wide and, like the other doctor, started backward after a 500ms look.

Those are huge!” Doogie said.

Really?”

Yeah!” I swear his pupils were dilated in some kind of fight or flight response.

So, on the four-point scale?”

4+. Huge!” he said. Most people have a bunch of space around their tonsils to let he air in. How are you able to breath at all?”

OK, doc. What do you think we should do?”

We should take em out! Here’s how it’s going to work…” and he started describing the surgery, which was to include removing my tonsils, shaving back my uvula and fixing my deviated septum.

Will I ever be able to sing?”

Sure,” he said. That shouldn’t be a problem.”

Great. I’ve always wanted to be able to sing!”

He laughed. Well, no promises there.” And then he started to describe the complications. Up until then, I was fine with him talking about permanent non-trivial surgery to correct a problem that I could be using an external (infernal!) machine to correct otherwise. But when he started talking about uncontrolled bleeding” and rushing to the emergency room as [my] stomach filled with blood,” well, that was a bit much after no breakfast that morning.

Are you OK?” he said, a concerned look on his face. You’ve gone all white.”

Ah, no, actually, I’m not. I’m feeling a bit faint…”

So Doogie had me put my head between my knees and breath deeply. And when that didn’t work, he popped some smelling salts under my nose. That hurts! But that didn’t work either.

Huh. That normally works,” he said, dumbfounded at the giant man getting ready to pass out in his office. Nurse! Bring me some juice!”

After recovering from the mere idea of uncontrolled bleeding down the back of my throat (which still makes me a little queasy just typing it), he said, Well, let’s not talk about that any more. You’ll come in and I’ll take care of it, OK?”

That sounded good to me, so I scheduled the surgery for 6/5, a week after the BillG and a few days after my birthday (my own gift to myself : ).

So, I had a few weeks to shutdown my work because the doctor said that I would be out for at least” two weeks recovering. And you’ll be on heavy medications, too. Kids bounce back in a day or two, but this is *very* painful surgery for adults.”

Great. Never had any surgery other than my wisdom teeth and now I get a doozy.

I started informing those around me of my impending doom. And then the advice started.

The first week was really easy. It’s the *second* week that’s hard.”

My throat hurt so much that I just didn’t eat for two weeks. I lost 30 pounds!”

Those drugs will lower your IQ by like 30 points.”

I wonder if your voice will change? Mine did.”

I had a tonsillectomy as an adult and I still can’t say my Ls properly.”

As a professionally speaker, I didn’t mind the idea of my voice changing a little (hopefully deeper), but losing my Ls? Good lord!

I was not to eat or drink starting midnight the night before my surgery, so I didn’t. Normally the sleep deprivation has acted as an appetite suppressant, so that and the exercise has caused me to lose 43 pounds in the last 6 months. Missing a few coupla meals hasn’t been an issue, but by 3pm the next morning, sitting on the hospital bed in a hospital gown, my ass hanging out while every nurse and doctor in the place asked me if I’d avoided food and water of any kind and I started to get damn hungry, hoping for the surgery just to have something else to do (although Melissa let me win a few hands of gin, which was nice).

Then the nice anesthesiologist came and slipped me a little something. I felt completely normal for about 10 minutes and then I woke up in the recovery room, the nurses asking me if I could help them move from the gurney to the bed. Seriously. That was my entire surgical experience. Melissa was there, making sure my stuff came with me and asking if I was OK.

Oh, and I was feeling no pain. I don’t remember much from those first few hours. I could talk, which apparently was very unusual. I could walk. I remember my sister-in-law bringing my boys by for a visit and them waking me up every five minutes so I didn’t spill my juice all over myself. I remember several pretty nurses waking me up every hour or so to adjust this sensor or give me that medication. I don’t remember what I said to them, but I do remember making them laugh, which made the increasing pain of my throat more bearable.

We figured out my pain dosage that first night, 10mg of OxyContin every 4 hours mixed with intravenous morphine to take the edge off. I was disappointed that I didn’t get any kind of high,” though. I just felt fuzzy headed and sleepy. Is that what Rush liked? I don’t get it. I tell you though that the tennis elbow I’d given myself with the free weights in my garage was *completely* cured.

In that first 12 hours, it was my job to be able to walk, go to the bathroom on my own and manage my own pain via oral medications. And I did so. In fact, I was recovering so quickly, the doctor came by and gave me permission to go home hours early. I’d told him the night before that, if my voice had to change, could he push it toward Barry White? Oh, and I’d like to be able to say all my letters if possible. That morning, he asked, Have you tried it? Can you still say your Ls?”

And then, because I couldn’t not, I channeled A Christmas Story for demonstration purposes: Fa ra ra ra ra ra ra ra ra!” willing to endure the pain in my throat for the cheap laugh. And I got it. : )

I came home a week ago Friday and have been largely ignoring my work, sleeping most of the time, getting up mainly for drugs every four hours and a little food (Top Ramen, Popsicles and water). The combo put me to sleep within an hour, giving me just time enough to send the random pathetic email or IM before collapsing again. Gradually I’ve been cutting back on pain meds and eating more, my throat just a minor annoyance at this point. It still hurts and my voice is still scratchy, but a quick chug of OC and I’m back in the game, mostly awake during the day and asleep at night.

I went in for my week check-in with the ENT guy yesterday. He was delighted to tell me about micro-pustules and puss inflammation that had riddled my tonsils. Not only where they huge,” but apparently my body’s been fighting them off as a low level infection for who knows how long. While telling me this, the doctor put a bib around me and handed me a tray to hold as I looked at him questioningly.

Oh, I don’t think you’re going to throw up,” he said, rummaging for some instruments in a drawer. I just need you to hold the splints when I take them out.”

As part of fixing my deviated septum, Doogie had put splits in my nose so that things would heal open. At the mention of splint,” I thought of a little stick to hold my nostril open like the pole in the center of a tent. I thought he’d reach in, cut it in two and pull out a couple of tiny toothpicks. Well, he reached in, stretched my nostril to uncomfortable proportions, clipped the thread holding the split in and started pulling.

Have you seen the scene from Total Recall where Arnold reaches up into his nose and pulls out that giant tracking device? Yeah. Think that except the split was longer. The doctor kept pulling and it kept coming out until it fell with a thump into the tray.

That was in my nose?!”

Yep. And there’s another one on the other side,” he said, reaching for the other side.

There is?!”

Yeah. Didn’t I tell you? Oh, I guess you were asleep when I put them in,” he said, pulling another canoe out of my other nostril.

Oh my god!” I said, looking down at the snot covered railroad ties in the tray I was holding.

Are you OK? You look a little pale. OK, head back…” He was much more comfortable getting the color back into my face the second time, having practiced on me before.

Nurse! Cold compresses!”

May 18, 2008 spout

The Next Generation

When I was in high school, game programmer” meant at best BASIC or at worst 6502 assembly language, but either way, lots of text manipulation. These days, high school-age programmers are going to camps and programming competitions having spent their time in drag-n-drop programming environments like Game Maker. They’ve been doing work flow for 7 versions already!

Yesterday, I was a judge and the keynote speaker at a high school game programming contest. After asking a bunch of the 25 teams questions about their games, I was asked to speak about careers in software to 100 high school computer geeks. My people!

I started by introducing my youngest son as the slide monkey” to warm applause and them myself as a Microsoft employee to… silence. So, I said: How many of you think that Microsoft is…” and then I put my face down to the podium microphone and said in a voice from God, EVIL?”. Half of them raised their hands, all of them laughed and I had them engaged for the next 20 minutes.
 
Instead of listing various careers and their duties, I had dug through literally 13 years worth of bad Internet humor (641 emails) that I’d saved over the years and used all the silly, stupid, funny pictures to illustrate the various careers, like an x-ray of Homer’s tiny brain (Architect), a picture of some hand puppets chasing a kitten (Legal), street signs that said left turn” and keep right” at the same time (User Assistance), etc. A couple pictures I had to clean up, like that one that said Every time you masturbate, God kills a kitten,” but even so, the pictures worked: they were listening to me.
 
While I had their attention, I told them two things. First, I told them that Microsoft was hiring. : )  Second, and most importantly, I told them not to worry about the money, but to pick a job that’s going to get them excited every day. Pick the job that’s the most *fun*. And when that one isn’t fun anymore, pick another one! I tried to put every ounce of sincerity I had into it, because I believe it. I love my work, I love who I work with and I think everyone should have that. I know it’s silly, but if I could inspire just one person to reject some high paying job that’s going to make them miserable in favor of a starvation-wages job that they’ll love, then I’m happy.
 
And to illustrate the downside of picking the wrong job, I closed my talk showing a little boy balling his eyes out (although in his case, it was because of Santa’s tombstone behind him : )
 
What a good way to spend the day. Highly recommended.