double precision rounding

Uses my_double_greater_check from http://rutmandal.info/double-precision-comparison-in-cc/ double my_double_round( double val, int multiplier ) {          double val_adj = val *…

double precision comparision

Checking double precision value for limits is tricky. Say, double x = 1.0; if ( x == 1.0 ) do_something();…

Memory thrashing

Memory Thrashing compiled by Chirag Patel December 27, 2008 (Ref: Embedded Systems Design June 2008) Memory threshing is a typical…

VIM configuration

Custom syntax with vim Chirag Patel August 10, 2015 On Linux, install vim if you do not have. On Windows,…

detached process

If you want to run an application from ssh even if you exit ssh session, do the following: # nohup…

bash prompt

# Put a timestame in front of the prompt in the form: # Oct24 12:28[user@host MY_PWD]$ PROMPT_COMMAND=echo -ne $(date +%-b%-e…

મનમોહન – બંસીધર પટેલ

મનમોહન – બંસીધર પટેલ સમુદ્રમંથન થકી મળ્યું વિષ અને અમૃત ભેગું; દેવો દૈત્ય લડ્યાં માંહે , શંકર નિલકંઠ વિષહરે પીધું…