NetManiac

Witold Rugowski on web20 wave with Ruby on Rails

Rails, threads and Facebook

Posted on November 15, 2007 - Filed Under Facebook, Ruby, RubyOnRails | Leave a Comment

Rails is not thread safe framework. That means Rails will process one request at a time. If there is more HTTP client requests they need to wait. Of course there are some ways to make whole app more responsive. Basically You need to increase Rails instances number and provide some load balancing. mongrel_cluster will do [...]

Popularity: 48% [?]

Read More..>>

Interacting with Facebook without user

Posted on November 12, 2007 - Filed Under Facebook, howto, Ruby, RubyOnRails | 2 Comments

As a developer of applications based on Facebook Platform I was asking myself how to make changes in user profile not only when user is interacting with application directly. Users sessions are infinite First Eureka was to understand, that with Facebook Platform web application, every user session is infinite (does not expire) as long as [...]

Popularity: 5% [?]

Read More..>>

Understanding what characters are escaped by AR

Posted on November 9, 2007 - Filed Under RubyOnRails, Security | Leave a Comment

Working on Facebook application for my customer I’ve been reminded about some basic facts of strings escaping by ActiveRecord. I found a code which could be bug cause in some circumstances – when using find with :conditions => [ "some_field = ?", attr]. This pattern makes attr string passed to database engine safe in context [...]

Popularity: 3% [?]

Read More..>>