Monday, February 11, 2013

more doctors, small steps

I had a hopeful appointment today with the doctor I originally saw for CBTI (cognitive-behavioral therapy for insomnia)--hopeful because just the one manipulation of my sleep schedule he suggested in December had such a huge impact. (Not that it's left me terribly functional, but when I sleep in a solid bloc, I'm at least in touch with reality even if I can't focus or concentrate). We set up a plan for the next few weeks, and he thinks that if the other group fixes the quality of my sleep, in 4-8 weeks I could be rested. That's a tempting thing to believe in, as I've had a single functional week in the past 3-4 months. ("Lucky week," as Dr. Insomnia says.)

I got the results of my sleep study from last week. It shows Mild Sleep Apnea, and I'm not sure if that's enough to explain by experience, though Dr. Insomnia thinks so. "Those apnea events are like someone poking you with a sharp stick and waking you up 11 times per hour." I think I may see your problem here, Bob.

I've been warned about the Stanford sleep apnea group, by numerous people, that "their job is to diagnose you with sleep apnea, and that's what they're going to do"--in other words, that they find sleep apnea in everyone. I get the feeling they've tidied up a lot in the past few years, though (they no longer give patients Ambien, for example). Plus, I fit the pattern of pathologically not-restful sleep. Also, I am completely out of other possibilities. Behold, the end of my very long rope.

People at work are starting to realize how limited my role is right now, though I don't think they quite understand it. I am very good at coping, and at not lashing out at people while I'm coping; so, as with my primary care doctor, I often fail to adequately show my level of distress.

I'm looking forward to the days where once again I only visit doctors for broken bones, stitches, infections, and organ removals.

Friday, February 8, 2013

houses and homes

At the aikido dojo, we once had a very angry kid who we tried to help grow beyond the upbringing life had left him with; he lacked persistence and meandered off after a year or two. He never quite learned to control himself on the mat, and was often dangerous to train with. He did learn some manners, though.

Etiquette is like any other language: if you didn't grow up with it, it's a terrible lot of details to consciously remember correctly, and it will be quite a while before you are fluent and improvisational. In the meantime, native speakers like me--thanks, Mom and Dad!--can tell when you've learned etiquette late in life, because your composure may not survive an unexpected and perhaps un-generous turn of conversation:
"You could start a garden."
"That'd be nice, but my apartment has a very nice little yard that gets almost no sunlight, so it's not practical."
"Oh, you live in an apartment?"
"Yeah, cute little place about a mile up the road."
"I'm sorry, I thought you had a home."
"I do. I just don't own it."
"Oh...well...yes...I mean..."
I was more sensitive then than now to the assumption that "having a home" means "you own a house," and obviously less willing to let it slide by without comment. It was entirely natural for me to answer in a way that deviated from the implied script, and if anyone does that to me, I can handle it graciously. (One big aspect of being "gracious" is really "able to keep a calm and courteous conversation moving, even when the other conversants don't know how.") This young man couldn't, at the time, and I wasn't being attentive to his comfort level.

(This is absolutely not to lie and claim that I emerged from college with fully-developed social skills, which all of my friends and ex-girlfriends will tell you was not the case. It's just to say that I learned etiquette as a child, so becoming socially competent was a matter of properly tuning my foundational skills, rather than learning everything from scratch.)

At any rate, I have had numerous homes over the years, without owning any of them, for a variety of reasons, mostly involving the $650,000 median home price in San Mateo County. That was fine, since it wasn't really clear that the math worked out. Elsewhere in the country, with a relatively modest down payment, you can have a house with a mortgage payment that's less than rent would be. Not here, unless your idea of "modest" is $300,000.

However, this year we needed an accountant, who informs us that the math does work out and we should buy a house. I found a couple places that didn't look too insane and have somehow not provoked a feeding frenzy of investors bearing $400,000 in cash or more, so I suddenly decided it was worth trying again. This week we're submitting offers on a surprisingly large townhouse that's ready to go (assuming you can live with dark avocado tile counters in the kitchen), and on a quirky but appealing house that looks liveable but has dozens of obvious improvements available.

(Where to start? The unnecessary wall separating the small living room from the small dining room? The dark wood paneling on the walls? The dismal faux-ornate 60s cabinet facing? Perhaps the linoleum covering the floor of the garage, which was obviously an illegal apartment at some point? The third "bedroom" where they boarded up the fireplace and built out a closet in front of it? The possibilities are endless!)

Even on the low end, it's a ridiculous amount of money. We took a look at the economics of the Bay Area, though:
  • The biggest economic crisis since the Great Depression, caused by housing and provoking a nationwide flood of foreclosures, essentially left area house prices under $800,000 untouched. Condominium value was destroyed, but houses dropped maybe 10%.
  • High demand: this is a really nice area to live and work.
  • Restricted supply: there's very little unbuilt land within a 30-minute drive of the San Francisco-Mountain View corridor. (25% of the Bay Area is protected open space.)
  • Enough people who can summon large amounts of cash and/or float large monthly mortgage payments. (There's no sign of the Bay Area losing its primacy at the elite end of the tech world.)
Buying a house starts to look more "reasonable," in the limited sense that you're unlikely to lose your shirt to a local housing market collapse. Maybe a mega-quake? Who knows.

So, here we go again. Wish us luck.

Tuesday, February 5, 2013

plug me in

Last night I finally did the overnight sleep study (polysomnogram) at Stanford. They glue and stick a truly remarkable number of wires on you, plus one microphone, to measure the following (of the things I can remember):
  • EEG (brain activity).
  • leg muscle activity.
  • breathing activity.
  • noises in the throat.
  • eye movements (for REM).
  • nose and mouth breathing.
  • EKG (heart monitoring).
  • oxygen saturation.
I did not get the sensor that goes up your nose and down your gut to watch what your esophagus is doing.

Anna came to hang out for a while, and I had a pretty normal evening, reading until I got sleepy, then put myself to bed around 11 PM. As I was falling asleep, I could tell it was a doomed sleep: I know when I am or am not falling into a deep, last sleep. And sure enough, I woke up 45 minutes later. Awake. During the sleep study that was supposed to tell us why I can sleep for 8 or 9 hours straight and not feel rested. The sleep study that is supposed to be a major step in restoring my energy to exercise and my focus to be able to work and meditate.

I wanted to cry, but I was literally too tired.

After 45 minutes or so, I took some ZzzQuil that I had thought to bring with me, and dozed off sometime in the 2-2:30 AM range, waking up with my alarm as usual around 7.

I know I can get better, because a couple weeks ago, for one week, I was rested enough to
  1. Do the Couch-to-5K Week #1 three times,
  2. do a yoga class to recover from the running,
  3. focus enough to do actual software engineering work, and
  4. cook some food.
Then it all went away again, but there it was. So even if the sleep study comes up empty, I've got the cognitive-behavioral therapy starting next week, which I know helps.

I liked it better when all my health problems were broken toes and obviously-rotting internal organs.

Wednesday, January 16, 2013

a brief thought on modern cars

With the whole Boeing 787 battery drama, some friends and I were discussing the National Transportation Safety Board (NTSB), which investigates plane, train, and boat accidents in the United States, and often lends their considerable expertise abroad. I tend to view NTSB as one of the most effective and useful government agencies. They re-assemble crashed airplanes so we know what went wrong, providing a regulatory pressure on travel safety that a completely free market would lack.

At any rate, it brought to mind this video the Insurance Institute for Highway Safety made for their 50th anniversary. Even now, it's common to hear people talk about old cars as being sturdy, made of "real steel"--you know, manly, none of this Asian plastics-and-composites crap. American.

Ladies and gentlemen, I give you: a 2009 Chevrolet Malibu crashing into a 1959 Chevrolet Bel Air.



Well. Crashing through the Bel Air, maybe.
 
You can decide which one you'd rather drive.

Friday, January 11, 2013

disjoint bullet points

We have been having a bit of conflict around child custody, and it's quite challenging for everybody, so please offer your thoughts, prayers, bows, or hippie-tastic good energy for J and his three parents.

After some reflection in December, and noticing my own level of energy and engagement with my job, I decided to pass the Technical Lead (TL) baton to Jess. We've been co-leading the team since November or so, which has gone well, but now I find myself unable to hold a lot of complexity in my head at once. Unfortunately, the TL generally has to be able to hold at least a survey of the team's state in their head, and switch focus from one issue to another; right now, I'm lucky if I can focus on one issue at all.

I will move sideways, to what we call a Staff Engineer, and after some months of work to get the new system out the door, I will likely migrate to go cause trouble for some other team. I should be writing software again, and solving engineering problems, and getting lots of other people on board to help.

I finally went to see a regular medical doctor about my energy and fatigue issues; I can always count on Western medicine to say "derp" to this kind of problem, and sure enough, that's what I got. It was worth ruling out things like anemia or diabetes, though.

(Don't get me wrong: Western medicine is fabulous for specific, acute issues. Broken bones, stitches, tumors, organ removal, infections--they have you covered. Things like "I'm tired all the time" or "my nose is runny every morning"? Utterly useless. Don't get me started on the usually-better-than-nothing pseudo-science of psychiatry.)

We'll see how the sleep doctors play out.

J had his 8th birthday, and he's huge, more than twice as big as when I met him, almost 5 years ago. He's developing Pre-Teen Face, where you can see more and more of the physical adult he'll be. I'm fascinated to see the man he becomes, since he has so much work to do and so many choices to make about who he wants to be. I see his path through a certain lens around his autism, but in practice I imagine that's what every parent wonders about every kid. I can only imagine the heartache as your child goes through periods of being a jerk. Not that I was ever a jerk.

*cough*

Sorry, Mom.

Bedtime, one night:
"You know, I always threaten to take away Mama's snuggles when I'm angry. But I never actually do it. I think about it, and then I think about how I would feel and I decide I would wish I didn't, so I always give her snuggles."
"That's because you understand that love and relationships are the most important thing. That may be the best of many wonderful things about you. Just keep loving."
I think he'll be okay.

Sunday, January 6, 2013

Hello, New Shiny Thing

I bought a new car. I didn't want to buy a new car.

My old car, a trusty 2001 Saturn sedan, had needed a single $300 repair every year, like clockwork. I replaced the radiator in August ($306 parts+labor), but then in December it developed a coolant leak. The mechanic said, "They don't make specific parts for Saturns any more. Just buy an intake manifold off eBay, bring it in and we'll install it for you." They helpfully included an eBay item number. Nothing dramatic, just some guy with a stash of discontinued Saturn parts. (Saturn was doomed in 2009.)

As the kids say, "lol whut."

goodbye, Car

There are many life circumstances where the most reasonable thing to do would be to accept the situation: buy your car parts off eBay (or junkyards, if you have one nearby, though they're disappearing), incurring unknown delays in the repair, or maybe doing it yourself. I am not in any of those circumstances, so it was time for a new car. Since, between us, we had a '93 Toyota Corolla and an '01 Defunct Car Company Inc., we had talked about car replacement, without much success. We have a lot of other stuff going on, and didn't want to bother with the time and expense of car shopping beyond Internet research. Setting aside my suspicions about the Saturn's suddenly-changed reliability, once I fixed it, we'd have two perfectly serviceable cars.

Right after I fixed the intake manifold, the Saturn started idling high, with a rhythm like an out-of-balance washing machine, and the Service Engine Soon light came on. So much for that: I bought a new car.

It turns out you can't sell a car with the Service Engine Soon light on. Nor should you buy one, really, so that's not surprising. You shouldn't buy a cheap car that might need a $1000 repair. In the vain hope it might be something simple, I brought it to a mechanic to check the error code, which turned out to be several error codes:
  • Random/Multiple Cylinder Misfire Detected
  • Idle Control System RPM Higher Than Expected
  • Sec. AIR Injection System Malfunction
I've only ever heard of Check Engine Soon having to do with the exhaust or emissions system, so imagine my surprise to learn about Random/Multiple Cylinder Misfire Detected. It also surprised the mechanic, who said "What the hell, man?" and started poking around. He found the spark plugs covered in oil, and cleaned them out, but then the engine ran worse.

R.I.P., the car known simply as "Car," donated to charity after 9 years of faithful service.

Back to the new car.

The way our life is structured, we need two cars:
  1. A fuel-efficient car for the endless trips to Pacifica (27 miles one-way).
  2. A car we can load with 2 adults, 3 kids, and camping gear.
Those could be the same car, except that the laws of physics prevent it. We decided to get #1 first, a Mazda 3. (If you sacrifice 15mpg, you can get the Mazda Speed 3, which compares favorably to sporty cars 2-3 times the price. I didn't get that one.) It's a cute mid-size hatchback with good handling and a decent enough engine. It's not yet quite as much fun to drive as the Saturn, but I think that's true of anything that meets our requirements: we've set the bar higher, and the Saturn didn't actually meet those requirements either.

The new car's name, taken from how I talk about it, is "Shiny Car." (J told Anna, in a loving "this is something I know about my Chris!" tone, that I "always call things just what they are.")

hello, Shiny Car

The thing that's hard to get over about the Mazda is how incredibly nice it is. While I did spring for the Grand Touring package on the theory that I hope to have the car for a decade, I am shocked to find these things in a low-end car:
  • Sunroof/moonroof.
  • Blind-spot proximity sensors.
  • USB port with MP3 player (e.g. iPod) integration.
  • Music integration over Bluetooth.
  • 120V A/C plug.
  • Built-in mic+speaker for hands-free cell phone calls over Bluetooth.
  • Built-in GPS navigation.
  • Touch-screen controls for all of this.
  • Keyless operation: everything is push-button and works with the key fob in your pocket.
When I got the 2001 Saturn I was excited to get power locks and windows, so this is an unimagined brave new world.

It turns out that this stuff is all commodity now. Wired explains, in a slideshow about what Mercedes had to come up with to make sure their luxury car is nicer than my Mazda:
The Mercedes-Benz S-Class has been the pinnacle of high-tech luxury for going on three decades. But the democratization of technology means that the S-Class' breakthrough feature a decade ago is now available on the lowliest of Korean econoboxes. Mercedes needs to up its game to keep pace with its cross-town rivals, so the all-new S-Class - due out sometime next year - will drive itself in traffic, bend its light beams around oncoming cars, prevent you from taking out a cow and have pyrotechnically deployed seat belts.
We're living in the future.



Saturday, January 5, 2013

dad stuff

J got a Lego Mindstorms NXT robotics kit for Christmas (he mostly paid for it himself by the sale of some older toys), and while Anna was off somewhere, we spent a day building the first couple projects.

It turns out that robots are kind of a pain in the ass. We built the beginning robot,  a plastic-ball-shooter that has treads instead of wheels, and I figured it would be easy to just have it rotate in place to different angles and shoot down Lego mini-figures. Alas, turning a treaded robot in place is so tricky it's not even part of the exercise. I'm not actually sure you can do it with Mindstorms, because you want the two sides to move simultaneously in opposite directions, and I didn't see how to do that.

Either way, you're doing a lot of trial and error, because your unit of movement is "rotations of the motor," and good luck figuring that out with treads. (In real life, of course, you make one robot, figure out how to turn it a fraction, then store that as a "turn X degrees left" instruction so you don't have to do it again. But that was proving challenging.)

He did learn about the degrees of a circle, though, back when I thought those might be useful for programming the robot.

A few days later, something came up and I started to tell him how you can quantify the likelihood of certain events, and it's called probability.
"Chris, you're being silly, there's no such thing as probability!"

"What?! BRING ME DICE!"

I fetched some dice, and theatrically started explaining.

"Okay, how many sides to a die?"

He squealed and ran away. (He's been going through one of his periods with lots of squealing and hiding, sometimes for fun, sometimes as part of freaking out.)

As he ran away, I called out, "Probabilities are fractions!", and he laughed as he closed his door.
We played a game for a little while where he would come out, I would start explaining again, and he would squeal and run back into his room. Then I stopped playing, and he came over.
"Uh, Chris? I'm not sure if I want to learn probability but I'll learn it with you if you want me to. It might be interesting."
After I took a moment to melt from how sweet that was, we went through probabilities as fractions, the odds of rolling less than 3 on a d6, more than 7 on a d20, etc. and the odds of rolling 2 3s in a row. I screwed up the additive probability, though: on a d6, obviously you have a 1/6 chance of rolling a 1, and the odds of rolling a 1 increase with more rolls, but not in the naive way I was thinking, because otherwise you would have a 6/6 (100%) chance of rolling a 1 after 6 rolls, and that is obviously wrong. So I will have to get a book and re-educate myself in a way that I can explain to J.

Then I said, "Okay, that's all I've got for now," because I don't want to go into lecture-mode, I want to have things be interesting and exploratory for him, and not only had I not thought about it, but apparently I was more rusty than I thought.

"Well, Chris. I can't believe that's all you can think of right now."