Bits and Bytes

Learn to Live

2 Down 7 More to go — March 31, 2011

2 Down 7 More to go

Done with 2 Tests 7 More to go

Both XML and ES were fine except a few sillyyyy mistakes. Hehe

Finallyyy feeling good after blogging…

Ab Java ki baari hai 😀

Be friendly Be Nice Be Kind 🙂

Advertisements
Exams from Tomorrow — March 28, 2011

Exams from Tomorrow

Yeah so excited finally the Sem II externals r starting….& I spent monster 6 days at home….Trust me they were boring with XML, Java EE and ES together.

Actually these three only make time interesting. Rest it was boring 😀

Rabindra Sangeet Pran Chae Chokkhu Na Chay Lyrics — March 23, 2011

Rabindra Sangeet Pran Chae Chokkhu Na Chay Lyrics

Margarita roja

Pran Chae Chokkhu Na Chay

Mori Eki Tor Dustoro Lojja …….

Pran Chae Chokkhu Na Chay…..

Sundoro Eshe Phire Jai

Tobe Kaar Laage Mittha Ki  Sojjai

Pran Chae Chokkhu Na Chay

Mori Eki Tor Dustoro Lojja …….


Mukhe Nahi Nissore Bhas

Dohe Antore Nirmako Bonhi

Oshte Ki Nishthooro Haas

Tobe Morme Je Krondono Tonni

Mallo Je Tongsiche Haai

Tobo Sojja Je Kontoko Sojja


Milono Somudro Belai

Chiro Bichchedo Jorjoro Morjja

 

Pran Chae Chokkhu Na Chay

Mori Eki Tor Dustoro Lojja …….

Pran Chae Chokkhu Na Chay

Sundoro Eshe Phire Jai

Tobe Kaar Laage Mittha Ki  Sojjai

Pran Chae Chokkhu Na Chay

Mori Eki Tor Dustoro Lojja …….

Pran Chae Chokkhu Na Chay


Really Love this song…Apologise for any errors in between


Title Song of Kitani Mohabbat Hai NDTV Imagine — March 21, 2011
XML-Schema Problems with Solutions —

XML-Schema Problems with Solutions

1.Write an xml schema for the following xml file.

Book.xml

<BOOK>

<BOOK_NAME>Computer Networks</BOOK_NAME>

<AUTHOR>Andrew Tanenbaum</AUTHOR>

<PUBLISHER>Pearson Education</PUBLISHER>

<PUBLISHINGDATE>2010-02-10</PUBLISHINGDATE >

</BOOK>

2. Modify the schema for the above xml so that the BOOK_NAME contains only “Computer Networks” or “Network Programming” or “Internet Programming”.

Also the length of the publisher should not exceed 10 characters.

Solution 1.

Book1.xsd

<xsd:schema xmlns:xsd=”http://www.w3.org/2001/XMLSchema”&gt;

<xsd:element name=”BOOK”>

<xsd:complexType>

<xsd:sequence>

<xsd:element name=”BOOK_NAME” type=”xsd:string”/>

<xsd:element name=”AUTHOR” type=”xsd:string”/>

<xsd:element name=”PUBLISHER” type=”xsd:string”/>

<xsd:element name=”PUBLISHINGDATE” type=”xsd:date”/>

</xsd:sequence>

</xsd:complexType>

</xsd:element>

</xsd:schema>


Solution2

Book2.xsd

<xsd:schema xmlns:xsd=”http://www.w3.org/2001/XMLSchema”&gt;

<xsd:element name=”BOOK”>

<xsd:complexType>

<xsd:sequence>

<xsd:element name=”BOOK_NAME” type=”BookNameType” />

<xsd:element name=”AUTHOR” type=”xsd:string” />

<xsd:element name=”PUBLISHER” type=”PublisherLength” />

<xsd:element name=”PUBLISHINGDATE” type=”xsd:date” />

</xsd:sequence>

</xsd:complexType>

</xsd:element>


<xsd:simpleType name=”BookNameType”>

<xsd:restriction base=”xsd:string”>

<xsd:enumeration value=”Computer Networks”></xsd:enumeration>

<xsd:enumeration value=”Network Programming”></xsd:enumeration>

<xsd:enumeration value=”Internet Programming”></xsd:enumeration>

</xsd:restriction>

</xsd:simpleType>


<xsd:simpleType name=”PublisherLength”>

<xsd:restriction base=”xsd:string”>

<xsd:maxLength value=”10″ />

</xsd:restriction>

</xsd:simpleType>


</xsd:schema>


Last Internal Exam tomorrow XML Practical and VIVA :) —
Closest to earth, ‘Supermoon’ lights up sky — March 20, 2011

Closest to earth, ‘Supermoon’ lights up sky

The Moon as seen by an observer from Earth. So...
Image via Wikipedia

NEW DELHI: An auroral and unusually big ‘supermoon’ was seen lighting up the sky on Saturday, offering a visual treat to an enthusiastic audience of curious sky-gazers.

The phenomenon was special, as the moon came closest to the earth in 18 years, becoming the biggest and brightest full moon of the year. The moon was around 14 per cent bigger and 30 per cent brighter than the other full moons, Nehru Planetarium Director N. Rathnasree said.

“The ‘supermoon’ is the biggest and brightest of 2011,” C.B. Devgun, director of the Science Popularisation Association of Communicators and Educators (SPACE), told PTI.

The moon was only 3,56,577 km away. The phenomenon occurred in 1955, 1974, 1992 and 2005.

Full moons coinciding with the moon’s closest point to the earth in fact happen after every one year, one month and 18 days when it is about 3,63,104 km from the earth, Mr. Devgun said. “This is because the moon’s orbit is an ellipse, with one side 50,000 km closer to the earth than the other. In astronomy, the two extremes are called ‘apogee’ [far away] and ‘perigee’ [nearby].”

A public sky-watch with telescopes and a live show with full dome visuals were organised by the Nehru Planetarium on Saturday evening for sky-gazers to have a better view of the perigee full moon, Ms. Rathnasree said. Hundreds of people thronged the planetarium to see the earth’s natural satellite, she said, adding it was totally safe to watch the moon with naked eyes.

Dispelling reports that a correlation existed between the moon and earthquakes, she said the data for the past 100 years and more showed no correlation.

“It is meaningless to equate the ‘supermoon’ with earthquake or tsunami. No inference should ever be drawn from looking at just two data points; any statistical correlation has to be checked over a number of data points.”

Earthquakes and tsunami were earth’s internal affairs, R.C. Kapoor, a retired professor of the Indian Institute of Astrophysics said. The moon could cause a higher tide and nothing else.

The term ‘supermoon’ was first coined by astrologer Richard Nolle in 1979. He defined it as a situation in which the moon is slightly closer to the earth on its orbit than the average, which is 90 per cent or more of its closest orbit, and the moon is a full or new moon.

At the closest, the moon lies roughly 3,56,630 km from the earth. — PTI

Yesterday I saw the moon and I was thinking that today it looks quite big than other days, didn’t knew that today it was not the moon but the supermoon. It was an awesome sight shouldn’t be missed by anybody.

Do Have a glimpse of it. 🙂

Source

http://www.hindu.com/2011/03/20/stories/2011032060412000.htm

Happyyy Holi — March 19, 2011
suPHP — March 17, 2011
Lyrics of Emptiness Song by Rohan Rathore — March 14, 2011

Lyrics of Emptiness Song by Rohan Rathore

Just can’t get this song out of my head so posting the lyrics here.

Oh love of mine, with a song and a whine,
You’re harsh and divine like truths and a lie.
But the tale ends not here
I have nothing to fear
for my love is a yell of forgiving and hold on.

In the bright emptiness, in a room full of it,
is a cruel mistress – my heart!
I feel this unrest, that nests all hollowness,
for I have nowhere to go and I’m cold.

And I feel so lonely yeah…
There’s a better place than this: emptiness.
And I’m so lonely yeah…
There’s a better place than this: emptiness yeah…

Aa.. aa.. aa…

Tune mere jaana.., kabhi nahin jaana..,
Ishq mera, dard mera.. haaye..
Tune mere jaana, kabhi nahin jaana,
Ishq mera, dard mera

Aashiq tera…
Bheed mein khoya rehta hai…
Jaane jahaan….
Poocho toh itna kehta hai –

That I feel so lonely yeah…
There’s a better place than this: emptiness…
And I’m so lonely yeah…
There’s a better place than this: emptiness yeah… ya.

Aa.. aa.. aa…

Aa.. aa.. aa…