December 2011
3 posts
Body copy guidelines
I just sent the following email to some cow orkers. It took me ages to dig up the links. It always takes me ages, so I’m blogging it as a bookmark.
Here are two excellent references for my religious perspective on typesetting and layout of body copy. It will take you less than 10 minutes to read both articles, I promise. You will:
Discover why you feel drained after a lot of browsing.
...
Setting HTTP Referer with capybara
Because it took me an hour to find out… To set the HTTP Referer for a request in a cucumber step definition using capybara with the default driver (Capybara::RackTest::Driver):
referer = 'http://example.com/'
Capybara.current_session.driver.header 'Referer', referer
visit '/'
Note that this persists for the remainder of the session. If you know how you’re supposed to unset an...
1 tag