Monday, June 22, 2009

The vacations

Its been long since i wrote something in this blog.The same reason is restraining me from devoting some time to such activities(Exams). Though the exams were so tough, luckily, thanks to the computer science department, i managed to get 8.92 cgpa this time. My first 8. in NIT life.

So my vacation started one month before.i had been switching my place now and then. After spenting two weeks at home i left for college. i was there for another two weeks. Now its from home i am writing.
How do i spent my time? Mostly i watch movies..developed a big database from the hostel lan.Its only a matter of choosing which movie to watch. there had been some good movies , some were very bad -simply wasting time.
'Seredipity' was a good one. i liked the theme. its about about two strangers stumbling into each other in a general store named 'serendipity'.They both chose for the same pair of socks- a black one.The story starts from there.The man fall in love with the lady at first site.But the girl dint give up so quickly-she said let the destiny brings them together.both of them left notes of contact details but left it to reach them somehow. like one of them wrote name and address on 10 dollar note and gave it to a shopkeeper and the other one wrote his on a book and gave it to a used books store.Towards the end, though both of them find their on partner both feels something is missing somewhere and set out to find each other.And finally the destiny brings them together.

A lot happened in the vacation.One of my best friend finally accepted my friend request in orkut.Its been two years since i had sent it. but now active in the cyberworld. i dint forget to drop a testimonial for her. Simply each line praising her of her virtues.
Met quite a few friends and also was able to contact them.

About the college.Now i am going to be in s5. Until now i have only a brief idea of what i am learning in this entire college life. Seniors say by the end of s6 one will get to know what one is going for.
I am in a bit of confusion now. Most friends have already started going for CAT,GRE AND GATE coaching. i havent yet made up my mind for the future. praying that god will soon open a way in front of me.
i managed to get a collection of questions for these tests.

Monday, December 29, 2008

World of goo

WORLD OF GOO

Wondering what it is?
comics???
cartoon???

Ya a sort of ...

blending of cartoon and comics....

But it is a game...

small one but interesting

it was during the exam time that i started playing it
when tension builds up in mind of the exam, this gave strength and found playing this relieving mind

but later on dint get time to continue playing
and during this christmas i finished playing it

Its all about goo balls and its world

In my opinion the creater might have intended of making the players aware of the ways in which we pollute
our world and what has to be done
Game itself starts with a quote "Make me dirty now"
The itself is well laid giving hints in each stage (which is too hard to decode).
The player has to understand these hints-given in the 'sign painter' as it is called.
Skills like logic and creativity of the player is often tested during the course of the game.He has to put the mechanical laws that he has studied for completing certain stages.

As the game progresses it passes through all the strategies of the evolution of world
The building up of industries which no one knows and only is revealed when finishing the levels
the first era was that of the ancient days in which the pollution was less and in the game,basic methods of polluting
More credit goes to making extra polluting goo balls
As the game progresses the extra collected balls gets accumulated in the coorporation which later serve for building up the establishment
where we take advantage of the world getting polluted and our industry flourishes
It has four chapters of varying difficulty
Introduction of more and more and new polluting agents and substances in each part of the chapters
Then in the fourth chapter its the new digital world, and the pollution too is digital in nature


The game ends with the hope that one day man might realise about the aftereffects of his life style
in which he neither bothers about the world and others who are living with him.All his actions causing harm to the nature
It is simulated in the game
In the last section after the four chapters which mainly is the domination of world of goo
it is the end of the world of goo
Every factor causing pollution recycled and the world of goo coorporation destroyed.

Then there is this telescope which probe the sky looking for that light which makes the world a new place where man lives with care for the world.
Bringing light and hope to the earth by destroying the last bit of the impurities and wiping the world clean

This is what i felt after playing the game.The designer has done a great job. This game is worth playing. It is rated 9.5.

Sunday, November 23, 2008

Alumni adding flavour NITC

"Life After NITC"

I still have three more years here in NITC
I laughed
Why should i be thinking about it now
That was my first question.
It was me who first saw the poster as i was the one to stick it on all the notice boards here in hostel.
I dint want to spent my time listening to such bluffs.
So it was when i was going to take bath, my friend called me for the talk.
At first i was like "Oh man,Have to study, no i am not coming"
But to say the truth i would have missed a really excellent interactive session with our nitc 'pass out'
They were four of them giving their experience here and when they got out of here.
Their talk session was informative and interestiing.All of them are currently doing their mba in iim calicut.
They expressed their view on talking an mba or not and what time is suitable to take it.According to them its all one's perspective to take the rite time to do mba.
Be it anytime ,right when you passout from college or after some years of work.If one is taking mba just he get out of the college, he is still a student so its easier to him for continuing study.But for someone who is coming after some years of work ,it might be little difficult for him to get on to play.

MBA is entirely a different area of study for a btech pass out.It adds one more degree to one's resume and make an engineer capable of managing a business.though i dont know much about it.I am still doubtful of taking an mba or not.I confident that sometime during these times in Nit calicut i would reach to a conclusion

Actually i had planned to post this one month before.but due to lack of time during exams i could'nt do it

Friday, November 21, 2008

tower of hanoi recursive

#include
#include
using namespace std;
char left[20],right[20],middle[20];
void Hanoi(int n,char from[20],char to[20],char by[20]);
void print(char temp[20]) //this is to print the towers as given in the parameter
{
int size=strlen(temp);
int i=size-1;
while(i>=0) //since in this program i am storing the least value at the zeroth index it is good if the printing takes place in the reverse oreder as in the output
{
cout< i--;
}
cout<<"\n";


}
int main()
{

int n;
strcpy(::right,"\0");
strcpy(::middle,"\0");
cout<<"Enter the no of discs in the tower of hanoi (should be less than 10)\n";
cin>>n;
if (n>=10)
{
cout<<"Quiting\n";
return 0;
}
char init='1';
int i=0;
while(i {
::left[i]=init;
init++;
i++;
}
::left[i]='\0';
cout<<"Tower1: ";
print(::::left); //printing the initial state of all the towers
cout<<"Tower2: ";
print(::middle);
cout<<"Tower3: ";
print(::right);
cout<<"\n\n\n\n";
sleep(1);
Hanoi(n,::left,::right,::middle);
return 0;
}
void Hanoi(int n,char from[20],char to[20],char by[20])
{
if (n==1)
{

int size;
size=strlen(to);
int i=size+1;


while (i>0) //this is to make ready the insertion point for the element that has to be added
{
to[i]=to[i-1];
i--;
}
to[0]=from[0]; //the top most element of from will be added to the top position of to
size=strlen(from);
while(i {
from[i]=from[i+1];
i++;
}
cout<<"Tower1: ";
print(::left); //printing the present condition of all the towers
cout<<"Tower2: ";
print(::middle);
cout<<"Tower3: ";
print(::right);
cout<<"\n\n\n\n";
sleep(1);
}

else
{
Hanoi(n-1,from,by,to); //here, these are the recursive calls to the function Hanoi
Hanoi(1,from,to,by);
Hanoi(n-1,by,to,from);
}

}

permutation of letters, including repetition

#include
#include
using namespace std;
int count=0,top=0;
char tempstr[50][50],a_ll_combinations[1000][15];
int checkEquality(char variable,char checking_string[50],int end,int i);
void permutation(int n,char string[50]);
int main()
{ ::count=0;
char string[50];
cout<<"Enter the string\n";
cin>>string;
cout<<"\n\nHere is all the possible combination of string "< int n=strlen(string); //calculating the string length
if (n==1)
{
cout<<"The only possible combination is \n";
cout< }
permutation(n,string); //calling the function
int i=1;
for (int i=0;i {
cout< }
cout<<"The number of combinations printed is "<<::count<<"\n";
return 0;
}
void permutation(int n,char string[50])
{
if(n==2)
{
//setting the base case as a small string of size 2
strcpy(a_ll_combinations[::top++],string); //so in the base case two strings are generated
if (string[1]==string[0])
{
::count++;
return;
}
char temp=string[0];
string[0]=string[1];
string[1]=temp;
strcpy(a_ll_combinations[::top++],string);
::count+=2;
return;
}
for (int i=0;i {
if (i==0)
{
strcpy(tempstr[n],string); //this is for saving the string that is passed for an element being at the last position recursively,
} //so that in the next state alteration can be done with the previous one
strcpy(string,tempstr[n]);
if(checkEquality(string[i],string,n,i)==1) //here it checks whether the character which is going to be swapped was already in the nth position
continue;
char temp=string[n-1]; //here, changing the last element in each iteration
string[n-1]=string[i];
string[i]=temp;
permutation(n-1,string); //calling for the permutation of n-1 letters -recursion

}
}
int checkEquality(char variable,char checking_string[50],int n,int end) //this is the definition for the checking for duplication
{
for (int i=0;i {
if (checking_string[i]==variable)
return 1;
}
return 0;
}

Sunday, November 16, 2008

busy life.........

its been long since i posted my last post.
life here in nitc is a little busy
even if u are not doing anything u wont know how time passes
it goes unnoticed
after tathva, major work got over ,since then we were left to us
calls from the seniors got less but not for sticking posters for which i was their favourite .
in the next weekend i went home, it was after two months since my last visit to my home ,it was a wonderful moment for me the stay lasted only for two days
then back at nitc
i thought of studying everything from scratch
since then i reduced my extra carricular activites
we had to complete certain assignments
it was in pd that we got four assignments (programming ) each of them with seperate paths
the tuffest one was the tower of hanoi problem
i had the algo with me , it was then all about implementing it
day and night i only had this in mind ,surfing from one error to other and atlast i could make it working
to say frankly i was trying to crack it ever since this semester started but the only thing is that i dint put a lot of work in it ,since it was something like imposed on us through assignment ,i had to
i am giving my code for it in the next post
currently i am trying to remove the second recursive call and change it to an iterative one ,another big task for me
i am currently getting no idea about it ,but somehow i will crack it ,deadline is three days it seems as our exams are starting next week

Friday, October 24, 2008

TATHVA IN ITS FULL THROTTLE

After days and months of waiting TATHVA has started.
its the realization of hundreds of people working together for more than three months.
The preparations had begun way back in may .
After deciding the problem statements then the question was about how to carry out everything.
But with the immense support from the fourth years and the commitment from the second and first years it was all easy.

This year the participation has almost doubled.Even though the unexpected rain is a little problem people find their way under the umbrella making sure that they are reaching their event spot at the right time.

I was assigned to work with the registration committee.
Most important section of any event.
We were always busy with the registration with participants coming from various parts of the country around the clock.
We have to add the information about them in the database and then have to issue their id card with which they can participate in any of the events conducted.
And the work is now going smoothly..............................