Customising FB.ui iframe dialog dimensions

I was faced with making some FB.ui dialogs fit neatly inside and iframe today.
The FB.ui dialogs get their default dimensions, from one of the methods in FB.UIServer.Methods

For example, if you’re usinge FB.ui({method:'stream.share'})
The dialog gets its size from
Which is equal to {height:380, width:575} if you take a look at it in a javascript console.

So these dimensions are there to be changed if you need to.

Note, I was using the ‘feed’ dialog which is not present in FB.UIServer.Methods so I defined it after my call to FB.init so it would be available when I opened by dialog…

FB.init({appId: '[my app id]', status: true, cookie: true, xfbml: true});
FB.UIServer.Methods["feed"] = {size:{width:500,height:240}};

To get mysql gem to work on OSX 10.6

Just a quick note. I lost an hour to fiddling about with this.

If you’re having trouble with the mysql gem version 2.8.1 on OSX 10.6 try uninstalling it and building it this way:

sudo gem uninstall mysql

export ARCHFLAGS="-arch i386 -arch x86_64" ; gem install --no-rdoc --no-ri mysql -- --with-mysql-dir=/usr/local --with-mysql-config=/usr/local/mysql/bin/mysql_config

The gem should build with no errors or warnings. The paths to mysql-dir and mysql-config are standard paths used by the mysql dmg, you might want to check your own paths first with:

which mysql_config