Monthly Archives: October 2005

Views from the porch

I’ve enjoyed Cliff‘s views from the porch.

I’ve decided to post some of my own: click here for a few photos.

I also threw in one of the porch itself, to prove that I really can point the camera in all those directions without leaving it :-)

Here’s that one:

Maybe soon I’ll post the views from the *back* porch. Between the two, I think I could get a 360-degree view…

Just A Geek

Recently, I bought a copy of Wil Wheaton’s book Just A Geek.

I’ve read one chapter so far. And I have to say: great book.

This has to be one of the most insightful, brutally honest books I’ve ever seen.

It’s also funny. Here’s a little snippet, recalling his first-ever book signing:

… a guy walked over to me, and extended his hand.

“Hi, Wil,” he said, “I’m Tim O’Reilly.”

HOLY MO– WIL! IT’S TIM O’REILLY!! HE CAME OUT TO SEE YOU!

Before I could scream out, “I KNOW! I KNOW! I KNOW! GREAT GOOGLY MOOGLY!” my brain said, “Stay cool, Wil. Don’t geek out.

I heeded my brain’s advice . . . “It’s really nice to meet you,” I said. . .

Check me out. I totally behaved myself.

Nicely done,” said my brain. “Have some serotonin.

Wil talks a lot about his two inner voices: his totally-honest self, and the voice he calls Prove To Everyone Quitting Star Trek Wasn’t A Bad Idea, or just Prove To Everyone for short.

I think we all have some of Prove To Everyone in us. Especially Americans, and free software hackers, where competition and, well, proving onesself are expected.

It’s time to loosen up a bit.

I’m going to enjoy the rest of this book.

Control Room

Have you ever wondered why so many Arabs hate Americans? Why they view us as occupiers? Why they want to be rid of both Saddam Hussein and us?

We watched Control Room tonight. What a fascinating documentary. There was no narration. Just journalists talking. Arab journalists, American journalists, Pentagon spokesmen. Lots of different viewpoints. Lots of insight.

It was hard to watch at times — they showed footage of how events were covered in different countries, and it was graphic sometimes. They also showed the journalists talking about why they covered things in a certain way.

It was very moving, and thought-provoking.

Sometimes it is useful to have a view from an outsider (to America) or an insider (to the Middle East).

Hello, ext3. Goodbye, reiser4.

So I’ve been trying out various filesystems over the past few months, by converting a few machines to them and using them on a daily basis.

I’ve found that reiser3, JFS, and XFS are all risky and actually corrupt data on crashes. JFS also has a few weird bugs that make the kernel oops, and sometimes cause filesystem corruption. All of the above also have starvation issues, where one IO-intensive process can dramatically slow down everything on the system (by a factor of 100 or more).

Reiser4 has proven better — only one small issue that I can recall. But it’s got a huge problem: no ability to resize a Reiser4 partition. That is rather ridiculous these days, and really reduces the utility of LVM. (Hans says he’ll make it resizable when someone pays.)

So I’ve tried out ext3 again, for the first time in a few years. I’m using data=ordered,commit=300 (or 600 on some machines), which still makes it safer than the other journaled filesystems.

And I must say that it is impressive. The old bottlenecks that I was used to were gone. The thing is reliable and fast, and scales well. I’m going to move everything back to ext3.

So why do Hans’s benchmarks show reiser4 being better? For one thing, most benchmarks measure throughput, not response time, so things like starvation don’t cause black marks in them. Most of them don’t even use multiple processes to simulate real-world activity anyway. Plus, ext3’s default mount options (commit=5, for instance) are much more conservatve than other filesystem’s. To get a fair test, one should increase that commit= number on ext3.

Here’s another discussion about ext3.

Some nice code: libarchive

Yesterday, while looking for information on the format of tar files, I discovered libarchive, which is part of FreeBSD. libarchive and read about 5 different tar formats, 4 different cpio formats, zip, and ISO images, and supports gzip and bzip2. It can also write 2 different tar formats plus cpio and shar. Very nice.

Oh, and its tar.5 is the best reference on the tar format I’ve seen.

I’ve packaged up libarchive and bsdtar (the default tar on FreeBSD, which is built using libarchive) for Debian.

Grandpa’s Creek

“Dad would have really enjoyed this.”

My uncle Ron said those words last Sunday, referring to my grandfather, who passed away earlier this year.

We were having a little family gathering, the first since the events surrounding Grandpa’s death.

We met as his old farmhouse, and then headed out to his creek. My dad already had a fire going — ready for the hot dogs and brats.

That creek, though it’s muddy and smelly at times, has a lot of fond memories for lots of my relatives.

For most of my childhood, uncle Ron lived in Indonesia. Every so often, his family would come back to the US for a few weeks. And just about every time he was in Kansas, he wanted to go camping by Grandpa’s creek.

He’d usually manage to gather a few people to go with him. Just who went would vary depending on schedules, but usually included my cousins (his children), my brothers, my dad, and Grandpa. We’d often go fishing in the creek as well.

At this point, I need to explain a small detail about that creek. It runs through the middle of a pasture. The kind that cattle live in. So, you have to be careful where you step. Also, you have to remember that you might be visited in the middle of the night.

My cousins, brothers, and I set up our sleeping bags on the bed of Grandpa’s pickup. I don’t remember where my uncle and my dad slept. Grandpa was the smartest one, though. He’d drive his car out to the creek, through the pasture, and spend the evening with us. Once it got dark and people were turning in, he’d drive back home for the night. And he’d be right back out there in the morning.

There was also an incident one time where I was fishing with my dad and my brothers, and I fell into the creek. But that’s a story for another day.

This week, my uncle was visiting, and the family got together out by the creek. Most of us hadn’t been there in a few years. It was a great time. We were probably there for four hours, despite the wind.

During a lull in the conversation, towards the end of the evening, my uncle remarked:

“Dad would have really enjoyed this.

But then, he probably is.”

All I Really Need To Know I Learned From 360K Floppies

Today I got inspired: to do something about these boxes of 360K and 1.44MB floppies scattered about the house. There are boxes dedicated to floppies, and floppies in boxes for other things, and floppies stacked on shelves. Some of them have moved with me through three states and thousands of miles without ever being read. Some are nearly 20 years old.

There’s a lot of stuff on those disks. Memories of grandparents, elementary and high school projects, and some code I wrote years ago in Pascal or C.

I decided to read in as many as I can and burn them all out to a CD-R or DVD-R.

Easy enough, right?

Well, not so much.

First, there’s the problem of reading the data itself. Some of the floppies have developed bad sectors in the years since they were last used. Most were formatted under DOS or Windows, and Linux has plenty of tools for reading FAT filesystems. But a few used OS/2’s HPFS. Not so easy to read these days.

1.44MB drives are still not too hard to find, but when’s the last time you saw a new PC sporting a 5.25″ drive? Bet it’s been a long time.

Then, there’s the problem of proprietary data formats. Back in the days of DOS, WordPerfect ruled the day for word processors. WordPerfect had pretty much the sort of stranglehold on the market then that Microsoft Word has today. I wrote lots of material in WordPerfect.

It’s all pretty difficult to get at these days. The very best thing I can do is install WordPerfect 6.0 for DOS and a PostScript printer driver. That will get *close* to the original document formatting, though not exact. (WordPerfect documents were tied to the fonts available in a particular printer, and an Apple Laserwriter doesn’t have much in common with a Panasonic KX-P1180 dot-matrix.) Once I have a PostScript file, I can pull it onto a Linux box and convert it to PDF. Lots of hassle.

Massachusetts made a wise move recently. If you really care about being able to read your documents decades down the road, you can’t be using a proprietary file format. Nobody would have expected WordPerfect’s spectacular fall (primarily due to being late to market with a Windows port). Nobody today expects a Word fall (perhaps due to being late to market with a Linux port?). But it probably will happen.

Then there’s the problem of proprietary software. WordPerfect is proprietary, and so is DOS. Neither are really prepared to run from a hard disk measuring in the hundreds of gigabytes on a modern PC sporting USB and other technologies never heard of in the 80s. But these are some of the easier apps. (Yes, I know there’s a Linux version of WordPerfect, but again, it’s proprietary, and can be difficult to make run on modern systems.)

Try an app like Lotus 1-2-3 that had copy protection. Or one that assumed that it can do whatever it wants with hardware. Not quite so easy now. VMWare can help sometimes, but sometimes it hinders. I had a lot of data backed up with Central Point Backup, part of the PC Tools suite. It formatted floppy disks in a special way (if I remember correctly, somehow getting one extra sector in each track.) Can’t even read them in Linux, and VMWare is clueless about what to do with them.

So I am converting everything I can to a standard, open format. Documents go to text and PDF. The CD/DVD is burned with RockRidge and Joliet, so just about any OS can access it. Documents I write now are mostly done in just ASCII or in LyX, both of which are readable as plain text. Linux can read many open formats that existed in the Unix world before Linux even did. I feel much better about things now.

But then there’s this blog. It’s stored in a MySQL database.

Sigh.

At least I have the source.