bookmark_borderfunction call in javascript

I was studying russkey.mozdev.org source code to learn how to write Firefox extension.

Found this style of function call in javascript.


var collection = {

hello : function() {
document.write("Hello World!");
},

understand : function() {
document.write("<br/>Understand!");
},

bye : function() {
document.write("<br/>bye!");
}

};


var m = new collection.hello();
var n = new collection.understand();
var o = new collection.bye();

The output will


Hello World!
Understand!
bye!

bookmark_borderflash/swf height width in CodeIgniter 1.6

In libraries/Upload.php

Edit the function is_image().

add the ‘application/x-shockwave-flash’ in $img_mimes


$img_mimes = array(
'image/gif',
'image/jpeg',
'image/png',
'application/x-shockwave-flash',
);

It simply allow set_image_properties function to read the height & width for flash.

//now this will not call for flash
if ( ! $this->is_image())
{
return;
}

bookmark_borderWhich user remove my facebook application

To remove the user who remove your application from facebook automatically.

In the settings of the application,
“Can your application be added on Facebook?” set it yes.


Scroll down, you will get a Post-Remove URL input box.

Facebook will send data to the post remove url page about the user removing the application.
The post_remove.php example from my server.


<?php

//facebook lib
require_once 'fbclient/facebook.php';

//my database config
require_once 'config/config.php';

$appapikey = 'you_app_api_key';
$appsecret = 'your_app_secret_key';

$facebook = new Facebook($appapikey, $appsecret);
$user_id = $facebook->require_login();

$user = $facebook->get_loggedin_user();

if ($user != NULL && $facebook->fb_params['uninstall'] == 1)
{
//The user has removed your app
mysql_query("DELETE FROM users WHERE userid='$user_id'") or die(mysql_error());
}

?>

Reference:
Creating Your First Application Facebook wiki
Post-Remove URL Facebook wiki

bookmark_borderMatrix in OpenGL


[0 4 8 12]
[1 5 9 13]
[2 6 10 14]
[3 7 11 15]

4x4 matrix in memory.

[R0 R3 R6 Tx]
[R1 R4 R7 Ty]
[R2 R5 R8 Tz]
[ 0 0 0 1]

‘R’ represents rotations and scaling (and shearing)
‘T’ translation

First, I read the matrix and print it.

float x[16];
int i;

//read the 4x4 matrix and store in x
glGetFloatv (GL_MODELVIEW_MATRIX, (float*)x);

//print the matrix
for(i=0; i