Open Graph Protocol

Posted in Coding & Scripting, Social Media, Tech Buzz on May 11th, 2010 by jonolan

Facebook's Open Graph ProtocolRecently Facebook created a platform that allows websites and applications to share information about users in order to tailor offers, features and services to each one’s interests and tastes – even if that individual has never visited the site before. It enables any web page to become an object in a social graph that can plot users’ activities.

It is called the Open Graph Protocol.

From the Facebook Developers:

We shared an update last week about the products launched at f8 and that over 50,000 websites have already implemented the new social plugins to become more personalized. We created the Open Graph protocol in support of social plugins as part of our efforts to help realize the vision of the Open Graph.

Any website can implement the Open Graph protocol. It allows any web page to become a rich object in any social graph, making it easy to find what people are liking across the Web — from a movie to a blog. To start integrating the Open Graph protocol into your Web pages, read our documentation.

The Open Graph Protocol is essentially a replacement for- and an extension of Facebook Connect that makes it easier to share information.

Facebook has based the first version of the Open Graph Protocol on Resource Description Framework (RDFa) produced jointly by the W3C Semantic Web Deployment Working Group and the W3C XHTML2 Working Group in 2008. As such it based upon adding extended META tags to web pages and HTTP-based applications.

Define the XML Namespace

<html xmlns:og=”http://opengraphprotocol.org/schema/”
xmlns:fb=”http://www.facebook.com/2008/fbml”>

Define the Node

<meta property=”og:title” content=”[TITLE]“/>
<meta property=”og:type” content=”[TYPE]“/>
<meta property=”og:site_name” content=”SITE NAME” />
<meta property=”og:url” content=”[URL]“/>
<meta property=”og:image” content=”[IMAGE URL]“/>
<meta property=”og:description” content=”[DESCRIPTION]“/>

Initially this will enable, through use of Facebook’s new Social Plugins users interact with websites and have their interactions posted to their live streams / walls on Facebook. In addition to this the Open Graph Protocol allows Facebook to categorize that interaction for the purpose of delivering more targeted ad on the users’ Facebook pages.

Later, but not too much later, many other sites will be able to utilize the Graph API to harvest this data for similar purposes, turning Facebook into the online identity management hub for its more than 400 million active users, 50% of whom login to Facebook every day.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon] [Twitter]

The Bourne Solution

Posted in Coding & Scripting, Humor, Unix & Linux on December 19th, 2009 by jonolan

:lol: We’ve all learned by now that you can do almost anything faster, easier and better with computers. Perhaps the War on Terror can be approached the same way. Of course, you’ll need need to understand the Unix command line and shell scripting to achieve the best results…

One of my wives, Eve aka jmochagrrl, sent me this solution to the US’ ongoing war on terror and terrorism, specifically the dangers arising out of the Middle-east.

The War On Terror

As viewed from the Bourne shell

$ cd /middle_east
$ ls
Afghanistan Iraq Libya Saudi_Arabia UAE
Algeria Israel Morocco Sudan Yemen
Bahrain Jordan Oman Syria
Egypt Kuwait Palestine Tunisia
Iran Lebanon Qatar Turkey

$ cd Afghanistan
$ ls
bin Taliban
$ rm Taliban
rm: Taliban is a directory
$ cd Taliban
$ ls
soldiers
$ rm soldiers
$ cd ..
$ rmdir Taliban
rmdir: directory “Taliban”: Directory not empty
$ cd Taliban
$ ls -a
. .. .insurgents
$ chown -R USA .*
chown: .insurgents: Not owner
$ cd ..
$ su
Password: *******
# mv Taliban /tmp
# exit
$ ls
bin
$ cd bin
$ ls
laden
$ cd ..
$ rm -r bin/laden
bin/laden: No such file or directory
$ find / -name laden
$
$ su
Password: *******
# mv bin /tmp
# exit
$ pwd
/middle_east/Afghanistan
$ cd /opt/UN
$ ln -s /Bad_Guys/Al_Qaeda /middle_east/Iraq/.
ln: cannot create /middle_east/Iraq/Al_Qaeda:
Permission denied
$ su
Password:*******
# ln -s /Bad_Guys/Al_Qaeda /middle_east/Iraq/.
# cd /middle_east/Iraq/Al_Qaeda
Al_Qaeda: does not exist
# rm /middle_east/Iraq/Al_Qaeda
# mkfile 100g /middle_east/Iraq/Al_Qaeda
mkfile: No space left on device
# rm /middle_east/Iraq/Al_Qaeda
# cd /opt/Coalition/Willing
# mkfile 1b /middle_east/Iraq/Al_Qaeda
# chown -R USA:Proof /middle_east/Iraq/Al_Qaeda
#exit
$ cd /middle_east/Iraq
$ ls
saddam
$ ls
saddam
$ ls
saddam
$ ls -a
. .. saddam
$ find / -name [Ww][Mm][Dd]
/Korea/North/wMd
$ wall Propaganda.txt
Broadcast Message from USA (pts/1) on USS_Abraham_Lincoln Th May 1st
Mission Accomplished!
$ rm saddam
saddam: No such file or directory
$ find / -name saddam
/var/opt/dictators/spiderhole/saddam
$ wall NewsWorthy.txt
Broadcast Message from USA (pts/1) on Time.Magazine Sat Dec 13
We Got Him!
$ mv /var/opt/dictators/spiderhole/saddam /opt/jail
$ cd /opt/USA
$ cp -Rp Democracy /middle_east/Iraq
$ cd /middle_east/Iraq/Democracy
$ ./install
Install Error: Install failed. See install_log for details.
$ more install_log
Installed failed!
Prerequisite packages missing
Conflicting package Wahhabism found in /midde_east/Saudi_Arabia
Packages Church and State must be installed separately
File System /PeakOil nearing capacity
Please read the install guide to properly plan your installation.
$

Eve got this from The S Word Blog over at Sun Microsystems.

Of course there are still some issues with the “operating system” used in the above example; as has been pointed out, everything in /bin should be “executable.”

Also note that this must be done from the Bourne shell. Using the slowly deprecated Bourne Again shell ($bash) will accomplish the goals faster, but may result in the destruction of all files in /middle-east.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon] [Twitter]