HTTP Authentication in OS X is broken for RESTful Rails

Thijs van der Vossen, 30 Oct 2006, 08:47 in ruby on rails and broken (edit).

From the Mac OS X Leopard Technology Overview:

Leopard Server features a built-in installation of the powerful and productive Ruby on Rails web application framework. Ruby on Rails is a full stack framework optimized for sustainable productivity. Leopard Server will ship with Mongrel for simplified development and deployment of web-based applications.

That’s great. I only hope this bug will be fixed too. It would be somewhat ironic if you can’t use HTTP Basic Authentication in Safari with the new RESTful Ruby on Rails urls.

If you have access to the latest pre-release version of Mac OS X Leopard, please visit http://onautopilot.com/test;webkit and let us know if you get asked for a username and password or if it’s still broken.

Update: Tim found that you can make this work by url-escaping the semicolon. Add the following to your ApplicationController in app/controllers/application.rb:

# make HTTP Authentication work on Safari for RESTful Rails
def url_for(options = {}, *parameters_for_method_reference)
  result = super(options, parameters_for_method_reference)
  if request.env['HTTP_USER_AGENT'].to_s.include? 'AppleWebKit' 
    result.is_a?(String) ? result.gsub(';', '%3B') : result
  else
    result
  end
end

4 comments

Getting Real, the book now free

Thijs van der Vossen, 26 Oct 2006, 09:11 in web, practices, and design (edit).

Getting Real, the book, self-published in PDF format this march by 37signals, is now also available as a paperback and in a free html version.

I never finished reading the pdf version because I find reading PDF documents on a computer screen really annoying.

Reading a well-designed html document from screen is a much, much better user experience; it’s easy to change font size, the position and width of page elements changes to fit the browser window and you can just scroll down and keep on reading without being interrupted by page boundaries.

For reading from screen, the html version of Getting Real just works better.

One thing is driving my crazy though; why on earth haven’t they used curved quotation marks in the html version? Proper punctuation just doesn’t matter anymore?

2 comments

Quiz

Thijs van der Vossen, 23 Oct 2006, 15:39 in ruby on rails, tools, and launches (edit).

This is from a nice new app we’ve been working on for the last month or so. Any idea what it is and who we’re building this for?

Sneak peek

Update: First right answer gets two great books. Can’t tell you what they are about without giving away the answer, I’m afraid…

17 comments

A stroke of genius

Thijs van der Vossen, 18 Oct 2006, 09:49 (edit).

No comments yet

Design is how it works

Thijs van der Vossen, 18 Oct 2006, 09:07 in design (edit).

Wired News has some great quotes about design in their Straight Dope on the iPod’s Birth:

Ive told the Times that the key to the iPod wasn’t sudden flashes of genius, but the design process. His design group collaborated closely with manufacturers and engineers, constantly tweaking and refining the design. ”It’s not serial,” he told the Times. ”It’s not one person passing something on to the next.”

Robert Brunner, a partner at design firm Pentagram and former head of Apple’s design group, said Apple’s designers mimic the manufacturing process as they crank out prototypes.

“Apple’s designers spend 10 percent of their time doing traditional industrial design: coming up with ideas, drawing, making models, brainstorming,” he said. “They spend 90 percent of their time working with manufacturing, figuring out how to implement their ideas.”

[…]

“Most people make the mistake of thinking design is what it looks like,” Jobs told the Times. “That’s not what we think design is. It’s not just what it looks like and feels like. Design is how it works.”

No comments yet

Rijnboutt Van der Vossen Rijnboutt on the shortlist

Thijs van der Vossen, 17 Oct 2006, 21:08 in portfolio and design (edit).

The website we created for Rijnboutt Van der Vossen Rijnboutt is on the shortlist for the ArchiNed ‘best architect site’ award. It’s one of the 15 sites selected from a total of 135 entries.

We’re very proud of our work, but this couldn’t have happened without the effort put into keeping the site up-to-date by the people at RVR. Great work!

If you like to get a feel of the content management tool we’ve written for them, you can watch a short screencast (QuickTime).

You can vote by clicking the ‘stem op deze site’ button next to your favourite entry.

6 comments

Good show today, Ze

Thijs van der Vossen, 10 Oct 2006, 23:04 (edit).

Today’s the show is really, really good. Highly recommended.

1 comment

Screencast Scripting

Manfred Stienstra, 09 Oct 2006, 22:07 in ruby on rails, practices, and video (edit).

Last week I posted a short screencast to show some features of ActiveSupport::Multibyte. After typing through the entire screencast twice I decided to automate the process. Screenager, the automated screencast typer, was born.

Download screencast (QuickTime, 544KB)

You can download Screenager from my personal Subversion repository, you will also need a recent version of ActiveSupport.

svn export https://dwerg.net/svn/screenager/trunk screenager
cd screenager
svn export --force http://svn.rubyonrails.org/rails/trunk/activesupport/lib
./screenager --speed 2 http://www.fngtps.com/files/2/2006/10/activesupport.rb

The version currently in SVN evaluates the Ruby code with eval using a clean binding every time you start a new screenplay. I really wanted to use the Freaky Freaky Sandbox for this, but it’s in heavy development and didn’t run at all when I was coding this. Sandbox and multiline Ruby statements are planned for future versions.

16 comments

Nice meeting, short video

Thijs van der Vossen, 05 Oct 2006, 21:39 in ruby on rails, meetings, and video (edit).

It was a lot of fun chatting with other developers at our second ‘morning coffee’ meeting today. Here’s a short video to give you a feel of the event:

Download video (Quicktime, 1.7MB)

6 comments

ActiveSupport::MultiByte

Manfred Stienstra, 05 Oct 2006, 08:48 in ruby on rails and unicode (edit).

As of revision #5223 ActiveSupport::Multibyte is part of Rails. Now everyone can enjoy multibyte safeness in their applications. Needless to say we are really happy. To show some of the features of Multibyte’s String#chars proxy I’ve put together a short screencast.

If you have any questions about ActiveSupport::Multibyte, please consult the API documentation and the Trac Wiki first. Enjoy.

Download screencast (QuickTime, 1.9MB)

32 comments