Category Archives: programming

Murphy Laws

I think everybody knows about murphy’s laws … if you dont follow this link .

Here are some of my murphy’s laws , which i discovered when i was working on my honours Project:-

1) The technology which you need to learn for your project has the most confusing documentation , the least no. of functionalities which you will be needing , the smallest mailing list and has the least  tutorials on the internet .

2) No LUG mailing list in the whole-wide universe has any idea about the funny compilation errors which you are getting while installing the software .

3) The dependencies for your technology are so many that even “yum” gives up .

4) The most productive time starts just 4 hrs before meeting your professor :D .

5) There is no such thing as project completion , its just a plain old myth started by some mongolians in the sahara desert . :P

Thats it guys …. add some of your very own as a comment :D

Song of the day : Yngwie Malmsteen – Black Star

PS: My daily dose is still on the run :D

PS1: This is post number 92 .

PS2: 8 more to go yippeee .. lets see if i can write daily

Some Tips for programming

I was doing some programin durin holidays … i have found the following tips on programming maybe it be helpful for you ..

This is my first post in Programming section so i will be adding more tips later in this psot only ..

for this time i am posting two hints .. will post other later

1.Suppose you are in a size contest and you want to take a double array as input ..this one of the minimum wayz you can write the program :-

for ( int i=0 ; i < n*n ; i++) cin>>a[i/n][i%n];

2.Suppose you are given a problem in which you are taking hexa-decimal numbers as input ..and then you need to convert it into decimal number … this is one of the way you can do it :-

scanf(“%X”,&num);

the complier will covert the Hexa number to decimal for you … :D