Wordpress Toolbar v 2.2 : Custom toolbar url, Support for WPMU and bug fixes

February 15, 2010   -   Open Source Projects, WordPress   -   17 comments

Wordpress toolbar plugin provide a facebook, digg style toolbar for all outgoing links from your blog posts. The toolbar url defaults to http://yourblog/wp-content/plugins/wordpress-toolbar/toolbar.php. However with version 2.2, blog admin can customize toolbar url to http://yourblog/wordpress-toolbar/ through the admin panel. A lot of other enhancements have been added like cross-plugin compatibility and support for WPMU hosted [...]

Writing your first facebook chat bot in PHP using Jaxl library

February 11, 2010   -   XMPP   -   26 comments

Today facebook officially announced availability of it’s chat through jabber/xmpp clients. This is a big win for XMPP, with almost 400 million new probable users adding into XMPP club. In this post, I will demonstrate how to connect to facebook chat servers using Jaxl client library in PHP. It can further be used to make [...]

MEMQ : Fast queue implementation using Memcached and PHP only

February 7, 2010   -   PHP, Scalability   -   11 comments

Memcached is a scalable caching solution developed by Danga interactive. One can do a lot of cool things using memcached including spam control, online-offline detection of users, building scalable web services. In this post, I will demonstrate and explain how to implement fast scalable queues in PHP. MEMQ: Overview Every queue is uniquely identified by it’s name. [...]

JAXL BOSH Demo: IM chat client for all Wordpress blogs

January 29, 2010   -   WordPress, XMPP   -   24 comments

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 [...]

Get real time system & server load notification on any IM using PHP and XMPP

January 12, 2010   -   XMPP   -   16 comments

There are various system and server related information which server administrators always need to have as soon as possible, infact I must say in real time. There are several open and closed source softwares in the market which can generate almost real time notifications for you. Most famous one being Nagios. In this blog post [...]

Get lyrics for any song using XMPP and PHP right into your IM – Add lyricsfly@gtalkbots.com

January 7, 2010   -   XMPP   -   14 comments

XMPP is soon finding it’s way into real time applications other than just chat. I have combined JAXL (Jabber XMPP client library written in PHP) and the API from lyricsfly.com to build a real time chat bot which can assist you with lyrics for any song. You can start using it by simply adding lyricsfly@gtalkbots.com [...]

Wordpress style “Duplicate comment detected” using Memcached and PHP

January 2, 2010   -   Scalability   -   3 comments

If you have a knack of leaving comments on blogs, chances are you might have experienced a wordpress error page saying “Duplicate comment detected; it looks as though you’ve already said that!“, probably because you were not sure that your comment was saved last time and you tried to re-post your comment. In this blog [...]

How to use locks in PHP cron jobs to avoid cron overlaps

December 28, 2009   -   PHP   -   26 comments

Cron jobs are hidden building blocks for most of the websites. They are generally used to process/aggregate data in the background. However as a website starts to grow and there is gigabytes of data to be processed by every cron job, chances are that our cron jobs might overlap and possibly corrupt our data. In [...]

How to build a custom static file serving HTTP server using Libevent in C

December 13, 2009   -   Scalability   -   3 comments

Libevent is an event notification library which lays the foundation for immensely successful open source projects like Memcached. As the web advances into a real time mode, more and more websites are using a mix of technologies like HTTP Pub-Sub, HTTP Long-polling and Comet with a custom light weight HTTP servers in the backend to [...]

How to add content verification using hmac in PHP

December 7, 2009   -   PHP   -   19 comments

Many times a requirement arises where we are supposed to expose an API for intended users, who can use these API endpoints to GET/POST data on our servers. But how do we verify that only the intended users are using these API’s and not any hacker or attacker. In this blog post, I will show [...]

Powered by Wordpress. © 2008-2010 All Rights Reserved.