Random factoid: Glen Phillips’s “Drive By”

I’ve always loved the song. I have always sort of wondered if it was a true story. Well, here’s the scoop:

From http://www.thesuburbs.org.uk/Board/index.php?topic=6106.0:

http://www.adamcarolla.com/ACPBlog/2010/09/16/glen-phillips/

Glen Phillips from Toad The Wet Sprocket was on the Adam Carolla Show today and played a new song. Adam asked what it was about, and GLen said it was a story a friend told him happened to him a long time ago. Oh, and that friend is Ben Folds! Anyway, they spent a little time talking about Ben, whom Carolla absolutely loves. Do yourself a favor and check out the podcast! Now if only he can book Ben as a guest ..

How to have a buildout config that extends another buildout config

Buildout is a pretty useful tool, but the documentation is somewhat lacking. I needed to have specialized buildouts for dev and staging that extend a more general buildout. I couldn’t find this in the buildout docs, but I found it here.

In my case, I needed a buildout for staging that omits software that we already have installed via RPMs. Luckily it’s possible:

$ cat staging.cfg 
[buildout]
extends = buildout.cfg
eggs -=
    pyodbc==2.1.8
    psycopg2==2.4
    coverage>=3.4

As you might guess, += and = also work and do what you’d expect.

How to open a port to an EC2 instance

To open a port to an EC2 instance, do:

  • ec2-authorize -p <port number> <security group> (from any machine with the ec2 command-line tools)
  • If the server has iptables: sudo /sbin/iptables -A INPUT -p tcp --dport <port number> -j ACCEPT (on the server)

Speaking of iptables, here’s:

Ubuntu One: Getting an OAuth token

The first small modest step towards writing an Ubuntu One client, if I ever get the inclination to do so:

$ curl --user $UBUNTU_ONE_USER:$UBUNTU_ONE_PASSWORD \
> "https://login.ubuntu.com/api/1.0/authentications?ws.op=authenticate&token_name=Ubuntu%20One%20@%20$HOSTNAME"
{"consumer_secret": "...", "token": "...", "consumer_key": "...", "name": "Ubuntu One @ ...

(See https://one.ubuntu.com/developer/account_admin/issue_tokens/cloud/)