The Song of the Day is…

Liberation Dance from the curiously-difficult-to-find album Anthem for the New Nations (yes, that’s CDN$97.18!) by Dollar Brand.

Unfortunately, I can only share a taste (mp3, ogg).

How music this good could be out of print is beyond me.

[Tags]Dollar Brand, Abdullah Ibrahim, Jazz, Anthem for the New Nations, Liberation Dance[/Tags]

Update: I added the Google embedded Mp3 player as an experiment and resampled the MP3. Apparently the Google MP3 player can only play files at 44.1 KHz correctly.

This Person Apparently Has a Different Definition of “Off the Grid” Than I Do

Facebook Status Message

Recycle Your PACER Documents

Brilliant and legal.

[Tags]PACER, PublicResource, Carl Malamud, Public Access, Law[/Tags]

Security and Privacy

It’s probably impossible to get too much of Bruce Schneier, although I honestly wouldn’t mind if he stopped Friday Squid Blogging.

His latest Wired.com article on the false dichotomy between security and privacy is an excellent counterpoint to a recent Lawrence Wright profile in the New Yorker on Director of National Intelligence Mike McConnell. The Lawrence Wright article was surprisingly uncritical, considering the New Yorker’s usual zealous approach. Check out, for example, his description of the “Clipper” chip:

In the nineties, new encryption software that could protect telephone conversations, faxes, and e-mails from unwarranted monitoring was coming on the market, but the programs could also block entirely legal efforts to eavesdrop on criminals or potential terrorists. Under McConnell’s direction, the N.S.A. developed a sophisticated device, the Clipper Chip, with a superior ability to encrypt any electronic transmission; it also allowed law-enforcement officials, given the proper authority, to decipher and eavesdrop on the encrypted communications of others. Privacy advocates criticized the device, though, and the Clipper was abandoned by 1996. “They convinced the folks on the Hill that they couldn’t trust the government to do what it said it was going to do,” Richard Wilhelm, who was in charge of information warfare under McConnell, says.

(emphasis added). Compare, for example, EPIC’s Clipper Chip information page.

Schneier, by contrast, sees right through the core:

We’ve been told we have to trade off security and privacy so often — in debates on security versus privacy, writing contests, polls, reasoned essays and political rhetoric — that most of us don’t even question the fundamental dichotomy.

But it’s a false one.

Security and privacy are not opposite ends of a seesaw; you don’t have to accept less of one to get more of the other. Think of a door lock, a burglar alarm and a tall fence. Think of guns, anti-counterfeiting measures on currency and that dumb liquid ban at airports. Security affects privacy only when it’s based on identity, and there are limitations to that sort of approach.

Since 9/11, approximately three things have potentially improved airline security: reinforcing the cockpit doors, passengers realizing they have to fight back and — possibly — sky marshals. Everything else — all the security measures that affect privacy — is just security theater and a waste of effort.

By the same token, many of the anti-privacy “security” measures we’re seeing — national ID cards, warrantless eavesdropping, massive data mining and so on — do little to improve, and in some cases harm, security. And government claims of their success are either wrong, or against fake threats.

The debate isn’t security versus privacy. It’s liberty versus control.

Read the whole essay. And send it to your mother, as well.

[Tags]Schneier, Privacy, Security[/Tags]

Microsoft Outlook 2003 Tip: VBA Macro to Remove Stationery from Email Message

Quick link to ClearStationery.bas

I don’t have much (any?) history of posting tips for the Windows platform, but I’m currently stuck with it for daily work use, so I figured I might as well share some tips that my readers who happen to be in the same predicament will find useful. (Planet Debian readers please have mercy.)

One of the worst things you that Microsoft Outlook allows a user to do is select a “stationery” for email. Stationery goes beyond regular old HTML mail (e.g., fonts, colors, and bullet lists) to add a patterned background, invariably rendering the content much less readable than it would be with a white (or even any other color) background. What’s worse is every reply to an email with stationery also adopts the original sender’s stationery!

I searched quite a bit for a solution that does not involve sending a nastygram to the original sender. Of course you can convert the email to plain text (or set Outlook to only display the plain text version) and then convert back to HTML or Rich Text, but you’ll also lose other formatting that you might want to retain. You could cut and paste the text into a new email, but what is really needed is a simple VBA macro that will strip the stationery but not other formatting.

Strangely, I don’t think that macro already exists. So I wrote one, to some extent cribbing from related code snippets (mostly from here). I now present to the world ClearStationery.bas, my best contribution to date to the Outlook ecosystem. Simply paste it into your Outlook Visual Basic Editor (ALT-F11) and then map the macro ClearStationeryFormatting() onto a toolbar with a hotkey, and you can instantly remove stationery from any email, whether it is in the “preview” pane or the full message view.

Comments, bug reports, and improvements are welcome:

Sub ClearStationeryFormatting()
On Error GoTo ClearStationeryFormatting_Error
    Dim strEmbeddedImageTag As String
    Dim strStyle As String
    Dim strReplaceThis As String
    Dim intX As Integer, intY As Integer
    Dim myMessage As Outlook.MailItem

    ' First, check to see if we are in preview-pane mode or message-view mode
    ' If neither, quit out
    Select Case TypeName(Outlook.Application.ActiveWindow)
        Case "Explorer"
            Set myMessage = ActiveExplorer.Selection.Item(1)
        Case "Inspector"
            Set myMessage = ActiveInspector.CurrentItem
        Case Else
            MsgBox ("No message selected.")
            Exit Sub
    End Select

    ' Sanity check to make sure selected message is actually a mail item
    If TypeName(myMessage) <> "MailItem" Then
       MsgBox ("No message selected.")
       Exit Sub
    End If

    ' Remove attributes from <BODY> tag
    intX = InStr(1, myMessage.HTMLBody, "<BODY", vbTextCompare)
    If intX > 0 Then
        intY = InStr(intX, myMessage.HTMLBody, ">", vbTextCompare)
        strReplaceThis = Mid(myMessage.HTMLBody, intX, intY - intX + 1)
    End If

    If strReplaceThis <> "" Then
        myMessage.HTMLBody = Replace(myMessage.HTMLBody, strReplaceThis, "<BODY>")
        strReplaceThis = ""
    Else
        Err.Raise vbObjectError + 7, , "An unexpected error occurred searching for the BODY tag in the e-mail message."
        Exit Sub
    End If

    ' Find and replace <STYLE> tag
    intX = InStr(1, myMessage.HTMLBody, "<STYLE>", vbTextCompare)
    If intX > 0 Then
        intY = InStr(8, myMessage.HTMLBody, "</STYLE>", vbTextCompare)
        strReplaceThis = Mid(myMessage.HTMLBody, intX, ((intY + 8) - intX))
    End If

    If strReplaceThis <> "" Then
        myMessage.HTMLBody = Replace(myMessage.HTMLBody, strReplaceThis, "")
    End If

    If InStr(1, myMessage.HTMLBody, "<center><img id=", vbTextCompare) > 0 Then
        strEmbeddedImageTag = "<center><img id="
        '"<center><img id=""ridImg"" src="citbannA.gif align=bottom></center>"
        intX = InStr(1, myMessage.HTMLBody, strEmbeddedImageTag, vbTextCompare)
        If intX = 0 Then
            Err.Raise vbObjectError + 8, , "An unexpected error occurred searching for the embedded image file name start tag in the e-mail message."
            Exit Sub
        End If
        intY = InStr(intX + Len(strEmbeddedImageTag), myMessage.HTMLBody, " align=bottom></center>", vbTextCompare)
        If intY = 0 Then
            Err.Raise vbObjectError + 9, , "An unexpected error occurred searching for the embedded image file name end tag in the e-mail message."
            Exit Sub
        End If
        strEmbeddedImageTag = Mid(myMessage.HTMLBody, intX, intY - intX)
        intX = InStr(1, myMessage.HTMLBody, "<CENTER>", vbTextCompare)
        intY = InStr(intX, myMessage.HTMLBody, "</CENTER>", vbTextCompare)
        strReplaceThis = Mid(myMessage.HTMLBody, intX, intY - intX) & "</CENTER>"
        myMessage.HTMLBody = Replace(myMessage.HTMLBody, strReplaceThis, "", , , vbTextCompare)
    End If

    ' Finally, saved modified message
    myMessage.Save

    On Error GoTo 0
    Exit Sub

ClearStationeryFormatting_Error:

    MsgBox "Error " & Err.Number & " (" & Err.Description & ")"
    Resume Next
End Sub

Stationery-B-Gone!

Best Reason to Have More Than One Child

…so that you will eventually know the indescribable joy of finding all of them sound asleep at a reasonably early point in the evening.

TSA Gripe of the Day

I arrived back late last night from DC (National Airport, called “Reagan” by some) to Logan Airport. I got to National about an hour before my departure and checked two bags. Only one of them appeared at the baggage claim on the other end. The U.S. Air baggage people were surprised; they said National rarely loses or delays bags, especially where the passenger checks in with reasonable lead time.

My second bag finally arrived this afternoon. I found the solution to the mysterious delay within: a Transportation Security Administration “Notice of Baggage Inspection.” Presumably they held my bag for too long or it just didn’t get routed properly after being manually inspected.

I don’t believe the random manual inspections provide much improvement over the full CT scans now mandated at all airports. But apparently they do create inconveniences.

On another note, I noticed for the first time this trip that the now obsolete “no smoking” signs above every seat have been replaced with “turn off electronic devices.” (Query which is more addictive.)

[Tags]TSA[/Tags]

Political Blogging

The Frontal Cortex provides an astute explanation as to why he shies away from political blogging in this election season:

My hypothesis is that political judgments are like moral judgments. When you see a candidate, you experience a visceral, instinctive, inexplicable response. Your brain generates an emotion – Obama is uplifting, Hillary is commanding, McCain is honorable, etc. – and then the rest of your brain goes about explaining your emotion. The inner interpreter gathers together bits of evidence, post hoc justifications, and pithy rhetoric in order to make our automatic reaction seem reasonable. But this reasonableness is just a façade, an elaborate self-delusion.

Personally, I haven’t done much (any?) such blogging lately for lack of time, but I also generally agree with his conclusions.  “A man hears what he wants to hear and disregards the rest.”

[Tags]Politics, Elections, Neuroscience[/Tags]

MBTA On Time

After my many philippics against the MBTA, I should give the T credit for being nearly 100% on time this week (at least within five to ten minutes of target), so much so that I am often sprinting to catch the train because I had gotten used to it being late.  That the trains are only half-full due to people’s vacations must be related. So maybe the long-term solution is to alienate enough riders that they leave the system?

[Tags]MBTA, Boston[/Tags]

Jason’s Lesson’s Learned About the Legal Academy and Getting In

Pelican has decided to abandon his efforts to scale the walls of the legal academy and proposes this simple eight-step program for others who would follow in his footsteps:

  1. Don’t do interdisciplinary work. The legal academy doesn’t know what to make of it unless it is economics.
  2. Don’t go to a school without a law review or grades. I did and it was a huge problem.
  3. Get on law review, clerk, write.
  4. Check the faculty listings at most law schools. Go to the most often listed schools: Harvard, Yale, etc. It does matter as law faculty select their own, usually. I was told by a faculty member as a 1L expressing interest in the academy that I should transfer immediately to Harvard if possible. I didn’t.
  5. If you think you want to be a legal academic, look at what is on the FAR form in your first or second year. Orient your academic career to produce a good looking FAR.
  6. Remarkably, the legal academy does not care about your ability to raise research money or bring in grants.
  7. Don’t publish in interdisciplinary journals. Publish only in law reviews writing only dense and impenetrable texts.
  8. Demonstrated impact of your work in policy or law is not relevant.

This critique could be extended broadly to much of the academy (not just law schools). I had once thought I might like to teach law, but now I can only really see myself as a clinician.

Two contradictory academic trends:

  • The tendency toward dense, impractical writing that only makes sense to other insiders. This is often but not exclusively the influence of postmodernism. Steve recently brought Chomsky’s response to postmodern thought to my attention. It boils down to this: sure, it might be complicated. But there are lots of other fields that are complicated–quantum mechanics, nanotechnology, even game theory–in which an expert can still explain to a bright layperson the contours of the field sufficient for the layperson to get the gist of it, even if they can’t grasp all the details without extensive study. This doesn’t seem to be true of postmodern philosophy. Is the emperor naked? Paul Graham’s How to Do Philosophy reflects a similar attitude with less of a political bent, although my friends pursuing philosophy doctorates claim Graham has got it all wrong.
  • The tendency to reduce all disciplines to a science, particular the humanities and social sciences. This can either mean approaching the study with some method that approaches “scientific rigor” or literally basing the analysis in an already recognized science, preferably neuroscience. While I can see some sense in incorporating neuroscience, cognitive science, and certainly psychology into fields such as economics, I don’t think this is a good thing to the extent it overwhelms other modes of analysis, particular for literature. Neuroscientist/author Jonah Lehrer discussed this phenomenon (and its drawbacks) with Christopher Lydon in an episode of the newly-revived Radio Open Source. (Warning to Debian readers: Radio Open Source has very little to do with open source software.)

[Tags]Law, Legal Academy, Postmodernism, Neuroscience, Jonah Lehrer, Paul Graham, Philosophy, Noam Chomsky, Christopher Lydon[/Tags]