Older blog entries for MichaelCrawford (starting at number 179)

Reinventing My Campaign for California Governor

Well, my effort to unseat Arnold sort of petered out after a while. I was making great progress at first, going to the gym every other day, and eventually increasing the weight I lifted and adding some new exercises. But then things got hectic and I stopped going, and let my gym membership expire.

I decided at some point that I would try again, but work out by bicycling instead, in part because I prefered riding outdoors to anything I could do in a gym, but also because working out on a stair machine in the gym drove home to me that I need aerobic exercise. I could only do the stair exercise for about three minutes before I would start retching from overexertion.

I got to be in such poor condition because I spend so much time sitting at my computer. My colorful Newfoundlander wife says I don't walk the length of myself.

Cycling was delayed because my bike got kind of banged up in the U-Haul truck that we moved our stuff from Maine in. I finally got it together to repair it, readjusting one of the breaks, replacing a couple bent chain links, but then discovering the derailleur was bent. Trying to shift to a lower gear would drive the derailleur into the spokes of the rear wheel.

I prefer to work on my bike myself, but I couldn't figure out how to fix the derailleur, so I took it to a bike shop. They couldn't salvage the derailleur, so they installed a new one, and I had to wait several days for it to be out of the shop, finally paying $75 for the parts and labor.

Happily, the new derailleur works great. My bike has indexed shifting, so gear changes snap right into place. The old derailleur I think was worn and certainly out of adjustment, so the indexing didn't used to work well, but the brand-new derailleur is adjusted just right, and makes my bike easier to ride than it was before it got damaged.

For a while now I had been kind of depressed, not feeling sad really but tired, sleeping way too much, unmotivated and finding it very difficult to do even simple programming tasks. Every shrink I've ever seen has told me the best medicine for depression is vigorous exercise. That has been my experience in the past, but the problem is finding the gumption to exercise when I really feel like just taking a nap.

I've been doing better the last few days. It wasn't the exercise, but the urgency that I fix a bug that was keeping my client from shipping his product.

I was really stymied at first, but one night I gathered all the courage I could muster and waded into a bunch of really complex multitasking embedded code, stayed up all night in the debugger, and in the morning I discovered that I was ignoring the result of a system call whose result needed to be heeded. Checking it and propagating the occasional error result made a whole bunch of stuff that used to be broken start working really well.

Yesterday I got my bike back from the shop and finally got to ride. After my experience with the step machine at the gym I didn't try to ride very far, just three miles on level ground, but I guess as a testament to my pathetic physique I worked up a good sweat, and my legs felt all rubbery for the rest of the evening.

But I felt good from the exercise, and today I rode a little farther. I'm going to go farther each day, until I'm riding for an hour every day, and eventually try riding up a big hill that overlooks the town.

Once I'm able to ride up the hill without dropping dead, I'm going to join the gym again and resume lifting weights. I'll go bicycling each day, stopping at the gym, then work out on the weights, then ride home.

It's really hard for most people to exercise regularly when we're out of shape. But if we can find some way to keep at it, there will come a point where one feels the need to exercise every day, where it feels somehow unpleasant to let a day go by without working out. If I can just keep up my motivation to reach that point, I will finally be able to get in shape.

And then I'll defeat Arnold in the next election :-)

There was one time in my life when I did so much bicycling that I was in really good shape. I had a summer job at UC Santa Cruz, where I was a student, and couldn't afford a parking permit so I rode my bicycle to work. UCSC is at the top of a big hill. It was hellish at the start of the summer, I was really depressed and in poor condition. Early on I only showed up to work every other day because I couldn't bear the prospect of the ride.

But I had to earn the money so after a while I started to ride every weekday. I started timing my trip from my house to the gym on campus, where there was a scale so I could weigh myself. I tried to beat my time each day. After a few weeks I had a much easier time climbing the hill, and I was losing weight too.

By the end of the summer I had lost twenty pounds, then started gaining weight as my legs got more muscular. I rode every day, even on weekends when I didn't work, and sometimes I'd ride up the hill again, after work, with friends just to get the exercise.

I felt so good then, possibly the best I've felt in my life. Unfortunately it didn't last, because I left school and got a job that was too far to ride, and required so much time I rarely could find the time to ride after work.

At the end of that summer I weighed about 175 pounds. When I was married in 2000, I weighed 250. I lost 50 pounds since then with low-carbohydrate diets, so much weight that I have to wear my wedding ring on my middle finger, because it falls off my ring finger and I fear I might lose it.

But no amount of dieting seems able to budge the scale anymore, and the experience with the stair machines makes me fear a heart attack someday.

I'm determined to get back to the way I felt and looked that summer at UCSC so long ago. I haven't seen 175 pounds since 1987. If I was able to get in such fine shape back then, surely I can do it again.

Database Filesystem

gregors, you can do what you want with MP3s right now with the BeOS and Be File System.

You can download the free-as-in-beer BeOS Personal Edition that you can install on a Windows system. The BeOS 5 Pro, which is a proper full operating system install, is no longer sold since Be went bankrupt, but maybe you can find one on eBay or something.

There is also the (newly named) Haiku OS, which aims to be a source and binary compatible open source clone of BeOS.

There is also a BFS driver for the Linux kernel. The kernel sources call it "BeFS" because there was another filesystem called "BFS". However, I don't think the features that make it so cool are exposed by Linux' virtual filesystem layer. It could be in the future.

The filesystem is very well explained in Dominic Giampolo's excellent book, Practical File System Design with the Be Filesystem (PDF Link).

I found that link after Googling for dominic's name and clicking the link on his homepage. I was quite surprised to find that the above PDF link is the entire book of 247 pages!

Writing about Music

I just grew a goatee:

I had a full beard when I was younger, but had shaved it off and just had a moustache by the time I met Bonita. She didn't want me growing my beard back, but seems to like my goatee.

There's a lot of grey in it though. I'm an old guy now. You can't really see it in the picture.

I had Bonita snap the picture because Josh Cohen, guitarist for the band Fitehouse wanted to add my music downloading article ito a collection of essays on the state of music on Fitehouse's website.

You should definitely read his piece Common Musical Sense, which is about the effect of consolidation in the recording and radio industries.

My article prominently links to the download for Fitehouse's EP The Bomb because they created a new music license called The Fitehouse General Public Music License and released one of The Bomb's tracks under it.

Just as the GPL requires one to release the source to a program, the FGPML requires one to release the raw, unmixed studio tracks to a song. The Bomb's download page includes nine uncompressed WAV files, so if you like, you can play or sing the song yourself and mix your own version.

Software Architecture

In my kuro5hin diary: Designing Software with UML is Like Going to Church.

With a poll: do you use UML. No one's voted yes so far.

Some guy called me a "code monkey" for saying this, but I say that just goes to show how risky it is to challenge the orthodoxy.

24 Apr 2004 (updated 24 Apr 2004 at 00:45 UTC) »
The Economy

Yes, nymia, I think the economy is definitely recovering.

There was a period of about a year a while back, when I didn't get one single inquiry from any potential new clients. It was really scary. I was very fortunate to have a long-term contract, if it weren't for that I don't know what I would have done.

But now I find I have as much business as I can handle, and am having to turn away new clients. I'm getting new inquiries pretty regularly now, and in increasing numbers.

I prefer, when I can, to refer clients to other consultants, rather than just turn them down. Anyone here who is interested in having me refer work to them is welcome to contact me at crawford@goingware.com and I'll keep you in mind. Most of my work these days is firewire stuff, both in embedded devices and Mac and Windows drivers.

I'm not looking for any kind of referral fee, but good karma.

Consulting

It seems that potential consulting clients are starting to find me from my diary. There's been a few such clients who've inquired after finding a diary entry where I've talked about a project I was working on.

Heh. I guess I should stop worrying that the things I write online might impact my business in a negative way.

So I guess I should say:

Have gun, will travel.

14 Apr 2004 (updated 14 Apr 2004 at 07:26 UTC) »
Homesick

I never thought I'd get homesick, not while I was with Bonita. The main reason we moved to Canada was that she was homesick. I like Canada just fine, so I figured I'd never get homesick living here.

But just now I was listening to Radio Paradise - which is located in Paradise, California, a small town in the Sierra Nevada mountains - and they played a song called California Stars by Billy Brag & Wilco.

I found my eyes filled with tears. I miss California so much. The song reminds me so much of Santa Cruz. I lived there for fifteen years. I never thought I'd leave.

I am so far from home.

I'd like to rest my heavy head tonight
On a bed of California stars
I'd like to lay my weary bones tonight
On a bed of California stars
I'd love to feel your hand touching mine
And tell me why I must keep working on
Yes, I'd give my life to lay my head tonight
On a bed of California stars

12 Apr 2004 (updated 12 Apr 2004 at 03:20 UTC) »
Writing and ZooLib

I've decided I ought to finally get around to finishing The ZooLib Cookbook, which I started quite a while ago and then got sidetracked away from.

My article on happiness is turning out to be much more difficult to write than I had anticipated, so I'm leaving it off for now to spend time thinking more deeply about the subject.

I've been wanting for quite some time to write a book, and figure that finishing the one I've already started would be the best way to go.

I approached a couple publishers about having them make a dead-tree edition of the zoolib cookbook, and even wrote up a pretty good prospectus, but got turned down by both because not enough people were using zoolib yet for the publisher to be confident they would sell enough copies to recoup their investment.

But I know the biggest complaint most people have about zoolib is that it's poorly documented. That's all my fault - I promised Andy Green I'd document ZooLib way back in 2000, and I haven't fulfilled my promise yet.

I think that if I actually completed the zoolib cookbook, it would encourage so many new developers that the chances of getting a dead-tree edition published would become pretty good.

I'm working at configuring my iBook both to support writing documents in docbook and to hold the zoolib source code and serve it to my other boxes. ZooLib being a cross-platform framework, what you want to do is put the source on a file server so that computers running other operating systems can get the same set of sources.

I have a Mac running Linux as a dedicated file server, but I want to be able to take my ibook to other places to work.

Update: DocBook

I could use some help from anyone who has successfully processed docbook XML documents on Mac OS X using the toolchain provided by Fink (a port of debian's apt package system to Mac OS X). I'm making progress, but right now I get hundreds of errors that are all like:

"X0174" is not a function name

I've gotten docbook to work on slackware and debian before, but it is always a chore, and I haven't found a nice way to do it yet that doesn't involve scripts with lots of hardcoded pathnames.

Married Life

Bonita told me the other day, that if she really wants something that she feels she should not buy, she will ask me about it, because I am sure to insist she should have it.

Writing

badvogato, I agree I haven't done such a good job on What is the Key to Happiness? - yet.

But I'm determined to do well at it, to do very well at it.

I wouldn't have publicly linked my first draft in the past, but I'm experimenting with requesting criticism earlier in the process than I have before. I do find it tremendously helpful to have others critique my writing as I write it. Previously I just asked a few friends to critique my early drafts but thought I would try opening it up to everyone.

Sometimes I think I've done a great job on some particular part of an article, only to find that other people just don't get it. That means I have to work harder to make myself clearer. That's something that wouldn't happen if I waited until I was all done to publish an article.

Bonita read my draft last night, then we had a long discussion about it. I really enjoyed the talk we had. Bonita seems to think I have bit off more than I can chew with this topic, and I do find that it's harder to write about intelligently than other articles I've written.

But Bonita thinks I should persist in writing it, but to take longer to work it out, so that I ultimately can do a good job. And that is what I shall do.

She thinks I should read more books than the two I'm writing about in the article. She also doesn't think I should have posted my very first draft online - but that was an experiment, you know what they say: "release early and often".

One reason I write on a particular topic, the reason I pick the topics that I do, is that writing helps me to clarify my understanding of some question that is bothering me. I spend some time trying to figure something out, but there's only so much that I can hold in my head without writing it all down. Writing an essay or article, and doing the work it takes to write it well, helps me to understand.

Quite aside from any benefit anyone else may get from reading my new article, it is a question I need to answer for myself. I have spent so much of my life so desperately unhappy, struggling to understand how I could possibly ever be happy again, that to really understand this would be more valuable to me than just about anything.

I'm happier than I was a few months ago, but not as happy as I would like to be.

170 older entries...

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!