keeping things simple (hopefully)
December 15, 2007
Filed under: Uncategorized — Jason @ 8:49 pm

This was a good post in getting GMail set up in Rails. But if you follow it exactly you’ll run into a a hiccup if you’re running Rails 2.0.

Rails 2.0 has depricated the ActionMailer::Base.server_settings= function and opted for the more aptly named smtp_settings. So just use this for your settings and you’ll be okay.

ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
  :address => "",
  :port => 587,
  :domain => "",
  :authentication => :plain,
  :user_name => "username",
  :password => "password"

Also don’t forget, your username will be your FULL email address (e.g.

Filed under: Uncategorized — Jason @ 8:47 pm

Needed something to generate random numeric strings that were 9 characters long

def random_numeric_string
	length = 1000000000

If anyone has a better way, please let me know.

December 12, 2007
Filed under: Rails — Jason @ 6:31 pm

In order to get proper syntax highlighting for the new Rails 2 naming conventions of templates (html.erb) in Textmate, just fire up Textmate and go into the bundle editor and make the changes as follows:

Textmate > Bundles > Bundle Editor > Show Bundle (or just hit ctrl-opt-cmd B)


Select Languages in the drop down menu


Go to Ruby on Rails > HTML (Rails)

On the second line just change the code from:

fileTypes = ( 'rhtml');


fileTypes = ( 'rhtml', 'erb' ); #For backwards compatability

and you should be good to go…

P.S. here’s a link to a code snippet that will allow you to change all of your rhtml file extensions to html.erb (warning: I have not yet tested this so use at your own risk)

December 7, 2007
Filed under: Identity, OAuth — Jason @ 5:12 am

OAuth, an open authentication protocol for APIs, has released it’s 1.0 spec yesterday at the Internet Identity Workshop. OAuth allows web application developers to put a level of authentication in front of their APIs that in turn puts the users’ back into the users’ hand.

I was out in Mountain View, CA at the IIW this past week and I had a chance to meet some of the authors of this protocol. It was really great to see some of the people behind this great step forward in securing users’ data on the web. More work is to follow by enhancing the protocol through extensions.

The OAuth community already has libraries in PHP, Ruby, Python, Java, C#, and Perl. For more information about the OAuth protocol visit

Check out Chris Messina and Eran Hammer-Lehav giving a brief description of OAuth in this video.

December 4, 2007
Filed under: Identity, OAuth — Jason @ 5:17 pm

Yesterday was the first day of the Internet Identity Workshop in Mountain View, CA., held at the Museum of Computer History. The sessions held yesterday were just overviews of the technologies and issues we face today in the identity world. I was able to finally put some faces next to the names of some of the people who I’ve been seeing and reading online.

Some of yesterday’s presenters were Dick Hardt, CEO of SXIP, who gave his famous presentation on Identity and Doc Searle, who spoke on VRM (Vendor Relationship Management).

While we are here we are trying to get short video interviews on with some of the big names in Identity, find out who they are and what problems they are working to solve.  So far we were able to get Terrell Russell from ClaimID, Joseph Smarr from Plaxo, and David Recordon from Six Apart.

Today I’m gonna sit in on the OAuth Extensions group as the core protocol is being released as final I think today.

December 2, 2007
Filed under: Identity, OAuth, OpenID — Jason @ 8:06 pm

We’re heading out to the Internet Identity Workshop in Mountain View, CA. It’s definitely gonna be an interesting trip as all the OAuth and OpenID folk are gonna be there. Can’t wait to meet some of the people going. I’ll be sure to take some photos.