Steer like a bicycle, race like a car

Today I did something I should have done years ago. I’ve had all the pieces for quite a while, but I had never quite gotten around to putting them together. Now I wonder why I didn’t do it sooner. I’m sure you’ve had the same feeling.

When I develop my little computer graphic programs (like the gear example from yesterday), there is generally a trade-off: Either I can approach them in a way in which everything runs super fast (the “compiled” approach) but making changes is slow and clunky, or I can approach them in a way that runs a lot slower (the “interpreted” approach) but changes to the program show up pretty much instantaneously.

If you think about it, this is a difficult trade-off to navigate. If everything runs really fast, you can create far more exciting and interesting things. But you find it too slow or awkward to make little tweaks and changes, then it becomes hard to perfect your design.

It’s kind of like the difference between driving a big automobile and riding a bicycle. The car is powerful and fast, but the bike is far more maneuverable.

Today I figured out a way to make selected parts of my Java programs act like a bicycle while I’m tweaking them, but then like a big car when I am ready to put them out into the world. This means that I can make super fast design iterations, and still end up with something fast and powerful when I’m all done.

This makes me very happy.

The beauty of mechanisms

There is a research project here at NYU for which I am planning to build a little custom-made robotic mechanism. One of the key components of this mechanism is a “worm drive”. Worm drives, which you may have seen in toy cars, are useful when you want an easy and compact way to gear down the rapid rotation of an electric motor into a rotation that is a lot slower but more powerful.

The general idea is to attach a threaded screw to the shaft of your motor. As the motor rapidly turns, the threads of the screw (being helical), seem to gradually drift up or down the shaft. This drift can be used to transfer power from the rapidly spinning motor to a slowly turning gear.

This weekend I used my little home-brew software modeler/renderer to make a 3D computer graphic mock-up of one of these things. I spent way too much time on it, partly just because it was fun, and partly because I ended up being quite taken by the sheer aesthetic beauty of this mechanism.

If you click on the image below you will see an interactive Java applet that shows a worm drive in action. The applet also will also let you zoom in for a close-up:



 
Individually, the two parts of the drive are rigid, yet the effect when they move together is surprisingly sensual. There is something strikingly intimate about this dance between two very different yet perfectly synchronized shapes. You could say they were meant for each other.

All in one place

I remember from previous longer things I have written within these pages that people have requested “the whole thing at once”. So I have now compiled the thirty posts that constitute “A Nose for Danger” into a single conveniently sequential read.

The daily breaks in the original telling have been marked in the form of thin horizontal lines. You can think of these as virtual pages. Each such page actually counts off a day of my life during the month of November 2012. This nod to temporal authenticity may or may not be relevant to your reading experience, but there it is.

I understand that many people who participate in NaNoWriMo (National Novel Writing Month) revise their creation after they have recovered from that initial insane monthlong rush to produce a book-length cornucopia of words. It is not clear to me that there is anything in this particular novel that I would wish to revise.

So here it is, as original written: A Nose for Danger (a novel).

Elephant parts

The experience of writing a novel within the thirty allotted days of National Novel Writing Month was intense, and mostly good. I stuck with my rule that each segment needed to be written “on the day”, not in advance. Though as the month went on, and I got to know the novel’s world better, it became clear to me where the characters wanted to go, and I pretty much just happily followed them there.

The entire enterprise actually evolved from a single word. A friend, who happens to be named Lulu, had come up with the word “Smellephant”, which she thought would be a great name for a character in a children’s story. When I asked her, somewhat nonplussed, “What’s the difference between a Smellephant and an elephant?” she replied, as if it were obvious: “Because … he’s the Smellephant!”

And from that contradiction came the key insight that led to my writing this novel. For when is an elephant not an elephant? When he’s a hard-boiled shamus who follows his nose, an antihero who deeply resents being beloved as an elephant by children everywhere. A sort of “Babar Noir”.

Bits and pieces then dropped in from a multitude of random sources, like shreds of brightly colored cloth woven into a magpie’s nest. For example, at the start of the month a friend from the U.K. happened to mention the opening line of “Rebecca”, which made for a perfect beginning, since du Maurier’s dark classic is as far from a cheerful children’s book as you can get. Then exactly one month later, I managed to slip in a sly reference to Michael Nesmith, which is always a good thing. Other influences were too personal to mention here, but will be recognized by the individuals involved.

But ultimately the Smellephant exists because he has always existed, in the hopeful hearts of children everywhere, and in the dreamlike shadows of tales waiting to be told. Wherever there is a dame in need, or a crime in need of justice, you will find the elephant who never forgets. For what are dreams but memories set free? And as we dream ourselves awake, the Smellephant follows his nose.

A Nose for Danger, part 29

Suddenly there was a commotion at the door.

“Sorry chief,” an officer said, poking his head in. “This tortoise here claims he’s an old friend of yours. I think he’s some kinda foreigner. Says he’s got a present for the Smellephant.”

“It’s ok, let him in,” the chief nodded.

It was Tommy, and he was holding a gun. The pointy end of the gun was aimed at a very upset looking ferret. “He’s got no right to do this. Tell him chief.”

Tommy ignored the ferret’s outburst. “Was like you say, Smellephant. Ferret shows up at hospital, looking for Sam.” The tortoise was looking very pleased with himself. “Finds me instead.”

The chief turned to me. “Well well. Looks like the ferret went straight for the chimp, as soon as he heard Sam was still alive. You know what this means, right?”

“I think,” I said, “it means you can uncuff the lady.”

“Thanks,” Lulu said, flashing me a big smile. “I don’t know how I can ever thank you. Or maybe,” she said slyly, “I do.”

“So the ferret was behind everything?” the chief was starting to put the pieces together in his head.

“Nah, ferrets don’t read du Maurier, everybody knows that. He’s just a hired hand, working for the real perp, the one that created a false paper trail, then killed Winthrop, Manny too when the parrot was about to sing, and paid the ferret to plant Winthrop’s glass at my place to implicate me. Then shot Sam when the chimp got wise to the forged records, and used that number sequence to make sure the trail would lead back to Rebecca.”

“So who’s the perp?”

“Someone who knows how to forge documents well enough to make a pile of money once Winthrop’s out of the picture. Someone we all thought was dead — because the ferret told us he was. But our mastermind couldn’t resist leaving a signature — the first animal mentioned in the novel “Rebecca”: A rabbit!

“So,” the chief said, “it was Whiskers all the time! Now that we know he’s the one behind this harebrained scheme, we’ll catch up with him soon enough. But Smellephant, how could you remember something like that, an old book mentioning rabbits?”

“Haven’t you heard?” Lulu said, “An elephant never forgets.”


THE END

A Nose for Danger, part 28

The chief took us down to the station. I wore a fedora, Lulu wore handcuffs. The desk sergeant started processing the precinct’s number one murder suspect.

“By the way,” the sergeant said, “those lab results came back.” He handed the chief a folder.

After studying it for a moment, the chief stared at me long and hard. “When I heard you had those prints lifted, I sent them down to central for a full ID check. Just standard procedure. Guess who prints were on that glass, Smellephant?”

“Ok, I give up,” I shrugged.

The chief nodded toward Lulu. “This gal’s dead dad.”

I gave him a steady look. “What are you implying?”

“Isn’t it obvious? This puts the victim at your place, and we know you and the dame have been playing patty cake. We also know she’s been impersonating her sister.”

“Chief, are you’re saying…”

“You know exactly what I’m saying. You two were in this together, killed Winthrop for his dough.”

“But I’m the one who brought the prints to Hu in the first place.”

“Thought you were being cute bringing in that glass and teacup, didn’t you? We find the same prints on both, and everyone thinks there’s only one dame. But you got unlucky — you picked up the wrong glass.”

“But why would Winthrop come to my place?”

“Not for me to say. I guess that part of the story died with him. But it connects you to the murder. Looks like you outsmarted yourself this time, Smellephant. Sarge, book him.”

A Nose for Danger, part 27

“As you have already decided that I am guilty of these murders, what would be the point of speaking in my own defense?”

“Look, Rebecca,” I said. “You had motive and opportunity. As your father’s heir, you stand to gain the most from his death. The gaps in your sister’s records suggest you were in the process of planting false info about her, which you hired Whiskers to forge. Then you killed the hare to cover your tracks, and Manny because he got wise to what was going down. It would have been a perfect crime if Sam hadn’t found some records you missed. The chimp is the missing link.”

She shook her head. “I am sorry that Sam is dead. I … I know he was your best friend.”

“Well, I guess the truth can come out now. Sam’s still hanging in there, although he’s in a coma. We don’t know if he’ll wake up.”

“Hey Smellephant,” the Ferret asked, “I don’t mean to interrupt, but do you mind if I go? I don’t need to be here for the dramatic parts.”

I nodded. What was coming next probably wouldn’t be pretty.

“Miss Winthrop,” the chief said to Rebecca, “I’m afraid I’ve got to formally charge you with these murders.”

“Yes,” she said, “but which Miss Winthrop do you mean?” Suddenly I realized her accent was gone. In fact her whole way of carrying herself had transformed. Right before our eyes, Rebecca had turned into Lulu.

“So,” I said, “you’ve been the same gal all along.”

“Apparently,” Lulu explained, “I am a classic case of a split personality. That’s what the doctors say anyway. Rebecca doesn’t know. This personality comes out in times of stress.”

“Yeah,” the chief said, “I can see how being arrested for homicide can be stressful.”

I had to admit I was glad to see Lulu. I’d kind of missed her.

But the chief looked troubled. “Hu showed me the lab report.”

“Who showed you the lab report?”

“Yeah, exactly. And the prints didn’t match. So how does one dame,” the chief said, looking hard at Lulu, “have two different sets of finger prints?”

A Nose for Danger, part 26

Chapter 6

“How do you know elephants are afraid of commitment?”

Rebecca just stared at me. I don’t think she was in the mood for a joke.

Fortunately the chief saved the moment. “Because,” he jumped in, “wherever they go, they take their trunk with them.”

She looked from me to the chief and back again. “Was that supposed to be clever?”

“I’m not sure clever is the right word,” I shrugged. After all, maybe I was afraid of commitment. Some joke. “We asked you here,” I said, attempting to move on, “to figure out what happened the night that Sam got shot.”

“I really don’t know what you are talking about. Of course I am saddened that your friend was killed, but I cannot see how that has anything to do with me.”

I had to hand it to her, either she was innocent or she was a very good liar. “I asked you the other night if you recognized the sequence of numbers 4514295. Got anything to say about that?”

“I told you Mr. Smellephant, it’s just a meaningless string of digits.”

“I figured you might say that. I asked the ferret here to get a certain book. You might recognize it. After all, it’s got your name on it. Also the last message of a shooting victim.”

The ferret was only too eager to hand her the book. The publisher was Victor Gollancz of London, the author Daphne du Maurier, the title “Rebecca”. It was a first edition too, 1938, original dust jacket. I’d had the ferret bring it here from the city archives. Maybe that was my real idea of a joke. She turned it over in her hand, like she was afraid to open it.

“Go ahead,” I said, “read the first line.”

“Last night,” she said slowly, reading the words aloud, “I went to Manderlay again.” When she looked up there were tears in her eyes.

“Sam didn’t have the use of his right arm,” I said, more to the chief than to Rebecca. “All he could do was type a sequence of numbers on the adding machine. But maybe that was good enough to finger a perp.”

The chief looked at her. “4514295, perfect match for the letter count of the words in the opening sentence. Not much chance it’s a coincidence. Rebecca, you got anything to say for yourself?”

A Nose for Danger, part 25

“Chief,” I said, “you know I would never do anything to hurt Sam.”

“Right now I don’t know anything, except where we found that gun.”

The clock was ticking, and I didn’t want to stay in this jail cell one minute longer than I needed to. Sooner or later the killer was going to figure out Sam was still alive. “Suppose,” I said, “I could prove to you it wasn’t me.”

“I’m listening Smellephant.”

“The evening Whiskers got shot, I was at the Crow Bar, drowning my sorrows. I was there until closing time that night, running up a tab. You can check it out.”

Fortunately the chief was smart enough to send somebody to check out my story. And that was all it took. Since all the murders were from the same gun, I needed only one solid alibi to knock me out of the running for everyone’s favorite murderer.

For another thing, the chief knew me long enough to know that at the end of the day, I would never shoot Sam. And that, I figured, might count for even more in his book.

It took a few hours, but eventually I got my name cleared, and I was a free elephant. But that wasn’t the end of things. It was just the beginning.

Because now the finger was pointed squarely at Rebecca. After all, somebody had to plant that gun in my office, they did it just around the time she was sleeping on my couch. Which meant there were several possibilities: One was that Rebecca was our murderer. Another was that somebody had planted the gun in my office to frame her.

The chief and I talked it out, and we went over all the angles. In the end, we figured the best thing was to bring her in and let her talk. One way or another, we would find out something.

A Nose for Danger, part 24

While I was cooling my heels in the town jail, I had a lot of time to find out from the chief why they brought me in. It seems they got an anonymous tip earlier that evening. While I was wandering the streets, lost in my thoughts, and then visiting Sam in the hospital, the cops had gotten a warrant, entered my office, found a gun, done a ballistic match, and had concluded that it was the same gun that killed Winthrop, Whiskers and Manny, as well as wounding Sam. I was impressed they’d moved so fast.

Well, I figured, the good news is we now know there was a single gunman. The bad news is the cops think it’s me.

There wasn’t any point telling the chief I’d been framed. They had me fair and square on planted evidence. No, I was going to need to find a way out of here so I could crack this case. prove my innocence, and nail the real perp.

I asked the chief if they’d seen Rebecca, and the answer came back no. Seems she’d woken up by then, left me a note, and gone on her way. The chief was nice enough to hand me the note:

Dearest Mr. Smellephant,

Thank you so much for your kindness and consideration earlier this evening. Partaking of your proffered “medicine”, unorthodox as it was, has certainly served to calm my nerves, which is a great blessing in this time of trials and ordeals.

I shall endeavor not to make a habit of indulging in such medicine in future, tempting as it may be. That being said, it is wonderful to know that you are such a thoughtful and constant friend.

I remain yours, as ever,

Rebecca Winthrop

I remember thinking, while I read the note, that Rebecca was a sweet kid, and it was a shame that she had to be messed up in this kind of nasty business.

Meanwhile, I had problems to solve. It wasn’t just that I needed to prove my innocence. It was also the problem that sooner or later the killer would find out that Sam was still alive.

If that happened while I was still stuck in this jail cell, I had a hunch Sam wouldn’t be alive for much longer.