Archive for the ‘Uncategorized’ Category

ACM Regionals @ Coimbatore

Posted by sp2hari

The ACM ICPC 2006 Regional Contest was held on December 16th & 17th , 2006 at Amrita Vishwa Vidyapeetham, coimbatore, and our team ( me , evo and vasu ) was one of the top 50 teams selected for the onsite contest .

The travel to coimbatore was really weird this time. This is the second time i am going to coimbatore (last time with Manas ) and never knew where amrita is :( . To make things worse , the train stopped at thirupur coz of some technical fault . Had to travel from thirupur to coimbatore by bus and then from there to amrita . As usual was late by a few hours and missed the tour of the contest :( ( actually it does not matter since it was Day1 ).

Then after meeting evo and vasu there ( OMG , they were discussing some problem already ) , we went for the “grand” campus tour . The cook book said “Campus Tour - Teams and coaches tour the plush greenery Amrita University Campus, campus facilities” . But it turned out to be one of the worst tour . The guys who came with us for the tour were so “dumb”. They used to show us a basketball court and say “This is our basketball court ” . As if we all thought it is a football court. Anyway another sad part is that the “greenery” we expected in amrita is nowhere to be found . Bad that this time the contest is during hols :( :(

After lunch had the first practice session . We were able to solve all three ( though presentation error rapped us and the guy who seems to answer our doubts is one of the dumbest i can ever find. We used to ask him , what is the presentation error . Our output seems to be fine and he used to reply “Yes, there is a presentation error.” ) . And anytime our Codelabs is far better than mooshak. Our Codelabs has a better interface than the mooshak , since codelabs is not a single web page and hence one can predict what will happen if the page is refreshed ( unlike in mooshak you have to remeber your last action )

After dinner , had the second practice session and this time we did not get one question :( . Anyway it was total fun being with vasu and evo around . Especailly vasu always had some funny stuff to tell us.

Day II
Break fast at 6.30 :-( and i got up at 6.40 ( One of the difficult thing for me to do :( ) . Contest started at around 8.00 PM and ended at 1.00 PM. We were able to solve three problems and ended up 23 rd . The final standings can be viewed here . Planned to start early but had to wait for the certificates .

The problem set can be found here

Came back to chennai the next day.

Phobia

Posted by sp2hari


As usual, was jobless at home with a new broadband connection , so chumma timepassing when i found this site

So some of them which i might have now or can develop any time is .

Agliophobia- Fear of pain.
Agrizoophobia- Fear of wild animals.
Altophobia- Fear of heights.
Decidophobia- Fear of making decisions. //Err , cant decide :)
Didaskaleinophobia- Fear of going to school. //Very rarely , on bio pracs days, not now
Dystychiphobia- Fear of accidents.
Hippopotomonstrosesquippedaliophobia- Fear of long words. // this word itself makes me scary
Iophobia- Fear of poison. //ofcourse who is not
Nosocomephobia- Fear of hospitals.
Ochlophobia- Fear of crowds or mobs.
Ophidiophobia- Fear of snakes. (Snakephobia) //who is not afraid of snakes
Papyrophobia- Fear of paper. //Just the exam papers , nothing else
Parasitophobia- Fear of parasites.
Pathophobia- Fear of disease.
Peladophobia- Fear of bald people. //yeah all my profs are bald
Philosophobia- Fear of philosophy.
Polyphobia- Fear of many things. // ???
Scolionophobia- Fear of school. // not now but 3 years before “yes”
Phobophobia- Fear of phobias. //After seeing the long list certainly “yes”

Hey come on, what happened to all those important stuff ,
Phobia of exams
Phobia of attendance
Phobia of getting caught in class
Phobia of teachers

Seems a lots is still missing in the list :)

World Diabetes Day

Posted by sp2hari

Fscked up coz of coding :P

Posted by sp2hari

Sometime back, taggy showed me Google code search where one can search inside the source code.
And not surprisingly , the first thing he searched in source code was for “fsck” , “bitch”, and “porn” .
Actually both of us were not surprised with the results. Taggy infact went to the extent of creating a graph to compare the occurence of these words in the source code. :)

Seems the coders and getting more and more frust when there code does not work and they show all their frust in their source code . Maybe a grep for “fsck” will give more shocking results :P.

If you wann to see the stats of the occurence , check out taggy’s blog here

Some of the strange and nice things which i saw in the search were

1. sofia-sip-1.11.8/libsofia-sip-ua/su/sofia-sip/su_wait.h
88: #define SU_WAIT_CONNECT (FD_CONNECT)
#define SU_WAIT_ERR (0) /* fuck this shit */
#define SU_WAIT_HUP (FD_CLOSE)

2. linux-2.4.33.3/lib/vsprintf.c
8: /*
* Wirzenius wrote this portably, Torvalds fucked it up :-)
*/

3. CGI.pm-3.23/t/lib/Test/More.pm
381: else {
# Can’t use fail() here, the call stack will be fucked.
my $ok = @_ == 3 ? ok(0, $name )

4. twisted/names/authority.py
239: ORIGIN = line[1]
elif line[0] == ‘$INCLUDE’: # XXX - oh, fuck me
raise NotImplementedError(’$INCLUDE directive not implemented’)

5. includes/htmlarea/plugins/SpellChecker/spell-check-ui.js
36: }
// we should use innerHTML here, but IE6’s implementation fucks up the
// HTML to such extent that our poor Perl parser doesn’t understand it

6.HTTP/Request.php
613: // magic quotes may fuck up file uploads and chunked response processing
$magicQuotes = ini_get(’magic_quotes_runtime’);

7. Guppi-0.40.3/src/libguppidata/guppi-data-tree.h
40: should be treated as *read-only*. If you change them, you could
really fuck things up. */
typedef struct _GuppiDataTreeNode GuppiDataTreeNode;

8. Acme-Scurvy-Whoreson-BilgeRat-1.1/lib/Acme/Scurvy/Whoreson/BilgeRat.pm
59: ($backend && $backend->isa(”Acme::Scurvy::Whoreson::BilgeRat::Backend::$params{language}”)) ||
die(”For fuck’s sake, the fucking backend’s fucked”);

48: die(”Read the fucking manual you shitwit and at least use the constructor right!”)
if(!$class || join(”, keys %params) !~ /^(language)?$/);

9. directory_administrator-1.4/src/main.c
48: // diradmin_user * fuck = NULL;
83: gtk_widget_show (mainwindow);
// fuckyou ();

10. src/libstdc++-v3/testsuite/27_io/ofstream_members.cc
88: bool test = true;
const char* strlit01 = “fuck war”;
const char* strlit02 = “two less cars abstract riot crew, critical mass/SF”;

Ofcourse i cannot copy paste all the 32,600 search results here :)

So do i swear when i write code ??
Of course i do , even i am a programmer right. While testing the sms code for the spider server, it used to creash often. Though i found out that i have not read the mysql manual properly , this is the source code i wrote to find the error.

cout << "Mysql Connected Successfully\n ";
update_query = Query(”INSERT INTO hari_feedback VALUES (”,’a',’b',’c',’d',’e',’f')”);
cout << "INSERT INTO hari_feedback VALUES ('','a','b','c','d','e','f')";
cout << "Query Returned " << update_query << endl;
if (update_query == NULL ) {
cout << "Fuck\n";
}

mysql_affected_rows (&sqlHandle);
if (pid == -1)
{ cout << "Query Failed\n";}
else
{ cout << "Success\n";}

And ofcourse a ls in the /tmp folder in the nosip folder shows this

fileXo1MAJ
fucku.py
fucku.xml
fuckyouman.py
fuckyouman.xml
fuckyou.py
fuckyou.xml
gcalc.py
gcalctool_log.xml
gcalctool.py
gcalctool.py~
gcalctool_run.xml
gcalctooltemp_log.xml
gcalctooltemp.

Seems even i am fscked up sometimes when it comes to coding :P

Bug in blogspot.com ;)

Posted by sp2hari

Check out this image :)

Dont you find something strange with the edit buttons over there ????

Spider SMS up and running

Posted by sp2hari


Hope the banner speaks the whole stuff. The spider sms is up and running .

When i started the work , thought the work will be easy and will be done in a two or three days but :-( so many seg faults ( though i have seen more seg faults in my ldtp work ) and handling mysql queries from C literally rapped me . :-( . The work took a long time more than i expected that i had to give the work to spider juniors also . Finally the work is done now . Hereafter we will have a few modifications here and there to make the system work better.

So how does the spider sms work . Hope the following explains everything


Well , now that spider sms server is working fine , ( with a few glitches here and there ) , one can access the time tables , his/her bunk scores and many other nice features using their mob ( for free of course ).

I am happy that i took up this work and finished it ( though is was manas’s idea ) . Had a good experience working with juniors . Had to make sure that they are happy with the work they do , that the work is being done , that they get to learn new stuff and of course that they feel that the work is fun etc etc . This is the first work in spider done as a team . All other work are individual efforts . Working in a spider team is as usual FUN .

Now no need to run to the bit room ( next roomie ) to find out the first class. I can as well use spider for this job ;-).

Check this out ;)

Posted by sp2hari

#define MAGIC “2acghilmoprs.@782C65173D5A1409B”
#define _(p,o,q) (t o#p[0])?(q)
#define __(p,o,q) _(p,o,t-q)
int main(){int t, i; for(i=17;i>0;i–)printf(”%c”, MAGIC[(((t=(MAGIC+14)[i-1])==’_')?62:_(.,==,63):_(@,==,64):__(a,>=,’a'+36):__(A,>=,’A'+10):(t-’0′))]);}

My Final Demo

Posted by sp2hari

Well , this is something which i should have blogged the moment after we finished the demo to parag but that day i have been quite busy packing things , travelling from blore to chennai and then to trichy

The demo went fine , and all the details can be read from taggy’s blog. I am not going to write how the demo went , rather what i felt during that time.

Well , as usual i came late that day at around 11 , and taggy told me that parag already came twice asking for a demo .
All i could think Oh My GOD, what a start !!! :P
Then we called parag for the demo and he asked us to show compose mail with an attachement. Of course taggy was showing the demo and i was explaning . I never knew i had a demo phobia but after the “WONDERFUL” first demo , certainly i realised that i am bad (in fact too bad ) in demos.

To make things worse , parag edited the python file and made the file attachement choose a different file . All i was thinking is about varadhan’s warning about 200% ( he made a math mistake there , there is nothing like 200% :P) sure about the thing to work , threatened to throw us out of window if record did not work ( though he was not serious or was he? ) , and what not .

Somehow we recorded and had the script in front of us in the shell while discussing things with parag. I checked the script line by line and did a small playback in my mind. I was not able to do this and answer parag at the same time. Then parag asked us about the playback :O

Well it did take sometime for the log and and otherstuff , and since we had a time delay of 1 in our shell , things were a bit slow , it took some 5 seconds to open the compose box and i think i almost skipped my beat at that time :O. But the playback was perfect and parag mentioned that looked real neat :).

Then he asked us a few questions and gave us a few pointers to work upon :) . The same day we got a evolution jacket from parag and were working on improvements in the recording.

The old saying goes “All is well that ends well “. So a great demo , a nice jacket and above all , a working record script — certainly i cannot ask for more :)

RECORD is WORKING :D

Posted by sp2hari


Ask me one question
Will RECORD work perfectly ???
I will never say YES :)
The milestones in development of record are
=>Totally screwed up first demo .
=>Blasting review by varadhan after the first demo :( where we had no answer for any of his questions :(
=>Partial output in the next demo .

And finally there is one soul which says record is working fine and in fact mentioned that it is a great job :P

“”" nags, sp2hari, taggy: till now, the record works very perfect! what a great job! “”"

I still think lavi is lying :)

We have no clue how it worked .
We were expecting a lot of feedback like this :P
1. Hey it gave a seg fault
2. My comp hanged , i had to reboot again
3. I had to kill at-spi-registry (varadhan wont accept this i suppose ) to stop recording
4. Hey i got a empty python file ,
and lots and lots

All the above things happened when we showed a demo to Dr. Harinath . Surely that might have been one of the worst demo in NOVELL history :P

But varadhan said a first demo is always likely to fail and asked us to make lots of changes within two days .

Second demo went fine with no major issues . except for the compose message :( .

We know where the bugs are in the current record script . Luckily lavi did not notice them now i think .
I am sure soon he will file a bug against the recording :) .

Ok hope this is enough for now . Have to get ready for the bugs :P. Got to check it in ubuntu :)
Here taggy is asking me how record worked fine ??? . He is pretty sure that it will fail and he is surprised to see the record work fine :P

about:mozilla

Posted by sp2hari

Type about:mozilla in your url bar.

Your will see this

And so at last the beast fell and the unbelievers rejoiced.But all was not lost, for from the ash rose a great bird. The bird gazed down upon the unbelievers and cast fire and thunder upon them. For the beast had been reborn with its strength renewed, and the followers of Mammon cowered in horror.

from The Book of Mozilla, 7:15

Dont know why but i liked this one.It symbolises many things in life and it all depends how you interpret it :).

Now dont think i am talking about the funda about the life blah blah blah …….
I was just mentioning about how firefox has conquered ( yes it has ) IE .
IE is one of the worst products from windows . As such windows sucks but IE is worse :).

Tomm have sem pracs so will see later . Bye Bye


FireStats icon Powered by FireStats