Archive for April, 2012

h1

Why does it matter where I am?

April 18, 2012

Where ever you go, there you are.

I find that statement dumb. I don’t know what about it makes me slightly crazy with “duh!” but it grates on me. Of course, it is true. But sometimes you are where you didn’t go, or didn’t mean to go, but there you are anyway. And sometimes you are there when you didn’t move at all because you were there before.

There was a point, I swear, I was working on one. But now I have no idea what it was. Like walking through a room to figure out what it was I forgot, let’s start with the title… C asked me a week ago why we were nervous about this trip (we both are) and what does it matter where we are on a given day. After all, we’ll have the internet, food, shelter, and showers. We could live nearly anywhere and be able to do what we do. And we have each other so we’ll be happy. Why does physical location matter?

I love California. I’ve lived here all my life so I suppose I don’t know if I’d love living somewhere else (other than Pittsburgh in the summer, which I did not love). The beauty of California is hard to top but is a familiar beauty. We sometimes go for a walk when the sunset looks nice over the hills or the moon rises over the far mountains. And the beach is a half hour away and we play hooky pretty often (it is supposed to be 85F on Friday, so expect some slacking soon). But, you know, if we don’t do it today (or Friday), it will be the same tomorrow, next week, next month. There is comfort in that sameness.

There is comfort in our life. We’ve worked hard to get the house the way we want it, the kitchen organized for us and pretty to look at, the garden full of bees and squirrels and flowers, the TV set up to do what we want, our jobs such that they amuse us, etc.

Here, the internet is fast. The food is exactly what we like. And when we go out, we know where we are going, what restaurant has great food, where is good to chat, what is minimum fuss, who has good takeout, where has nice outdoor seating for dawdling, what is new and should be tried when we feel adventurous.

We have choices but once we decide on, say, pizza then the next choice is delivery, pick up or sit. Once we decide that, we know where we are going. We know what to expect when we get there. And we enjoy the anticipation of knowing we’ll be getting something good and the ease of choice.

When we travel, we’ll lose all that context. We won’t know where the good pizza is, at least, not our definition of good. And we won’t know which hotel to stay in. We’ll be faced with a barrage of choices at every stage.

These choices have consequences: this gas station or maybe drive a block to save $5? will this grocery store have our preferred yogurts? if we eat at this dicey taco stand, will we regret it for thirty minutes or three days? if I go for a walk in this neighborhood, is there a chance of getting hassled (or worse)?

Some of those can be determined by asking for help from the natives but we aren’t good at that. Sure, Google is our friend (does this hotel have wifi? internet? free? secure?) but we aren’t that good at asking for help. We are accustomed to figuring it out ourselves or knowing the answers from long association. Talking to people is hard.

We will experience lots of new things. I feel a little sorry for future-us, it will be a firehose of newness and uncertainty. As someone who sometimes gets catatonic faced with the array of shampoo choices in the grocery, this overload of options is going to be hard.

So why do it? Well, let’s stop dwelling on the causes of the fears and start thinking about the investment we are making.

First, it doesn’t matter which shampoo I choose. It doesn’t matter which hotel, gas station, or lunch. Sure, there are consequences but the consequences are minor, remember that. The best options and the worst options will average out over time. And if they don’t, that is ok (remember that too). No one dies.

Second, that phrase, no one dies, is an important one. Our last road trip was due to my mother’s failing health. It was horrible. Terrible. Awful. All that and so much worse. Maybe someday I’ll tell you about it but as aversion therapy, it was excellent. Neither one of us wanted to leave the house for months.

We need to get over it. A weekend in Half Moon Bay or Paso Robles is enough to prove we can. But those aren’t real road trips and we want to be ok with this, to prove to ourselves that we can do it, to show that when something looks difficult, well, at least it won’t be as tedious as driving through Nevada on the last leg of a 6,891 mile journey.

The third investment requires some creeping up on so let me take this from a different angle.

When you are sick (or injured) for a long time, you get used to the limitations. You get used to pain and not going out because it hurts. You get used to avoiding commitments because you can’t be sure if next Saturday will be a good day or a bad day. Even though it is disappointing, annoying, exhausting and frustrating, you get used to it. It makes the world small. We went through this with my health a few years ago (all better now, thanks).

That smallness of the world? I don’t feel the walls close in now because my cage is of my own making and so very luxurious. But I don’t delude myself, my world is fairly small. That is ok with me, I don’t know if I would try to stretch it out unless pushed. (But we were pushed, a little.)

What if there is more? What if one of the consequences for all those choices is something better? It is like finding out that the disgusting slimy Brussel sprout of my childhood is a nutty delicious thing. I could be wrong about my certainties of what is best. Things we know to be true will turn out to be (at best) partial answers. The beauty of California is a given. I know New Mexico is amazing too, in a totally different way. What else is there? That is the big question: what else is there?

We’ll see huge extremes, things we’ve never seen. And we’ll see little ways of doing things differently. We’ll come home with stories and ideas.

Change is scary. But if we pack snacks and hold hands, it’ll be all right. Our world will be bigger when we come back.

h1

Making Embedded Systems

April 16, 2012

I wrote a book.** It is called Making Embedded Systems published by O’Reilly Media. (If you aren’t into technical books, that is like saying I played center field for the NY Yankees; O’Reilly is awesome and I’m completely chuffed to have written for them.)

It is a technical book for software engineers who want to get closer to the hardware or electrical engineers who want to write good software. It covers all sorts of embedded information: hardware, software design patterns, interview questions and lots of real world wisdom about shipping products.

cover of book

People seem to always have the same few questions about writing the book so I thought I’d answer the frequently asked questions about my experience.

How long did it take you?
About a year from start to finish, from the time I put in my proposal to the when it was on the shelves.

How long did it take to write?
Many years ago, I did NaNoWriMo (national novel writing month) novel and got accustomed to spending a few hours writing and setting word count goals for myself. The discipline was excellent but writing a technical book was much different, there was a lot more self-editing and research.

So, six days a week, I got up at 7am and worked on the book until at least 10am. If I was in the zone (or it was Saturday and I didn’t have other commitments), I’d work on it until noon or 1pm. On Sunday, I usually spend a couple hours reading over the chapter to make sure the information was presented cohesively and not like six blog posts. I did this from November through May, then put the same time into the figures, technical review, editorial review, and putting together webinars to support the book.

Did you work at the same time?
Yes, I do embedded systems consulting so I worked about 3/4 time while working on the book. I gave up a lot of weekends and spent most of my “free” time with friends talking (obsessing) about the book. Afterwards, I was a little burnt out (which is why it took me six months to start a blog).

Did you get to choose the animal on the cover?
No. I really wanted a dinosaur since that is the reputation of embedded systems engineers. Then I wanted a bacteria because embedded systems are ubiquitous. There is a list of the O’Reilly animals though it hasn’t been updated lately. Happily, they did respect my wishes to be divorced from the previous O’Reilly embedded system software book. It had ticks on it. I’m so glad I didn’t get an icky insect. I’d have been ok with butterflies but ticks? Shudder.

What is the cover animal?
A great eared nightjar. It is a hawk. I love how he’s fierce and fluffy at the same time. And the serious expression with the silly ear tufts is pretty representative of the book with its combination of serious information interspersed with jokes.

Great-Eared Nightjar (Eurostopodus macrotis)

How well is it selling?
I don’t know. I’ve nothing to compare it against. I mean, I know what BookScan tells me about how many copies get sold but they only sample a small part of the market.

It usually is in the top 10 embedded books on Amazon (but that isn’t the largest of categories: if someone buys a couple copies, my book rockets to number one until someone buys a copy of another embedded systems book).

And I know how many copies O’Reilly sold between when it debuted in mid-November to end of December (about a thousand). That seems like a lot of books so I’m pretty much thrilled.

Why did you write a book?
An embedded software colleague was building a library for his junior engineers and asked for recommendations for books that would help them understand how to write good embedded software. Since his team works as consultants, they deal with many processors, with and without operating systems. We couldn’t find a single book that did even 25% of what he wanted. He suggested I write one. And somehow by the time I finished laughing, I agreed.

Are you going to write another book?
I should say no. I mean, I couldn’t write a book about something I wasn’t passionate about. And it took so much time. It is just too much work. But then someone asked about a book that really has me intrigued… it would be essentially the same chapters as my book but would come with a board and some sensors, actuators. Each chapter would help the reader implement something that explains the concept. For example, instead of the strategic how and why of state machines in Making Embedded Systems, it would be more tactical showing a problem and an implemented solution, something a sixteen year old hobbyist could follow. I’m incredibly intrigued by this idea. (Though I’m ok if someone else does it first.)

Sideways glance Did you pay to have it published?
No. O’Reilly is a real publisher. They even paid me an advance and I will get royalties as it sells. The advance didn’t cover but about a tenth of what they would have paid for my contracting rate. On the other hand, the book acts as an excellent advertisement for our consulting company so I suspect I’ll make it back over time.

Any other questions? I did do a couple interviews with much better questions: one with Gretchen Giles at on the O’Reilly Radar and one for Server Side.

** I’ve written two books, actually, but the other is a novel, self-published, and my mom only gave it four stars on Amazon. It was written as part of NaNoWriMo, then edited over a year. In it, someone with my resume ends up trapped in space, saves the world from terrorists and then gets rescues by her physicist-drummer-embedded systems engineer husband. While that all sounds like true-life stuff, it is totally fiction. Though there is a nice discussion of the ASCII hex codes.

h1

Driving America Naked

April 16, 2012

At this time next week, hopefully we’ll be pulling into a hotel in Arizona. I hope.

This weekend was about getting all our errands done. We went to the car rental agency and sat in the cars that might be assigned to us to make sure they were comfortable enough for long drive. We got a large cooler for storing food (not the cold food but food that shouldn’t get hot if left in the car). C checked that the car emergency kit had enough stuff (once we put back in the jumper cables). We decided our first aid kit needs an update but other than that we are ready to go.

In fact, we could go today. Just pick up the rental and hop in the car. Of course, I haven’t packed clothes but, really, do we need them? All across the country, everywhere we are staying, there are Gaps and Old Navys and Targets and Nordstroms’ and REIs. Except maybe Wells, Nevada but that is only 12 hours from when we arrive back at home.

Since the packing is a little daunting, I told C that we could head out without clothes. His response was to ask if we shouldn’t wear something initially, to drive in.

Yes, dear, probably so.

h1

All that precious time

April 14, 2012

I have been concerned about the time spent in the car. I mean, I don’t like to be in a car. And I don’t like to be idle. Except with a good book. But I get carsick if I try to read.

That sounds like a recipe for disaster. [Whenever anyone says that I think something along the lines of: two cups people (mixed gender preferred), one cup idleness, 136 galleons of gasoline, place into car travelling at 70 mph, shake until done (at least 40 hours per recipe).]

I’ve been thinking about what to do while in the car. I suspect we’ll run out of podcasts by day two, even the ones that are on my list because they sound interesting but I’ve never actually listened to them.

I successfully picked up more Spanish in my hated 10-month-long commute to Palo Alto than I did in two years of high school Spanish. The Coffee Break Spanish from Radio Lingua was fantastic in large part because the podcasters were Scottish and a little harder to understand in English than they were in Spanish.

And C knows French, a language I tried to study some but if we studied together, we could pretend to be French tourists (zee pastree, eet ees eensiped! Zotolo! Bring me a cwassant!). Or we could start at zero for both of us and go with German (again, so we can pretend to be tourists, though Swedish would be better if we could keep ourselves from saying borkborkbork) or Japanese (actually a language I’m interested in learning). I’d love to learn how to say “hello”, “please”, “thank you”, “goodbye” and “where is the bakery?” in every language I could. But C isn’t into it and he thinks trying to learn while driving may be difficult. I’ll go quietly delete the Portugese language podcast. And the Russian one.

But, hmmm, 40 hours in the car. I’ll need something to do. So I was thinking about that.

  • Audio books in the car have been tough… the story flows without pauses and breaks so if one of us wants to point out “hey, check out that sign” we lose some narrative. So the book has to be simple enough to ignore minor interruptions. And an excellent narrator, good story. I think the two best books we’ve had before were Micheal J Fox’s Funny Man and John Scalzi’s Agent to the Stars (read by Wil Wheaton). We did get a pile of books and lectures so we’ll have our choice.
  • stack of audio books

  • I can look up hotels and whatnot, getting a little carsick and hoping for decent signal. (Though we have some paper guides so that will help.)
  • I can blog (badly) since I can type in the car (but I can’t read back). Though my wifi keyboard is kind of loud so C may not enjoy this.
  • Every day, we are going to purchase a new album and listen to at least half of it. The album should be something related to where we are, such as the band sang about it (Route 66, 18 Miles to Memphis), the band originated in the state we are passing through (oh Wikipedia, I love you), or the album benefits something on the day’s route. I’m hoping the “which album to buy” discussion is amusing as well as increasing my musical horizons. And I suspect good albums could be listened to 2-3 times that day and revisited.
  • Watching movies in the car is possible given the ipad. As long as it is something the driver is happy listening to (Star Wars, Princess Bride, etc). This would still make me carsick but I can listen as well, don’t have to watch the classics.

A friend suggested cross-stitch or knitting but I don’t know how to do either and I bet learning will be carsick inducing unless I start now. Also the potential for poking my eye out seems high.

License plate spotting doesn’t seem that exciting to me. C’s vision is about double mine so that makes it particularly tedious. Twenty questions with someone you’ve lived with for more than a decade is not that hard. There are other car games but none seem to appeal quite yet.

C says he’s going let me drive every day. While that should help some with the boredom, it doesn’t rate as amusing.

Any ideas?

h1

Clouds I

April 12, 2012

I really thought we’d have to get to the midwest to views of clouds. Or at least we’d have to get further than Mountain View…