The Emacs 26.1.90 Pretest

Nicolas Petton has announced the availability of the Emacs 26.1.90 pretest. Eli is asking everyone to build and use it so that we can have an efficient test.

If you’re a macOS user, you should definitely do so even if you don’t usually bother with pretests or release candidates. I built it last night and I can already see improvements from my compile of the 26.1 branch after the emergency patches to fix the display problems introduced with macOS 10.14.

I’m using it as my working version of Emacs and even though it’s been only a day, I’m happy with it and haven’t seen any problems. If you can, please do the same.

Posted in General | Tagged | Leave a comment

Statistics and Lies

Regular readers know that we here at Irreal have occasionally been hard on researchers in the social sciences. That’s especially true for Psychology where at least one study found that only 39% of published research results could be reproduced.

One wants to believe that things are better in the “hard” sciences—especially in medicine and health where erroneous results can affect us all. Sadly, these fields are not immune either. There are several well-known examples of this such as the fat versus carbs debate where the official orthodoxy of 50 years turned out to be wrong with disastrous results for the health of the population.

Mistakes do happen, of course, but a recent article from the American Council on Science and Health reports that 1 in 4 statisticians say they were asked to commit fraud by other researchers. The particular fraud that 1 in 4 statisticians were asked to commit was altering or removing date, a clear ethical violation that everyone would consider fraud. Other types of fraud were considered, ranging from the trivial such as not showings plots that failed to strongly support the desired result to the very serious such as falsifying data or misreporting \(p\) values. The article has a table summarizing the various frauds and their reported frequency.

These findings are discouraging to those of us who believe that the purpose of science is to seek the truth or even to those of us who want to stay healthy. My guess is that this fraud is mostly the results of the perverse rewards system used by universities and funding agencies. Goodhart’s law predicts that those operating under such a system will find a way to game it. Unfortunately, one such way appears to be fraud.

Posted in General | Tagged | Leave a comment

Moving the iOS Cursor

I’m a bit under the weather today so this is just a quickie. Not only is it just a quickie, it’s a quickie of interest to only iOS users.

You know how when you’re entering text in an iOS app and want to make an edit how hard it is to position the cursor correctly? It usually takes me a two or three tries to get it where I want it.

Via Karl Voit, I now know the solution:

If it’s not clear from the tweet what you’re supposed to do, just hold the space bar down and move your finger or thumb over it to move the cursor. Most excellent. It works on both the iPhone and iPad.

Thanks to Krissy Brierre-Davis for eliminating one of my on-going annoyances.

Posted in General | Tagged | Leave a comment

Longform Writing With Org-mode

Regular readers know that I’m fascinated with how non-coders use Emacs and especially how (prose) writers leverage it to remove friction from the writing process. Phil Daniels over at The Copytist is a professional writer who’s working on a longish book of about 400 pages.

His writing environment was centered on Microsoft Windows running Google Docs. It had, apparently, been working well for shorter projects but Google Docs just couldn’t handle the larger manuscript. Daniels mentions, in particular, the difficulty of moving chapters around.

With the deadline looming, he decided to try something new and after watching Jay Dixit’s video on using Emacs for writing he installed Emacs, pasted his manuscript into an Org file and got to work. He discovered, as many have, that Emacs and Windows have a troubled relationship so he installed Debian, added the necessary packages, and had what he considers the perfect writing environment.

Two things struck me about his post. First, although I have written at length about the dangers of committing any writing that you care about to Google Docs, I’ve never used it so I was surprised that despite it popularity it doesn’t perform very well. I’ll be adding that to my list of reasons to avoid it.

Second, although Daniels is delighted with how efficient Emacs makes his writing, he hardly uses any of its features. Doubtless that will change as he becomes more experienced with Emacs and discovers new chores that Emacs can help him with but it’s amazing at how much he can get done using just a few basic Emacs navigation commands and a couple of the Org-mode structure editing functions.

If you’re interested in a writing environment, take a look at Daniels post. It’s short and it describes an environment that few would consider complete but it points the way.

Posted in General | Tagged , | Leave a comment

A Thought for the Day

So true. Are you listening Apple?

Posted in General | Tagged | Leave a comment

Government and Cybersecurity

This is almost too easy. Remember how governments everywhere are whining about not being able to read our encrypted communications and are demanding a backdoor? “Don’t worry,” they tell us, “we’re the government and we’re experts in this stuff. We know what we’re doing.”

What to make, then, of the Japanese Minister in charge of Cybersecurity who says he has never used a computer and doesn’t know what a USB drive is? To be sure, the Japanese have their own culture where things work differently from what most of us are probably used to but they, too, are flabbergasted and outraged so this doesn’t appear to be a cultural misunderstanding.

It’s easy to make fun of this type of thing and, honestly, the story is probably overblown but it does add another datum the considerable store of data indicating that governments should not be trusted with our secrets. Misuse and abuse is bad enough but the incompetence that even hypersecure government agencies such as the American NSA have demonstrated should stand on its own as an adequate reason to be skeptical of governments’ ability to protect our secrets.

Posted in General | Tagged | Leave a comment

Is Terminal Emacs Better?

Most people will, I think, agree that Betteridge’s Law applies to the headline of this post. Back in January, I wrote about a nice discussion on the Emacs subreddit about whether GUI or terminal Emacs was better. It was a balanced discussion but the consensus was that there was really no reason—absent special requirements—to prefer terminal Emacs. Aaron Bieber was more emphatic in his post Don’t Use Terminal Emacs. His final advice on the matter was “…stop using Emacs in the terminal. Full stop.”

Of course, not everyone holds that position. Over on the Emacs subreddit, vokegaf explains why he uses Emacs in the terminal and only in the terminal. He begins by listing some of the disadvantages to terminal Emacs but dismisses them as not important for him. You’ll probably disagree with his dismissal of some of them but use cases do differ. Then he goes on to list the advantages of terminal Emacs. Most of them struck me as just silly but the real issue for him is use on remote machines.

He knows about Tramp, of course, but insists that starting up a remote terminal Emacs over SSH is a better solution. That’s mostly because he likes at leave his remote environment running and attach and detach to and from it with screen or tmux. He expands on that a bit in the comments so if you’re interested in the discussion be sure to read those too.

I agree with Bieber and have never run Emacs in terminal mode as my default procedure. Sure, I have my EDITOR and VISUAL environment variables set to emacsclient and I occasionally fire up a terminal Emacs if I’m already in a terminal and need a quick edit but normally I’m always in the GUI version.

As always, everyone’s workflow is different so there’s not “right” answer. The thing about Emacs is that it let’s you have it your own way.

Posted in General | Tagged | Leave a comment

Deleting Mail by the Page in Mu4e

Álvaro Ramírez is a recent convert to and fan of mu4e. He’s been using the system to handle his 4 email accounts for 5 months and is happy with the results. There is a problem though: with 4 email accounts he gets a lot of spam. That’s mostly going into his spam folder, of course, but he still needs to check for false positives so he occasionally checks the spam folder for misclassified messages.

The problem arises because he now has several pages of messages to delete and mu4e doesn’t provide a convenient way of deleting whole pages of messages. But, as Ramírez says, this is Emacs so it’s straightforward to add it. Straightforward and easy as it turns out. Take a look at his post to see he accomplishes the task with just a few lines of code and the help of Roland Walker’s window-end-visible package.

If you’re an elfeed user—and you should be—you may be interested in some similar code that he uses to mark entire pages of elfeed entries as Read. I’m not sure of his use case for that but if you’re interested, here it is.

Posted in General | Tagged | Leave a comment

Proof Reading with Text-To-Speech

Via Wilfred Hughes here’s a really neat trick for those of you who write things other than code:

I hadn’t thought of this but as Simler says, these are exactly the types of errors I miss when I proof a document by reading it.

Posted in General | Tagged , | Leave a comment

Rob Pike’s Personal Unix History

Rob Pike gave an really nice talk on Unix hisotry as he experienced it. If you’re a Unix-head you already know who Pike is. If not, Pike was one of the researchers at Bell Labs who worked on Unix and Plan9. He’s the coauthor (with Brian Kernighan) of The Unix Programming Environment, which is still in print after 35 years. He also famously designed UTF-8 on a placemat over dinner with Ken Thompson. His software projects include the Sam and Acme program editors and, more recently, the Go programming language which he developed with Ken Thompson and Robert Griesemer at Google.

One of the parts of his talk that I especially enjoyed was his discussion of the ed editor. It’s easy to dismiss it today as a primitive line editor but Pike says that at the time it was so much better than anything else it seemed like a miracle.

The video is an hour and 37 seconds so you’ll have to find a spare hour to watch it. The video displays the title screen for almost 4 minutes so you’ll probably want to skip to the 3:45 point to watch it. As I said, it’s a very nice video and you’ll definitely want to watch it.

Posted in General | Tagged | Leave a comment