Org-roam Templates

A couple of weeks ago I wrote about David Wilson’s video on getting started with Org-roam. That video provided the information you need to get Org-roam set up and to start taking notes. Now he has a follow on video that considers how to efficiently enter those notes into the system.

The way to do that is through templates just as with the Org capture. The templates are basically the same but there are a few differences to accommodate the Org-roam system. Wilson steps us through how to set up Org-roam capture templates for a couple of different types of data. The nice thing about Org-roam is that all your notes—no matter they’re about—go into the same repository and the linking mechanisms take care of connecting related notes.

Wilson is promising more videos on Org-roam so if you’re interested in a Zettelkasten system that operates in the Emacs environment, you should subscribe to the series. The current video is about 31 minutes so you’ll probably need to schedule some time.

Posted in General | Tagged , | Leave a comment

The Hole Hawg

Do you know what a Hole Hawg is? Neither did I but Neal Stephenson does and he explains it in graphic and amusing detail. Stephenson, of course, is a Science Fiction author responsible for, among other things, the geek paean Snow Crash and, among crypto nerds, Cryptonomicon. He’s also the author of the longish essay In the Beginning was the Command Line, which, among other things, praises Emacs and says that Emacs “outshines all other editing software in approximately the same way that the noonday sun does the stars.”

His much shorter essay, Unix – The Hole Hawg, is, similarly, an ode to Unix. Like the Hole Hawg—spoiler: the 800 pound gorilla of electric drills—Unix, he says, is a tool of such power and flexibility that everything else pales beside it. As with the Hole Hawg, it’s easy to hurt yourself if you don’t know what you’re doing or are careless but in capable hands it’s a tool that outshines all others. As Stephenson says of Unix masters, “They might use Apple/Microsoft OSes to write letters, play video games, or balance their checkbooks, but they cannot really bring themselves to take these operating systems seriously.”

Aside from his point about Unix, the essay is an interesting exploration of the Hole Hawg and well worth taking a couple of minutes to read. If you’re a Unix/Emacs user, it will resonate.

Posted in General | Tagged , | Leave a comment

Org-ref-cite Video

Yesterday, we took a quick look at the new Org-cite functionality. It’s been merged into Master and will doubtless see its official release with Org 9.5. In the mean time, John Kitchin is busy reimagining his wonderful org-ref package to work in the org-cite framework. That process is not yet complete and Kitchin says that he probably won’t package it up for Melpa until Org 9.5 is released.

For now, you can get an idea of what it’s like by watching his video demonstration of org-ref-cite in action. There’s still some rough edges to be sanded down and not all the org-ref functionality is there. The cross reference citations haven’t been implemented yet and there was no mention of the great import mechanisms in org-ref as shown at the beginning of this video. It’s worth watching that video if you aren’t familiar with org-ref to get an idea of what it does.

Kitchin says he will probably run both org-ref and org-ref-cite in the future because he has over 8 years of papers that depend on org-ref. If you’re just starting, you’ll probably want to stick with org-ref-cite.

You can see the file that Kitchin works on here. The video is 15 minutes, 20 seconds long so it should be pretty easy to fit in. I’m really looking forward to seeing the final product. If it’s anything like org-ref, it’s going to be a winner.

Posted in General | Tagged , | Leave a comment

Org Cite

As I’ve said before, one of the worst parts of preparing a paper for publication is dealing with the bibliography. LaTeX has reasonably efficient ways of inserting and referencing citations but there’s been no effective way of using them from within Org. John Kitchin pretty much solved this problem—at least for his use cases—with org-ref but some in the Org-mode community thought a more general mechanism was needed.

Enter Org-cite. It’s a general method for dealing with citations within Org and although it hasn’t been officially released yet, it’s been merged and is available for those who want to try it out.

Timothy over at This Month in Org has a very nice summary of the new system in his Introducing Citations article. Org-cite is meant to be a framework for developing citation systems specific to a user’s workflow. John Kitchin has already started porting the functionality of his org-ref system to org-cite with org-ref-cite. Kitchin has a video out the describes his new package that Irreal will consider shortly but it’s still a work in progress. Kitchin says it’s not yet ready for MELPA but will probably appear there shortly.

Org-ref is already a great package for dealing with citations and cross references but org-cite standardizes citation processing in Org and I expect that all the great functionality of org-ref will eventually find its way into org-ref-cite. These packages make it less and less necessary to write your papers in anything but Org. Even when LaTeX tweaks are needed, they’re easy to add directly into the Org file. Preparing, if not actually writing, papers is getting easier and easier.

Posted in General | Tagged , | Leave a comment

Malware Using “Exotic” Languages

I tagged this post Security but it might just as well have been tagged Humor. ZDNet is reporting that malware authors are using “exotic” languages to avoid detection by the antivirus folks. If, like the majority of the technical press, you don’t know anything about software engineering or programming languages and their compilation that might seem reasonable. If you actually know how these things work, a bunch of questions are no doubt popping into your head.

For one thing, you might wonder how changing the source language is going to make the binary more difficult to detect. Sure, a given algorithm will compile down to slightly different binary code but how is this any different from day-to-day changes to the code or purposefully rearranging it? A large part of the antivirus engineers work is keeping up with new versions of malware binaries as they appear.

The report the story is based on requires registration to download so I didn’t bother but I’d be surprised if its conclusions match the story’s. Judging from what the story says, the real change is in implementing small loaders and droppers to install the malware but these could just as well be written in C like most of the malware probably is.

The really amusing part of the story, though, is what constitutes “exotic languages.” These include Go, D, and Rust, the language just voted most popular and loved by developers. I’d be very surprised if the reason malware authors are trying these languages isn’t for the same reason that the rest of us do: they wanted to try out new stuff and see if maybe these new languages made their development easier.

Posted in General | Tagged | Leave a comment

Eight Reasons Emacs Is The Best Editor

Alex Wulff has an interesting post that lists eight reasons that he believes shows that Emacs is the best editor. The Emacsistas on Irreal don’t need any reasons or posts; they’re already secure in their belief of Emacs’ supremacy. Still, it’s interesting to see what draws other users to Emacs.

Here are the eight things that Wulff says convinced him:

Emacs is fast
The super-efficient keyboard shortcuts for cursor movement and editing functions means that editing on Emacs is faster than on other editors.
Emacs is Customizable
This is, really, what makes Emacs so special.
Emacs is available on just about every OS
Every Unix system supports Emacs, of course, but so do others such as Windows.
Emacs is easy to learn
A lot of Emacs users will probably take exception this but only because there is so much to learn. Learning to perform any specific editing operation is pretty much the same as for any other editor.
Emacs commands are available in Unix
Any program using the readline library, such as Bash, has built-in support for many of the Emacs commands. It’s even better in macOS where basic Emacs commands are available system wide. Although Wulff doesn’t mention it, you can add many other Emacs keystrokes to macOS.
Emacs buffers can contain almost anything
“Anything” includes shell prompts, a Python REPL, a Common Lisp IDE, a mail client, an RSS reader, a music player, and many other things besides simple text.
Emacs is old
This fact is often cited by the heathens as a reason to eschew Emacs but, as Wulff says, it actually means that it’s had many years of loving attention from its developers in the service of perfecting it.
Games
Not something that I care about but many Emacs users enjoy taking a break to play Tetris or one of the other games. If nothing else, it shows how flexible the Emacs customization environment is.

Wulff has more to say on these things so take a look at his post to get the whole story.

Posted in General | Tagged | Leave a comment

Techdirt Steps Up

Everyone, including Irreal, is always yap, yap, yapping about adtech and tracking ads but few actually do anything about it. To be fair, there’s little most of us can do other than post screeds and write letters to our congressional representatives about it. Techdirt, however, is an actual Website that serves ads and has chosen to do something.

Techdirt tired of the crappy ads that (apparently) all the ad brokers provide and most of all tired of dealing with Google, who, at the end of the day, is behind all the ads and their abuses. Even more disturbing, Google constantly complains about any content that disparages Google and threatens to retaliate by withholding the ads that sites depend on to fund their operations.

Techdirt tried switching ad providers but it didn’t help because they all depend on Google. Finally, they just stopped serving ads. That’s a big deal because it leaves them with no income other than what their grateful users are willing to contribute. They could, of course, put up a paywall, but they didn’t want to restrict access to their site so they fell back to—effectively—providing a tip jar and offering to deal one-on-one with advertisers who want to provide quality, non-tracking ads that don’t annoy and abuse their readers.

This is literally putting your money where your mouth is and I wish them success. In the end, change will come only if more sites take a stand like this. John Gruber agrees and celebrates Techdirt’s actions. If you use and enjoy Techdirt, consider giving them a few dollars.

Posted in General | Tagged | Leave a comment

Editing Browser Input in Emacs

One of the downsides of being a Safari user is that the extension architecture doesn’t support the functionality that other browsers do. In particular, where other browsers allow you to call out to Emacs when editing fields in the browser, this doesn’t seem possible with Safari. That’s too bad because I really hate dealing with text outside of Emacs. None of my muscle memory works and all those editing habits and shortcuts I’ve built up over the years can’t be used.

Happily, Abin Simon has a workaround. He starts with how you’d do it manually—copy the text to the clipboard and paste it to an Emacs buffer, add to or edit the text, copy the edited text back to the clipboard and paste it into the browser buffer—and automates the process. That turns out to be easier than you’d think because he leverages Hammerspoon to do the system part. The Emacs part is just a bit of simple Elisp.

This isn’t as nice a solution as a browser plugin but it’s a decent workaround. Simon’s workflow is centered around interacting with Github but it’s easily adaptable to other workflows.

Posted in General | Tagged | Leave a comment

Managers and Remote Work

It can be argued that COVID-19 has forever changed the way we work and the nature of the employer/employee relationship. Many managers stuck in the previous mindset are now struggling to justify their demands that workers return to the office. Many, or even most of the workers, are not convinced and the battle wages on.

Over at The Atlantic, Ed Zitron considers why managers fear remote work so much. It’s not pretty and if you’re a manager you probably won’t like it. This quote captures his argument nicely

“Remote work lays bare many brutal inefficiencies and problems that
executives don’t want to deal with because they reflect poorly on
leaders and those they’ve hired. Remote work empowers those who
produce and disempowers those who have succeeded by being excellent
diplomats and poor workers, along with those who have succeeded by
always finding someone to blame for their failures. It removes the
ability to seem productive (by sitting at your desk looking stressed
or always being on the phone), and also, crucially, may reveal how
many bosses and managers simply don’t contribute to the bottom line.”

Zitron is not a silly evangelist advocating for a glorious future in which no one has to leave home to go to work. Many workers, of course, need to show up. Construction workers, hospitality workers, sales clerks, and many others really do need to be there in person. The remote work movement has never been about these people. Rather it’s about those who, say, spend their days in front of a computer. There’s no reason, other than the made up “office culture” argument, that these people need to be in any particular place to do their work.

Zitron dismisses the idea of office culture as a way for non-produces to game the system at the expense of those who do produce. When everyone is working remotely, it’s much harder to game the system because it’s makes it obvious who is and is not doing actual work. He tells the story of Netflix’s co-founder and CEO, Reed Hastings, who dismisses remote work as a “pure negative” despite not having an office and, in fact, doing his work exactly like a remote worker would. That even includes working abroad for a year.

As I’ve said before, in the end all these arguments won’t matter because the best workers will refuse to take positions that require them to be in the office.

Posted in General | Tagged | Leave a comment

Progress ⁢⨉ 2

There were two bits of progress reported yesterday. The first is the announcement of the release of Magit 3.2. I’d describe the changes, as listed in the announcement, tweaks that make Magit more useful but nothing earth shattering. You can check the entire change log for all the details.

Magit is one of the gems in the Emacs crown and if you haven’t yet supported tarsius (Jonas Bernoulli), now would be a good time. We certainly want to keep those updates coming.

The other sign of progress is a post by Lars Ingebrigtsen on the Emacs Devel List concerning the release of Emacs 28. That’s still in the future but Ingebrigtsen suggests that the beginning of the release process is about to begin. He says that in the middle of September (at the earliest) they will cut the Emacs 28 branch and begin the debugging process leading to Emacs 28.1. That’s still months away but getting the process underway is a significant milestone.

Emacs 28 will be a big release for me. First, it reportedly fixes the annoying buffer repaints and flickers in macOS. If you’re a Mac user, this is a big deal. More significant, of course, is native compilation. Everything I read about it suggests that this is going to be a game changer. I’m really looking forward to trying it out.

The naysayers are fond of pontificating on how Emacs is old and dead. Except, of course, that everyone’s trying to copy Org-mode and Magit. Wait until we get native compilation. While all the cool kids are strutting around with their “pretty” GUIs, we Emacs users will be blowing them away as we edit at the speed of light.

Posted in General | Tagged , | Leave a comment