Sunday, September 19, 2010

My First Hacking

I was just a young chap then, wanted to leave world rocking
It was in my S.E., when I first thought of code hacking

I had gone to my friends place and asked,
‘hey, download firefox src for me’
he replied, ‘Internet here is quite costlier dude
and bytes for you are definitely not free’

Internet-less at my room then, I had to waste 15 rs an hour
just to visit sourceforge n shout, ‘why the hell they don't give src tar’

Knowledge-less engg students were we, didn’t know what is subversion
It was test of my patience, when I had to get freedos drivers one by one

It was end of semester then and quantum of my OS interest was up
Next sem I did a context switch to see networking tools and try my luck

I was trying to analyse source code, without any kind of tool
As the function call depth kept on climbing, I started to loose my cool

When I started to work on Linux, my mind became so much clear
I was trying to climb on Everest without having any sort of gear

When I came to IISc, finally I got a grip on svn and gdb
with cscope in my hand, I was like holding reverse engg’s key

But sooner I hit a wall, while working on NES emulator
with my interleaving time too short, I kept on scheduling it later

One of my friends asked me later, to modify a bit of empathy
It was a job of just GUI tweak, I looked at him with full sympathy

The task has since been posted into my TO-DO queue
Many more sources had been tried on, as I give priority to new

Now today was a golden day, when I cracked bits of pidgin
Despite many obstacles, I reached the code I was interested in

But again my dream was shattered, when all pieces were arranged
cause same effect would have been achieved, if a bit of preference was changed

Despite these little things, I am in search of new find
People, just post a comment, if u have a new hack in ur mind

                                                                                              काव्यानंद 

Abbreviations:
S.E. : Second year engineering
Engg : Engineering
Src : Source
SVN : Subversion
NES : Nintendo Entertainment System
GUI : Graphical user Interface

Thursday, July 29, 2010

virtual युद्ध

काल बसल्या बसल्या मी एक शोध लावला जबर
code झाले जिवंत सगळे int main झाला leader

main बसला python वर टाकून ruby जडीत wrapper
java च्या प्याद्यांना हलता येईना त्यांनी catch वर फोडले खापर

pointer रुपी शस्त्राने तो कापू लागला माझ्या binary
emulator ने केले मद्य emulate, WINE ची केली winery

kernel काढले मोडीत त्याने, बनला सगळ्यांचा hero
interrupt call करून मिळवली privilege level zero

hardware केले enumerate त्याने, drivers सगळे फितवले
पाहता पाहता मग त्याला internet रुपी rocket मिळाले

भेदभाव विसरून server आणि client scripts नी केली हातमिळवणी
संदेश पसरवला युद्धाचा त्यांनी, सुरु झाली शस्त्र सामुग्री जुळवणी

देशो-देशीच्या codes नी उडवला युद्ध मुहूर्ताचा बार
नजराणा म्हणून त्यांनी पाठवला library आणि headers चा tar

SIGSTART मिळताच सुरु झाला महायुद्धाचा एकच गजर
ascii files कापल्या आधी मग resources वर गेली नजर

image, audio, video, इतर binary सगळ्यांचेच कोथळे काढले
0,1 आणि letters च्या सड्यांनी सगळे storages चिंब झाले

रौद्र-रूप हे codes चे पाहून system softwares झाले अक्षरशः check-mate
compilers, interpreters, assemblers नी आपले white flag केले set

पण compiled नसतील हे codes तर active कसे काय झाले
खरतर स्वप्नातील infinite recursion जागेपणीच माझ्या वाट्याला आले

                                                                     काव्यानंद

Tuesday, May 11, 2010

Some Computer Science PJs

window पर जाते ही खतम हो गये movie के सारे seats
A Byte generally consists of 8 bits

जिंदगी के सफर के सीधी राह में आया ये कैसा मोड
software quality can be measured in number of lines of code

i miss my college days, wanna go back for sure
i miss my college days, wanna go back for sure
if ur processor is over-utilized try dual core

Lightning sky, thundering atmosphere, I think we shall go
Las-Vegas and Monte-Carlo are types of Randomized algo

He yelled, "dump them to the garbage. What are you still waiting for?"
Actually he had got an interrupt and was talking to scheduling ISR.

जली तो आग कहते हैं और बुझी तो राख, जली तो आग कहते हैं और बुझी तो राख
C is difficult to write string handlers try LEX and YACC

GAMES खेलते खेलते ही चली जाती है usually सारी PL
but i think dx is better in windows than openGL

Laws of assignment :
1. The size of assignment is a relative term. So as speed of doing assignment increases, the size     also increases. Hence "zero work left" state can be achieved at 'finite time, infinite speed' or     'infinite time, finite speed'.

Corollaries of above law :
i. Size of assignment appears to grow exponentially with linear reduction in time
ii. Confidence decays exponentially with  linear reduction in time

2. Assignment is a vector quantity with direction pointing from 'damn. i am yet to start' state to 'if he gives me zero, its all bullshit' state.

3. Coding is a scalar quantity. Hence more coding does not imply more work.

4. Bug is a vector quantity equivalent to force in 4-dimensional world. It can change speed of        coding, direction of progress.

Corollary of above law :
   
There may be some dominant bugs,which always reverse direction 
of progress after a certain progress or even certain 
time period. Thus creating one or more small vortices,
resulting in zero or very small actual progress. 
These vortices are termed as ' Software development cycles' 
in big industry, and 'Crap' in individual developers.

Saturday, April 17, 2010

An out of bound sample

Tension आलंय मला जरी सगळे  project झाले   
असे शब्द म्हणतच मेसवर  येतो तो सचिन काळे        
८ मार्कांचं चुकलं म्हणून तब्बल १८ दिवस रडतो    
हंसदा कडे project करायची नवीनच  idea काढतो
हरीत्साने बोलवलं कधी तर जाशील उडत उडत
आणि दिवसभर काम करायचं म्हणून पुन्हा बसशील रडत

सहजच वाचत होतो game theory जरी test नसली आज
इतक्या स्पष्टपणे बोलताना त्याला वाटतही नाही लाज
३ महिन्यापासून म्हणतो आज खेळीन cricket
दुसऱ्या दिवशी नेहमीचंच कारण झालो होतो  late   
सगळ्यात जास्त मार्क्स मिळाल्यावर म्हणतो जरी आत्ता आहे safe 
सगळ्या tests आणि final झाल्यावर बघा ३ विषयात तरी मिळेल F

१५-१६ च्या packege ला म्हणेल बाहेर जायचा करतोय विचार
परदेशात गेलास तरी विसरू नकोस माझे ते मौल्यवान ५० हजार

पूर्वार्ध

    कर्नल दगड हे भारतीय आर्मी मधील अत्यंत आदरणीय व्यक्तिमत्व होते. त्याचे वरिष्ठ अधिकारीदेखील त्याच्याशी अत्यंत आदराने बोलायचे.तसे पाहिल्यास कर्नलच्या व्यक्तिमत्वास तोड नव्हती हेच खरे. कमावलेले शरीर,बुलंद छाती,पहाडी आवाज,कठोर चेहरा आणि एकूणच रुबाबदार अंगकाठी.अनेक तरुणी ह्या पाषाणाच्या मागे घिरट्या घालत होत्या, पण ध्येयवान कर्नलने  कोणालाही दाद दिली नव्हती.
    भारताचे अंतर्गत गुप्तहेर खातेसुद्द्धा ह्या हिऱ्यावर आपले लक्ष ठेवून होते. एक दिवस कर्नलला केंद्रीय गृहमंत्रालयाकडून बोलावणे आले. तेथे स्वतः गृहमंत्री आणि आणखी २-३ अधिकारी उपस्थित होते. गृहमंत्र्यांनी कर्नलला त्यांची ओळख करून दिली. त्यातील एक RAW चे  माजी प्रमुख होते आणि एक IB
चे अत्यंत वरिष्ठ अधिकारी होते. त्यांनी कर्नलला भारताची सध्याची अंतर्गत परिस्थिती कथन केली. देशात त्यावेळेस अत्यंत महागाई वाढली होती. पाण्याची कमतरता जाणवत होती. भ्रष्टाचाराला ऊत आला होता. त्यातच अनेक प्रादेशिक पक्ष नवीन राज्यानिर्मितीच्या मागणीसाठी त्या-त्या राज्यांना वेठीस धरत होते. ह्या प्रादेशिक पक्षांमागे आपल्याच मंत्रांची फूस असावी अशी गृहमंत्र्यांना शंका होती. त्यामुळे ह्या समस्येचा सामना करण्यासाठी त्यांनी IB ची एक ५-६ जणांची टीम करायचे ठरवले,व त्या टीमचे नेतृत्व करण्याची कर्नलला गळ घालण्यात आली. कर्नलकडे सुवर्णसंधी चालून आली होती. आपल्या देशभक्तीची हीच कसोटी आहे असं त्याला मनातून वाटत होतं. त्यामुळे त्याने आनंदाने ही जबाबदारी स्वीकारली.
    त्या पथकासाठी आणखी ५ जणांची निवड करण्यात आली. ह्या निवडीत कर्नलने जातीने लक्ष घातले होते. पाचहीजण अत्यंत शूर होते. अर्थात अशा पथकासाठी कर्नलपेक्षा आणखी कोणी योग्य असूच शकत नाही, ह्याविषयी कोणाच्याही मनात दुमत नव्हत.
    हे ५ जण विविध क्षेत्रातील तज्ञ होते. ते त्याला मदत कर्नल असले तरी प्रत्यक्ष मैदानात उतरणार नव्हते. ते काम अर्थातच त्यांच्या सर्वगुणसंपन्न नायकावरच सोपवण्यात आले होते. कामगिरी सुरु होण्याआधी सर्वांचे खडतर प्रशिक्षण होते. हे प्रशिक्षण सामुदायिक तसेच आपापल्या क्षेत्राशी निगडीतही होते. त्यातून तावून सुलाखून बाहेर निघाल्यावर ते कामगिरीसाठी सज्ज झाले होते.
    सर्वाना आता अत्याधुनिक शस्त्रास्त्रे आणि साधन-सामुग्री देण्यात आली. पथकाचे नामकरण ND-Hard (Non-Destroyable Hard) असे करण्यात आले तर Mission चे नाव होते
                              "Operation State Freezer".
    कर्नलला अनेक मुभा देण्यात आल्या. कोणत्याही नेटवर्क वर अनलिमिटेड टॉक-टाईम, हवा तेवढा पैसा, कोठेही लाचारी पत्करण्याची मुभा, इत्यादी. त्यामुळे कर्नलला missed-call ऐवजी आपण call करतो आहोत व हवी तेवढी मिसळ ढोसतो आहोत असं दिवास्वप्न दिसू लागलं. 
   त्याला अत्यंत दुर्मिळ असे स्थान देण्यात आले. त्यामुळे तो आता "Lachar Agent 009" बनला व त्याचा कोडवर्ड होता "बांड, तरणा-बांड".
                                                                             (क्रमशः)
 (जेम्स बॉंड कथेवरून प्रेरित)

एक अजोड व्यक्तिमत्व

पिळदार शरीरयष्टी त्याची झोकदार अशी चाल |
५० वा वाढदिवस जरी साजरा झाला काल ||
लोहासम टणक अशा रोट्या लागतात खायला |
point out केले कुणी तर म्हणतो 'च्यामायला' ||
अटीतटीच्या क्षणीच त्याची ती निर्णायक लाचारी |
जिंकण्याची कल्पनाही येत नाही त्याच्या विचारी ||
डोकं खाजवण्याच्या style वर अख्खं जग आहे फिदा |
काटाकिर्र किंवा सुजाताच्या द्वारी असतो उभा तो सदा |
निर्जीव किल्ले लाजतील ज्यापुढे असा आहे तो THE गड |
सर्वांचाच आदरणीय असा तो महेश लगड ||
                                            काव्यानंद

कॉलेजच्या शेवटच्या दिवसाची कविता

आम्हालाच debug करावा लागेल आता आमचा code |
कारण सोडून चाललो आम्ही protected mode ||
Real mode मध्ये असतील टेन्शन्स जबर |
भेटतील का आम्हा कोणी कोडमेलवार सर ||
आठवतील तुम्हा सगळ्यांना ते माझे missed call |
शिकलात जरी तुम्ही नवीन connection protocol ||
industry तले लाईफ म्हणजे parallel threading चा प्रकार |
जणू मित्रांना भेटायचे वचन, होता inverted होकार ||
म्हणाल college मधल्या मजेची पुन्हा आणू state |
म्हणजे complementary inputs ना लावलंय AND gate ||
Ground वर खेळण्याचा परत येईल जेव्हा chance |
memory तले bits सगळे करतील synchronized dance ||
Object वापरून जेव्हा define करता येईल class |
स्वखर्चाने मी सगळ्यांना party देईन खास ||
जमलं जर कधी तर पुन्हा जरूर भेटा |
माझ्या cache मध्ये असेल तुमचा updated data ||
बाकीच्यांना भेटायची तुम्हाला इच्छा झाली फार |
Kernel ला भेटा त्याच्याकडे आहे scheduling ISR ||
शेवटी सांगतो तुमच्यापैकी कुणी कधी म्हणालं ILU |
Logic नाही त्याच्याकडे नक्कीच corrupted असेल ALU ||
जर माझं technical rhyming वाटलं जुळवलेलं शाब्दिक match |
Exception handle करा तुमचा मूर्खपणाच होईल catch ||
                                                           काव्यानंद