Friday, November 26, 2010

ACM programming problems

ACM programming problems archive:

http://www.ntnu.edu.tw/acm/ProblemSetArchive.html

Overflow in Binary search

Overflow in Binary search:
http://googleresearch.blogspot.com/2006/06/extra-extra-read-all-about-it-nearly.html

Apparently this bug was there in Java libraries till JDK 6.0

Friday, November 5, 2010

How to increase sudo timeout in linux

If you are tired of typing sudo too many times:
http://www.go2linux.org/disable-cache-password-sudo

Same procedure for disabling can be used for increasing as well. Just add a line to /etc/sudoers file through visudo

Defaults:userName timestamp_timeout = 20