my biased two cents …

Things to do before asking a Question ?

How often have you found yourself describing a problem, and even before you can finish your question, you go “Ahaaa.. I know what the problem is”. This is mainly because when you think out loud, you formulate your question better, and in simpler terms so that someone else can understand your problem, but in the process you understand your own problem better as well, and come up with a solution.

Introducing Mr.Dummy who has volunteered to hear out all your questions. So next time you have a question, here are four steps to do :

  1. Describe your problem to Mr.Dummy in simple English.
  2. Draw a visual representation of your problem for Mr.Dummy to understand.
  3. Google/Bing your problem [Possibilities are high that someone already had the same question]
  4. By now, you should have your answer, if not, you will atleast have a better Question !

A glimpse into the future – Windows 8

Life as we know it in a PC, is about to change. Introducing Windows 8, a step forward into the future. Enjoy !

Python – The world of exotic flow control !

Among a lot of interesting stuff in python the concept of Generators took me by surprise, so I will give an try to share the excitement with the rest of you out there who haven’t used it yet. Before I delve into this nice concept, I welcome you to the world of exotic flow control, truly Python has a charm of its own.

Imagine we have a set of numbers representing the fibonacci series in a list and then we traverse the list to get the numbers.


The data in the list is pre-generated using a formula, or manually entered by the user. This list can be really big, and then we have memory considerations. In cases where we really do not know how many of this elements we need to use, but still we have to pre-generate all of it just in case we need it. In such a scenario Pythons Generator comes to the rescue. Continue reading “Python – The world of exotic flow control !”

A simple Distributed Hash Table (DHT)

A simple Distributed Hash Table (DHT) can be used for storing key value pairs in a distributed storage. The DHT design that will be discussed in this post is simple but entirely sufficient to serve the purpose of a distributed hash table. Given a static network of nodes with perfect up time, you can start with any node and key and find the node responsible for that key.


In a real DHT implementation, each node would be running on a different machine and all calls to them would be needed to be communicated over some socket protocol. However for now, we will only simulate the DHT to help us understand how it works. A complete real DHT implementation will be discussed in the next post.

Each node is itself a standard hash table. All we need to do, to store or retrieve a value from the hash table is Continue reading “A simple Distributed Hash Table (DHT)”

Reading Quran in whole new way !

Everyday we read so many forward mails, wouldn’t it be cool if we at least read one verse from the Holy Quran instead. In pursuit to understand Islam better we enable online access to the Holy Quran, in the most simplistic form, we are introducing the new website The site is targeted to show random verses from the Holy Quran. You can sequentially read the verses which are chained together. In addition is has the following features :

  • It enables  you to post a verse directly into Facebook
  • See Salat/Namaz/Prayer timings
  • Receive daily Quranic verses via e-mail
  • Use a iGoogle gadget to read the verses
  • Follow us on Twitter to receive verses as tweets daily
  • Find out Qibla Direction

Here is a screen shot of the web page.

Quranic Verses
Quranic Verses

Hope this site will help all of us to read and understand the Holy Quran, in the midst of our busy lives.

Accessing websites which are allowed only in some countries !

Have you come across websites which are restricted to be used by only the users of a certain country. Wasn’t the Internet supposed to be for everyone ? What happened ?

Instead of throwing some words at them, here is a work around to access those sites from anywhere in the world.  In this post lets take as an example. allows users from USA only to access their web pages and stream video from it. To be able to crack it we need to first understand how it works and how it restricts other users.

When you request the page, the Server receives your request, checks IP from where the request is coming (which is your PC). pc_server

And from the IP it is easy to figure out which country it came from.  So simply if its not coming from inside USA they deny access to the contents.

If we just could fake our IP and make it Continue reading “Accessing websites which are allowed only in some countries !”

Search Engine Optimization Tricks

Googling will find you thousands of articles on search engine optimization(SEO), I am just adding one more post on it with the simple basic ideas you can keep in mind while making your web pages so that search engines can rank you higher in their organic search result. Search engine crawlers index each page, so the idea is simple make your page as friendly as possible for them to read data out of it. And knowing how the crawlers index your page will give you a better understanding of what to do in order to help them. Here are a few standard tips Continue reading “Search Engine Optimization Tricks”

Wuala – A online storage system

I have stumbled on a very nice product which I want to share in this post. It is a online storage system named Wuala. It is a desktop client via which you can upload files to be stored online.

Initially you get 1GB of online space for free. As users we always want more space, so either you can buy more space online or interestingly you can trade some of your local disc space for online space. It has a very user friendly and sleek interface. Security is a key feature of this online storage system. All of the files which are uploaded are automatically encrypted before the actual upload which makes your content very secure. A sample screen shot of my wuala client:

Now with such a online storage system all your important files and pictures can be stored reliably, no more crying for lost data when your system crashes.

Technically it is a fascinating product as it is distributed file storage system which is based on peer to peer systems. If anyone is interested to know more about the technology behind the product I recommend watching this video

Not only file storage, it has a social side to it as well where you can have friends added and share folders with them.

So now without any further do go and explore for yourself. Happy online storing and sharing !!

Agent Mobility – Software walking around the network !

I will start by talking about remote method invocation before I move down to agent mobility. Remote Method Invocation (RMI) is a common way nowadays via which we can have services or objects residing on remote machines and can call those functions from a local machine.

It’s pretty interesting how it is done. Over here we will not go into the details of how it works, but here is a picture that might help you visualize what is going on.

The coding complexity is not huge but what is happening under the hood is a bit tricky to understand. So lets get this straight using RMI we can actually call a function of an object which is not residing in the same machine my code is running.

Now what if instead of our software being able to call a function on the remote object we could have our object himself travel over the network. Sounds interesting, then fasten your seat belt and read on how it is done. Continue reading “Agent Mobility – Software walking around the network !”

Blog at

Up ↑