22 August, 2009

Ganpati Bappa

The 10 day Ganesh festival will be arriving tommorow for which I was
eagerly waiting. Preparations have begun in my locality as well my
house. Lord Ganesh is the most popular god in the hindu mythology and
is the God of knowledge and wisdom. Almost everybody in India know
that this festival was initiated by Lokmanya Tilak to discuss tactics
against the British. These 10 days are full of fun not only Hindus but
also Muslims, Christians, and all other religions as most of them
participate in the programs (This signifies the communal harmony).
But this time we will have to be very careful because of the swine flu
scare. Make sure that you wear a mask or pu on a hankie on your nose
and mouth. Also stay away from people who are coughing and sneezing,
because they may be the carrier of the virus.

I wish all my friends a very very Happy Ganesh Chaturthi.

20 August, 2009

New Address

Today a very good address name for my blog clicked in my brain. Thats why you may be surprised and also may had some trouble reaching here. Previously the address was
http://gauravsgoodblog.blogspot.com (TOO LONG).
The new address is http://goodgaurav.blogspot.com and fortunately that was available.
This is the final address and I am not gonna change this.

19 August, 2009

Good resources

The other day when I was browsing the net, I found a very good tutorial for Windows Programming using C programming language. Everything in this tutorial is explained in a lucid and a simple manner. Its very good for rookie programmers. Moreover its free of cost, we must make use of it.

Here's the link: http://winprog.org/

18 August, 2009

Happy Birthday

Hello Friends,
I am very glad to tell you that my blog has completed ONE year. I have posted Just 15 posts (Very bad figure). Despite completing one year it is yet to gain some popularity. Anyways, at least my blog completed one year and I am now trying my best to make one post every three days so that by next year it will gain some popularity.

Happy Birthday to gauravsgoodblog.blogspot.com
Live long....

16 August, 2009

Text File reader

Program which reads text (*.txt) files.

Source code:

/*Program to read text files*/
/*Author:Gaurav*/

#include
#include

int main ()
{
char c;
char ch;
FILE *fp; /*File pointer*/
char fname[67];
printf ("This reader can read text files (*.txt) files only\n");
while (1) /*So that program continues to run untill terminated by user*/
{
printf ("\n\nEnter the file name (with or without path)\n");
gets (fname); /*Get the file name as a string*/
printf ("\n\n\n");
fp = fopen (fname, "r"); /*Opens the file*/
if (fp == NULL)
{
printf ("\nFile does not exist");
break;
}
while (2) /*Reads characters from the text file*/
{
ch = getc (fp);
if (ch == EOF)
break;
printf ("%c", ch);
}
fclose (fp); /*Closes the file*/
printf ("\n\n\n\nRead another file: Y/N\n\n");
c = getch ();
if ((c=='n')||(c=='N'))
exit (1);
}
getch ();
}

Download link for program

15 August, 2009

Happy Independence Day

Today, the 15th of August is the Independence Day of India. On this day in 1947 our nation got independence from Great Britain. On the stroke of midnight Nehruji said,

"At the stroke of the midnight hour, when the world sleeps, India will awake to life and freedom. A moment comes, which comes but rarely in history, when we step out from the old to the new, when an age ends, and when the soul of a nation, long suppressed, finds utterance..... We end today a period of ill fortune, and India discovers herself again."

Its been 63 years when we got independence.
Saluting all the freedom fighters because of whom we are seeing this day.....

Jai Hind !!!
Bharat Mata Ki Jai...

14 August, 2009

An essay on cow.....

You'll forget your English by the time you finish reading this. This is a true essay written by a Bihari candidate at the UPSC Examinations. The candidate has written an essay on the Indian cow:

Indian Cow

HE IS THE COW. "The cow is a successful animal. Also he is 4 footed, And because he is female, he give milks, [ but will do so when he is got child.] He is same like-God, sacred to Hindus and useful to man. But he has got four legs together. Two are forward and two are afterwards. His whole body can be utilised for use. More so the milk. Milk comes from 4 taps attached to his basement. [ horses dont have any such attachment]

What can it do? Various ghee, butter, cream, curd, why and the condensed milk and so forth. Also he is useful to cobbler, watermans and mankind generally. His motion is slow only because he is of lazy species, Also his other motion.. gober] is much useful to trees, plants as well as for making flat cakes[like Pizza] , in hand and drying in the sun.

Cow is the only animal that extricates his feeding after eating. Then afterwards she chew with his teeth whom are situated in the inside of the mouth. He is incessantly in the meadows in the grass. His only attacking and defending organ is the horns, specially so when he is got child. This is done by knowing his head whereby he causes the weapons to be paralleled to the ground of the earth and instantly proceed with great velocity forwards. He has got tails also, situated in the backyard, but not like similar animals. It has hairs on the other end of the other side. This is done to frighten away the flies which alight on his cohesive body hereupon he gives hit with it.

The palms of his feet are soft unto the touch. So the grasses head is not crushed. At night time have poses by looking down on the ground and he shouts . His eyes and nose are like his other relatives. This is the cow.......

It is informed that the candidate somehow passed the exam, and is now is bihar in somewhere..[sorry somewhere in Bihar]

10 August, 2009

Murphy, you are great

Murphy's Laws for Computers....

If you don't know Murphy's laws, then you are missing humor and charm in your life.
Murphy's law states that "If anything can go wrong, it will definitely go wrong". In a worst way, "Whatever can go wrong will go wrong, and at the worst possible time, in the worst possible way". Murphy's laws signify huge pessimism. Here are some of the Murphy's computer laws. Although there were no computers at Murphy's time, other people created laws based on his laws. Many a times you will find that you have experienced these laws before. But beware of these laws, they are humorous !!!

  • Bugs will appear in one part of a working program when another 'unrelated' part is modified.
  • Program complexity grows until it exceeds the capability of the programmer who must maintain it.
  • Bugs will appear in one part of a working program when another 'unrelated' part is modified.
  • The subtlest bugs cause the greatest damage and problems.
  • A 'debugged' program that crashes will wipe out source files on storage devices when there is the least available backup.
  • A hardware failure will cause system software to crash, and the customer engineer will blame the programmer.
  • Adding manpower to a late software project makes it later.
  • Make it possible for programmers to write programs in English, and you will find that programmers can not write in English.
  • A working program is one that has only unobserved bugs.
  • Any cool program always requires more memory than you have.
  • When you finally buy enough memory, you will not have enough disk space.
  • Disks are always full. It is futile to try to get more disk space. Data expands to fill any void.
  • No matter how good of a deal you get on computer components, the price will always drop immediately after the purchase.
  • The best way to see your boss is to access the Internet. Or..
  • No matter how hard you work, the boss will only appear when you access the Internet.
  • for any given software, the moment you manage to master it, a new version appears.
  • The longer it takes to download a program the more likely it won't run.
  • The only program that runs perfectly every time, is a virus
  • When the Downloading Window says "99%complete", there will be a fluctuation in the voltage and you'll have to start all over again.
  • The troubleshooting guide contains the answer to every problem except yours.
  • Software does not fail when the technician is in the room.

(Source: http://www.murphys-laws.com/)