Archive for the ‘Garbage’ Category


How to send URL Variables into a Facebook App / Tab

If you need to send URL variables into a Facebook App (within a Page tab), doing so is surprisingly easy.

Firstly, know that the JSON-based object you are interacting with is called signed_request. It is used primarily for internal communication between Facebook and your app. However, Facebook does give you one app_data variable to use for your own variables. To send a variable to your Facebook app, all you need to do is set a value to app_data in your URL request and Facebook will handle communicating that data to your app’s iFrame.

URL example (sending data):

https://www.facebook.com/pages/Walrus-In-A-Canoe/?sk=app_0000000000&app_data=APP_DATA_CONTENT

For an example of retrieving your app_data, I have found some nifty code from fbadurbin on this thread which I have pasted below.

$signed_request = $_REQUEST['signed_request']; // Get the POST signed_request variable.

 if(isset($signed_request)) // Determine if signed_request is blank.
 {
 $pre = explode('.',$signed_request); // Get the part of the signed_request we need.
 $json = base64_decode($pre['1']); // Base64 Decode signed_request making it JSON.
 $obj = json_decode($json,true); // Split the JSON into arrays.
 $page = $obj['page']; // Get the page array. It has a sub array.

 echo("Your App Data: " . $obj['app_data']);
 }
 else
 {
 die('No signed request avaliable.'); //If there is no signed_request, stop processing script.
 }

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.

Protected: Secret Dick

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


Walrus Dating Advice #1

If you know a pretty girl, do not use Photoshop to make her pregnant. Girls do not like receiving these kinds of greetings.

(censored to protect the innocent)

Celebrating F-Man

CREATE YOUR OWN WITH THE FREE F-MAN TEMPLATE BELOW:

REPLY AS A COMMENT USING FANCY HTML CODE. FOR EXAMPLE:

<img src=”http://imgur.com/swell” alt=”asdf” />

http://www.imgur.com IS GREEEEEEEAT FOR HOSTING FREE IMAGES! USE IT!

Cancer Rates by State (Map)


An interesting look into cancer incidence rates. Customizable via:
http://statecancerprofiles.cancer.gov/map/map.noimage.php

Now everyone knows

You Belong With D

For a better understanding of this reference that you will never recover from:
http://www.buzzfeed.com/awesomer/do-not-watch-this-video-nsfw

Chainsaw David & Friends

Inspired by Chainsaw Maid!
http://www.youtube.com/watch?v=6d-tNXxTRBA

Fatties in flight. (and a bear)