Posts Tagged ‘System Design’

Media type and the Social network

Tuesday, July 8th, 2008

What is a media type in context to the internet? I would say images, video, text, would be the basic ones. Now say someone wants to create a web application which supports uploading and display of images. On top of that also wants to create a social network which helps the uploader share and comment on images.

Now this is not a  new idea and many people have done this. The formost 3 which come to mind are Flickr, Picasa and jpgMag. All three support uploading of images. All three have support for comments on images. And in all three users have the ability to share with friends and other users. Then what makes them different? The basic mediatype is same and the basic features are also same.

Mediatype and basic features are the skeleton, what differentiates these applications are the outer details. And especially here the GOD is in the details.

If you compare the upload restrictions in flickr and in picasa(for the free version):flickr - 100MB per month , picasa - a nerdy 1024MB (which makes it exactly one GB). Now people with digital cameras and who shoot even on and off if they upload regularly will cross the 1024 Mb limit in picasa soon. Then they would either have to delete some images or stop using it. While in flickr theres a continues flow of fresh images even for a free user. That keeps a users page continously fresh. What I have personally seen is people use picasa to upload 200 pics from one trip, all the images to it. While in Flickr they might only upload the better ones, so that they don’t cross the 100 MB per month mark. This difference in itself changes the quality of the pictures in both the sites.

jpgMAg caters to an even niche audience. They have a voting feature which they use to select some pictures and then print them to make a magazine. So here the submissions are mostly based the the current running theme which they declare. And needless to say such serious business brings in the experts. The satisfaction (and the money) which the selection of your picture for print brings increases the quality of pictures manyfold. And their upload restriction is “only 10 a day” which makes the pages even fresher. So these and plenty more features determine what kind of social network these sites have.

The whole point of this post was that only a mediatype doesn’t make a web application. I have seen people saying kwippy, plurk, twitter in the same breath. As for kwippy just give it some time to work on those outer details :) which would set it apart.

Spurt or Flow? (R - rated)

Sunday, December 9th, 2007

evil man shows middle finger to the bride
I will tell you people a story today. Well not a whole story, just an incident.
So the evil man got in the way of The Bride. And his head fell in one neat stroke of her katana. If I make this into a movie there are two ways I can go from here. One is the gory japanese style ala Ichi the Killer, of which Quentin Tarantino is quite a follower. Another is the regular action film, where the director has chosen the genre of the film as non-gory, decides to just let the blood flow slowly. What do you think will happen to the evil man?

Will it spurt or flow?

We will discuss scientifically what should happen lest the above incident actually happens outside a studio.

Why? Why oh why? What is the need of such a discussion do you ask. Becaue there is a difference between the science questions we grew up solving in school and that we encounter in our day to day life. In the school questions, all the variables are defined. You already know what is known and what you have to find out. In the real world the exact problem is not very evident. It is not even evident that there’s a scientific question around. There are prejudices, supersition, common sense and a lot of other such words floating around. So if you know what the exact problem is, the solution is just elementary school standard.

water pressure

The above diagram is pretty self evident. And apart from the normal pressure head, there is a lot of lose in pressure due to kinks and bends in the pipe.

So when someone is beheaded, the pressure at which the blood will spurt out is =

P = (density of blood) X (gravity) X (height of head) + (a considerable lose factor)

Since our arteries are pretty branched the lose factor will be quite high.

Conclusion is that the blood will spurt for a moment of time to a height close to the top of the head (at least). The at least is because extraneous factors like the air resistance, the lose factor, etc. After the initial moment of spurt since the system is now not closed (less amount of blood in the system), the speed of the splurting blood will ebb and then change to a flow.