stopPropagation vs. stopImmediatePropagation

stopPropagation will prevent any parent handlers from being executed stopImmediatePropagation will prevent any parent handlers and also any other handlers from executing Quick example from the jquery documentation: Note that the order of the event binding is important here! Show code snippet

Iterative Fibonacci code in Java?

In fibonacci sequence each item is the sum of the previous two. So, you wrote a recursive algorithm. So, Now you already know fibonacci(1)==1 and fibonacci(0) == 0. So, you can subsequently calculate the other values. Now, And from fibonacci sequence 0,1,1,2,3,5,8,13,21…. we can see that for 5th element the fibonacci sequence returns 5. like … Read more

There can be only one auto column

My MySQL says “Incorrect table definition; there can be only one auto column and it must be defined as a key” So when I added primary key as below it started working:

Can’t open cygwin terminal after installation

Open the Cygwin Terminal properties (by right click on the icon and go to properties) check the path of ‘mintty’. If everything looks right and it is still giving error, change the ‘mintty’ to ‘mintty.exe’. This solved my problem.