2010-03-17 00:00:00 +0000

Storing a Ruby object in Rack::Session will probably clobber the session

In my case it was an OAuth request token and when it was serialized it must have been larger than the cookie limit. Spent too much time on this.

2010-03-17 00:00:00 +0000

OAuth summarized

Application Scope

# create the consumer...
consumer ||= OAuth::Consumer.new(KEY, SECRET, {:site => SITE, :authorize_path => PATH })

2010-03-16 00:00:00 +0000

My war is winding down with OAuth

Summary of what’s going on with OAuth:

2010-03-15 00:00:00 +0000

Going to war with OAuth

And OAuth is winning

2010-03-14 00:00:00 +0000

CSS sprites for buttons

Found these login buttons online which have three states - normal, hover and visited. This makes them perfect to use as a CSS sprite, so here’s how that went down:

2010-03-13 00:00:00 +0000

Taking a pass on URLs that aren't supposed to exist (in Sinatra)

This is simple, but I’m dumping it here anyway… I’d like to use the Twitter model of account access: http://example.com/USERNAME

2010-03-13 00:00:00 +0000

Setting a domain name (env['HTTP_HOST']) to use in Rack::Test

This may not be the best way to do this, but this is what I used at the top of my test file so that a helper method has a value for Rack’s env[‘HTTP_HOST’]:

2010-03-13 00:00:00 +0000

Haml and Google SMTP for email

I first thought that I would have to use ERB to render non-HTML-like templates. Not true. Haml let you do a :plain filter which is pretty much the same as using ERB templates.

2010-03-12 00:00:00 +0000

Trying out Pony for email

Email is going to be used to activate an account, and I’m leaning towards using the Pony gem to simplify the creations and sending.

2010-03-11 00:00:00 +0000

More on OpenID

I’m now working on user creation process…