Update on Slow Loading of Irreal

A quick update on the Irreal loading problems. I ran a tcpdump on a typical page load of Irreal and discovered the following:

  • The initial three-way handshake with the server completes almost immediately.
  • Immediately afterwards the GET from the browser is received and the server ACKs the request.
  • Nothing happens for about 22 seconds after which the Irreal home page starts to download. The download completes within 340 ms.

Phil wrote to say that he was seeing the same thing so I’m pretty confident that the problem is in generating the content for the home page. The same thing appears to happen anytime dynamic output is generated. I don’t understand why this suddenly started happening. Some people, such as Xah Lee, say that this has been happening for a while but it’s only recently that I’ve been seeing it. The only recent change is an automatic update to the WordPress software.

In any event, my next step was to install the W3 Total Cache plugin. I’m hoping this will make things better. If you are still seeing a 20 second or more delay on downloading the home page please let me know in the comments.

Posted in Blogging | Tagged | 5 Comments

Ten Steps You Can Take to Protect Yourself from Surveillance

The EFF has a list of ten steps you can take to protect yourself from surveillance. There’s nothing there that will come as news to the always informed Irreal reader but it’s a nice summary and worth passing on to some of your less informed friends and family.

Most of the steps are easy and something that everyone should be doing. To me, the hardest part is encrypting all your communications. The problem there is your interlocutors. It’s easy for us geeks to use GPG/PGP and some sort of secure chat but when we want to talk to Aunt Millie (or, really, most of our friends) we’re out of luck because all of that crypto stuff is too hard for them. The crucial need is for someone to figure out a way to get everyone using GPG. It’s a hard problem but I’m sure that riches and glory await the person who solves it. This is why I find the Dark Mail Alliance that I wrote about a couple of days ago such a hopeful development. They may or may not succeed but at least the problem is being worked on.

Posted in General | Tagged | Leave a comment

Gnus Video Part 3

Noufal Ibrahim over at EmacsMovies.org has his latest video up. It’s the third on his series about Gnus. In this episode, Ibrahim discusses the scoring and sorting of articles. Like almost everything in Gnus it’s extraordinarily configurable and therefore complex. As in the previous two episodes in the series, the intent is not to serve as a tutorial as much as to give us a flavor of what’s available and how it works.

The video is about 24 minutes long so you’ll need to block out some time. If you’ve been wondering what the excitement—and sometimes fear and loathing—over Gnus is about this series is definitely worth watching.

Posted in General | Tagged | Leave a comment

The Dark Mail Alliance

Here’s some rare good news from the NSA front: the Lavabit and Silent Circle teams have joined forces to form the Dark Mail Alliance. There are quite a few stories on the Internet about the alliance and what they are trying to achieve. They haven’t released the technical details yet but as far as I can tell the aim is to make email encryption transparent and also hide as much of the metadata as possible.

The protocol and associated software will be released as open source software so that anyone can use it. The more ambitious goal is to get the heavy hitters to sign up. They’d like providers like Google and Yahoo to use the system. Their ultimate goal is to have 50% of email traffic flowing through Dark Mail in 3 years. That seems ambitious to me but I sure hope they succeed.

Every time you read about email security in the press—even in the technical press—you are always warned about how difficult it is to set up PGP/GPG. That’s mostly nonsense, I think, but it is true that Aunt Millie isn’t going to bother because it’s too mysterious and too much trouble. Who’s going to spy on poor old Aunt Millie, after all? So the real hurdle to getting secure email is to make the encryption completely transparent. If Aunt Millie has to do anything extra it simply isn’t going to happen.

Posted in General | Tagged | Leave a comment

Help: Irreal Loading Slowly

For the last couple of weeks I’ve noticed that Irreal has been loading slowly. Irreal, like many small WordPress blogs, runs on a virtual server and I assumed that my hosting provider was moving things around a bit and that the problem would resolve itself soon.

Then Jean-Philippe Paradis noticed that although the blog was slow to load, he could connect to irreal.org instantly. By using the Safari Timeline Recording function I can see that the problem is a ~22 second latency before the front page starts to load. Once the load starts it completes in about 300 ms. It does not appear that plugin loading or running is an issue. I did a Web search for the problem but didn’t find much. I did notice that one entry on the WordPress Forum claimed that things speeded up after the site was pinged. I tried that and sure enough the site started loading quickly again.

Rule 2 states, “There is no magic” so I’m not really believing in the magical power of ping. Because the problems started around the same time as the automatic WordPress udgrade to 3.7.1, I reloaded the update by hand. As things stand now, the site is loading normally for me.

If you find that the site is still loading slowly for you, could you please leave a comment to this post? Also, as I’ve said before, I’m really a back end guy and don’t know much about PHP or Web servers so if you have any wisdom to impart please leave a comment about that too. Thanks.

Posted in Blogging | Tagged | 10 Comments

The New Apple Mail App and GPGTools

The other day I got a popup telling me that a new version of the OS X mail app was available to download and install. I like to keep everything up-to-date as much as possible so I clicked on “Install.” As soon as the new version started, it informed me that it was disabling the GPGTools plugin that provides GPG encryption and signing of email.

Even though I’ve yet to convince most of my interlocutors that they should install GPG or PGP, I sign all my email so this was a big deal for me. In a panic I went searching for a work around or, at least, when a fix would be ready.

Happily, it turns out the panic was unwarranted. If this happens to you all you need to do is to go to the GPGTools site and download and reinstall the package. Once I did that, everything worked again. This is true even if you are already up-to-date and are merely reinstalling the same version. As I wrote this, I checked the GPGTools support site and noticed that they now have a notice about the problem prominently displayed so this post probably won’t be as useful but perhaps it will help one of my fellow Apple users.

Posted in General | Tagged | Leave a comment

Newlines in Lisp Mode

I was lurking in a Twitter conversation between Jean-Philippe Paradis and Xah Lee and learned something new and useful. If you’re using Paredit mode, as you should be, there is a difference between 【Return】 and 【Ctrl+j】. I have 【Return】 set to newline-and-indent which is probably what most people use. If you type 【Ctrl+j】 instead, you get paredit-newline which behaves pretty much the same but instead of just indenting the new line it also indents any S-expression following the point. That’s a win and in keeping with the Paredit philosophy of working on the syntax tree rather than just text.

Here’s the example from the paredit-newline help page. First, we type 【Return

(let ((n (frobbotz))) |(display (+ n 1)
port))
→
(let ((n (frobbotz)))
 |(display (+ n 1)
port))

and then 【Ctrl+j

(let ((n (frobbotz))) |(display (+ n 1)
port))
→
(let ((n (frobbotz)))
 |(display (+ n 1)
           port))

Paradis says that it’s just as easy to type 【Ctrl+j】 as it is to type 【Return】 and that’s what he does. I’m not sure I’m trainable enough to start doing that but I could just add

(define-key lisp-mode-shared-map (kbd "RET") 'paredit-newline)

to my init.el to get the desired result. I suppose I could also remap 【Ctrl+j】 to newline-and-indent so that I could have the old behavior if I needed it.

What are the rest of you doing? If you know about paredit-newline, are you typing 【Ctrl+j】 or have you remapped it? I really like this functionality so I’m interested in how others are invoking it.

Posted in Programming | Tagged | 10 Comments

SBCL 1.1.13

I forgot to mention that SBCL 1.1.13 is out and ready for download. There are some bug fixes, a few minor enhancements, and a couple of optimizations for SXHASH. You can check the release notes to see exactly what’s changed. As usual, you can get the new release at the SBCL download page.

As I’ve mentioned before, I like to build it from source each time. Unless you’re using the Linux binaries, that’s required if you want the latest release because the prebuilt binaries always lag behind on the other platforms. I was pleasantly surprised to have no problems with the build. That’s usually the case, of course, but I just upgraded to Mavericks and past major upgrades always required loading the new XCode and then getting the command line tools. This time, OS X just asked me to agree to the XCode license and then went on with the build. No muss or fuss at all. You do have to do the build with a sudo, though, because the system requires you to be root to agree to the XCode license. Presumably further builds under Mavericks won’t require root privileges.

Posted in Programming | Tagged , | Leave a comment

NSA Recap

The Guardian, which has done almost all the heavy lifting on the ongoing NSA story, has an excellent recapitulation of the story so far and what it means for us. The page is interactive and has snippets of video interviews with several people involved in or knowledgeable of the story.

Although The Guardian has been merciless in their coverage of the scandal, the recapitulation is very even handed and gives voice to both sides: those who support the NSA and its activities and those that deplore them. They also include many of the (previously published) source documents. If you’re at all interested in the NSA story but not obsessive about following it like, ahem, some people this is a great summary. On the other hand, if, like me, you’re one of those obsessive folks, you won’t want to skip it either.

Posted in General | Tagged | Leave a comment

Sacha Chats with Magnar Sveen

Sacha Chua continues her series of chats with Emacs luminaries by interviewing Magnar Sveen. Sveen, of course, is the producer of the highly regarded Emacs Rocks! videos as well as the author of such Emacs packages as Expand Region, Multiple Cursors, S, and Dash. As usual with Chua’s chats, they discuss how Sveen came to Emacs, how he uses it in his day-to-day work, and how he’s customized it to his liking. Finally, they go over some of the highlights of his configuration files.

It’s nice to meet the man behind those great videos. Sveen is an engaging guy and has lots of interesting things to say. He notes that his configuration is always evolving and subject to sudden change. I can testify that that’s true. Some time ago I went through his configuration looking for things to steal. During the chat he described some aspects of it that I hadn’t seen before. I’m especially interested in flx-ido, ido-vertical-mode, and guide-key.

Most of that is in his init.el so if you haven’t looked around his configuration before, it’s undoubtedly worth going through the many subsidiary files as well for more ideas. You can find everything in his public GitHub. There’s a lot of good material there so have a look.

The video is a bit over 57 minutes so plan accordingly. If, like me, you’re a Sveen fan, you won’t want to miss it.

Posted in General | Tagged | Leave a comment