More On The Demise Of Handwriting

Earlier this month I wrote a post speculating on the end of handwriting. By “handwriting” I mean cursive handwriting. Although I’ve pretty much stopped using a pen or pencil entirely most people are still at least printing things by hand. I just read another article about the future of handwriting and thought it would serve as a nice followup to my previous post.

Over at Shelly Palmer Digital Living Richard Sellers relates that he and his wife are having a little argument about handwriting. Sellers is a marketing executive and consultant. Like me, he has terrible handwriting and was forced to learn to type in high school so that teachers could read his homework. His wife is a former elementary school teacher. Their argument centers around Indiana’s decision to drop the requirement to teach cursive handwriting and to emphasize keyboard skills instead. The question for them is whether not learning cursive “will reduce a student’s ability to communicate during their lifetime.”

Frankly, this makes no sense to me. As I wrote before, I haven’t written in cursive since they stopped making me do so in elementary school and I haven’t had any problem communicating—some would say my problem lies in the other direction. When you think about it, why would it? How does writing in cursive give you more communicative ability than printing the same words. You could argue, I suppose, that you can write faster than you can print but waiting at the end of that argument is the inconvenient fact that you can type faster than you can write and that it’s typing, not printing, that’s really replacing cursive.

I mentioned in the previous post that the question of eliminating cursive tends to engender vehement and emotional opposition. I don’t understand that but the cynic lurking inside me thinks that the reason people want children to learn cursive is essentially the same reason that professors want Ph.D. students in Mathematics to demonstrate a reading ability of two foreign languages. In both cases a rationale is given that no one believes but that those intent on keeping the practice nonetheless insist on. The real reason, though, is something along the lines of “I had to learn it so why should these little blighters get off?” Those doing the insisting may be able to hold back the tide for another generation but today’s kids aren’t going to have any of it and I fully expect that cursive will be gone before their kids are forced to endure it.

As I also said in the previous post, the interesting question is not whether cursive will disappear—it almost surely will—but rather whether all handwriting, both cursive and printing, will be replaced by some sort of digital method. After all, speech recognition is already coming on-line and it won’t be long until we’ll speak into a smart phone app and get a text copy of what we said. If all handwriting does disappear, will we find it liberating or will it give us The Feeling Of Power? What do you think?

Posted in General | 2 Comments

Xah’s Emacs Quiz

Xah Lee has another Emacs challenge. This time, it’s to replace entries of the form

<tr><td>pound</td><td>&#163;</td><td>pound sign, U+00A3</td></tr>

with entries like this:

<tr><td>pound</td>£<td>pound sign, U+00A3</td></tr>

This is, presumably, a small tweaking of Lee’s very useful page on HTML/XML Entities that I’ve written about before.

It would be reasonably easy to do this by writing some Emacs Lisp but I wanted to see if I could do it interactively. It turns out to be pretty simple using query-replace-regexp. The secret is to use \, expr as the replacement string in query-replace-regexp. With that replacement string, when the regular expression is matched expr is called to provide the replacement. I used

&#\([0-9]+\);

as the regular expression and

\,(format "%c" \#1)

as the replace string. The \#1 takes the first subgroup and converts it to a number. Then the rest of the format statement delivers that unicode character as the replacement text.

The careful reader will note that this doesn’t give quite what Lee asked for because the <td>...</td> tags are still there. I’m guessing that Lee really wanted them there but if not, it’s easy to get rid of them by using

<td>&#\([0-9]+\);</td>

as the regular expression.

Posted in General | Tagged | 1 Comment

Setting The Goal Column In Emacs

As you move vertically from line-to-line, Emacs tries to keep the point in the same column position or as near to it as it can. Normally, that’s what you want to have happen but sometimes it’s convenient to have the point move to some other column on the next or previous line. You can do that with the set-goal-column command, which is bound to 【Ctrl+x Ctrl+n】.

For example, suppose you have some columnar data such as

aaa bbb ccc
ddd eee fff
ggg hhh iii
...

and you want to change the second column

aaa 111 ccc
ddd 222 fff
ggg 333 iii
...

The most direct way of doing that is to put the point on the first b, delete the bbb with 【Meta+d】, type the 111, and then move down to the next line. The problem is that the point will then be right after the last e so you have to move it to the first e, perhaps with a 【Meta+b】. An easier way is to put the point at the first b and then set the goal column with 【Ctrl+x Ctrl+n】. Then you can delete the bbb, type the 111, and move down to the next line. Now the point will be at the first e so you can just delete and type in the 222. When you’re finished, you can cancel the goal column with 【Ctrl+u Ctrl+x Ctrl+n】.

The set-goal-column command is disabled by default so you will need to enable it before its first use. You can let Emacs ask you and then set it permanently or temporarily or you can enable it in your .emacs or init.el file with

(put 'set-goal-column 'disabled nil)
Posted in General | Tagged | 2 Comments

An Application Of Benford’s Law

Benford’s Law is a surprising result that says data from many sources have the leading digit distributed in a non-uniform way. For example, the first digit is 1 30% of the time but 9 less than 5% of the time. To be precise, Benford’s law says that the probability of the first digit being d is given by

P(d) = log10(1 + 1/d)

The graph of the distribution makes clear how striking the result is:

http://irreal.org/blog/wp-content/uploads/2011/09/wpid-benford.png

Forensic accountants have long used Benford’s law to spot fraudulent data—typically made up numbers fail to follow the distribution predicted by Benford’s law (although, interestingly, Bernie Madoff made sure that his returns obeyed the law).

A paper in the German Economic Review entitled Fact and Fiction in EU-Governmental Economic Data by Bernard Rauch, Max Göttsche, Gernot Brähler, and Stefan Engel looks at data submitted to the European Union by countries wishing to join the EU through the lens of Benford’s law. Their analysis shows that the data supplied by the Greek government was particularly suspicious raising the tantalizing possibility that the current economic problems the EU is having with Greece could have been avoided by simply counting the leading digits of the data.

There are writeups about the paper by Tim Harford and Hans Christian Müller if you want some more information. Benford’s law is a fascinating piece of arcana and it’s always enjoyable to see it in action.

Posted in General | Leave a comment

More SSH Tricks

Tycho Garen has a nice post with some SSH tricks to make your life easier. This serves as an excellent follow on to my previous post on the subject. There’s a bit of overlap but enough new material that it’s worth a read if you regularly use SSH.

Posted in General | Tagged | Leave a comment

Emacs Keybindings for Mac OS X

As many Mac OS X/Emacs users know, OS X has many of the Emacs key bindings defined for the entire system. Thus, bindings like 【Ctrl+f】, 【Ctrl+b】, 【Ctrl+a】, 【Ctrl+e】, 【Ctrl+k】, 【Ctrl+y】, 【Ctrl+p】, 【Ctrl+n】, and a few others work across the whole system.

Less well known is that the Cocoa Text System is customizable and you can add other Emacs bindings to make a comfortable and familiar environment whether you’re in Emacs, Mail, Safari, or whatever. Even better is that Jacob Rus has already compiled the necessary bindings for you so all you need do is download the file and install it in the proper place on your system.

The full explanation is available here but the TL;DR is:

  1. Download the bindings file.
  2. Rename the file to DefaultKeyBinding.dict.
  3. Stash the file into the ~/Library/KeyBindings folder.

There’s lot of information at the site, though, so it’s well worth a look. It has bindings with 【Esc】 rather than 【⌥ Opt】 as the 【Meta】 key, BBEdit key bindings for any heretics reading this, and many other tidbits as well. But if you just want Emacs key bindings where 【⌥ Opt】 is the 【Meta】 key, then just follow the 3 steps above.

Posted in General | Tagged | 4 Comments

The Emacs goto-line Command

As I’ve written before, I came to Emacs after years as a Vi/Vim user. One of the things I was used to doing in Vim was to go to line N in a file by typing :N in command mode. I learned Emacs mostly by referring to the Emacs Reference Card that’s included with the distribution and, unfortunately, the reference card does not mention any way of jumping to a particular line. Over time I evolved some dopey way of doing it, probably 【Meta+< Ctrl+N Ctrl+n】 or something equally horrible.

Eventually, I discovered the answer hidden away in the Edit→Go To menu. The official way is 【Meta+g g】 to bring up the Go To Line: prompt in the minibuffer but 【Meta+g Meta+g】 also works and is easier to type. Mac OS X users can use 【⌘ Cmd+l】 if they prefer.

None of this is earth shattering and perhaps I’m the only Emacs user who didn’t know it but I am writing it down in case someone else out there is also wondering how to do it.

Posted in General | Tagged | 6 Comments

Managing Workshifting

In a recent post about workshifting I mentioned that one of the impediments to wider adoption is a fear on the part of managers that they won’t be able to effectively manage their employees if they can’t reach out and touch them. If you’re a manager who is faced with managing workshifters or you’re a workshifter who would like to reassure your manager, there’s an interesting short interview with Michael Kroth coauthor of Managing the Mobile Workforce over at Workshifting.com.

There’s not a lot of information in the interview but there is a pointer to the book’s Web site and blog. The author of the post, the president of an employee training and organizational consulting firm, is highly complementary of the book. It looks like a valuable resource for someone trying to build a virtual team.

Posted in General | Leave a comment

Using Deft With Org Mode In Emacs

Earlier this week I wrote about the Deft package for Emacs. Deft is a note taking facility by Jason Blevens modeled on Notational Velocity. I opined at the time that while Deft provides a simple, lightweight note-taking mode, it doesn’t offer anything that can’t be done with org-capture and an Org file.

It turns out that djcb over at emacs-fu disagrees. Although he, like me, is an avid Org mode user, he likes Deft for taking quick notes. I still don’t see the point and neither did some of his commenters, but djcb replies that although he uses org-capture for things like appointments and todo-items, he prefers to take longer, more free-form notes with Deft. He’s a man who obviously knows what he’s talking about so I agree when he says, “For now, just give it a try (as I do), and see if it sticks…”.

For those of you that want to take that advice, be sure to read his post on quick note-taking with deft and org-mode for some pointers on setting up Deft to work seamlessly with Org. If you find that integrating Deft and Org mode brings definite benefits, be sure to leave a comment for the rest of us.

Posted in General | Tagged , | Leave a comment

And You Thought We Weren’t Making Any Progress

I came across two articles today—one looking backward, one looking forward—that illustrate the incredible progress we’re making in power management and battery life for our electronic devices. This is important because battery technology isn’t making tremendous strides (although there have been a few bright spots) so to solve the problem of iPhones that can’t make it through the day on a single charge or laptops that can’t make it through an airplane flight from New York to San Francisco we need to look at the problem from the other end. We need to find ways to draw less power from the batteries that we already have.

Remember when the MacBook Air came out and we were all swooning at the 7 hour battery life? If you haven’t been paying attention or are still relatively young, that might seems like only major improvement for some time. But as this article in The Atlantic points out, a computer from 20 years ago that was identical to the MacBook Air but had the power efficiency of the typical 1991 computer would drain the Air’s battery in 2.5 seconds. Of course, part of that is that today’s chips are more powerful as well as more efficient but the point stands: we’ve made tremendous strides in making our devices use available power more efficiently.

That’s an example of something else that’s been in the (tech) news a lot lately: Koomey’s Law. Koomey’s Law is a sort of analog to Moore’s Law. It states that for the last 60 years the electrical efficiency of computation has doubled every 18 months.

Where are we headed in the near future? Over at Cult of Mac there is an interesting article saying that new Intel chips could let future MacBooks have practically unlimited battery life. That’s because the new chips are so efficient that an on-board solar cell could keep the battery charged virtually forever. Of course, Apple hasn’t announced such a product and the new chips are still a couple of years out but it does underline the amazing advances we’re making. The Cult of Mac article is very interesting and I urge you to read it. Soon we’ll be shaking our heads in pity for those poor people from 2011 who had MacBooks that could only go 7 hours between charges.

Now if we could only build better batteries…

Posted in General | Tagged | Leave a comment