Open Source

Customizing Redis pubsub for message persistence

Posted on

Redis comes packed with a simple yet powerful PubSub API.  It provides low latency and scales well.  A message published on a channel is received by subscriber(s) at the other end.  However, if no active subscriber is found the message is simply lost.  This drawback puts Redis out of the probables list for several use cases where message persistence of unprocessed published messages is desired.  It’s also probably a reason why several open source projects that support Redis as a broker are based upon it’s list push / pop API.  In this post I will demonstrate how to modify Redis PubSub API to support message persistence, […]

Open Source

Announcing Jaxl v3.x – asynchronous, non-blocking I/O, event based PHP client/server library

Posted on

Jaxl v3.x is a successor of v2.x (and is NOT backward compatible), carrying a lot of code from v2.x while throwing away the ugly parts. A lot of components have been re-written keeping in mind the feedback from the developer community over the last 4 years. Also Jaxl shares a few philosophies from my experience with erlang and python languages. Jaxl is an asynchronous, non-blocking I/O, event based PHP library for writing custom TCP/IP client and server implementations. From it’s previous versions, library inherits a full blown stable support for XMPP protocol stack. In v3.0, support for HTTP protocol stack […]

Open Source

Releasing Jaxl 2.0 – Object oriented XMPP framework in PHP

Posted on

After months of restructuring the Jaxl library, I am pleased to announce Jaxl 2.0, an object oriented XMPP framework in PHP for developing real time applications for browsers, desktops and hand held devices. What’s new in Jaxl 2.0? A lot of structural changes has been done from the previous version to make it more scalable, robust, flexible and easy to use Library now provides an event mechanism, allowing developers to register callbacks for various xmpp events in their application code Use integrated BOSH support to write real time web applications in minutes More than 10 new implemented XMPP extensions (XEP’s) […]

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

5 exciting (gaming) bots you can create using Jaxl (Jabber XMPP Library) in PHP

Posted on

Jaxl is an open source XMPP client library written in PHP. The object oriented structure of JAXL allow developers to build various extensions using Jaxl library as their base. If used intelligently, JAXL client library is capable of doing more than just chat message transfers. Here are a few applications where developers have tried using JAXL for delivering more than just chat messages: “I used your library to develop a prototype that connects dynamically some users to a XMPP server if an external event is detected. The script runs like a daemon. Because of your object-oriented class design it was […]

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

PHP

Building a Custom PHP Framework with a custom template caching engine using Output Control functions

Posted on

In past 1 year or so, I had opportunities of using a lot of php frameworks including zend, symfony, cakephp, codeigniter. All frameworks have their pros and cons, however that is out of scope of this blog post. You may want to checkout this comparison list of php frameworks here. In this blog post I will build a custom PHP framework (MVC Architecture). Then go on to discuss in brief about the output control functions and finally show how to build a custom template caching engine using these functions for our framework. Source Code You may want to download the […]

Web Development

fixed.js – Solution to IE6 “position:fixed” Bug

Posted on

IE6 has been a bane for all frontend developers for years. An element can be positioned relative to the browser window using the style position:fixed, it does not move when the page is scrolled. You can do nice layout things (e.g. facebook chat bar) with this in most modern browsers but not for IE6 in windows until you use fixed.js Sample Code for Facebook Type Chat Bar <html> <head> <style type=”text/css”> body { margin:0px; padding:0px; height:1600px; position:relative; } #shoutbox { position:fixed; background-color:#F2F2F2; border-top:1px solid #CCCCCC; bottom:0px; left:0px; width:100%; height:25px; } </style> <script type=”text/javascript” src=”fixed.js”></script> </head> <body> <div id=”shoutbox”> <!– Our […]

WordPress

How to generate random password like WordPress using PHP?

Posted on

WordPress Blogging Engine is a champion in a lot of way. One of the unique thing which you might have noticed is the random password generated by the wordpress, in case you try to generate a new password. Here are a few examples: j0LH(WM9b_-q wr^sqct1cmff )P4-e531#-aL Lets have a look at the code which can generate such random passwords for us. Later on we will dig deep into the code to understand each and every bit of it: <?php class utility { static $random = ”; // generates a random password // By default of length 12 having special characters […]

Web Development

Getting started with Autotools – GNU Build System on Debian

Posted on

If you eat and drink open source, chances are high that you might have downloaded an open source project code, only to see files like: aclocal.m4, configure.ac, Makefile.am, Makefile.in and what not. You might have also used commands like ./configure, make etc but what are these files? Does they really belong to the project you download? Do I need to understand them? In this blog post I look forward to answer all your question, as well as introduce you to not so popular Autotools – A GNU Build System. Setting up Autotools on Debian? Before we go ahead and understand […]