YOU ARE USER NUMBER:

YOU ARE USER NUMBER:

Thursday, July 24, 2008

APJ Abdul Kalam:"A Leader Should Know How to Manage Failure"

One of the most vibrant interviews and the most enthralling!!! Kalam sir is Awesome!!! A long road from the past to the future, the former president is undoubtedly one of the brightest minds of the country!!! Here is the link!!!

http://youtube.com/watch?v=laGZaS4sdeU

ALWAYS GIVE UR 100 %

Always Give your 100 %
An elderly carpenter was ready to retire. He told his employer-contractor of his plans to leave the house building business and live a more leisurely life with his wife enjoying his extended family. He would miss the paycheck, but he needed to retire. He would get by.The contractor was sorry to see his good worker go and asked if he could build just one more house as a personal favor. The carpenter said yes, but in time it was easy to see that his heart was not in his work. He resorted to shoddy workmanship and used inferior materials. It was an unfortunate way to end a dedicated career.When the carpenter finished his work, the employer came to inspect the house. He handed the front door key to the carpenter. "This is your house," he said, "my gift to you." The carpenter was shocked! What a shame! If he had only known he was building his own house, he would have done it all so differently.So it is with us. We build our lives a day at a time, often putting less than our best into the building. Then, with a shock, we realize we have to live in the house we have built. If we could do it over, we'd do it much differently. But we cannot go back. You are the carpenter. Each day you hammer a nail, place a board, erect a wall. "Life is a do-it-yourself project," someone has said. Your attitude and the choices you make today build the "house" you live in tomorrow

GAURAV SHRIMALI (ECE BITM SANTINIKETAN)

E-BOOKS OF LIFE REFORMING STORIES

Here are 4 books on stories which can reform our lives. Just click on the links:

1) TANTRATOTEM: http://www.uploading.com/files/F9JURWS6/tantratotem_sr.pdf.html
2) THE MONK WHO SOLD HIS FERRARI:

http://www.uploading.com/files/JK568HTH/The_Monk_Who_Sold_His_Ferrari.pdf.html
3) RICH DAD POOR DAD:
http://www.uploading.com/files/0DR211OB/Rich_Dad_Poor_Dad.PDF.html
4) YOU CAN WIN:
http://www.uploading.com/files/IEW6SDIN/YOU_CAN_WIN_-_SHIV_KHERA.zip.html

POSTED BY: GAURAV SHRIMALI
STREAM--ECE
COLLEGE-BITM SANTINIKETAN


Saturday, July 19, 2008

Presidential form of Goverment in India?

The idea of a change in system of governance may seem preposterous but I have given it a serious thought before writing this blog. All the problems that the present government is facing are due to our system. The days of single party majority are gone and chances of it coming back, in the near future is remote. In the last two decades we have formed innumerable rag tag coalitions, which have hurt the Indian Democracy badly. Today the governments in power need to depend and give in to the whims and fancies of some king makers. The governments concentrate more on keeping themselves in power rather than on good governance. That’s the basic problem that we face today. We need to revamp this system in to more efficient one and for that wee need a Presidential form of government.

Two great and efficient democracies follow two kinds of Presidential form of governments, Russia and United States of America. I will prefer the latter but the Russian one will suite us better.

The Russian system is such that various steps are completed before a President is elected. First a lot of candidates throw their name into the gauntlet and elections take place. The two candidates that secure the highest number votes then contest the election.

How will it work in the Indian system? The so called ‘netas’ will file their nomination papers with at least ten parliamentarians forwarding it. Due to the fragmented nature of our country no one will secure fifty one percent votes in the first stage. So the two best candidates move on to the second round. The losers will then throw their weight on the candidate of their choice. Finally we will have our own President.

Does such a system not automatically favour candidates from the more populous states? one may ask. Is there any chance that someone from Manipur or Lakshadweep will ever win the votes of a majority of the country's voters? Could a Muslim or a Dalit be elected president? These are fair questions, but the answer surely is that their chances would be no better, and no worse, than they are under our present system. Seven of India's first 11 prime ministers, after all, came from Uttar Pradesh, which surely has no monopoly on political wisdom; perhaps a similar proportion of our directly-elected presidents will be UPites as well. How does it matter? Most democratic systems tend to favour majorities; it is no accident that every president of the United States has been a white male Christian (and all bar one a Protestant), or that only one Welshman has been prime minister of Great Britain. But i dare say that the need to appeal to the rest of the country will oblige a would-be president from UP to reach across the boundaries of region, language, caste and religion, whereas in our present parliamentary system a politician elected in his constituency on the basis of precisely such parochial appeals can jockey his way to the prime ministership. A directly-elected president will, by definition, have to be far more of a national figure than a prime minister who owes his position to a handful of political king-makers in a coalition card-deal. I would also borrow from the US the idea of an electoral college, to ensure that our less populous states are not ignored by the candidates: the winner would also be required to carry a majority of states, so that crushing numbers in the cow belt alone would not be enough.

Why should we underestimate the wisdom of the Indian Electorate? Jamaica with a 97% black population elected a white president. In Argentina a country that is proud of its European origins twice elected, son of Syrian immigrants, Carlos Saul Menem. Peru elected a Japanese origin President in Alberto Fujimori. Indeed, the voters of Guyana, a country that is 50% Indian and 47% black, elected as president a white American Jewish woman, who happened to be the widow of the nationalist hero Cheddi Jagan. A story with a certain ring of plausibility in India.

The adoption of a presidential system will send our politicians scurrying back to the drawing boards. Politicians of all faiths across India have sought to mobilise voters by appealing to narrow identities; by seeking votes in the name of religion, caste and region, they have urged voters to define themselves on these lines. Under our parliamentary system, we are more and more defined by our narrow particulars, and it has become more important to be a Muslim, a Bodo or a Yadav than to be an Indian. Our politics have created a discourse in which the clamour goes up for Assam for the Assamese, Jharkhand for the Jharkhandis, Maharashtra for the Maharashtrians. A presidential system will oblige candidates to renew the demand for an India for the Indians.

Any politician with aspirations to rule India as president will have to win the support of people beyond his home turf; he will have to reach out to other groups, other interests, other minorities. In that may lie the presidential system's ultimate vindication

BY KRISHNENDU SANYAL, TECHNO INDIA, SALT LAKE, 2ND YEAR BCA

ABC OF OUR LIVES!!!

It's really cool. Just click the below mentioned link:

http://www.turboupload.com/download/EVZpYrVYz769/abcd.pdf

EBOOK ON C

To download click the below mentioned link:
http://www.turboupload.com/download/pVUy18Nhn5fY/LetUsC-YashwantKanetkar.pdf

JAVA BASICS!!!

JAVA BASICS!!!

I am giving you two programs and then explaining it, pls don't ignore the remarks as these are part of explanations!!!

EXAMPLE1

import java.io.*; // needed for BufferedReader, InputStreamReader, etc.
/** A Java program that demonstrates console based input and output. */
public class inputcode
{
// Create a single shared BufferedReader for keyboard input
private static BufferedReader stdin =
new BufferedReader( new InputStreamReader( System.in ) );

// Program execution starts here
public static void main ( String [] args ) throws IOException
{
// Prompt the user
System.out.print( "Type some data for the program: " );


// Read a line of text from the user.
String input = stdin.readLine();

// Display the input back to the user.
System.out.println( "input = " + input );

} // end main method

} // end MyConsoleIO class



The first line of the above program calls the method(function) java.io.* which contains the operations required for input and output operations. Next we have
public class inputcode. The work of public here is to make this class accessible to the other classes though in this case there is only one class. public class inputcode also defines the anly class in this program that is input code. The line after the curly braces that is public static void main ( String [] args ) throws IOException is explained in parts!

public: The keyword public is an access specifier that declares the main method( function ) as unprotected and therefore making it accessible to all the other classes.

static: Next appears the keyword static, which declares this method as one that belongs to the entire class and not a part of any object of the class.

void: The type modifier void states that the main method does not return any values.

throws IOException:
You will also have to inform the compiler that you are calling a method that may cause a checked exception to occur. Add the phrase throws IOException clause to the header of any method that calls stdin.readLine(). You will also need to add this clause to any method that calls your method that calls readLine.

Next come System.out.print(); which is the output code required in java. String input = stdin.readLine() reads a string from the keyboard. This is one of the simplest programs in Java!!!


EXAMPLE 2

import java.io.*;

public class sum
{

private static BufferedReader stdin =
new BufferedReader( new InputStreamReader( System.in ) );

public static void main ( String [] args ) throws IOException
{
int a,b,sum;
String c,d;// THIS IS DONE TO CREATE 2 STRING VARIABLES WHICH ARE ACTUALLY NUMBERS AND LATER WE WILL CONVERT THE STRING CONSTANTS TO INTEGERS CONSTANTS
System.out.print( "Enter the values of two numbers: " );


c= stdin.readLine();
d = stdin.readLine();
a = Integer.parseInt( c );// converts a String into an int value
b = Integer.parseInt( d );// converts a String into an int value
sum=a+b;


System.out.println( "Sum = " + sum );

}
}



The main difference of example 1 with example 2 is that in example 1 we had required some string to be displayed after acquiring the string from the user but here the problem is that we require two numbers from the user. So what we do here is simply define 2 String variables and assign them values from the user. Note that these two values acquired are still after all strings and can't be used for summation or for that matter any mathematical operations. So we require to convert the string constants to integer constants and so we use Integer.parseInt() which converts string to integer!!!

CLASS, OBJECTS, CONSTRUCTORS!!!

Again we start the discussion with a program!!!

class rectangle
{
int length,breadth;
void value(int x, int y)
{
length=x;
breadth=y;
}
int area()
{
int abc=length*breadth;
return(abc);
}
}

class rectarea
{
public static void main(String args[])
{
int area1;
int area2;
rectangle rect1=new rectangle();
rectangle rect2=new rectangle();
rect1.length=15;
rect1.breadth=10;
rect2.value(20,12);
area1=rect1.length*rect1.breadth;
area2=rect2.area();
System.out.println("Area1= "+ area1);
System.out.println("Area2= "+ area2);
}
}

Here we have defined 2 classes and have tried to show the how the two are related to one another. We have started with the class rectangle which is handling two data variables length and breadth and also 2 methods( functions ). The first function value is of type void and so as usual does not return any values!!! It simply assigns to the instance variables length and breadth.Note that the first function has 2 parameters. The second function area is of type int and so it returns a value of type int!!! It has no parameters. It computes the area by multiplying length and breadth and then returns this value i.e. the area which is of type integer. Then the next class rectarea starts which is the main class in this program. Firstly we have defined two instance variables area1 and area2 both of which are of integer types!!! Now the real thing starts. We then define two objects rect1 and rect2 of the rectangle class type. We have then described two methods of assigning values to the instance variable of class rectangle. One is by the direct use of the dot operator and the second one is by the direct use of methods of functions!!!

We now start our discussion on constructors and as always we start by writing a program :

class rectangle

{

int length;

int width;

rectangle(int x, int y) // constructor initialized….note that there is no return type!!!

{

length=x;

width=y;

}

int area()

{

int a=length*width;

return(a);

}

}

class rect

{

public static void main(String args[])

{

int AREA;

rectangle A1 = new rectangle(15,10);

AREA=A1.area();

System.out.println("AREA="+AREA);

}

}

The above program makes use of a constructor….from the above program we can see the basic difference from a normal method…..as we had seen in the previous example. The only significant difference is that there is no return type not even void. This is because a constructor returns the instances of the entire class itself!!! In the main function there are differences. We notice that we can assign values to the instance variables directly during the creation of objects itself. It makes the program a lot less complicated!!! We now only need to access one method rather than 2 as we had to do in the previous example!!!





BY AGNIT CHATTERJEE, CSE, GURU NANAK INSTITUTE OF TECHNOLOGY, BATCH:2008-2012