Skip to main content

Posts

Graphics in C under Linux

One big problem that Linux users (especially at AIT) face is that the graphics.h does not work here. So for Computer Graphics assignments, they have turn on the windows machine. SDL or libgraph are good alternatives but change, is what scares them. So here is another method that does not involve the use of any other library of any alien software. I have used plain old dosbox to run TC in linux! Pre-requisite ; 1. Turbo C is installed in the windows partition. 2. The windows partition is mounted. (by this I mean just open the windows partition in linux. To check whether it is mounted or not, go to "/media" and see if it has you windows partition with some weird alphanumeric foldername. mine is 189C681A9C67F124) Step 1 : Download and install "dosbox" on your linux system http://www.dosbox.com/ Ubuntu users type : $ sudo apt-get install dosbox   Step 2 : Let us assume that you have already installed turbo C in your windows system and it is located at C:\TC...

Busy is BullShit!

In today's world of email, sms and facebook when somebody says they could not keep in contact because they had been busy, I feel like kicking them on their butt and say "Busy is BullShit". It so happened that yesterday one of my school friends rang me up. After talking for like half an hour, when I was all exhausted of all the stories that I could possible narrate, I happened to ask, "why did you not keep in contact?" The answer came as "College had been keeping me busy". Now all I know for a fact is that, we all do what we want to do. We all have time for what we are committed to. Take harish and laxman as an example. They are professional Counter Strike players, so even though they have exams, they do not stop sparing an hour for their regular game. I won't appreciate this habit, but I respect their passion for the game. They take out time for what they want to do. They do not start cribbing on how difficult the subject is, and how m...

The blackbird comes to a decision

An old blackbird found a piece of bread and flew off with it. When they saw this, the younger birds pursued him in order to attack. Confronted by imminent battle, the blackbird dropped the piece of bread into the mouth of a snake, thinking to himself: ‘When you’re old, you see things differently. I lost a meal, it’s true, but I can always find another piece of bread tomorrow.“However, if I had hung on to it, I would have started a war in the skies; the winner would become the object of envy, the others would gang up on him, hatred would fill the hearts of birds and it could all go on for years. “That is the wisdom of old age: knowing how to exchange immediate victories for lasting conquests.’

if I had to do over again

Read this poem in some blog and it was precisely what was going through my mind then. Read through and enjoy! I Wouldn't Try To Be So Perfect ! -------------------------------------- If I had my life to live over again, I'd try to make more mistakes next time I wouldn't try to be so perfect. We all have perfection fetishes, what difference does it make,if you let people know you are imperfect? They can identify with you then. Nobody can identify with pefection. I would relax more,I'd be sillier then than I've been on this trip. Infact, I know very few things that I would take so seriously. I'd be crazier,I'd be less hygienic,I'd take more chances. I'd climb more mountains,I'd watch more sunsets. I'd go more places I've never seen. I'd eat more ice-creams and fewer beans. I'd have more actual troubles and fewer imaginary ones. You see,I was one of those people who lived sensibly and sanely hour after hour and...

New Year Resolution

2004: I will get my weight down below 70. 2005: I will follow my new diet religiously until I get below 80. 2006: I will stop eating samosa, pakoda, parantha and sugar. 2007: I will go the gym five times a week. 2008: I will work out three times a week. 2009: I will take my resolutions seriously. 2010: 2010 will be the year I moderate my eating and work out regularly. 2011: I will make a dead serious new year resolution.

मै

यू तो फूल भी काफी हैं दर्द जगाने को, जख्मी हो मेरा दिल खार से ही, ये ज़रूरी तो नहीं ! ऐसा नहीं की गम मुझे होता नहीं, मुफलिसी में रोता रहूँ, ये भी ज़रूरी तो नहीं ! करने लगूंगा फिर से तुम्हारा ऐतबार दोस्तों ज़ख्म ताज़े हैं अभी, भरोसा अभी होता तो नहीं ! मंजिल तू इंतज़ार कर कि मैं आऊंगा ज़रूर मैं बस हारा हूँ रास्तों से... मगर लौटा तो नहीं ! मैं बस हारा हूँ रास्तों से... मगर लौटा तो नहीं !

I need only such a companion

A near and dear, to love and to hear, to listen and to tell, what's heaven and what's hell. To talk and to fight, on the wrong and the right, to understand and the absurd, something that's never heard. to shout and to laugh, to cut the sorrow into half, to stare and to share, and scare the nightmare. To improve and to expand, with someone who could understand, to grow and to desire, to aspire to move higher. To encourage and applaud, and increase the belief in God, to soothe and to smile, hand-in-hand walk-in mile, to dimple and to smile, and cross even exile. To think and to create, together our own fate, in the hot and the cold, the bonds that will hold, will save us from the sin, in the thick and the thin, showing my everlasting love to whom cries and tears never come, I NEED ONLY SUCH A COMPANION.

अनजान

एक बार मेरी नज़रों ने से पूछा, की तुम क्यों उन्हें देखकर नज़रें हटा लेते हो,  की जिसे तुम हर वक़्त सोचा करते हो  क्यों उस से मिलकर भी अनजान बने रहते हो? मैंने जवाब कुछ यूं दिया... "मै डरता हूँ की कहीं उनकी आँखों में देखूंगा तो सब कुछ भूल बैठूँगा, उनसे अगर मिल गया तो उनमे खो जाऊंगा, वो जब मुझसे अलग होंगे, तो मै खुद से रूठ बैठूँगा इसलिए,मै चुप हूँ की न हमारी बात हो, और जो हो भी जाए बात, तो फिर न मुलाकात हो"!

writing text upside down

¡ʎןsnoǝuɐʇןnɯıs ǝpoɔ ǝʇıɹʍ puɐ puɐʇspuɐɥ uɐɔ ı ʍou Use the code below to create a tool to write text upside down! Demo available here : http://mishraprince.blogspot.com/p/flip-text.html <html><head><title>Flip Text » Write Upside Down Text</title>                <script type="text/javascript">                // JavaScript Document function tweet(){     var flipped = document.f.flipped.value; } function flip() { var result = flipString(document.f.original.value); document.f.flipped.value = result;         document.getElementById('tweet').href = "http://twitter.com/home?status="+result; } function flipString(aString) { aString = aString.toLowerCase(); var last = aString.length - 1; var result = ""; for (var i = last; i >= 0; --i) { result += flipChar(aString.charAt(i)) } return result; } ...

An Open Letter to Lalu Prasad Yadav

Dearest Laluji, Bihar elections are one of a kind in India. They have a very special ingenuity that's uniquely different from elections contested in any other part of the country. And who knows that better than you? You have lived the King for three reigns. Your plank of caste, your efficient use of your " lathi " and your everlasting love for " fellow Yadavs " has returned you favors, to which your consecutive wins can rightly be attributed. But what went wrong now? Has Bihar's illiterate and "dehaati" public stopped playing ostrich to your political drama, or is it just the light of development Nitish showed us? Something somewhere is just not right for You. Soniaji atleast accepted her defeat. You, are still playing obnoxious. We are no fools Laluji. Moments after the mandate came out, Bloggers, Writers and media persons throughout internet and newspapers brought out how the landslide win of NDA over RJD was rightly due to the taste ...