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

If you’re new here, you may want to subscribe to my RSS feed. You can also get updates by email Thanks for visiting!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 [...]

Popularity: 42% [?]

Read More..>>

Interacting with Facebook without user

Posted on November 12, 2007 - Filed Under Facebook, Ruby, RubyOnRails, howto | 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 user has [...]

Popularity: 10% [?]

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: 5% [?]

Read More..>>