Sweet B

“david is my batman
he has it all except that deep scary voice . .
he certainly doesn’t have that”

Captin of Tuxedos

The Gift of New Life

 

E͢͜҉ŃH̴̢̕À̶Ń̶͝C̡͡E̶͘ME̡N͠T͏̛ Ę̶͟R͘͠ROR̴

 

Flash Builder 4.5 – How to Speed Up Code Completion

I just switched to Flash Builder 4.5 and noticed that the code completion is really delayed. However, after doing some digging I found out that this is simply a setting you can tweak to your satisfaction.

Go to Preferences > Flash Builder > Editors and change the value of “Enable auto-activation of code and template proposals“. I have it set to 50 ms and it’s looking slick and snappy. Screenshot below.

Thanks to this article for the tip.

Facebook Comments Moderation & WordPress

If you are having trouble with Facebook Comments moderation through WordPress, this may be your solution.

The first thing to always check with Facebook is that you are using their most recent protocols. Facebook is notoriously changing how you must integrate it into your website, to be sure to check this link regularly: https://developers.facebook.com/docs/guides/web/

And the latest code (August 2011) is below. Place this below the opening <body> tag in your HTML document.

<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({
appId:'YOUR_APPLICATION_ID', cookie:true,
status:true, xfbml:true
});
</script>

In order to have comment moderation, you’ll need to do a few things:

1) Set up an App and enable moderator access to whoever needs to have it.
2) Add relevant <meta> property tags to the <head> portion of your website.
3) Match the comment plugin’s href attribute to the current permalink URL.

There are two ways to do the <meta> property tags. You can either enable a specific user to have moderator access or give access to all moderators within the App. Going with the App method is more ideal because it will connect to your App’s dashboard in www.facebook.com/developers/. A direct link to managing comments via the App interface would be https://developers.facebook.com/apps/{YOUR_APPLICATION_ID}/plugins?view=queue. This method’s code is below:

<meta property="fb:app_id" content="{YOUR_APPLICATION_ID}">

You can always read more about the comments plugin by going to https://developers.facebook.com/docs/reference/plugins/comments/ although their documentation is typically confusing and subpar.

One way WordPress can make moderation break is due to the fact that page GUID’s may be different from your permalink URL’s. If you put a $post->GUID into your <fb:comments href=”">, moderation will NOT work. The comments URL and the page URL must be identical. To get the page URL of a post, you can use get_permalink(). By feeding the permalink into your comments plugin and doing the other steps above, you should be in good shape! Just be aware that by changing permalink structure or changing URL’s you will lose all of your comments.

(this solution was discovered via http://forum.developers.facebook.net/viewtopic.php?id=102099)

Solution to Flash Builder SWF’s not showing up in IE9

Tonight I wrestled with the IE9-agator because my SWF would just not show up in the browser no matter how much Javascript or Facebook stuff I removed from my semi-bloated HTML-Template file. I looked around the web and there appears to have been a wave of IE9-related issues with Flash Player 10.x, and unfortunately this is one of them. However, the solve quite easily (yay).

I stumbled upon a solution after reading this bug report ( http://code.google.com/p/swfobject/issues/detail?id=547 ). I tried removing the swfobject.createCSS(); call and what it revealed was something far stupider. Look at the default CSS from Flashbuilder’s HTML-Template below:

<style type=”text/css” media=”screen”>
       html, body    { height:100%; }
       body { margin:0; padding:0; overflow:auto; text-align:center;
              background-color: ${bgcolor}; }   
       object:focus { outline:none; }
       #flashContent { display:none; }
</style>

The line for #flashContent is normally toggled to display:true with all other browsers once everything is honky-dory  (including past versions of IE) but for some reason IE9 does not get the message to do so. If you get rid of this line you may get a millisecond flicker of your alternate text but your SWF will show up!

Protected: Secret Dick

This post is password protected. To view it please enter your password below:


Sweet Meow Meow

(made by Johnny Boy)

(a consequence of Rio Dance!)