Org-Babel Examples

I haven’t written about using Babel with Org mode for a long time but it’s something I use everyday. Most of those uses are trivial but the full power is there when I need it. I can produce summary data and graph that summary almost effortlessly.

If you’re looking for some examples of what you can do with Org and Babel, Derek Feichtinger has a Github repository with examples using several languages. It’s well worth looking at because Org with Babel is the key to writing your documents in a reproducible research way.

You may not be writing journal articles that other researchers will want to check but even if you’re just documenting some aspect of your own work, having a document with all the code embedded in it is tremendously powerful. Right now, I have legacy documents where the code that process their data are separate applications. I also have Org mode documents where the code to process the data is embedded in the document and I can update the results simply by typing【Ctrl+c Ctrl+c】on the code block. I can tell you that the latter documents are far easier to deal with.

Check out Feichtinger’s collection of examples to see if some of them won’t be useful to you.

UPDATE: Added link to Feichtinger’s Github repository.

Posted in General | Tagged , , | 3 Comments

Schneier on Why We Encrypt

Bruce Schneier has a nice post on Why We Encrypt. Encryption maintains our privacy, keeps our money safe, and, sometimes, saves our lives. Most Irreal readers will be familiar with these reasons but here’s another that we hear about less often: if you only encrypt important data, you are putting a sign on that data saying, “this is something worth trying to exploit.”

The answer, of course, is to encrypt everything. The movement to deprecate HTTP and use only SSL/TLS (HTTPS) is part of that. If all of our Web transactions are encrypted, it’s hard to know which ones are worth trying to decrypt. The other, harder, major vector is email. I hardly ever encrypt email because almost no one I communicate with is prepared to deal with it.

That’s a long standing problem, of course, and one that doesn’t admit an easy solution. Schneier notes that encryption works best when it’s automatic. That’s what we need for email. A system that automatically encrypts the messages we send and decrypts them (also automatically) at the other end. That way, Aunt Millie doesn’t even have to know what encryption is; everything is handled behind the scenes. We’re still some way from that but I’m looking forward to the day when all the three-letter agencies are sad because it’s really hard to snoop on people anymore.

Posted in General | Tagged | Leave a comment

Happens to Me Every Day

Happily, with OS X you can make a lot of the Emacs key chords work in other apps but it’s still not the same.

Posted in General | Tagged | 1 Comment

Annual Who Has Your Back Report

The EFF has published its annual Who Has Your Back? report. The idea is that they look at those technology companies that deal with our private data and rate them on the following criteria

  1. Follows industry-accepted best practices
  2. Tells users about government data demands
  3. Discloses policies on data retention
  4. Discloses government content removal requests
  5. Pro-user public policy: opposes backdoors

For better or worse all but the most paranoid of us use several of these companies (7 in my case) so it’s worth knowing which ones are looking out for their users and which are selling our data or rolling over for the government.

If you’re looking for the TL;DR, the chart at the beginning of the report will tell you who the good guys are and how the others are failing. If you’re looking for a deeper dive, each company’s performance is discussed in detail later in the report. There are also links to the policies and transparency reports for each of the companies.

Most people probably aren’t going to stop using a company that doesn’t rate a perfect score but it’s useful to know who’s doing what and to adjust your behavior accordingly. It’s an interesting report and everyone should at least look at the chart. Unless, that is, you’re one of the paranoid that stays off the grid. Of course, in that case you probably aren’t reading this.

Posted in General | Tagged | Leave a comment

A Tip for Artist Mode

If you use artist mode in Org mode, you may find this tip useful.

Posted in General | Tagged | 1 Comment

DuckDuckGo Bang Searches

If you’re a DuckDuckGo user—and you really should be unless you like having your search history logged and sold—there’s a very nice shortcut you can use when searching specific sites. Suppose, for example, you want to find the documentation for the Common Lisp mapc function. You just type

!lisp mapc

into the url bar and DuckDuckGo takes you right to the proper page on LispDoc. If you want to know the French word for left, you type

!cenfr left

and DuckDuckGo takes you to the translations for left in the Collins English-French Dictionary.

There are over six thousand sites that have a shortcut and the hardest part of using the shortcuts is deciding which ones to remember. Most of the common ones are pretty obvious lightening that load a bit. I just learned this trick and already love it. I probably will use it only for the few reference sites that I visit regularly but even that’s a big win.

Posted in General | Tagged | Leave a comment

Lisp Functions in Org Table Calculations

Sacha Chua has a nice post on how she uses an Org table to keep track of medications her family needs and how it automatically calculates how many she needs to buy based on how long they need to be taken and what she has on hand. You may or may not want to track your own meds in Emacs but her post illustrates some features about Org tables that you might not know:

  1. You can use Elisp statements instead of the built-in operators when making calculations with the table data.
  2. You can use 【Shift+Return】 to copy cells from one row to another.
  3. You can perform date arithmetic directly on active or inactive dates (that is, dates in angle or square brackets).
  4. The row indicator @> means the last row.

Check out Chua’s post to see how all these things play together to make a quick and easy application running right in Emacs.

UPDATE: posts illustrate → post illustrates

Posted in General | Tagged , | 1 Comment

2 or b

Over at the Google+ ErgoEmacs community, Xah Lee asks is it easier to type 2 or b on a QWERTY keyboard. The majority of people said ‘b’ but I was surprised at how many felt ‘2’ was easier. If you have an opinion and would like to express it, follow the link to the poll.

Posted in General | Tagged , | 3 Comments

All Your Conversations are Belong to Us

LWN.net is reporting on a Debian bug report complaining that Chromium, Google’s open source version of their Chrome Browser, was downloading a binary blob after it started. The responsible Debian maintainers did not have access to the code for the blob and had no way of knowing what it did. After a bit of investigation, it appears that the blob—called Chrome Hotword—turns on the computer’s microphone and enables audio capture.

Doubtless, this is to support Google’s OK Google feature that enables audio searching but its stealth installation and the initial absence of a way of disabling it raised serious questions. Even now, the function is enabled by default and the user has to find the—reportedly obscure—control for opting out of the system.

Google says that while the blob is installed and the microphone is turned on, no audio data is transmitted to Google unless the “OK Google” feature in explicitly turned on in the browser. That’s almost surely true too but consider: Google gets a secret warrant from some 3-letter agency and suddenly the government is listening to everything you say. Pre-Snowden that might have been considered paranoid but now we know better.

Falkvinge has a more muscular objection over at Private Internet Access. He explicitly makes the same point: after Snowden, we should trust no one with the ability to listen in on our conversations. Even if the organization providing the capability is completely trustworthy, there is no reason to believe that it won’t be coerced into spying for the government. Nor is there any guarantee that the capability won’t be exploited by criminal elements.

You’d think Google would understand all this and realize that audio searches just aren’t worth the danger to privacy that comes with them. Apparently not.

Posted in General | Tagged | Leave a comment

There is No Cloud

A handy reminder from vierito5 (via Karl Voit):

Posted in General | Tagged , | Leave a comment