tail -f dev_life.log

Dotcloud, Sinatra and problem with mysql2 gem

If you’re trying to use “mysql2” gem with your Sinatra app and connection can’t be established, use “mysql” gem instead (in your Gemfile). Don’t know why, but Passenger doesn’t work properly with “mysql2” and shows me:

Please install the mysql adapter: `gem install activerecord-mysql-adapter` (mysql is not part of the bundle. Add it to Gemfile.)

How to set UITableView background for iPad

If  you’ve got a problem with setting UITableView background for you iPad with Interface Builder, just put these lines of code at ViewDidLoad method:

[myTableView setBackgroundView:nil]; 
[myTableView setBackgroundView:[[[UIView alloc] init] autorelease]];

I know it’s some kind of weird case, but works very well.

(Source: stackoverflow.com)