Skip to main content

Posts

Showing posts from July, 2010

Five Ways To Kill A Man - Edwin Brock

By: Edwin Brock (1927-1997) who wrote two of the best-known poems of the last century, 'Five Ways to Kill a Man' and 'Song of the Battery Hen' Five Ways To Kill A Man There are many cumbersome ways to kill a man. You can make him carry a plank of wood to the top of a hill and nail him to it. To do this properly you require a crowd of people wearing sandals, a cock that crows, a cloak to dissect, a sponge, some vinegar and one man to hammer the nails home.Or you can take a length of steel, shaped and chased in a traditional way, and attempt to pierce the metal cage he wears. But for this you need white horses, English trees, men with bows and arrows, at least two flags, a prince, and a castle to hold your banquet in.Dispensing with nobility, you may, if the wind allows, blow gas at him. But then you need a mile of mud sliced through with ditches, not to mention black boots, bomb craters, more mud, a plague of rats, a dozen...

Authorization with Facebook Using Graph API and Coldfusion

Below is an alternative Coldfusion Facebook Authorization method to the earlier one that was published yesterday. This method is simpler and does not require much code. You should create two file, one that will redirect the user of your application to Facebook API to get authenticated and then authorized, the first file is below:     <!--- Your FB application IDS --->     <cfset api_key = "xxxxxxx"/>     <cfset secret_key = "xxxxxx"/>     <cfset appID = "xxxxxx"/>     <!--- Redirect to get authonticated and authrorized from facebook, in the redirect_uri you should write the url of your website where you want the user to be redirected after authroization --->    <cflocation url="https://graph.facebook.com/oauth/authorize?client_id=#appID#&redirect_uri=http://www.sms4all.info/fb/login1.cfm" addtoken="no"> The second coldfusion file is the main page where the user...

Implementation of Facebook Graph API in Coldfusion

Facebook has launched a new FB API called Graph that simplifies FB applications development, the new Graph API allows website owners to create Single Sign On (SSO) with Facebook and allow websites owners to be able to import a lot of users information but after their permissions. The code below written in Coldfusion gives an example on how to Create FB login/logout button and then how to retrieve the created cookie, and use it for further development:     <body>   <cfoutput>     <!--- Your FB application IDS --->     <cfset api_key = "XXXXXXXXXXXXX"/>     <cfset secret_key = "XXXXXXXXXXXXXX"/>     <cfset appID = "XXXXXXXXXXXXXX"/>     <!--- Facebook login/logout button --->     <p><fb:login-button perms="email,user_birthday" autologoutlink="true"></fb:login-button></p>     <!--- Facebook login/logo...

What is the difference between Web 1.0, Web 2.0 and Web 3.0

People are confused with the new concepts that appeared few years back talking about the social web (Web 2.0) and the semantic web (Web 3.0) as if they are new versions of the web and the old version does not exist anymore. This article will go through the evolvement of the web and clarify the differences between Web versions. The first thing is that we have to distinguish between the term and the technology, so for instance the technology evolves but that does not mean that the evolvement of the web is only technology oriented! The fact is that we could have Web 2.0 applications using technologies that run Web 1.0 applications, so if it is not a technology change what is it then? Web 1.0 also called the Web is: A system of interlinked, hypertext documents accessed via the Internet . With a Web browser , a user views Web pages that may contain text , images , and other multimedia and navigates between them using hyperlinks . Web 1.0 is the websites, portals, web mail etc. F...