Monday, February 15, 2010

URI

Today i was working on a program manipulating the queries that appear in an URL. I read up on the URL, it described many terms as in query, fragment, scheme. What the heck!!

I, then, googled URL. It told something about URI. Now i had heard of URL but URI.Further research concluded that URI is infact superset of URL and URN.

The standard description provided at many place about URI was "URI (uniform resource identifier) is a string of characters used to identify a name or a resource on the internet."

In simpler terms, URN functions like a person's name and URL functions like a person's street address. Or in other words, URN defines an item's identity while URL provides a method for finding it.

A URI consist of 4 parts:
"(scheme):(hierarchical part)[?(query)][#(fragment)]"
The part in [] is optional.

Now lets see the individual parts:
scheme name is the protocol used. An exmaple of it is http. It is followed by a colon(:). Ex. http:
hierarchical part usually begins with '//', followed by 'authority' part and an optional 'path'. Authority part consist of (optional user information@hostname) or (domain name or IP), and an optional port number preceded by a colon(:). Ex
www.google.com, this is the domain name.
192.168.193.203:8080, '192.168.193.203' part is the IP followed by a colon and then the port number 8080.
query is an optional part separated by '?'. You must have noticed that when you search anything on google, in the URI there is a '?'. The part after this '?' is the query part. Commonly it is a sequence of key= value pairs seperated by either a semicolon(;) or ampersand(&).
<fragment is an optional part separated by the rest by a hash(#). It holds additional information that provides direction to a secondary resource, eg a section heading in an article.

Well thats for now. It is getting a bit too technical now.

Wednesday, March 7, 2007

more interesting facts about world cup

AS i promised i m up again with more interesting facts about world cup.this time its RAIN RULE

its a catastrophic result of the rediculus rain rule of deducting the worst over (in terns of runs scored) from the side that batted first. Let me take u back to 1992, to the semifinal match of england vs south africa at the SCG, when at one time south africe were to made 22 runs of 13 balls. Then rain intervened the match, the latters total was revised to 22 runs of 1 ball , an impossible feat to achieve ( provided u pray that many wide or no balls are coming & u hit a 6 on each).

Tuesday, March 6, 2007

Who will win the world cup?

I was visiting one blog when i came across this qs "who will win the world cup?" many option provided along with it. Without a second thought i voted for india. I thought it my first duty for i am an indian. I was surprised to see india was ahead in number of votes. May be there r many noble citizens like me.
But lets seriously think about our chances. There r so many good teams. Kiwis r in great form, so do england. Even if we put west-indies aside ("haunted by the curse , since world cup is being played there"), there r so many teams to choose from.
Cricket beside being a sport also hve certain politics. This one i m gng to tell u is from 1999 world cup.
Steve waugh and Michael bevan took 132 balls for their 49 run partnershipagainst west indies in a group game in manchester in 1999. The aussies had lost to new zealand in an earlier group game at cardiff(" not so invincible that time"). And if kiwis were to qualify for super sixes, Waughs' men would hve carried no point into the super sixes.So. they came up with an idea of improving west indies run rate & thereby making it difficult for kiwis. If west indies would had qualified for super sixes, aussies would hve carried these points.After aussies mock chase at trafford, the net run rate was like it: Aussies +0.75874, west indies +0.49729, kiwis +0.00136.That meant to overhaul the windies net run rate, the kiwis had to reach the target of 121 inside 20.5 overs, and they did it against scotland in 17.5 overs.
So this is an example of aussies politics. There r so many interesting stories of world cup.I will keep u posted about them.
I would like to hear your comments on the qs "who will win the world cup?" & if u want to contribute on the intersting facts on world cup histroy.