--- - !ruby/struct:VCR::HTTPInteraction request: !ruby/struct:VCR::Request method: :get uri: http://www.scottw.com:80/ body: headers: response: !ruby/struct:VCR::Response status: !ruby/struct:VCR::ResponseStatus code: 200 message: OK headers: server: - nginx date: - Tue, 14 Feb 2012 16:55:15 GMT content-type: - text/html;charset=utf-8 connection: - keep-alive x-frame-options: - sameorigin x-xss-protection: - 1; mode=block last-modified: - Wed, 01 Feb 2012 16:03:28 GMT content-length: - '15677' x-varnish: - '1407065053' age: - '0' via: - 1.1 varnish body: ! "\n\n\n\n\n\n \ \n Scott Watermasysk\n \n\n \n \n \ \n\n \n \n \ \n \n\n \n \n \n \ \n \n \ \n \n \n \ \n\n\n\n \n \n\n\n\n\n\n
\n \

Scott Watermasysk

\n \n

Still Learning

\n \ \n
\n\n
\n \n \
\n
\n
\n \ \n \n \n
\n \n
\n\t\t\n\t\t\t\n\t\t\t\t

Deploying Octopress to Heroku With a Custom Buildpack

\n\t\t\t \t\n\t\t \t\n \ \n

\n \n\n\n\n\n\n\n\n\n \n\n\n\n \n \

\n \n
\n\n\n

Why is this important? It means no more committing the public directory into git.

\n\n

Even with just 200 or so posts, my git history felt like it was exploding every time I wrote a new post.

\n\n

I went ahead and nuked my old blog repo and recommitted this cleaner (and leaner) version if you need a starting place.

\n\n

Jason’s steps were great, but I did run into two snags:

\n\n
    \n
  1. I could not set the buildpack directly when creating the app. I had to add the heroku config var for it instead.
  2. \n
  3. I got an error about a missing daemon gem. Heroku’s cedar stack is still in beta and running a RC version of bundler (as of today). I haven’t dug any further, but nuking my gem vendor folder and starting over seemed to do the trick.
  4. \n
\n\n
\n \n \n\n\n\n\t
\n\t\n\n\n \
\n \n \n
\n \n
\n\t\t\n\t\t\t\n\t\t\t\t

Octopress Linked List

\n\t\t\t \t\n\t\t \t\n \n

\n \ \n\n\n\n\n\n\n\n\n \n\n\n\n \n \

\n \n
\n\n\n

I have been meaning to implement this on my own for a while.

\n\n

I did make one minor adjustment David’s example. Instead of inlining the glyph, I am adding it via CSS:

\n\n
1\n2\n3\n
a.external-link:after {\n  content: " \\27A6";\n}\n
\n\n
\n \ \n \n\n\n\n\t
\n\t\n\n\n
\n \ \n \n
\n \n
\n\t\t\n\t\t\t\n\t\t\t \t

Async Emails With Sorcery

\n\t\t\t\t\n\t\t \t\n \n

\n \n\n\n\n\n\n\n\n\n \ \n\n\n\n \n

\n \n
\n\n\n \

For KickoffLabs, we rolled our own authentication. This worked really well, but doing it (even if we packaged it up) for future projects is less than appealing.

\n\n

I have used/tried Devise, Clearance, and AuthLogic but none of them seemed to fit.

\n\n

Enter Sorcery. Sorcery is a relatively new player in the rails authentication arms race.

\n\n
\n \ \n \n \n \n\n\n\n\n
\n \n \n
\n \ \n
\n\t\t\n\t\t\t\n\t\t\t \t

Heroku SSL via DNSimple

\n\t\t\t\t\n\t\t \ \t\n \n

\n \n\n\n\n\n\n\n\n\n \n\n\n\n \n

\n \n
\n\n\n

If you google for Heroku SSL you will find a surprisingly long list of blog posts usually with many steps.

\n\n

However, it is actually much easier than what most of them list, especially if you are using DNSimple (note: affiliate link).

\n\n

Here is how to setup a Hostname Based certificate on Heroku:

\n\n
\n \n \n \n \n\n\n\n\n \
\n \n \n
\n \n
\n\t\t\n\t\t\t\n\t\t\t \t

Static Files Using Sinatra::Base on Heroku

\n\t\t\t\t\n\t\t \t\n \n

\n \ \n\n\n\n\n\n\n\n\n \n\n\n\n \n \

\n \n
\n\n\n

I deployed a small Sinatra app last night to Heroku for the new KickoffLabs API.

\n\n

Most of the Sinatra apps I have deployed in the past have been small prototypes and used the inline Sinatra app style.

\n\n

However, in this case, I made the decision early on to use the Sinatra::Base class style since we plan on growing the API codebase (ie, we are going to keep it around for a long time).

\n\n
\n \n \n \n \n\n\n\n\n \
\n \n \n \n \ \n \n
\n \n
\n\t\t\n\t\t\t\n\t\t\t \t

My Favorite Startup and Ruby Podcasts

\n\t\t\t\t\n\t\t \t\n \n

\n \ \n\n\n\n\n\n\n\n\n \n\n\n\n \n \

\n \n
\n\n\n

My taste in podcasts varies by what is actually going on in my life. Right now it is mostly startups (KickoffLabs) and Ruby.

\n\n

Here are my current favorites:

\n\n
\n \n \n \n \n\n\n\n\n
\n \n \n \n \n \n
\n \ \n
\n\t\t\n\t\t\t\n\t\t\t \t

Improving Automated Timezone Detection

\n\t\t\t\t\n\t\t \ \t\n \n

\n \n\n\n\n\n\n\n\n\n \n\n\n\n \n

\n \n
\n\n\n

tl;dr - Just using the Javascript getTimezoneOffset to auto-detect timezone information will not work properly during daylight savings and has a couple of other minor gotchas. Check out the jsTimezoneDetect and my simple jQuery detect_timezone plugin for more accurate timezone information. I also put together a gem, detect_timezone_rails, to automate the process in Rails.

\n\n
\n \n \n \n \n\n\n\n\n
\n \n \n
\n \n
\n\t\t\n\t\t\t\n\t\t\t \t

Multiple Smtp Servers With Action Mailer

\n\t\t\t\t\n\t\t \t\n \n

\n \n\n\n\n\n\n\n\n\n \n\n\n\n \n \

\n \n
\n\n\n

We recently started using PostMark on KickoffLabs. So far the service has been excellent. Unfortunately, not all of our emails fit their terms of service. I looked around for how configure an addition SMTP server via Action Mailer (and Mail gem). Surprisingly, this is not supported.

\n\n
\n \ \n \n \n \n\n\n\n\n
\n \n
\n \ \n ← Older\n \n Blog Archives\n \n
\n
\n
\n \
\n \n \n\n\n\n\n\n\n\n \n\n\n\n \n\n\n\n\n\n\n\n" http_version: '1.1'