Every single day I wake up early and stare at the news only to find more murders, rapes, accidents OR celebrity news. Do you think people really care to see what clothes Abhishek Bachan wore for his birthday or why Deepika turned down Rs. 4 crore, in the front page? Ofcourse, a subset, a very small subset does take immense interest in such gossips and that's precisely why supplementaries are printed. If not this, the editors showcase murders, criminals and other thugs who would have committed some crime in a remote village and are definitely not a threat to the metro society.
Hence, I keep asking this question to myself, why can't they focus on some real news, something that would actually benefit others on reading. If you do not understand what am trying to imply, do go and read 'The New York Times', 'Huffington Post' etc. These papers focus on the most important issues currently evident in the world. Even during the massive calamity in Japan, I saw trash articles of celebrities in the front page.
Also, do you think there are no crimes in other parts of the world? I would say Los Angeles, California has a higher crime rate than New Delhi but, the media does not focus on it unless it is really important or a threat. I personally feel that it is not required for a person to know about every petty crime and feel scared to step out of the house. I am not implying that total darkness is bliss, but really necessary issues should only be highlighted.
Most of you might disagree with my views but I would definitely recommend a reading to the above listed news papers before criticism.
Info Center
Wednesday, April 6, 2011
Monday, October 18, 2010
My first animation project
Doing higher studies in computer science can sometimes be real fun and also at times be a real pain in the butt. Computer animation sounded like an interesting course to me and I decided to give it a shot. It was about coding in vc++ using openGL libraries. The good side of the course: Got to learn a lot of things, fun times :)
Bad side: The projects at times take a toll on you.
Our first project was to read a .skel file which contains the coordinates of a certain figure and to render that figure.
You can find the complete question here.
Well, to make things a little simple for some of you guys who might consider taking this course I have placed a sample code snippet below. (P.S: Do not try re-using the same code as it will not work ;) )
void Generate_Tree()
{
char *string213;
int length = 0;
char temp[500], temp1[500], temp2[500];
int j=0, counter =0, counter_temp = 0;
ifstream pointer;
fflush(stdin);
pointer.open("dragon.skel");
if(pointer == NULL)
{
cout<<"File not there\n";
cout<<"Press any key to exit: ";
getch();
exit(1);
}
root->Left = NULL;
root->Right = NULL;
root->Center = NULL;
node = root;
do
{
pointer.getline(temp, MaxLine);
//cout<<
length = strlen(temp);
//cout<<
if(temp[length-2] == '{')
{
// cout<<"After entering the loop: "<
Tree_Node *child = new Tree_Node;
child->nodeNum = number+1;
child->pose[0] = 0;
child->pose[1] = 0;
child->pose[2] = 0;
memset(&child->rotateX,0,sizeof(double)*2);
memset(&child->rotateY,0,sizeof(double)*2);
memset(&child->rotateZ,0,sizeof(double)*2);
if(node->Left == NULL)
{
// cout << "left created"<
node->Left = child;
}
else if(node->Center == NULL)
{
//cout << "center created"<
node->Center = child;
}
else
{
//cout << "right created"<
node->Right = child;
}
child->Left = NULL;
child->Right = NULL;
child->Center = NULL;
child->Prev = node;
node = child;
counter++;
}
else if(temp[length-2] == '}')
{
// cout << "go back " <
node = node->Prev;
counter--;
}
else if(temp[length-2] == ' ')
{
continue;
}
else
{
j = 0;
for(int r = 0;r
{
if(temp[r] != 9)
{
temp2[j] = temp[r];
j++;
}
}
temp2[j] = '\0';
{
string213 = strtok(temp2," ");
//cout<<<"\n";
strcpy(temp1,string213);
if(strcmp(temp1,"offset") == 0)
{
node->offset[0] = atof(strtok(NULL," "));
node->offset[1] = atof(strtok(NULL," "));
node->offset[2] = atof(strtok(NULL," "));
cout<offset[0]<offset[1]<offset[2]<<"\n";
}
else if(strcmp(string213,"boxmin") == 0)
{
node->boxmin[0] = atof(strtok(NULL," "));
node->boxmin[1] = atof(strtok(NULL," "));
node->boxmin[2] = atof(strtok(NULL," "));
//cout<boxmin[0]<<" "<boxmin[1]<<" "<boxmin[2]<<"\n";
}
else if(strcmp(string213,"boxmax") == 0)
{
node->boxmax[0] = atof(strtok(NULL," "));
node->boxmax[1] = atof(strtok(NULL," "));
node->boxmax[2] = atof(strtok(NULL," "));
//cout<boxmax[0]<boxmax[1]<boxmax[2]<<"\n";
}
else if(strcmp(string213,"rotxlimit") == 0)
{
node->rotateX[0] = atof(strtok(NULL," "));
node->rotateX[1] = atof(strtok(NULL," "));
//cout<rotateX[0]<rotateX[1]<<"\n";
}
else if(strcmp(string213,"rotylimit") == 0)
{
node->rotateY[0] = atof(strtok(NULL," "));
node->rotateY[1] = atof(strtok(NULL," "));
}
else if(strcmp(string213,"rotzlimit") == 0)
{
node->rotateZ[0] = atof(strtok(NULL," "));
node->rotateZ[1] = atof(strtok(NULL," "));
}
else if(strcmp(string213,"pose") == 0)
{
node->pose[0] = atof(strtok(NULL," "));
node->pose[1] = atof(strtok(NULL," "));
node->pose[2] = atof(strtok(NULL," "));
}
}
}
//cout<<
}while(counter != 0);
pointer.close();
}
void Read_Tree()
{
int tempNO=0;
int Copy_Flag = 0;
int Visited = 0;
/*root->Left->FlagL = 0;
root->Left->FlagC = 0;
root->Left->FlagR = 0;*/
node = root->Left;
//cout<<"Enter Read Tree"<<"\n";
Queue[front] = node;
rear++;
do
{
node=Queue[front];
//cout<offset[0]<<" "<offset[1]<<" "<offset[2]<
glMatrixMode( GL_MODELVIEW );
glPushMatrix();
glLoadIdentity();
glTranslatef(node->offset[0], node->offset[1], node->offset[2]);
if(node->pose[0] <>rotateX[0])
node->pose[0] = node->rotateX[0];
if(node->pose[0] > node->rotateX[1])
node->pose[0] = node->rotateX[1];
if(node->pose[1] <>rotateY[0])
node->pose[1] = node->rotateY[0];
if(node->pose[1] > node->rotateY[1])
node->pose[1] = node->rotateY[1];
if(node->pose[2] <>rotateZ[0])
node->pose[2] = node->rotateZ[0];
if(node->pose[2] > node->rotateZ[1])
node->pose[2] = node->rotateZ[1];
//cout<pose[0]<<" "<pose[1]<<" "<pose[2]<
glRotatef(57.3 * node->pose[0], 1.0, 0.0, 0.0);
glRotatef(57.3 * node->pose[1], 0.0, 1.0, 0.0);
glRotatef(57.3 * node->pose[2], 0.0, 0.0, 1.0);
glGetDoublev(GL_MODELVIEW_MATRIX,node->local);
/*cout<<"Current Local";
for(int d = 0;d<=15;d++)
{
cout<local[d]<<" ";
}*/
//cout<
if(node->Prev == root)
{
//cout<<"I am root \n";
glMatrixMode(GL_MODELVIEW );
glPushMatrix();
glLoadIdentity();
glGetDoublev(GL_MODELVIEW_MATRIX,node->world);
}
else
{
//cout<<"I am NOT root \n";
getWorldMatrix(node->Prev->world, node->local, node->world);
/*cout<<"Current World";
for(int d = 1;d<=16;d++)
{
cout<world[d]<<" ";
}*/
}
if(node->Left != NULL)
{
//cout<<"IF condition1"<
tempNO = node->Left->nodeNum;
Insert_Queue(node->Left);
}
if(node->Center != NULL)
{
//cout<<"IF condition2"<
tempNO = node->Center->nodeNum;
Insert_Queue(node->Center);
}
if(node->Right != NULL)
{
//cout<<"IF condition3"<
tempNO = node->Right->nodeNum;
Insert_Queue(node->Right);
}
front++;
//cout<<"Front: "<<<">
}while(front != rear);
}
As you can see I was dumb enough not to use the generic creation of a tree which made my work hell. Anyways, good luck!!
Will be happy to answer queries.
Sunday, October 10, 2010
Back from the grave!!
Hey guys
I know it has been a really long time and I apologize for being dead for the past couple of years. My life was one of the most happening this ever in these past few years. Now that I come to think of it, I regret that time flew and am never going to get those days back again but on the brighter side, there still are a plethora of wonderful events that I would have to face in the future and am very eagerly looking forward for those.
This is just a lame post so just excuse it. I am planing to update this site with all sorts of assorted fun stuff I find. This would be one of those blogs where in you do not look for a particular topic, but the topic looks for you (:P)
Anyways, I would end this by quoting BATMAN:
"Am Back" :P :D
Saturday, September 20, 2008
www.gnagri.net
H guys....this is a new domain i've started on similar lines to this blog..check this site..it would be if u guys kindly aknowledge us with ur feedback for us to improve our site.......i promise this site is a much better one ..u ppl aint gonna be deprived of anything............
Thursday, August 14, 2008
Avax Sphere is now Avaxhome
I had earlier written about the death of one avaxsphere, but I am now gald to say that I was mistaken. They, for some reason, have simply changed the URL to their brilliant web portal to avaxhome. Check it out!! Its the very same avax that we all thought was gone.
It also has come to my knowledge that they have updated their database and now have loads of more excellent softwares and e-books for us.
Cheers to avax!!!
P.S For more information on hacks, cracks and serials, click here
It also has come to my knowledge that they have updated their database and now have loads of more excellent softwares and e-books for us.
Cheers to avax!!!
P.S For more information on hacks, cracks and serials, click here
Sunday, August 10, 2008
Best torrents search engines
I know that in a lot of places torrents are illegal, these are for the rest of the world who live on torrents. Here are some of the websites where you can get yourself amazing torrents:
1. Mininova: Most of you might already be knowing about this one. Its very popular for Audio and Video search. But if you want to download any software or book you might not want to look here cause that collection is not great in here. This place is particularly good for subtitles for movies, cause before downloading a torrent of a movie it gives an option for downloading the subtitles for the same movie.
2. IsoHunt: Yet again a very very popular torrent search engine. Excellent for Movies, Songs and also softwares. Yes, here you will find a wide range of amazing stuff if you do the searching properly.
3. Piratebay: Again amazingly good. Has pretty much of everything. The only drawback here is the adult advertisements that go on, on the side. Some people are not comfortable with those.
4. Torrentz: Thsi place is like a google search engine for torrent sites. Don't get me? Its like this, if you don't know where to find your download torrent, go to this place and it will point out all the torrent websites which have the download you are looking for. Pretty neat stuff it does.
5. Axxo: He has earned name and fame over the world for his excellent rips of movies. I too agree with the world about his print qualities, thankyou for everything dude!! And if you don't know about this one, please do check it out. He gives the most amazing, brillent quality movies. One thing ill tell about him is that, you can always trust his prints.
6. btmon: Calls itself the worlds biggest torrent database. I do not completely disagree with it, but being frank, sometimes I don't get what I need in here.
7. Torrentvally: I don't have much to say about this cause I never use this one. Its not because its no good or anything, just that I find what I need generally in '1' or '2'.
There are some more like torrent reactor, torrent portal, bit dig etc. but I never got the chance to try them out.
1. Mininova: Most of you might already be knowing about this one. Its very popular for Audio and Video search. But if you want to download any software or book you might not want to look here cause that collection is not great in here. This place is particularly good for subtitles for movies, cause before downloading a torrent of a movie it gives an option for downloading the subtitles for the same movie.
2. IsoHunt: Yet again a very very popular torrent search engine. Excellent for Movies, Songs and also softwares. Yes, here you will find a wide range of amazing stuff if you do the searching properly.
3. Piratebay: Again amazingly good. Has pretty much of everything. The only drawback here is the adult advertisements that go on, on the side. Some people are not comfortable with those.
4. Torrentz: Thsi place is like a google search engine for torrent sites. Don't get me? Its like this, if you don't know where to find your download torrent, go to this place and it will point out all the torrent websites which have the download you are looking for. Pretty neat stuff it does.
5. Axxo: He has earned name and fame over the world for his excellent rips of movies. I too agree with the world about his print qualities, thankyou for everything dude!! And if you don't know about this one, please do check it out. He gives the most amazing, brillent quality movies. One thing ill tell about him is that, you can always trust his prints.
6. btmon: Calls itself the worlds biggest torrent database. I do not completely disagree with it, but being frank, sometimes I don't get what I need in here.
7. Torrentvally: I don't have much to say about this cause I never use this one. Its not because its no good or anything, just that I find what I need generally in '1' or '2'.
There are some more like torrent reactor, torrent portal, bit dig etc. but I never got the chance to try them out.
Tuesday, August 5, 2008
Zenni Optics

Worried about your eyes and confounded about what glasses to buy? Or are you looking for exquisite optical glasses online. Well here's your answer, for there is none better than zenni optical. You might not be convinced by just reading this but you have got to know that Zenni Optical has a huge selection of frames and lenses and you can take a look at the Incredible Stylish New Frames From Zenni. Zenni optics glory and fame has increased in a large amount and has gained so much trust and glory that Zenni Optical was on FOX news recently. And if you are worried about the prices, think again because Zenni Optical $ 8 Rx Eyeglasses are one of the most economical ones you can ever find.
Subscribe to:
Posts (Atom)