Jeff Duntemann's Contrapositive Diary Rotating Header Image

programming

Odd Lots

Odd Lots

Odd Lots

  • I posted The Cunning Blood on the Kindle Store 61 days ago, and in those two months it’s earned just a hair over $3,600. 46% of that came from KU page turns. Fellow indie authors, I think we have us a business model.
  • Tom Roderick sent me a link to a very nice graphical COSMAC ELF emulator, designed to look as much like Joe Weisbecker’s unit from Popular Electronics (August, 1976) as possible. You can toggle in opcodes like we did almost forty years ago, and run them. (The Q line drives an LED.)
  • In cleaning out the garage, I took a look at the motor/battery module of my robot Cosmo Klein (which I built in 1977-1978) and realized it wouldn’t take much to get it running again. The original Cosmo had two COSMAC systems and a glass-screen TV for a head (which made him very top-heavy) along with a cranky robotic arm. (Here are some photos of my COSMAC projects and Cosmo himself.) I could hide an RPi2 in that thing and you’d never find it. Funny how stuff changes in 38 years…or maybe not funny at all.
  • From Astounding Stories: Spacemen beating the crap out of one another in zero-G with…yardsticks. By Edmond Hamilton. Not sure of the year, but you can download the whole thing.
  • From the Weirdness-I-Just-Learned-About Department: The tontine, a financial arrangement in which a pool of people contributes equally to buy a pool of assets, and as they die, each deceased’s share is distributed to survivors. Apart from an inceptive to murder your tontine siblings, what could go wrong?
  • In the fever of a house hunt, I missed this item: Amazon is going to create its own line of house brands for food. I have a peculiar curiosity about house brands, which is a sort of shadow business that doesn’t get much press. Why would an industry-leader cereal manufacturer sell its cereal in bulk to other companies to sell as competing house brands? It happens, but nobody wants to talk about it. Big store chains have house brand versions of many products, including most mainstream cereals. There’s a book in this somewhere, though I don’t intend to write it.
  • If you’re not a balls-out supporter of nuclear power generation, I don’t want to hear a word out of you about global warming. We need base load, and neither Sun nor wind can provide base load. In truth, all that stands between us and a completely nuclear future is fear (i.e., political tribalism) and money. The money issue can be fixed. Alas, the gods themselves, etc.
  • It’s been 119 months since a major hurricane (Class 3 or higher) has hit the American mainland. Unless Joaquin goes ashore along the east coast somewhere in the next several days (and current winds argue against that) it’ll be 120 months–ten years–come October 24. That’s an all-time record since records have been kept. Global warming causes everything else; why not better weather?
  • And you wonder why I’m a global warming skeptic. Hey, fellow (potential) morlocks: I hear that our Educated Elite is delicious with melted butter.
  • Americans are embracing full-fat foods, thus spitting in the face of government advice. As well they should: The War on Fat is based on fraudulent science put forth by ace scientific con-man Ancel Keys, whose only real talent was getting government to take his side. Go butter, eggs, and meat. You’ll lose weight, and feel better.
  • Yes, I bring that up regularly, because I’m trying my best to ruin Keys’ reputation. His deadly advice has killed tens of millions, and is still killing them. “I’m supported by the government. I’m here to kill you.”
  • Some good news: A judge kneecapped champion patent troll eDekka by invalidating its only significant patent.
  • And more…for some people, least: Charlie Martin pointed me to an article from Harvard summarizing a study on the beneficial effects of coffee. Coffee appears to delay, improve, or prevent just about everything but insomnia. And what’s my main problem?
  • There! A month’s worth of grouchiness in one Odd Lots! (With a few other items thrown in for spice.) I don’t do that often, but it feels good when I do.

Odd Lots

  • Big, big news today: The Raspberry Pi foundation is now shipping the rumored Raspberry Pi 2 board. (What this means in practical terms is that all your usual suppliers are sold out.) Will write more once I learm more, but geddaloadadis: Quad 900 MHz Cortex A7 CPU, plus a full gigabyte of RAM. And the sleeper, which is still tying my head in knots: The foundation has cut a deal with Microsoft to provide a version of Windows 10 that will run on the RPi2. The cost? Free. No more details than that right now, but I’ll be watching it closely. (Thanks to Bob Fegert for alerting me. Twitter has already earned its keep.)
  • Update: The new Windows 10 deal with the RPi community is part of Microsoft’s larger strategy on the Internet of Things, and will be available without charge through the Windows Developer Program for IoT.
  • Jim Strickland sends a link to Microsoft BASIC for 6502, in assembly. This is from 1978, and the oldest publicly available source code written by Bill Gates. The interpreter exists for the COSMAC 1802 as well, and I may still have it somewhere. It’s on paper tape, and I think in a metal 35mm film can. This was a great use for 35mm film cans, back when there were 35mm film cans, and paper tape to put in them.
  • Wired‘s vulcanologist Erik Klemetti has a fascinating article on how magma forms hexagonal pillars a la Devil’s Postpile and Giant’s Causeway in Northern Ireland. These figure in the yet-unbegun novella prequel to The Cunning Blood, so it was nice to get some science on them.
  • If you liked the Panjundrum (see my Odd Lots for January 29, 2015) you will love this thing, whatever they call it: It’s a Panjundrum that flies. (Thanks to Pete Albrecht for the link.)
  • UPDATE: One of my readers just wrote to tell me that it’s called a “girandola.”
  • Yes, this is short for an Odd Lots, but I wanted to get notice out on the RPi2 sooner than tomorrow or the next day.

Odd Lots

Odd Lots

Odd Lots

Odd Lots

Odd Lots

Yearwander

Wow. Somehow it got to be a whole new year when I wasn’t quite looking. I’m not unhappy to be shut of 2013, and as usual, I have high hopes for this year to be better. The last of our parents has been released from her suffering, and while I miss them all (especially my father, who died 36 years ago) my idiosyncratic understanding of Catholic theology suggests that they’re all in better shape than I am right now.

Which isn’t to say I’m in bad shape. I had a couple of health problems this year, but nothing horrible. I’ve been able to get my abdominal fat down to almost nothing, and weigh just eight pounds more than I did when I was 24. It still puzzles me just a bit, but I lost that weight by eating more fat. I’ll tell you with confidence that butter makes almost everything taste better except corn flakes.

I scored an interesting if slightly peculiar writing gig this year. It’s been an immense amount of work, not so much in the writing as in the learning. I’ve never done a book–or part of one–with this broad a scope. I’ve touched on a lot of technologies in my career, but touching isn’t understanding, and understanding is the critical path to explaining. I’ve written code in Python and C and ARMv6 assembly. I practically buried myself in ARM doc for most of two months. That felt good in the way you feel good after walking fifteen miles…once you’ve allowed three or four days for the smoke to clear. I now know a great deal more about virtual memory, cache, and memory management units than I might have just touching on things in my usual fashion. Curiosity is an itch. Autodidaction is a systematic itch. And to be systematic, you need deadlines. Trust me on that.

No, I still can’t tell you about the book. It’s going to be late for reasons that aren’t clear even to me. When the embargo breaks, you’ll hear it whereverthehell you are, whether you have an Internet connection or not.

Every year has some bummers. The ACA did us out of a health insurance plan that we liked, but at least in our case it wasn’t cancelled on the spot. We have some time to figure out where we can get a comparable plan, if one exists. (One may not.) It could end up costing us a quarter of our income or more, and we may lose relationships with physicians we’ve known for ten years. I’ll just be called evil for complaining, so I won’t. Anger is the sign of a weak mind, after all. I think one of my correspondents whose insurance was cancelled without warning summed it up in an interesting way: “I’m not going to get angry. I’m going to get even.”

It’s snowing like hell as I write. I would have posted a photo, but as most of you are staring out the window at snow this week (in some places a great deal of it) I doubt it would have been especially interesting. Besides, a couple of hours ago, I could have just said: Imagine yourself inside a ping-pong ball. Open your eyes. In truth, the weather hasn’t been all that bad. The global climate, in fact, has been remarkably benign considering all the dire predictions of the past ten or twelve years, at least once you look at actual stats and not anecdotes or GIGO models. Science works. Back in 2007, Al Gore himself told us that we would have an ice-free arctic by 2013. (Then again, he also said that a couple of kilometers under our feet it was millions of degrees…talk about global warming!) I love the scientific method. You predict, you test, and then you learn something. Sure, I believe in global warming. I’m still unconvinced that it’s entirely a bad thing. (I remember the ’70s. I also remember Arizona.)

I’ve also been doing some experimental research on the psychology of people who jump up and start frothing at the mouth like maniacs the instant they read something somewhere (anywhere!) that conflicts with their tribe’s narrative. That research is ongoing.

I’ve discovered a lot of good things, albeit small ones: Stilton cheese pairs with Middle Sister Rebel Red. Who knew? Python is much better than I remember it, TCL, alas, much worse. And Tkinter, wow. You’re not going to spin a GUI that fast or that easily in C. Green Mountain Coffee Island Coconut beats all, at least all you can get in a K-cup. Carol and I are dunking good bread in good olive oil again, now that Venice Olive Oil Company has a retail shop in Colorado Springs.

Time to go up and start cooking supper. We’re out of egg nog but my Lionel trains are still running. I don’t care if it looks like a ping-pong ball outside. I have my wife, my dogs, my junkbox, and a head that still works more or less as intended. Happy new year to all. Life is good, and getting better. Trust me on that too.