WordPress

JAXL BOSH Demo: IM chat client for all WordPress blogs

Posted on

Have you ever wished of a wordpress plugin capable of providing a facebook style chat bar on your blog post. In this blog post, I will lay down the details of how Jaxl‘s bosh support comes in handy for building such browser based real time application. Specifically, I will explain how I achieved building a plugin for my wordpress blog. If everything goes perfect over next few weeks, this plugin might be submitted in wordpress plugin’s directory. Jaxl BOSH Support Framework Jaxl BOSH support comprise of three main parts: jaxl.jquery.js: JQuery extension written for Jaxl bosh support jaxl4bosh.class.php: Connection manager […]

PHP

Web Security : Using crumbs to protect your PHP API (Ajax) call from Cross-site request forgery (CSRF/XSRF) and other vulnerabilities

Posted on

Have your API calls ever being used directly by someone without your permission? If yes, read on to find out how can we protect our API’s from such spammers and hackers. Before we go ahead and see a possible solution for this, lets try to list out a few cases, when our API’s can be accessed without our permissions. Common cases of vulnerable API/Ajax calls Ajax calls having no user authentication: This is the first place where a spammer will try to find out a loop hole. Take this example, suppose I created a group chat plugin for my blog. […]

Open Source

Introducing jSlider: A Content Slider plugin for JQuery

Posted on

jSlider is a light weight JQuery plugin for content sliding. By content we mean everything: HTML code, Images, Advertisements etc etc. jSlider allows to put our content in simple <div>‘s, and then it automatically generates a content slider for you, which one can customize using various options provided. Screenshot Below is a screen shot of a content slider using jSlider: Download and Demo jSlider is hosted at google code. Use the following links for demo and downloads: Download the source code. Click for a demo of jSlider Using jslider.jquery.js Below is a sample html code which will be processed by […]

WordPress

How to add wordpress like add_filter hooks in your PHP framework

Posted on

I simply love wordpress mainly because of the architectural design it follows to deliver the good. WordPress provide a hook or filter functionality to almost everything that appears on your blog. If you are a wordpress plugin developer you surely must have used one of them, specially add_filter() hook. add_filter functionality provides plugin developer a way to apply custom hooks on various page sections. For instance add_filter(‘the_content’, ‘HelloWorld’) will force the content to be passed through the function HelloWorld($content) before being displayed to your blog users. In this blog post I will show you how can you achieve doing the […]

PHP

XML Parsing in PHP, XPATH way – The best I know so far

Posted on

If you are a PHP developer, you surely must have done XML parsing at some stage or the other. Over the years I myself have implemented XML Parsing in atleast 3-4 different ways. Finally I have stuck to this approach which I personally find far more better than the rest, Not only because it’s quite simple but also because it’s extendable. By extendable I mean, you don’t have to touch your code if the XML structure changes at a later stage or if you need to parse a new node at a later stage in the project. In this blog […]

PHP

Facebook type image rotation and more using PHP and Javascript

Posted on

If you are a facebook geek like me, you must have noticed till now the image rotate functionality in the photo albums. Facebook allows you to rotate images 90 degree clockwise and anti-clockwise after image upload. If you haven’t tried that till now, below is a screenshot for your convenience. Question: But the question is how does facebook team succeed doing this in one click. Today I tried looking around for a solution over internet and I came across the inbuilt imagerotate functionality in PHP. Problem: Unfortunately the problem is that even if you have GD Library extension enabled in […]

Open Source

SEO Analyzer v 1.2 – Adding support for Bing along with Google and Yahoo

Posted on

On May 28, 2009 Microsoft announced Bing which has now replaced Live search. And within 2 week of it’s release, Bing seems to have leapfrog Yahoo search in U.S. With Bing coming up as a strong contender to Google and Yahoo search engines, I have added support for Bing in SEO Analyzer v 1.2. This will enable you to analyze a site’s ranking for a particular keyword on Bing search engine, along with Yahoo and Google search engines. SEO Analyzer Future Roadmap: Saving reports on spreadsheets Comparing two sites for a list of keywords Keyword density extraction tool Happy SEO […]

Open Source

SEO Analyzer – Version 1.1 – What’s New?

Posted on

While SEO Analyzer v 1.0 focused primarily on getting page ranks and analyzing back links to your site url, SEO Analyzer v 1.1 adds another feather to the cap. It allows you to achieve following analysis: Feature List: Get google page rank for input site url Get all backlinks to the input site url Get the exact href tag (rel=”nofollow”, target=”_blank”, etc) used by the back linking sites Get google page rank for the back linking sites Get google and yahoo ranking for the input site for keyword(s) And a lot more …. Installation: Download and Install Adobe AIR Download […]

Open Source

Introducing SEO Analyzer

Posted on

SEO Analyzer is a desktop based application build specifically for page rank checking and link analysis for seo purpose. It is built using Adobe AIR. Note: SEO Analyzer v 1.1 is out. Read more about it here Installation: Download and Install Adobe AIR Download and Install SEO Analyzer Features: The tool currently provides the following features: Retrieve Page Rank for a particular web url Get all incoming links for the entered url Get page rank for the sites linking back to the entered url Suggestions for future enhancements are welcomed.

Web Development

Using Image Maps in Javascript – A Demo Application

Posted on

Past month I was busy with project back in office, JAXL web chat client and photolog – a custom made wp-plugin for converting it into a photo blog. As I am close to finish them all, I am back to blogging after more than a month. Here I would like to demonstrate a cool technique which I explored while working for the india elections site. We decided to have a cool india map where we could show data for each state. Though flash is always the best method to go with for such applications (and finally we did it with […]