Open Source

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

Posted on

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 blogs. Check full feature list below. What’s New? Listed below is list of new features and bug fixes released with v 2.2: Support for customizing toolbar url through admin panel Support for WPMU hosted blogs Support for removing “Get this Plugin” widget from the toolbar […]

XMPP

Writing your first facebook chat bot in PHP using Jaxl library

Posted on

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 custom chat bots for facebook. Creating your first facebook chat bot: Follow the steps to successfully run a facebook chat bot: Download Jaxl or checkout latest from trunk svn checkout http://jaxl.googlecode.com/svn/trunk/ jaxl-read-only Edit the configuration file config.ini.php as follows: // Set an enviornment $env = […]

PHP

MEMQ : Fast queue implementation using Memcached and PHP only

Posted on

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. Let’s consider a queue named “foo” and see how MEMQ will implement it inside memcached: Two keys namely, foo_head and foo_tail contains meta information about the queue While queuing, item is saved in key foo_1234, where 1234 is the current value of key […]