I used to use homebrew, but before that I used MacPorts. (And long, long, before that, fink.) The past year or two I’ve come back to MacPorts. But I forget what the commands are. (Honestly, I get them confused with apt, but that’s a separate problem.)
The usual thing to do is to search and then install:
port search whatever
port info whatever
port variants whatever
port install whatever +somevariant
The other thing is to update the stuff you’ve already installed
(This bug is perhaps unrelated to a separate problem — honestly, a bug — wherein someone decided it would be a good idea to change the file’s “modification” time every time a song was played. This is an idea so stupid I simply cannot imagine how anyone thought it was clever.)
Since the gem ecosystem keeps changing, and since I don’t write new programs very often, here’s a list of my favorite gems for developing command-line interface tools.
Option parsing gem: slop. (Since micro-optparse looks moribund; see here.) But (looking at programs I’ve written) I also seem to like trollop, a/k/a optimist. But I also like the fine-grained control of OptionParser.
Debugging output (not the same as logging): pastel
Wrapper for ImageMagick: About a decade ago, I couldn’t get RMagick (rubymagick?) to compile and I’ve never gotten around to checking back. For awhile I used %x<convert ...> or whatever, but now, if I’m working with images, I’ve sometimes found mini-magick helpful.
Proper Capitalization of Text Strings That Are Titles: titleize.
Parsing Biblical references (e.g., Romans 8:39 and Genesis 12:1-4): pericope.
I have this problem and can’t figure out what causes it. Once in awhile (more recently the past month or so, unless I’m imagining it) my bash autocomplete adds a trailing slash when it doesn’t belong there.
Q: if I have to learn about bash completion anyway, should I learn how to do my own bash completion scripts? Because I’ve found that tab to expand is about as smart as I want it to be. (I’m always frustrated on my Linux system because the default there is to notice what the command is and only offer to expand certain compatible filetypes.) Here are two places to get started:
The second book in this very occasional series is … well, any of Heinlein’s juveniles. The cover is from the final book in the series, Have Space Suit, Will Travel (1958). It features bug-eyed monsters, space pirates, and a plucky hero who saves the earth from alien invaders over Labor Day weekend and still makes it back in time to get a free-ride scholarship at M.I.T. and throw a milkshake at the antagonist. Plus, we are taught a handy mnemonic for the order of the nine planets (see below) and a parable about frogs that isn’t the one about boiling them slowly. (Sorry for all the spoilers, but you’ve had 62 years.)
For this posting of my #2 fiction book, I could have picked any one of the series. They’re all great (except, I guess, Rocket Ship Galileo, the first). I mean, they were great when I first read them, starting in junior high school, when the science was only a little bit dated. (Venus had turned out not to have swamps, for example, and Mars never had canals. Jupiter’s EM environment would probably make Ganymede a poor place to farm.) Starting in 1953, after a few books set in our solar system, Heinlein got wise and set his stories somewhere more romantic.
But despite that, the juveniles are still great. Honestly, they’re better than most of Heinlein’s non-YA fiction. Practically all of it. Especially if you see Starship Troopers as the YA fiction that it ought to have been.
What are you waiting for? Get started! For a complete list, see the wikipedia article (search “heinlein juvenile”). But you’ll need to get them new. We never put the old ones back into circulation.
But the key point at issue is the great gulf separating [the gods] from us, together with the apparent randomness of the world and the non-intervention of outside divine forces. Much of the claim to be new, ‘modern’, and indeed ‘scientific’, at the time and ever since, has thus been simply the attempted justification of a much older worldview by appeal to new scientific discoveries and technological achievements. We glimpse all this, to repeat, after the event, seeing how things in fact turned out and the way in which this idea of a ‘modern age’ has subsequently taken hold on the Western imagination. I do not envisage a conspiracy in which people were saying, ‘Now, how can we re-launch Epicureanism without saying that’s what we’re doing?’ My case is more about long-term effects than explicit intentions, though the intentions, not least in their social, political, and ethical dimensions, were often at least implicit. What matters is the way in which the newness of certain scientific discoveries was used rhetorically to press the claim to the newness of the worldview. At the time [the 18th century], many leaders of the movement knew perfectly well that they were rekindling ancient fires. Those who today invoke ‘the modern world’ either ignore this or choose to forget it.
I’ve been challenged by a friend on one of the walled garden social media sites to list seven (?) books so that identity thieves can get started figuring out the answers to my security questions. Maybe he’s getting a cut of the take. But I’m too loyal a friend to respond with utter fabrications. The books I list here will be 100% truthful. Trust me.
I’m not sure I understand what the rules for this game are, so (for the first seven books at least) I’ll only post works of fiction.
Number one is obvious. Like, nothing-else-comes-close obvious. To wit, Robert Heinlein’s The Moon is a Harsh Mistress.
Naturally, no sooner did Kevin challenge me to this dumb contest than he stole my thunder, or tried to. Notice, however, that my cover is from a significantly older edition than his. I have an even older one (below), but I don’t read it, to protect the spine. I also have the hardcover, and the Audible book, and Kindle. I even have a PDF of Tim Minear’s script for a movie adaptation.
I first read The Moon is a Harsh Mistress in 9th grade. I almost didn’t. At first, I only read a couple of pages, because the protagonist narrates the book in some kind of weird more-or-less Russian. (Imagine if Lt. Chekov were to dictate all the Captain’s Log entries on Star Trek.) Reading that was work, and I’m opposed to doing that, so I nearly gave up. But my friend Daniel Henderson, who’d already read it, convinced me to make the effort, so I #persisted. And it was worth it.
In P.E., we were playing baseball, so Daniel and I would take positions way out in the outfield and talk about the book. Periodically one of the jocks in class would yell at us that a ball was headed toward the outfield and we’d have to stop and deal with the ball before going back to talking. I remember doing a book report on The Moon is a Harsh Mistress in an English class that year. I don’t remember how the teacher responded, but my grades that semester were 4 C’s and 2 D’s, so it must not have impressed my teacher.
By the time I got to college—which I did, eventually, despite a less than stellar 9th grade GPA—I had probably read it 20 times. I could hand the book to someone and ask them to open it at random and read a sentence, and I would respond with the next one. It’s that good. And I’m that much of a geek.
The technological details haven’t aged well, although they did influence my career. Long before I studied computer science, I had become skeptical of monolithic systems design; a natural alternative for me was the Unix philosophy of small sharp tools, and, later, distributed systems. But Heinlein was usually wrong about the science fiction. (To use Peter Thiel’s language, he was usually too bullish about atoms and, if not bearish then insufficiently bullish, about bits.)
What Heinlein got right was the politics. (I don’t want to spoil it, but TMIAHM is not, despite what you may have heard, or read on the cover of the hardcover edition above, the story of people who set up a libertarian paradise on the moon. Quite the contrary, they destroy one. Because it had to be done. Sigh.)
But Heinlein also raises non-political questions. I’ll mention just two. First, what is a marriage? What constitutes one, what is its purpose, and what support ought society give it? Second, what is a soul? Can an artificial intelligence be alive? If it did, would it have rights? Could it be noble?
If you don’t like this book then, sorry, we just can’t be friends. Have a nice life.
We saw Knives Out last night and I enjoyed it. I figured out who did it as soon as he or she made their entrance, but I did waver in my confidence briefly near the end, only to have it restored and then be vindicated by the detective. We had a debate about which of the heirs was the least likable of a bad lot. I think it was the murderer.
By the way, Rian Johnson impressed me a lot more with this than with the #8 Star Wars movie. (I can’t remember what it was called. I’ve tried not to remember anything about it.) So when RJ makes a good movie following a turd, the least hypothesis is that it was Disney management, not the director, who made SW8 so bad.