Debugging

Via Jean-Philippe Paradis.

So true. I remember debugging a problem that disappeared as soon as I put a printf in the code to see what was happening.

Posted in General | Tagged | Leave a comment

An Example of Why Reproducible Research Matters

Dennis Ogbe, whom I’ve written about before, has a nice example of why reproducible research matters. If you’ve read those previous posts you know that Ogbe is a PhD student in Electrical Engineering at Purdue. As such he reads papers in his field both for research and for his classes. One such paper had a sign error (possibly a typo) in the derivation of a set of equations used to process the data in the paper.

In a sense, this was small potatoes but Ogbe was trying to learn from the paper and tried to reproduce the simulation described in it. His results were wrong and he couldn’t understand why. It was only after checking the derivation by hand that he discovered the error and was able to reproduce the paper’s numerical results.

You can read Ogbe’s post for the details but none of this would have been necessary if the paper had included the actual code used to produce the results. Furthermore, if the paper had included that code it is more likely that the author would have discovered the error and corrected it before publication.

In a nice coda to the post, Ogbe demonstrates reproducible research in action by showing how the code used to build his table of results was included and executed in the post itself. Emacs and Org mode make that easy, of course, which is why the combination is so useful for publishing research in a reproducible manner.

Posted in General | Tagged , , | 1 Comment

Using Org Mode Displays for Presentations

If you’ve watched any of Howard Abrams’ excellent videos, you may have wondered, as others have, how he gets the nice effects when he displays Org buffers. Wonder no more. Abrams has posted an explanation of how he gets those effects. At the bottom of the post is an example of what the resulting display looks like.

He covers four improvements:

  • Hiding emphasis markers
    Instead of seeing /this is italics/, for example, you just see this is italics.
  • Better bullets
    In lists like this one, Org usually just uses ASCII characters for bullets. Abrams shows how to replace that with the more appropriate • character.
  • Better header bullets
    This change replaces the series of stars that mark headers with bullets of various sorts. This optimization requires the org-bullets package.
  • Better headers
    In this tip, Abrams shows how to have different sizes for the various levels of headers.

Of course, when you export an Org buffer most of these changes happen automatically so they’re mostly useful if you are using screen captures in a video or just want to have nicer looking Org buffers.

UPDATE [2016-04-12 Tue 13:08]: Karl Voit points to another excellent resource along the same lines.

Posted in General | Tagged , | 4 Comments

A Reminder from Kontra

Enough is enough, California.

Posted in General | Tagged | Leave a comment

75 Free Privacy Tools

Richard Patterson wrote to me about my article on privacy tools and suggested I take a look at his offering, 75+ free tools to protect your privacy online. As Patterson says, you won’t need all these tools but you should probably have one from each category. All of the offerings are free (as in beer) so there’s little cost in trying them out. I use several of the tools and have been very happen with them.

If you want people to stay out of your business and leave your data alone, it’s worth taking a look at the list to see if there’s anything there that can help. Each application has a short description and a link to help you decide which ones will work for you.

The application categories on the page are

  • VPNs and Proxies
  • Antivirus
  • Backup and Storage
  • File Encryption
  • Disk Encryption
  • Secure Messaging
  • Password Managers
  • Mail Encryption
  • Ad Blockers
  • Anonymizers
  • Search Engines
  • Disk Wiping
  • Intrusion Detection
  • Windows 10 anti-spying
  • Fake/burner Email
  • Social Media Privacy
  • Mobile Apps
  • Other Browser Extensions
  • DNS
  • Other Desktop Tools

As you can see, the categories cover most privacy/security areas that concern those of us trying to keep the nosy parkers at bay. Definitely worth taking a look at.

Posted in General | Tagged , | 1 Comment

A Hydra for the Org Agenda View Dispatcher

Abo-abo has a great post that demonstrates a hydra for the Org Agenda view menu. Instead of the ugly static menu, you get a beautiful hydra that shows you the state of the toggles and other information.

It’s that last bit that’s significant here. Hydra has a new extended doc syntax that allows you to dynamically add status items to a hydra menu. For example, in the Agenda view you can see things by day, week, fortnight, month, or year. The hydra includes code that puts a check box next to the chosen display mode. It also displays the status of the toggles such as org-agenda-follow-mode.

If, like me, you use agenda views a lot, you may find this hydra useful. Take a look at abo-abo’s post to see what it looks like and what it can do. You may also want to make use of the extended doc syntax in some of your other hydras. If you don’t have the hydra package installed, you should consider it. There’s a video that shows the basic capabilities but abo-abo has added more to the package since he made the video. Again, I highly recommend you check it out if you haven’t already.

Posted in General | Tagged , | Leave a comment

Emacs and Outlook

I’m in the happy position of not needing—indeed never have been needing—to use Outlook for my email. Others, sadly, are not so lucky. Karl Voit points to a remedy that allows you to compose your email in Emacs and send it via Outlook.

That’s nice but it got me wondering if something like mbsync could be leveraged to solve this problem. Ben Francom has a post that describes using mbsync with Outlook365 to handle his email with Mutt. Of course, once you get mbsync dealing with Outlook, a large array of solutions are possible. You could, for example, handle your Outlook email with mu4e or any of the other Emacs based mail clients.

As I say, I’m not and never have been an Outlook user so I don’t know how well these solutions work and what the gotchas are but if I were, I’d sure be looking into them. If you’re constrained to use an Outlook account, you might find the two links above useful.

Posted in General | Tagged | 1 Comment

Improved HTML Capturing with Org

If, like me, you use Org mode for your note taking and record keeping, you’ve probably found yourself occasionally needing to capture data from a Web page. You can already to that but many browsers don’t handle the conversion from HTML to text very well.

Alphapapa has an interesting solution in the org-protocol-capture-html package. The README.org page shows the result of capturing one of John Kitchin’s pages. It looks pretty nice and even turned a table into its Org equivalent.

I’m not sure how universal the solution is. Part of the requirements is a bookmarklet for the browser. Alphapapa gives examples for Firefox and Chrome but nothing for I.E. or Safari. It probably wouldn’t be very hard to get it working for those browsers too but I haven’t looked into the problem.

Sadly, there isn’t an ELPA package so you have to install it yourself. Of course, that isn’t hard but it does make it harder to keep things up to date. This package seems like a useful addition to Emacs if you often have a need to capture Web pages to Org mode.

Posted in General | Tagged , | 1 Comment

Any Option You Like

This clearly falls in the different strokes for different folks category but it would make me want to stab myself in the eye.

Is it just me or does anyone else think having the focus yanked away because you mistyped a command is a really bad idea? Of course, Emacs lets you have it your own way even if others might think that way is, um, less than optimal.

Posted in General | Tagged | 5 Comments

Do Biometric Sensors Decrease Security?

Hitoshi Kokumai over at ProgrammableWeb has a rather silly article arguing that smartphone fingerprint sensors actually worsen security. Strictly speaking, the article is correct in the sense that the government could force you to provide a fingerprint while they can’t compel you to open your phone with a password. But, as always with security, what’s good is informed by your threat model.

If your threat model includes being arrested with incriminating data on your phone, then yes, you should turn off the fingerprint sensor and use a password more secure than a 4-digit pin. Most of us, of course, don’t have that threat model. It’s much more likely to be, “I want to protect the data on my phone if it is lost or stolen.” In that case, the fingerprint scanner is arguably more secure than a pin.

Kokumai argues that what’s really needed is two-factor authentication where both the pin and the fingerprint scan are needed to unlock the phone. Of course, that wouldn’t increase security because nobody would bother. The point of the scanner is convenience. If you make using it an additional burden no user would want it. It doesn’t even help the drug dealer who could just use the password without harming security while making unlocking the phone more convenient.

In the real world, it’s at least arguable that the fingerprint scanners make phones more secure because people who wouldn’t bother with a pin might find the scanner convenient enough to use them instead of leaving the phone unprotected. If you’re not a drug dealer or otherwise a specific target of law enforcement there’s no reason to fear the scanners; they just make your life easier without having any significant effect on your security. As exciting as all those James Bond scenarios seem, most of us do live in the real world.

UPDATE: Even

Posted in General | Tagged | Leave a comment