The Future is S-expressions

Jean-Philippe Paradis makes an astute observation:

For some time, I’ve recommended JSON because it’s a sort of lingua franca that’s available to you no matter what language you’re writing in. Nevertheless, I’ve always felt that s-expressions are the better answer. If Paradis is correct, we will have the best of all worlds.

Posted in Programming | Tagged | Leave a comment

Email Templates with Yasnippet

Bin Chen is a busy guy and as a freelancer he gets lots of emails offering jobs. Each type of reply is mostly the same as all the others of that type so it makes sense to automate those replies to reduce time and errors.

Chen uses yasnippet to make templates for those replies. All the normal text is there and he can tab through the fields to fill in the instance specific data. He even has a bit of Elisp to extract the first name of the recruiter from the email address and insert it into the greeting.

It’s a very nice solution and one that can be adapted to work with any type of repetitive communications that you write. It’s easy to set up and integrates nicely with Emacs. Even if you don’t use Emacs for your email, it’s easy to set Emacs up to send email with your normal email address. With OS X, I can have it either pop up the message in the (OS X) mail app or send it off directly.

Posted in General | Tagged , | Leave a comment

Metadata

When they tell you it’s just metadata, show them this

Posted in General | Tagged | Leave a comment

Reproducible Research in the Small

As most of you know, I’m a big fan of reproducible research and have written about it many times. I usually think of it as something you do with a large project that is going to produce one or more journal articles but it doesn’t have to be that way.

Titus von der Malsburg has a nice example of a small experiment that he wrote up in Org mode using reproducible research techniques and published as a gist. If you click on the Raw button you can see the Org mode source.

Notice how you have a complete package: you can read the write-up in a nicely formatted document complete with graphs and tables and you can also see the source document with all the data and R code used to make the calculations. This is the perfect way to share the results of an experiment with team members or with colleagues in other locations. They can check your calculations or use your work as a jumping off point for further research.

Howard Abrams has written about using Org mode as a way of sharing DevOps experiments with colleagues. Malsburg’s gist shows another example of using Org mode to share results with others in a low effort way. You can publish the gist and email interested parties with the URL. Publishing as a gist means that even those benighted souls not using Emacs can see your results presented in a nice manner and still see the (text based) source document.

Posted in General | Tagged , | 2 Comments

Nothing to Hide

Edward Snowden has a nice rejoinder for those who say they aren’t worried about government surveillance because they have nothing to hide (via Jean-PhilippeParadis):

Posted in General | Tagged | Leave a comment

From Date to Agenda

Here’s a useful tip for bringing up the agenda for a given date. If you have the point on an Org date, typing 【Ctrl+c Ctrl+o】 will bring up the agenda for that date.

This is really useful if you have a memacs-like environment where you tie your notes and events to your agenda. It’s the same key sequence you use to follow a link so it’s easy to remember if you think of a date as being a link to its day’s agenda.

Posted in General | Tagged , | Leave a comment

Ding Dong the Witch is Dead?

Is the wicked witch really dead? Although I’m running the risk of suffering ignominy at the hands of Betteridge’s law, The Daily Beast is speculating just that. Namely, that the Patriot Act may soon be gone for good. We can only hope. Specifically, they say that if the Patriot Act is allowed to expire, it will almost certainly not be renewed.

That’s because while the politicos judge they can get away with renewing the act, they’re pretty sure the country won’t stand still for what amounts to a new act that authorizes mass surveillance. This explains the frenzy that the Senate leadership is in. Although they are loath to “water down” the act, they know that if they don’t get the act renewed in some form, it’s probably dead forever.

This cravenness is really disturbing. If you think the act is useful and worthwhile then you should support it and pass another one if the current one expires. If you’re not willing to do that then you have no business supporting the renewal of the current act. But, of course, politicians will be politicians.

Despite all the fuss and scare mongering on the part of the act’s supporters, it probably won’t make much difference if the act does expire. As The Daily Beast explains, the reason for that is that the act’s major provisions are mostly not used or worth the trouble

  • The “Lone Wolf” provision has never been used
  • Roving wiretaps are seldom used (there were only 11 in 2013)
  • Bulk phone metadata collection is more trouble than it’s worth.

This is all in keeping with the IG’s report that Section 215 has not played a part in any investigation. The Senate has been called back in session today for one last stab at renewing the act. Let’s hope that those senators who believe in civil liberties will hold the line.

Posted in General | Tagged | Leave a comment

The Power of Plain Text Explained

In a short tweet, Karl Voit explains the power of plain text and why you should avoid lock in:

Posted in General | Tagged , | Leave a comment

Making Open Offices Less Bad

I’ve written many times about the evils and absurdities of open plan offices. There’s lots of duckspeak about improving communication or culture building but everyone knows that its real—and only—virtue is that it’s cheap.

Given that fact, if you find yourself in such a place, the chances are great that it won’t change to a more sensible arrangement. Fortunately, Matt Blodgett has some simple suggestions to make open plan offices suck less. They’re easy to implement so unless your management have come to believe their own quacking, you shouldn’t get much pushback from managers.

Posted in General | Tagged | 2 Comments

A Guy Named Null

From the art reflecting life department, we have this story of a guy named Null and what he does to databases.

Posted in General | Tagged | Leave a comment