Archive for the ‘Uncategorized’ Category

PubSubHubbub, another open protocol from Google

August 6, 2009

Have you ever wonder why Google has became an Internet Giant? Answer is simple because they love being open and in return they get Love from majority of the Internet users. PubSubHubbub is another protocol that came out of Google, it is an open protocol, an extension to RSS. PubSubHubbub allows RSS feeds to be real time. From PubSubHubbub‘s Google Code page:

A simple, open, server-to-server web-hook-based pubsub (publish/subscribe) protocol as an extension to Atom (and RSS).

Parties (servers) speaking the PubSubHubbub protocol can get near-instant notifications (via webhook callbacks) when a topic (feed URL) they’re interested in is updated.

PubSubHubbub works in combination with feed readers, your feed reader should be smart enough to understand and use this protocol. The publisher will publish a special <link…> tag which tells your feedreader about the hub that this feed uses. The feedreader will then fetch the feed onces from the original feed location and will subscribe to the hub. Now feedreader does not have to poll the feed again and again to look for updates. When there will be updates on the feed, the publisher will ping hub, the hub will fetch the updates and then the hub will multicast them to the subscribers.

Recently PubSubHubbub support was added to Google Reader Shared Items and now FriendFeed uses PubSubHubbub to get Google Reader Shared Items in realtime. See the demonstration from Google Reader Blog Post:

There is also an implementation to be used by community or you can create your own hub. The community implementation is hosted on Google App Engine and can be accessed at


OpenSource and me in 2009

January 9, 2009

First of all I am sorry for not being able to post on the blog, as I was really taken over in the past. But once again, now I will try to keep the blog updated else there is no point having the domain and blog here on, so I will now try to be regular.

I also have to write an article regarding Pakistan’s Economy and OpenSource, which is still not completed and already have been behind the scheduled. But I hope I will get it done very very soon. Hopefully sometime next week, although I will not be able to post it here until I get permission from Rabia, but lets see what happens.

As far as Opensource is concerned there are many things that has been changed, Ubuntu 8.10 came our, OpenSuse 11.1 came out, I had the chance to install OpenSer, etc etc. But couldn’t wrote about them here on the blog. I will try to update all of it here so I can later reference it, and also I feel very happy when someone find the posts here useful for them.

So, its like resolution for this year, that I will keep the blog updated.

Setup squid proxy server to use multiple outgoing IP addresses

May 26, 2008

A friend of mine needed my help to configure squid server to use multiple IP addresses based on the squid’s IP being used as proxy server. I told him that he can configure the squid server using following squid acls and tcp_outgoing_address directives.

acl ip1 myip
acl ip2 myip
acl ip3 myip
tcp_outgoing_address ip1
tcp_outgoing_address ip2
tcp_outgoing_address ip3

The acl lines tell squid to match myip which means if someone uses the IP as their proxy server they will match the acl ip1 and so on..

Update: But his problem was not solved by this, because he had to configure squid for 500+ IPs and doing this by hand is not worth it when you have so many languages out there. So I wrote a small perl script for him to generate squid acl and tcp_outgoing_address directives for all IPs.

Hello world!

December 7, 2006

Hello World! 😉

So this is the first default post I’m editing it. The blog has been setup on Now I’ll migrate the old here. Why? because PTA has banned domain here in Pakistan.

In next step I’ll import all my old posts from blogger to I know they are very old, but I will migrate them here, may be today (if I’ll get time) or tomorrow.

Blog set up!

May 14, 2006

Today! may be I’ll spend time in setting up the blog. So, I won’t be posting anything usefull.