The NYT Workflow

Most of you have probably figured out that I’m a workflow geek. I love reading about people’s workflow and how they optimize their daily tasks. Popular Mechanics has a great article on The New York Times workflow. Many people in many different jobs collaborate, often under rigorous time constraints, to get each day’s paper into the hands of its readers.

The article starts out at 1:35 AM at the Times printing plant. Just getting the rolls of newsprint loaded for use by the presses is a major undertaking. They have a control room that the director of plant operations describes as an indoor traffic control tower. The facility is so large that the crew uses adult size tricycles and golf carts to get around.

The story moves on to 6:20 AM when one of the editors opens her eyes and starts checking on what happened overnight. The story continues through the day covering editorial meetings, dropping by the NYT R&D lab (yes really) and finally ends with the paper route couriers picking up and assembling the papers before delivering them to readers.

It’s a machine with a huge number of moving parts. Not all of those parts are covered with glory but every one is a necessary cog needed to get the readers’ daily papers to their doorsteps. Most people don’t think about what it takes to deliver their everyday amenities so articles like this serve to remind us that even quotidian articles can require a complicated and sophisticated operation for their production.

If you like knowing how things work, you’ll enjoy this article. It’s a look at something most of us don’t often think about.

Posted in General | Leave a comment

Open Emacs Buffers

I’m so ashamed:

Even though my uptime is measured in months, I get twitchy as soon as I have twenty or more open. I’ve got to train myself to be a little less obsessive-compulsive.

Posted in General | Tagged | 1 Comment

TeX Tips

John Cook, who’ve I’ve mentioned a few times here, has a nice Twitter feed called TeX Tips. Every weekday, he posts a TeX/LaTex tip. Mostly they’re things you’ve probably seen—although some surprised me—but they’re of great value to folks like me who use TeX but not everyday. Even LaTeX has lots of commands that are easy to forget—how do you typeset the Å character, for example—so having a daily reminder of them is useful.

Sometimes he links to a longer post by himself or someone else that covers some useful piece of TeX/LaTeX advice. For example, one post covers the draftwatermark package that allows you to put a watermark, typically DRAFT, on a document. I was wondering how to do that just the other day so it was a good find.

If you use TeX or LaTeX occasionally, Cook’s feed is an excellent and painless way to help you remember the details. It’s one post every week day so you won’t be overwhelmed.

Posted in General | Tagged | Leave a comment

Quote of the Day

Posted in General | Tagged | Leave a comment

Org-Page

If you’re looking for a static-page blogging engine that you can post to from Emacs, you should take a look at Calum MacRae’s post on blogging with org-page. MacRae writes about his setup in detail so that you can set up your own blog relatively easily. His setup uses Ansible, which you may or may not want to implement.

I like the idea of static web pages but I’m not sure I like how org-page displays things. Basically, it reproduces the Org-mode buffer complete with much of the (deemphasized) markup. My source files look similar to MacRae’s but WordPress (or rather org2blog/wp) generates a display that could have been typeset with the default WordPress editor or even LaTex. I like what org2blog/wp does much better but take a look at MacRae’s post and see what you think.

A lot of bloggers I respect that I know are Emacs users are not posting from Emacs. I really don’t understand that. There are lots of blog solutions available that allow you to post directly from Emacs. Why would you not want to do this?

Posted in Blogging | Tagged , | Leave a comment

Cleaning Up Garbage

Regular readers know that one of my New Year’s resolutions is to learn more LaTeX. I’ve been having a lot of fun learning and using AUCTeX to write LaTeX documents. I created a tex directory to hold my .tex files and the resulting PDFs. The problem with TeX is that it’s pretty noisy as far as creating intermediate files is concerned and those files mostly stick around. But, hey, this is Emacs so I thought, “I’ll just write some quick Elisp to clean things up.”

I hadn’t gotten around to that when I decided to scroll through some of abo-abo’s old posts to see if I’d missed anything. Good thing I did because it turns out that there’s already a way clean up garbage from directories. Here’s what to do:

  1. Bring up the target directory in dired1. 【Ctrl+x Ctrl+j】 is often a good way of doing this.
  2. Press 【%】【&】 to mark the “garbage” files.
  3. Press 【x】 to delete the files.

That’s all there is to it. Exactly what constitutes garbage is determined by the dired-garbage-files-regexp variable. It defaults to

"\\(?:\\.\\(?:aux\\|bak\\|dvi\\|log\\|orig\\|rej\\|toc\\)\\)\\'"

but you can customize it to include other types of temporary files you deal with. You can check out abo-abo’s post for one example of this. If you’re a neat-freak about your file system, this is good way to keep things spic and span.

UPDATE: See the comment by David McWilliams on how to do this from AUCTeX (for TeX detritus, of course). Very Handy.

Footnotes:

1

I’m using dired+ so I don’t know if this works in plain dired but you really should enable dired+. It’s much more powerful.

Posted in General | Tagged | 3 Comments

Clearing the Comint Buffer

Bozhidar Batsov over at the excellent Emacs Redux has a very nice post on how to clear comint buffers. Comint is the machinery behind Eshell, and Shell mode. It is a general-purpose mode for communicating with interactive subprocesses and is thus behind many of the REPL systems such as Lisp and Ruby.

Oddly, comint has no way of clearing the buffer, something I’ve often wanted when working with Eshell. Bozhidar shows us how to do that with just a few lines of Elisp. If you use any of the comint-based mechanisms, you should take a look. It will make your life just a bit easier.

Posted in General | Tagged | Leave a comment

Word versus LaTeX Again

Remember that silly paper purporting to compare the efficiency of Word versus LaTeX that I wrote about a couple of times? Daniel Lemire has a nice followup on the paper that incorporates some of the original authors’ responses to its critics. The TL;DR is that LaTeX users are an irrational sect that is anti-scientific. As Lemire says, the paper is an opinion piece not science. Read the comments too.

Posted in General | Tagged | Leave a comment

Narrowing with Multiple Cursors

Grant Rettke points to a discussion in the comments from a Sacha Chua post. It turns out that when you’re in multiple cursors you can narrow the view to just those lines having a cursor. That’s something I didn’t know.

All you need do is turn on hide-unmatched-lines-mode. You can do that by typing 【Ctrl+'】. This is nice because it eliminates a lot of clutter and allows you to concentrate on the text you’re changing. Where is really shines, though, is with a large buffer where you normally wouldn’t be able to see all the cursors.

Actually, hide-unmatched-lines-mode will provide some context—2 lines above and below each cursor, by default—but, of course, you can configure that. This is another great enhancement to one of my favorite packages. Another gift from Magnar Sveen.

Posted in General | Tagged | 1 Comment

A Hydra Video

If you took my advice and starting following (or emacs you’ll be familiar with abo-abo’s hydra package. It started out as a relatively simple macro, def-rep-command, that allows a command with a prefix to be repeated by merely pressing the last key. That got a lot of favorable attention so he refactored it into an ELPA package.

Then Sacha picked it up and made a small enhancement that allowed her to use it to control window switching. Since then, abo-abo has made continuous enhancements to the package making it a very flexible tool. Now abo-abo has produced a video that demonstrates its power. The video shows hydra being used for a variety of different tasks and will be sure to give you some ideas.

If you follow the link above, it will take you to a post by abo-abo that, in turn, has a link to the video. It also shows the current version of his window switching code. You’ll see that it now handles most of usual window handling chores including calling ido for another buffer and loading frequently used files with a single key by bookmark+. You can also call executable code so it has about the same power as John Kitchin’s Emacs/Helm hotspots setup that I wrote about previously.

I have to say that I’m really tempted by this. It seems like a nice way of loading frequently used files and switching between, swapping, and deleting windows. It has the advantage over Kitchin’s solution of loading hydra, which can be useful for other chores. On the other hand, the same can be said of Helm. A fine example of Buridan’s ass.

Posted in General | Tagged | Leave a comment