Thursday, 11 October 2012

Disable EditPlus backup .bak files

  • Go to Tools -> Preferences -> ‘Files’ category and turn off  ‘Create backup file when saving’ option. You can also opt to save all the back up files in a chosen destination if you wish to, by clicking on ‘backup options’.

Monday, 8 October 2012

Eclipse does not highlight matching words

Window -> Preferences -> Java -> Editor -> Mark Occurrences and select the check box  (  Mark occurrences of the selected element in the current file)  --> apply -->o k

Thursday, 23 August 2012

Idemoptent means in Java

idempotent means u can do the same thing again and again
without any side effect
being idempotent is good
now look an example
take a shopping cart example
suppose u want to buy a book from amzon.com
u put that book in shopping cart electronically
and u have given ur bank account info earlier.
on checkout server debits from ur account
and servlet will update the database.
now think suddenly ur computer hang for 1 min
and after 1 min u didnt find any acknowledgment page
than u will click again .to
confirm ur request of book.
and wicked program again debit from ur account,
so this is the side effect.???
u want ur single request of book should
be taken seprately
get is idempotent
and post is not idempotent
hope it helps