Skip to main content

Posts

Basic Authorization with Coldfusion

When trying to access a webservice or a rest api you might need authorization, this can be done simply by sending the username and password throw the cfhttp as the below: The respond you might receive is as below: 200  - OK - Everything went fine. 400s - all caused by user interaction 400  - Bad Request - The request was malformed or the data supplied by the end user was not valid. This is also used if the user has exceeded their API usage limit. 401  - Unauthorized - The user is not authorized to access the requested resource. Additional information is typically supplied within the response to tell the end user (API consumer) how to authorize itself (ie. BASIC Authentication). 403  - Forbidden - The user has exceeded their post limit (not bloody likely). 404  - Not Found - The requested resource was not found. 405  - Method Not Allowed - The user attempted to use a verb (ex. GET, POST) on a resource that had no support for the given verb. 406...

Clear your history before Google overhaul

Time is running out to clear your browsing history before Google's new privacy policies come into force. In the past, data collected in the course of a web search would be kept separate from your YouTube viewing activity or your Google email usage and map queries. But on Thursday the search engine giant will change the way it collects and collates data about its users, saying it is simplifying things and offering a better individual browsing experience. Google's new privacy policy will affect millions of those with a Google account, including anyone who use Gmail, YouTube or any of the company's other 60-plus services. It will also affect anyone with a smartphone using Google's android operating system. Seamus Byrne, editor of consumer technology site CNET Australia, says Google will build a "much more intelligent picture of who you are". "They'll target ads to you a lot better based on that information," he said. Full Article ...

Publish to Wordpress using JSON API plugin and Coldfusion

I was using Postie to automatically publish to wordpress blog. I was searching a better method of publishing using soap api or json api. I found an excellent json plugin  that can be used to publish posts and comments to wordpress. Please follow the below step by step, this code will let you publish automatically for froma different interface to wordpress rather than using postie or email. Step one: Install json plugin , enable the plugin and then go to settings > JSON API and  activate post Step two: you have to modify the file: yourwordpressdirectory/wp-content/plugins/json-api/controllers/post.php Please replace the file content with the below or add the missing Authenticate method. This method is necessary to authenticate a user to wordpress to be able to post content without a valid session. <?php /* Controller name: Posts Controller description: Data manipulation methods for posts */ class JSON_API_Posts_Controller {  ...

Is Our Personal Information Safe on Google, Facebook and LinkedIn?

A question came to my mind today when I saw a new message on Facebook indicating that to keep Facebook free, customized ads based on members interests will be shown on our profiles or dashboard. Today as well I saw a suggested list of people that I might know on LinkedIn. One of them is a friend of mine that we have never exchanged an email or even connected on social media. This friend has 0 friends on his friends list so there is no common people between us. Same question came to my mind again. How the social media and search engines are able to make this semantic networks! Google Search uses our search history to show results that might be of our interests, it also use the same information to show related ads. Google is a free search that we use and they make money out of the ads. It is a mutual benefit, we search for free and they make money from ads we see based on our search keywords. Same scenario in Social Media, so Facebook and LinkedIn, and other Social N...

Google Desktop is no longer available for download! Why?

A blog post on inside google desktop blog which was the last one I guess quoted the below: "As of September 14, Google Desktop will no longer be available for download, and existing installations will not be updated to include new features or fixes. Thanks again to all of our users. It’s been a fun journey." The question is why? Some people might argue that the vast move towards mobiles and smart devices and the wide usage of Android operating system among many of the devices reduced the necessity of desktop search. Other people might say that Google was not making money out of Google Desktop that's why a decision was made to stop supporting the application! a vast number of people used Google Desktop to easily locate their files. Microsoft search engine embedded in windows failed to satisfy users. Microsoft search is slow inaccurate does not index emails etc. Recently Microsoft learnt from Google and started enhancing the search engine, still Google se...

Top Google Adsense Alternatives

Google Adsense is a web tool that allows publishers in the Google Network of content sites to automatically serve text, image, video, and rich media adverts that are targeted to site content and audience. These adverts are administered, sorted, and maintained by Google, and they can generate revenue on either a per-click or per-impression basis.  Google servers advertisers using google adwords platform, while adsense is the publishers platform. Google Adsense is the top Ad Publishers platform over the web ranking number one in web advertising industry. Adsense offers contextual advertisements that covers web sites, blogs, games, videos, mobile browsing etc. What made Google Adsense no. 1 is the reliability, stability, variety of services and large number of publishers including google it self. Also google has a fair platform that detects invalid clicks so google successfully protects its advertisers and also offers its best publishers top CPC. Two reasons are behin...