Sunday, August 27

Authenticating to Google Accounts from the Command Line

The beta version of Blogger uses GData for its API and Google Accounts for logins, which means that it requires the GoogleLogin authorization scheme on API requests. This is more secure, but slightly tougher to work with than HTTP Basic authorization.

Sure, there are libraries (Java and C#) for handling this, but where’s the fun in that? Here’s how to do the API using just curl and sed, in a delightful one-liner:

curl -H "`curl -s -d Email=e-mail address -d Passwd=password -d source=your app name -d service=blogger https://www.google.com/accounts/ClientLogin | sed -n -e \"s/Auth=\(.*\)/Authorization: GoogleLogin auth=\1/p\"`" http://beta.blogger.com/feeds/blog id/posts/full

Note that for the e-mail address, you’ll need to replace “@” with “%40” as per URL encoding.

Goldman's Gone


Goldman Bores Biz
Originally uploaded by OldMainstream.
Not to get sappy or anything, but I love this photo of Jason Goldman. It is a rare photo of him that he's not mugging it up, and I think a lamer, more emotional me would go on about how this is the true Goldman, and it's special, and precious just like he is, and no one knows him like I do.

Really, though, I like this photo because I know that, consistently, if Goldman's talking like that, I'm laughing one or more asses off because dude is hilarious.

So it's not so much that I'll miss him now that he's left Blogger, it's more like I welcome the gentle kiss of death so that we can be united again for eternity.

Wait. I think that came out wrong.

Friday, May 5

Greasemonkey Scripts I Want

Thought I’d toss out something just to make sure I didn’t forget how to type. These are Greasemonkey scripts that would be nice to make or find already made:
  • Blogger Blog Link Emblem The deal here would be to add the Blogger icon () to any link that pointed to something at *.blogspot.com. Very useful for harvesting potential Blogs of Note. Extra props if it could do the same for blogs not hosted on Blog*Spot, but the logistics of that get tough.
  • You’re Already Subscribed To This I’m on a boardgaming kick, and as such I’m assembling boardgaming blogs in Reader. I can’t remember which blogs I’ve added, though, so I have tried to add the same ones multiple times. Often I read several posts before I realize that I read them all before. If I go to a blog I already have in Reader I’d like to see a message pop up so I don’t try to add it again. (Update: Mihai whipped it up! Sweet!)
  • Social Bookmark Niagra It would be cool to have a Greasemonkey script that added all the social bookmarking icons to every page I read, cuz sometimes people forget to put them all in. Then I have choices! Will I del.icio.us this one? Or maybe send it to Furl? ONLY THE BEST SITES GET SENT TO GETBOO.

Saturday, April 22

Plan 9 From Outer Space

Just finished consuming Ed Wood, an entertaining picture about the infamous director, when I found that his magnum opus, Plan 9 From Outer Space, is available on Google Video for free. It’s an epic story, sincerely executed. And — if you overlook the parts that are batshit insane — it’s a telling cautionary tale about the dangers of raising the dead to combat weapons of mass destruction.

Friday, April 21

Beautiful Comments Form

More fun than blogging is redesigning my blog. So I’m working on that. I’ve decided this template is not representative. Early comments are positive…

I’m mentioning this because, once again, Mr. Powazek is super-inspirational. Take a look at the comments form from his photo site, Ephemera. The little thumbnail of the photo at the top is brilliant.

I love to gaze at good designs like this (and these) and wish I had teh hotx skills.