From: Erik Lindahl Date: Sun, 8 Dec 2013 22:20:23 +0000 (+0100) Subject: Added a bunch of quotes from the 2013 Nobel lectures X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=commitdiff_plain;h=3279c5f927eac53c82367952e3a93dd65b8794b6;p=alexxy%2Fgromacs.git Added a bunch of quotes from the 2013 Nobel lectures And our string-reading routines have been updated to use our standard length STRLEN, which is currently 1024 chars. Change-Id: Id3e2c07774ee98cf6d4e58534c5f87821516d5a8 --- diff --git a/share/top/gurgle.dat b/share/top/gurgle.dat index abdbebabb4..f84556a049 100644 --- a/share/top/gurgle.dat +++ b/share/top/gurgle.dat @@ -1,4 +1,4 @@ -383 +388 If You Want Something Done You Have to Do It Yourself_(Highlander II) I Live the Life They Wish They Did_(Tricky) Jesus Built My Hotrod_(Ministry) @@ -381,3 +381,9 @@ How will I know it's working right?_(MGMT) There was no preconception on what to do_(Daft Punk) It takes money to make money, they say_(Lou Reed) The future always gets twisted and turned_(Lisa o Piu) +Do not go where the path may lead, go instead where there is no path and leave a trail_(Ralph Waldo Emerson) +I went to Venice and looked at the paintings of Canaletto to understand how he presented perspective, and it turned out it was an exponential law. If I had published this, maybe there would be a Karplus law in art theory as well as the Karplus equation in NMR_(Martin Karplus, Nobel lecture 2013) +Theoretical chemistry has of course always been important and useful ... at least to theoretical chemists_(Sven Lidin) +I do not believe continuum electrostatics_(Arieh Warshel, Nobel lecture 2013) +During my undergraduate work I concluded that electrostatics is unlikely to be important [for enzymes]_(Arieh Warshel, Nobel lecture 2013) +Martin [Karplus] had a green laser, Arieh [Warshel] had a red laser, I have a *blue* laser_(Michael Levitt, Nobel lecture 2013) diff --git a/src/gromacs/gmxlib/strdb.c b/src/gromacs/gmxlib/strdb.c index 54d018f4b1..da16e9aada 100644 --- a/src/gromacs/gmxlib/strdb.c +++ b/src/gromacs/gmxlib/strdb.c @@ -167,11 +167,11 @@ int search_str(int nstr, char **str, char *key) int fget_lines(FILE *in, char ***strings) { char **ptr; - char buf[256]; + char buf[STRLEN]; int i, nstr; char *pret; - pret = fgets(buf, 255, in); + pret = fgets(buf, STRLEN-1, in); if (pret == NULL || sscanf(buf, "%d", &nstr) != 1) { gmx_warning("File is empty"); @@ -182,7 +182,7 @@ int fget_lines(FILE *in, char ***strings) snew(ptr, nstr); for (i = 0; (i < nstr); i++) { - fgets2(buf, 255, in); + fgets2(buf, STRLEN-1, in); ptr[i] = gmx_strdup(buf); }