28 Mar '12, 3pm

Finally tracked down the "An error occurred"-bug in #facebook #js dialogs. I'ts about fbAsyncInit not being called.

My pair and I were recently working on an app that asynchronously loaded the Facebook Javascript SDK but synchronously loaded the jQuery library. We had to invoke some javascript once Facebook and jQuery were both loaded, and this post describes how we did it. First, we followed Facebook's recommendation and asynchronously loaded the Facebook SDK right after the start of the body tag. Then for other reasons we put all other javascript includes right before the end of the body tag. The resulting html looked like this: <html> <head> </head> <body> <div id="fb-root"></div> <script> (function() { var e = document.createElement('script'); e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js'; e.async = true; document.getElementById('fb-root').appendChild(e); }()); </script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4....

Full article: http://pivotallabs.com/users/jdean/blog/articles/1400-wor...

Tweets

Jeff Dean's Ruby Blog - Using MySQL foreign key...

pivotallabs.com 29 Mar '12, 11pm

module ForeignKeys def add_foreign_key(from_table, from_column, to_table, options = {}) to_column = options.fetch(:to_colu...

Oldie but I enjoy this post on Ruby's inject me...

blog.jayfields.com 28 Mar '12, 8pm

I find the inject solution less readable than something like: a = [1,2,3,4,5,6].map{|x| x.to_s if 0 == x % 2}.compact or a...

Introducing Bloggy: A simple way to add a Jekyll blog to any Rails application

Introducing Bloggy: A simple way to add a Jekyl...

engineyard.com 31 Mar '12, 9pm

We have been working hard on making RVM rock-solid, and to prevent regressions while simultaneously fixing and improving i...

Understanding JavaScript Function Invocation an...

yehudakatz.com 02 Apr '12, 2am

In my opinion, a lot of this confusion is cleared up by understanding the core function invocation primitive, and then loo...

packr (3.2.0): Ruby version of Dean Edwards' Ja...

rubygems.org 07 Apr '12, 12pm

Ruby version of Dean Edwards' JavaScript compressor

Google: Don't Block Your CSS & JavaScript Files

seroundtable.com 27 Mar '12, 12pm

Yesterday, Google's Matt Cutts posted a video as a "public service announcement" asking SEOs and webmasters who are blocki...

cheap

megabus.com 06 Apr '12, 5pm

The mega value website for travel in the United Kingdom, the United States and Canada!

Unicode in Regex - Ruby Forum:

ruby-forum.com 28 Mar '12, 11am

> Regular expressions for all character work would be a *terribly* slow > way to get things done. If you want to get the n...