The shortest how-to install MySQL 5.x on Snow Leopard OSX
Every time I am configuring new Mac or doing a clean upgrade to new version I end up with the same batch of problems.
So this time let me do myself and any of you readers a favor and note this one crucial bit that keeps coming back to me on such occasions.
First, make sure you have installed XCode from the Installation DVD.
Next, download MySQL community server 5.x (the x86_64 version if you’re on Snow Leopard onwards).
Now, crucial bit: start Terminal and execute this command:
export PATH=$PATH:/usr/local/mysql-5.1.41-osx10.5-x86_64/bin/
Obviously your version may be different. If you skip this you will end up with an error message “EnvironmentError: mysql_config not found”
Then simply do:
sudo easy_install mysql-python
Et voila!
Solving problem with FB.Connect.showFeedDialog() empty popup in Firefox
I’ve just found out a solution to an issue that bogged me for last few hours and I just like to share it here… Basically if you’re developing an Facebook Connect app and using FB.Connect.showFeedDialog() inside a callback from some other AJAX call you may notice that under Firefox you may get a blank popup box from Facebook.
Without going into more details, as no sources I’ve seen managed to get into the real reasons why this is happening, here’s the solution:
Wrap your FB.Connect.showFeedDialog() call in setTimeout callback, like this:
setTimeout(function(){
FB.Connect.showFeedDialog(template_id, params)
}, 0);
Found the solution to this here.



