Reprieve

If you were a Google Reader user and neglected to retrieve your subscription data from Google, there’s a reprieve of sorts. Although Google Reader is no longer operating, Google is keeping your Reader data available until 2013-07-15. After that it’s gone forever.

If you haven’t already rescued your data, head on over to Google Takeout and get it before it’s too late.

Posted in General | Leave a comment

Phoneme

It’s a good bet that most geeks have a gmail account. I use mine mostly for mailing lists but many use it as their main email account and consequently are apt to have sensitive data in their saved emails. If this describes you and the recent NSA revelations make you uncomfortable, Etherael has a solution for you.

Phoneme is a small python app that retrieves your emails, encrypts them with your public PGP key, sends the encrypted emails back to gmail, and deletes the original unencrypted copies. Obviously this doesn’t solve all your security problems but it does take care of that large cache of emails sitting on Google servers. If your account is compromised there’s nothing of value for the attacker. If some government demands your material, there’s nothing of value for them to see.

This is a nice little hack and may help round out your privacy toolkit. Be sure to read the part in the README about emptying your trash folder after running the app.

Posted in General | Tagged | Leave a comment

Byte Compiling Elisp

I used to obsess about byte compiling my Elisp files but then I realized that

  1. The only thing I ever byte compiled was my init.el and updates to the packages I load.
  2. Byte compiling your startup file makes no appreciable difference.
  3. Once I started using ELPA, it took care of compiling my packages.

As I result, I don’t worry about it much anymore. Still, many Emacs users are working on packages and do need to keep things compiled.

For those in that position, there are a couple of useful recent posts worth your time. First, Bozhidar Batsov over at the invaluable Emacs Redux has a nice post about byte compiling with some Elisp that automatically deletes old .elc files when you save a new .el file of the same name.

Second, Xah Lee has a another nice post on the subject that includes some Elisp that will automatically recompile an existing .elc file when the corresponding .el file is saved. This is probably the behavior you want so you should take a look at his code if you regularly compile your Elisp.

Posted in Programming | Tagged | 1 Comment

Feedly

Google Reader is going away on Monday. That means that Reeder, my RSS reader of choice, is going to stop working. So far, only the Reeder iPhone app has been updated. That’s useless to me because the iPhone screen is too small for me to comfortably read large amounts of text. I might be willing to use an up-to-date iPad app until the Mac version is ready but that’s not ready either.

I’ve heard good things about Feedly so, with time running out, I created an account and imported my data. The one button import worked perfectly and easily. It was literally just clicking the button and then signing into Google Reader. I haven’t set up the iPad app yet but so far I’ve been very happy with the Mac version. That’s really browser based but there’s a plugin for Safari.

In some ways having the Mac interface be browser based is an advantage. I don’t have to switch applications when I want, for example, to bookmark an article. The preview function is better than Reeder’s was and it’s easy to pop up another browser window with the article in it if you need the full browser functionality. That’s the case if you want to bookmark or clip to Evernote, for example.

The interface is simple to use and typing ? will pop up a help screen with the keyboard shortcuts. The syncing (between my two Macs) works fine so I’m confident that the iPad app will stay in sync too. That’s really my main requirement. I read RSS on my two Macs and my iPad and I need them to stay in sync.

My only concern is that the service is free—and we all know where that can lead—but my notes (that I’ve been accumulating about alternative readers) indicate that there will be a paid version as well. That’s welcome news. After the Google Reader Apocalypse, I’ve upgraded most of my free services to the paid version.

So far, I like Feedly and don’t foresee any reasons to switch. Just in case, though, I exported my subscriptions with Google Takeout. If you have a lot of saved posts, tags, and other information, you should take a look at this post from Mihai Parparita. It describes a tool that let’s you get all your Google Reader data, not just the subscriptions.

Posted in General | 3 Comments

An Interview With Sacha Chua

Bastien Guerry turns the tables on Sacha and interviews her. It’s about 45 minutes so leave some time. The interview follows Sacha’s usual format of exploring how she (as the interviewee) came to Emacs and how she’s using it now for her day-to-day work.

Like me, she’s a big fan of Org mode and uses it for many of her tasks such as blogging and maintaining her todo list. If you were wondering what all the excitement concerning Org mode is about, this will help you see the point.

As always, Sacha’s energy and enthusiasm are contagious. If you enjoyed her interviews of other Emacs hackers, you’ll probably like this one too. I did.

Posted in General | Tagged | Leave a comment

You Can’t Make This Stuff Up

I guess our secrets are safe now.

Posted in General | Leave a comment

Prism: All Your Data In One Place

After the heavy breathing from yesterday’s post, here’s a lighter touch on Prism.

Posted in General | Tagged | Leave a comment

Can We Please Keep Our Eye On The Ball

Careful Irreal readers will have detected that I’m not much of a fan of the Press. Yes, yes, a free press is vital to a free and democratic society and all that. I just wish they’d do a better job.

Case in point: the continuing scandal over government snooping in Western democracies. This scandal—I consider it a scandal—is arguably the most important story in decades. The snooping raises serious questions and, according to one view, poses grave dangers for our democracies. Others say that this government intrusion is the price we pay to keep us safe. Both are honest viewpoints and deserve discussion and analysis. One would think that the story was worth a little reportorial effort and investigation.

Instead we get Edward Snowden. Is he a hero? A Traitor? Something else? Whole legions of reporters crowded into the Moscow airport trying to catch a glimpse of him and accosted hapless travelers with photos of Snowden on their iPads asking if anyone had seen him. As amusing as it was to watch Snowden leading them around in circles and getting them to board an aircraft he wasn’t on, it’s really beside the point. Even Snowden says he’s beside the point. All this Keystone Kop comedy would be okay if the press were also following the main story but they aren’t. It’s all Snowden, all day.

The mandarins at the NSA must be smiling. Instead of being hounded by the press to explain themselves and justify their actions, they can sit back and watch the press chase after a mostly irrelevant side story. It’s not like there aren’t some serious questions that need asking but the press seems content to swallow whole any claim the government makes no matter how silly. Some examples:

  • Congressman Mike Rogers, an ex-FBI agent who surely knows better, claiming that Americans needn’t worry about the wholesale vacuuming up of their phone call metadata because no names, only phone numbers, are attached to the records. Perhaps he thinks we’ve never heard of phone books.
  • General Keith Alexander, Director of the NSA, claiming, without offering any particulars, that dozens of terrorist plots were foiled through this snooping. Wouldn’t a diligent press demand examples and some details?
  • Atty Gen. Holder saying that the leaks were “extremely damaging” and put the security of the U.S. at risk. Left unexplained was how revealing the perfectly obvious and well known fact that the NSA monitors pretty much all communications damages anything other than their ability to continue extra-constitutional invasions of innocent citizens’ privacy.
  • General Raymond Odierno, Army Chief of Staff, saying that “…it puts American soldiers, sailors, airmen and Marines at risk who are overseas conducting operations.” It’s hard to see what, exactly, those risks are and the General doesn’t say.
  • And perhaps most laughable of all, the oft repeated claim that Al Qaeda has already changed their communication behavior due to Snowden’s revelations.

All of these just beg for followup and investigation—it certainly wouldn’t be difficult—but the press is off chasing Snowden and earnestly discussing whether he will end up in Cuba or Ecuador. Again, this is a serious story with serious implications for us all and an open and serious discussion about it is urgently needed. Instead the press obsesses about Edward Snowden.

Posted in General | Leave a comment

Tasker

As most of you know, I live in the Apple ecosystem so I was a bit jealous when I read this post by Ben Simon. Simon has an Android phone and therefore has access to the excellent Tasker app. One of its nice features is the ability to script tasks, something that I haven’t seen in the Apple App Store1.

Simon has a great story illustrating how useful an app like Tasker can be. Simon was out for a run when he realized that he was going to be late to meet his wife so he stopped to text her that he was running late. As he finished his run he thought that this was a task that really should be automated. He built a script that would text his wife every 5 minutes with his location (obtained from the phone’s GPS) so she would know where he was and could see on a map how long it would Take Him To Get to wherever she was. Of course, no one wants to get a text every 5 minutes so he added a couple of controls to turn it on and off. Now when he’s running late he turns it on and the application automatically keeps his wife up to date on his whereabouts.

It’s a simple, scratch-my-itch type of application and reminded me of what many of us do with Emacs: add a small bit of code to make our life a little easier. It made me wish that Tasker ran on my phone but not enough to make me give up my iPhone.

Footnotes:

1 That’s probably because of Apple’s (almost) universal prohibition of interpretive systems.

Posted in General | Tagged , | 4 Comments

An Elisp Mystery

Over at the Emacs Reddit, wadcann posts a nice idea. The problem is to have abbreviations that touch their surrounding text. The canonical example is punctuation like the em-dash:

Many national security professionals—those in the CIA, NSA, and similar...

You can’t (conveniently) use the normal abbreviation expansion mechanisms here because they expect the symbol to be delimited from the rest of the text by white space.

Wadcann solves that problem with a bit of Elisp. His post is short so you should take a look before continuing. I liked his idea but thought that the Elisp could be cleaned up a bit. Suppose, as Wadcann does, that you use /--- as the abbreviation for the em-dash. The idea is to search backwards to the slash, mark it as the beginning of the abbreviation, return to the original position to mark the end of the abbreviation, and call expand-abbrev to expand it.

That seemed simple enough. Here’s my first attempt:

(global-set-key (kbd "M-\"")
                (lambda ()
                  (interactive)
                  (let ((pt (point)))
                    (when (search-backward "/" nil t)
                      (abbrev-prefix-mark t)
                      (goto-char pt)
                      (expand-abbrev)))))

It didn’t work. After adding some debugging statements, I discovered that the (goto pt) placed the point at one character short of where it should. When I fixed that up, everything worked just fine:

(global-set-key (kbd "M-\"")
                (lambda ()
                  (interactive)
                  (let ((pt (1+ (point))))
                    (when (search-backward "/" nil t)
                      (abbrev-prefix-mark t)
                      (goto-char pt)
                      (expand-abbrev)))))

The problem was I couldn’t figure out why the first solution wasn’t correct. Even though the second solution worked it was really just treating the symptoms, not the problem. So I rewrote it using markers instead.

(global-set-key (kbd "M-\"")
                (lambda ()
                  (interactive)
                  (let ((pt (point-marker)))
                    (when (search-backward "/" nil t)
                      (abbrev-prefix-mark t)
                      (goto-char pt)
                      (expand-abbrev))
                    (set-marker pt nil))))

I don’t like this solution as much because you have to deactivate the marker at the end. Still, at least this solution made sense. I checked the appropriate Emacs code and as far as I can see, the first solution does pretty much what the third one does.

Does anyone understand what’s happening here? I have two working solutions so now it’s just a matter of an annoying anomaly that I don’t understand. If you’ve got a clue, please leave a comment.

Posted in Programming | Tagged , | 2 Comments