#include <stdlib.h>
#include <time.h>
#include <stdio.h>

/*-------------------------------------------------------------------------*/
/*! What we might thank people for. */

static char * afni_helptypes[] = {
   "advice and help"                ,  /* mask =   1 */
   "much encouragement"             ,  /* mask =   2 */
   "many suggestions"               ,  /* mask =   4 */
   "useful feedback"                ,  /* mask =   8 */
   "\"quick\" questions"            ,  /* mask =  16 */
   "inspiration"                    ,  /* mask =  32 */
   "great efforts"                  ,  /* mask =  64 */
   "caloric input"                  ,  /* mask = 128 */
   "awe-inspiring beer consumption" ,  /* mask = 256 */
   "awe-inspiring caffeine binging" ,  /* mask = 512 */
   "you-know-what"                     /* mask =1024 */
} ;

/*-- special codes --*/

#define YOU_KNOW_WHAT 10
#define INSPIRATION    5
#define KLOSEK         0   /* person index below */

#define NUM_HELPTYPES (sizeof(afni_helptypes)/sizeof(char *))

typedef struct { char *name ; int helpmask ; } AFNI_friend ;

/*! Who we might thank. */

static AFNI_friend afni_friends[] = {
  { "MM Klosek"      , ( 1 | 2              | 32                 | 1024 ) } ,
  { "JR Binder"      , ( 1 |     4 | 8 | 16                             ) } ,
  { "EA DeYoe"       , ( 1 |     4 | 8                                  ) } ,
  { "JS Hyde"        , ( 1 | 2              | 32                        ) } ,
  { "SM Rao"         , ( 1 |     4 | 8 | 16           | 128             ) } ,
  { "EA Stein"       , ( 1 | 2 | 4 | 8 | 16           | 128             ) } ,
  { "A Jesmanowicz"  , (             8 |      32                        ) } ,
  { "MS Beauchamp"   , ( 1 | 2 | 4 | 8 | 16 | 32      | 128             ) } ,
  { "JA Bobholz"     , (             8 | 16 | 32      | 128             ) } ,
  { "JA Frost"       , (             8 | 16                             ) } ,
  { "J Kummer"       , (         4 | 8      | 32                        ) } ,
  { "BD Ward"        , (         4 | 8           | 64       | 512       ) } ,
  { "S Marrett"      , (             8 | 16                             ) } ,
  { "T Holroyd"      , (             8 | 16                             ) } ,
  { "KM Donahue"     , (             8 | 16                             ) } ,
  { "PA Bandettini"  , (                 16                 | 512       ) } ,
  { "AS Bloom"       , ( 1 | 2         | 16                             ) } ,
  { "T Ross"         , (         4 | 8 | 16 | 32                        ) } ,
  { "H Garavan"      , (         4 | 8 | 16                 | 256       ) } ,
  { "SJ Li"          , (     2                                          ) } ,
  { "M Huerta"       , (     2                                          ) } ,
  { "ZS Saad"        , (     2 | 4 | 8 | 16      | 64 | 128             ) } ,
  { "K Ropella"      , (     2                                          ) } ,
  { "B Knutson"      , (                 16 |           128             ) } ,
  { "B Biswal"       , (                 16                             ) } ,
  { "RM Birn"        , (             8 | 16 |           128 | 512       ) } ,
  { "V Roopchansingh", (         4 | 8 | 16      | 64                   ) } ,
  { "J Ratke"        , (                 16                             ) } ,
  { "PSF Bellgowan"  , (             8 | 16                             ) } ,
  { "S Durgerian"    , (             8 | 16                             ) } ,
  { "M Belmonte"     , (             8 |           64                   ) } ,
  { "K Bove-Bettis"  , (             8 | 16 |           128             ) } ,
  { "E Kapler"       , (                                128             ) } ,
  { "R Doucette"     , (                           64 | 128             ) } ,
  { "K Kuhns"        , (                           64 | 128             ) } ,
  { "RC Reynolds"    , (                           64 | 128 | 512       ) } ,
  { "PP Christidis"  , (                           64 | 128 | 512       ) } ,
  { "G Fong"         , (                 16 |           128             ) } ,
  { "LR Frank"       , (             8 | 16                             ) } ,
  { "R Desimone"     , (     2                                          ) } ,
  { "L Ungerleider"  , (     2                                          ) } ,
  { "KR Hammett"     , (             8 |           64                   ) } ,
  { "A Clark"        , (                           64 |       512       ) } ,
  { "DS Cohen"       , ( 1 | 2                                          ) } ,
  { "DA Jacobson"    , ( 1 | 2              | 32                        ) } ,
  { "DR Glen"        , (         4 | 8 |           64                   ) } ,
  { "G Chen"         , (         4 | 8 |           64                   ) } ,
  { "M Furey"        , (             8 |                128             ) } ,
  { "J Bodurka"      , (         4 | 8 |                      256       ) } ,
  { "JA Butman"      , (     2 | 4 | 8                                  ) } ,
  { "E Ricciardi"    , (     2 |                              512       ) } ,
  { "N Vanello"      , (     2 |                              512       ) } ,
  { "B Feige"        , ( 1 |         8                                  ) } ,
  { "K Murphy"       , (             8 | 16                 | 256       ) } ,
  { "A Martin"       , (     2                                          ) } ,
  { "M Mur"          , (                                128             ) } ,
  { "J Haxby"        , (     2                                          ) } ,
  { "I Gobbini"      , (     2                                          ) } ,
  { "SM Laconte"     , (                      32 | 64                   ) } ,
  { "L Pezawas"      , (     2 | 4 | 8                                  ) } ,
  { "W Gaggl"        , (         4 | 8                                  ) }
} ;

#define NUM_FRIENDS (sizeof(afni_friends)/sizeof(AFNI_friend))

/*---------------------------------------------------------------------*/
/*! Return a "thanks" string (static storage - don't free it). */

char * AFNI_get_friend(void)
{
   static char buf[256] ; int nf , nh , hmask , qq=0 ;
   nf = lrand48() % NUM_FRIENDS ;
   do{
     nh = lrand48() % NUM_HELPTYPES ; hmask = 1 << nh ; qq++ ;
   } while( qq < 73 && (hmask & afni_friends[nf].helpmask) == 0 ) ;

   if( nh == YOU_KNOW_WHAT && nf != KLOSEK ) nh = INSPIRATION; /* only Gosia */

   sprintf( buf  ,
            "Thanks go to %s for %s" ,
            afni_friends[nf].name , afni_helptypes[nh] ) ;
   return buf ;
}

/*------------------------------------------------------------------------------*/
/* 25 Nov 2002: this date in history! */

#define JAN  1
#define FEB  2
#define MAR  3
#define APR  4
#define MAY  5
#define JUN  6
#define JUL  7
#define AUG  8
#define SEP  9
#define OCT 10
#define NOV 11
#define DEC 12

/*! The struct storing date trivia. */

typedef struct { int mon,day; char *label; } mday ;

/*-----------------------------------------*/
/*! max # trivia elements allowed per date */

#define NTMAX 9

char * AFNI_get_date_trivia(void) ;

static int  ntar=0 ;
static char *tar[NTMAX] ;

int AFNI_get_todays_trivia( char ***triv )
{
   (void)AFNI_get_date_trivia() ;
   if( triv != NULL ) *triv = tar ;
   return ntar ;
}
/*-----------------------------------------*/

/*! The date trivia array. */

static mday holiday[] = {
   {JAN, 1,"Anniversary of Emancipation Proclamation"                } ,  /* WW */
   {JAN, 1,"New Year's Day"                                          } ,
   {JAN, 1,"Lorenzo de Medici's birthday"                            } ,
   {JAN, 1,"Paul Revere's birthday"                                  } ,
   {JAN, 1,"Cameroon Independence Day"                               } ,
   {JAN, 1,"Haiti Independence Day"                                  } ,
   {JAN, 1,"Western Samoa Independence Day"                          } ,
   {JAN, 1,"Sudan Independence Day"                                  } ,
   {JAN, 2,"Isaac Asimov's birthday"                                 } ,
   {JAN, 3,"John Ronald Reuel Tolkien's birthday"                    } ,
   {JAN, 3,"Anniversary of Battle of Princeton"                      } ,
   {JAN, 4,"Burma Independence Day"                                  } ,
   {JAN, 5,"King Juan Carlos I's birthday"                           } ,
   {JAN, 5,"Konrad Adenauer's birthday"                              } ,
   {JAN, 6,"Sherlock Holmes' birthday"                               } ,
   {JAN, 6,"Jeanne d'Arc's birthday"                                 } ,
   {JAN, 7,"Millard Fillmore's birthday"                             } ,
   {JAN, 8,"Stephen Hawking's birthday"                              } ,
   {JAN, 8,"Elvis Presley's birthday"                                } ,
   {JAN, 9,"Richard Nixon's birthday"                                } ,
   {JAN,10,"Donald Knuth's birthday"                                 } ,
   {JAN,11,"Alexander Hamilton's birthday"                           } ,
   {JAN,11,"Chad Independence Day"                                   } ,
   {JAN,13,"Anniversary of Zola's J'Accuse"                          } ,
   {JAN,14,"Albert Schweitzer's birthday"                            } ,
   {JAN,14,"Alfred Tarski's birthday"                                } ,
   {JAN,14,"Anniversary of Simpson's premiere"                       } ,
   {JAN,15,"Martin Luther King Jr's birthday"                        } ,
   {JAN,15,"Chuck Berry's birthday"                                  } ,
   {JAN,16,"David Lloyd George's birthday"                           } ,
   {JAN,16,"Anniversary of Prohibition's start"                      } ,
   {JAN,17,"Benjamin Franklin's birthday"                            } ,
   {JAN,17,"Muhammad Ali's birthday"                                 } ,
   {JAN,17,"James Earl Jones' birthday"                              } ,
   {JAN,17,"Latvia's Zirgu Diena"                                    } ,
   {JAN,18,"Cary Grants' birthday"                                   } ,
   {JAN,18,"Daniel Webster's birthday"                               } ,
   {JAN,19,"Edgar Allen Poe's birthday"                              } ,
   {JAN,20,"Anniversary of end of American Revolution"               } ,
   {JAN,20,"George Burns' birthday"                                  } ,
   {JAN,23,"David Hilbert's birthday"                                } ,
   {JAN,23,"Humphrey Bogart's birthday"                              } ,
   {JAN,24,"Anniversary of beer in cans"                             } ,
   {JAN,24,"Emperor Hadrian's birthday"                              } ,
   {JAN,25,"Somerset Maugham's birthday"                             } ,
   {JAN,26,"Anniversary of First Fleet to Botany Bay"                } ,
   {JAN,27,"Charles Dodgson's (Lewis Carroll) birthday"              } ,
   {JAN,27,"Wolfgang Amadeus Mozart's birthday"                      } ,
   {JAN,28,"Anniversary of Challenger explosion"                     } ,
   {JAN,29,"WC Fields' birthday"                                     } ,
   {JAN,30,"Franklin Delano Roosevelt's birthday"                    } ,
   {JAN,31,"Queen Beatrix's birthday"                                } ,
   {JAN,31,"Jackie Robinson's birthday"                              } ,
   {JAN,31,"Nauru Independence Day"                                  } ,

   {FEB, 1,"Clark Gable's birthday"                                  } , /* WW */
   {FEB, 2,"Charles Maurice de Talleyrand's birthday"                } ,
   {FEB, 2,"Tom Smothers' birthday"                                  } ,
   {FEB, 3,"The Day the Music Died"                                  } ,
   {FEB, 4,"Charles Lindbergh's birthday"                            } ,
   {FEB, 4,"Sri Lanka Independence Day"                              } ,
   {FEB, 4,"Tadeusz Kosciusko's birthday"                            } ,
   {FEB, 4,"Charles Lindbergh's birthday"                            } ,
   {FEB, 5,"Hank Aaron's birthday"                                   } ,
   {FEB, 6,"Babe Ruth's birthday"                                    } ,
   {FEB, 6,"Ronald Reagan's birthday"                                } ,
   {FEB, 6,"New Zealand Day"                                         } ,
   {FEB, 7,"Thomas More's birthday"                                  } ,
   {FEB, 7,"Grenada Independence Day"                                } ,
   {FEB, 7,"Charles Dickens' birthday"                               } ,
   {FEB, 7,"Dmitri Mendeleev's birthday"                             } ,
   {FEB, 8,"William Tecumseh Sherman's birthday"                     } ,
   {FEB, 8,"Jules Verne's birthday"                                  } ,
   {FEB,10,"St. Scholastica's day"                                   } ,
   {FEB,10,"Anniversary of Treaty of Paris, 1763"                    } ,
   {FEB,11,"Josiah Willard Gibb's birthday"                          } ,
   {FEB,11,"Thomas Edison's birthday"                                } ,
   {FEB,11,"Iran National Day"                                       } ,
   {FEB,12,"Abraham Lincoln's birthday"                              } ,
   {FEB,12,"Charles Darwin's birthday"                               } ,
   {FEB,13,"Kim Novak's birthday"                                    } ,
   {FEB,14,"Saint Valentine's Day"                                   } ,
   {FEB,15,"Anniversary of AFNI's release!"                          } ,
   {FEB,15,"Galileo Galilei's birthday"                              } ,
   {FEB,18,"Gambia Independence Day"                                 } ,
   {FEB,19,"Nikolaus Kopernikus' birthday"                           } ,
   {FEB,20,"Anniversary of John Glenn's spaceflight"                 } ,
   {FEB,21,"Anniversary of start of the Battle of Verdun"            } ,
   {FEB,22,"George Washington's birthday"                            } ,
   {FEB,22,"Frederic Chopin's birthday"                              } ,
   {FEB,24,"St. Ethelbert's day"                                     } ,
   {FEB,25,"Auguste Renoir's birthday"                               } ,
   {FEB,27,"Dominican Republic Independence Day"                     } ,
   {FEB,27,"Anniversary of Lincoln's Cooper Union Speech"            } ,
   {FEB,27,"John Steinbeck's birthday"                               } ,
   {FEB,28,"Linus Pauling's birthday"                                } ,
   {FEB,29,"Herman Hollerith's birthday"                             } ,
   {FEB,29,"W E B Dubois' birthday"                                  } ,

   {MAR, 1,"Santiago Ramon y Cajal's birthday"                       } ,
   {MAR, 2,"Samuel Houston's birthday"                               } ,
   {MAR, 3,"Georg Cantor's birthday"                                 } ,
   {MAR, 3,"Morocco National Day"                                    } ,
   {MAR, 4,"Casimir Pulaski's birthday"                              } ,
   {MAR, 5,"Anniversary of Boston Massacre"                          } ,
   {MAR, 6,"Michelangelo Buonarroti's birthday"                      } ,
   {MAR, 8,"Kenneth Grahame's birthday"                              } ,
   {MAR,12,"Kemal Ataturk's birthday"                                } ,
   {MAR,12,"Mauritius  Independence Day"                             } ,
   {MAR,14,"Albert Einstein's birthday"                              } ,
   {MAR,15,"The Ides of March"                                       } ,
   {MAR,16,"James Madison's birthday"                                } ,
   {MAR,17,"Saint Patrick's Day"                                     } ,
   {MAR,19,"Saint Joseph's Day"                                      } ,
   {MAR,19,"Liechtenstein National Day"                              } ,
   {MAR,20,"Anniversary of Uncle Tom's Cabin"                        } ,
   {MAR,21,"Jean Baptiste Joseph Fourier's birthday"                 } ,
   {MAR,23,"Emmy Noether's birthday"                                 } ,
   {MAR,23,"Pakistan Day"                                            } ,
   {MAR,24,"Anniversary of Kosciusko's Oath to Nation"               } ,
   {MAR,25,"Anniversary of Downfall of Sauron"                       } ,
   {MAR,25,"Greece Independence Day"                                 } ,
   {MAR,25,"Old English New Year's Day"                              } ,
   {MAR,26,"Bangladesh Independence Day"                             } ,
   {MAR,26,"Robert Frost's birthday"                                 } ,
   {MAR,28,"Pierre Simon de Laplace's birthday"                      } ,
   {MAR,30,"Vincent van Gogh's birthday"                             } ,
   {MAR,31,"Rene Descartes' birthday"                                } ,

   {APR, 1,"April Fool's Day"                                        } ,
   {APR, 2,"Charlemagne's birthday"                                  } ,
   {APR, 3,"Stanislaw Ulam's birthday"                               } ,
   {APR, 4,"Anniversary of founding of NATO"                         } ,
   {APR, 4,"Hungary Liberation Day"                                  } ,
   {APR, 4,"Senegal Independence Day"                                } ,
   {APR, 4,"Yamamoto Isoroku's birthday"                             } ,
   {APR, 6,"Birthday of the Twinkie"                                 } ,
   {APR, 8,"Siddhartha Gautama's birthday"                           } ,
   {APR, 9,"Anniversary of Lee's surrender at Appomattox"            } ,
   {APR,10,"Anniversary of loss of USS Thresher"                     } ,
   {APR,11,"Dean Acheson's birthday"                                 } ,
   {APR,12,"Anniversary of Yuri Gagarin's spaceflight"               } ,
   {APR,13,"Thomas Jefferson's birthday"                             } ,
   {APR,14,"Anniversary of Lincoln's assasination"                   } ,
   {APR,15,"Anniversary of sinking of Titanic"                       } ,
   {APR,15,"Arnold Toynbee's birthday"                               } ,
   {APR,15,"Leonhard Euler's birthday"                               } ,
   {APR,16,"Jerzy Neyman's birthday"                                 } ,
   {APR,17,"Syria Independence Day"                                  } ,
   {APR,18,"Anniversary of Paul Revere's Ride"                       } ,
   {APR,19,"Anniversary of Warsaw Ghetto Uprising"                   } ,
   {APR,21,"Queen Elizabeth II's birthday"                           } ,
   {APR,22,"Earth Day"                                               } ,
   {APR,22,"Sir Michael Atiyah's birthday"                           } ,
   {APR,23,"Saint George's Day"                                      } ,
   {APR,24,"Henri Philippe Petain's birthday"                        } ,
   {APR,25,"Oliver Cromwell's birthday"                              } ,
   {APR,25,"Ross Lockridge's birthday"                               } ,
   {APR,25,"Felix Klein's birthday"                                  } ,
   {APR,26,"William Shakespeare's birthday"                          } ,
   {APR,26,"Ludwig Wittgenstein's birthday"                          } ,
   {APR,26,"David Hume's birthday"                                   } ,
   {APR,27,"Ulysses Grant's birthday"                                } ,
   {APR,27,"Sierra Leone Independence Day"                           } ,
   {APR,27,"Togo Independence Day"                                   } ,
   {APR,28,"Kurt Goedel's birthday"                                  } ,
   {APR,28,"Bahai Feast of Jamal"                                    } ,
   {APR,29,"Duke Ellington's birthday"                               } ,
   {APR,29,"Henri Poincare's birthday"                               } ,
   {APR,30,"Karl Friedrich Gauss's birthday"                         } ,
   {APR,30,"Walpurgisnacht"                                          } ,

   {MAY, 1,"Emperor Claudius's birthday"                             } ,
   {MAY, 1,"Herman Melville's birthday"                              } ,
   {MAY, 1,"Anniversary of Crab Nebula Supernova"                    } ,
   {MAY, 2,"Baron Von Richtofen's birthday"                          } ,
   {MAY, 3,"Anniversary of Polish Constitution"                      } ,
   {MAY, 3,"Nicolo Machiavelli's birthday"                           } ,
   {MAY, 3,"Golda Meir's birthday"                                   } ,
   {MAY, 4,"Audrey Hepburn's birthday"                               } ,
   {MAY, 5,"Henryk Sienkiewicz's birthday"                           } ,
   {MAY, 6,"Anniversary of Hindenburg explosion"                     } ,
   {MAY, 7,"Anniversary of sinking of Lusitania"                     } ,
   {MAY, 8,"VE Day"                                                  } ,
   {MAY, 8,"Harry S Truman's birthday"                               } ,
   {MAY, 9,"John Brown's birthday"                                   } ,
   {MAY, 9,"Anton Cermak's birthday"                                 } ,
   {MAY,10,"Gustav Stresemann's birthday"                            } ,
   {MAY,10,"Fred Astaire's birthday"                                 } ,
   {MAY,11,"Laos Constitution Day"                                   } ,
   {MAY,11,"Richard Feynman's birthday"                              } ,
   {MAY,12,"Florence Nightingale's birthday"                         } ,
   {MAY,13,"Anniversary of Jamestown settlement"                     } ,
   {MAY,14,"Paraguay Independence Day"                               } ,
   {MAY,15,"Israel Independence Day"                                 } ,
   {MAY,16,"Maria Gaetana Agnesi's birthday"                         } ,
   {MAY,17,"Norway National Day"                                     } ,
   {MAY,18,"John Paul II's birthday"                                 } ,
   {MAY,18,"Bertrand Russell's birthday"                             } ,
   {MAY,19,"Malcom X's birthday"                                     } ,
   {MAY,20,"John Stuart Mill's birthday"                             } ,
   {MAY,20,"Cuba Independence Day"                                   } ,
   {MAY,21,"Andrei Sakharov's birthday"                              } ,
   {MAY,22,"Arthur Conan Doyle's birthday"                           } ,
   {MAY,23,"John Bardeen's birthday"                                 } ,
   {MAY,24,"Oliver Cromwell's birthday"                              } ,
   {MAY,25,"Argentina Revolution Day"                                } ,
   {MAY,25,"Jordan Independence Day"                                 } ,
   {MAY,26,"Guyana Independence Day"                                 } ,
   {MAY,27,"Wild Bill Hickock's birthday"                            } ,
   {MAY,28,"Ian Fleming's birthday"                                  } ,
   {MAY,29,"John F Kennedy's birthday"                               } ,
   {MAY,29,"Harry Bateman's birthday"                                } ,
   {MAY,30,"St. Jeanne d'Arc's day"                                  } ,
   {MAY,31,"Walt Whitman's birthday"                                 } ,
   {MAY,31,"South Africa Republic Day"                               } ,

   {JUN, 1,"Marilyn Monroe's birthday"                               } ,
   {JUN, 1,"Tunisia National Day"                                    } ,
   {JUN, 2,"Italy National Day"                                      } ,
   {JUN, 4,"Anniversary of Battle of Midway"                         } ,
   {JUN, 5,"John Maynard Keynes' birthday"                           } ,
   {JUN, 5,"Seychelles Independence Day"                             } ,
   {JUN, 6,"D-Day"                                                   } ,
   {JUN, 7,"Imre Nagy's birthday"                                    } ,
   {JUN, 8,"Frank Lloyd Wright's birthday"                           } ,
   {JUN, 9,"Anniversary of Donald Duck's debut"                      } ,
   {JUN,10,"Portugal National Day"                                   } ,
   {JUN,11,"Ben Jonson's birthday"                                   } ,
   {JUN,11,"John Constable's birthday"                               } ,
   {JUN,12,"Philippines Independence Day"                            } ,
   {JUN,13,"Winfield Scott's birthday"                               } ,
   {JUN,13,"William Butler Yeats' birthday"                          } ,
   {JUN,14,"Harriet Beecher Stowe's birthday"                        } ,
   {JUN,14,"Alois Alzheimer's birthday"                              } ,
   {JUN,15,"Anniversary of Magna Carta"                              } ,
   {JUN,15,"Anniversary of US-British 'Pig War'"                     } ,
   {JUN,16,"Geronimo's birthday"                                     } ,
   {JUN,17,"Anniversary of Battle of Bunker's Hill"                  } ,
   {JUN,17,"Iceland Republic Day"                                    } ,
   {JUN,19,"Juneteenth"                                              } ,
   {JUN,19,"Kuwait National Day"                                     } ,
   {JUN,20,"Anniversary of Oxford University"                        } ,
   {JUN,21,"Alexander the Great's birthday"                          } ,
   {JUN,22,"Anniversary of saxophone invention"                      } ,
   {JUN,23,"Alan Turing's birthday"                                  } ,
   {JUN,23,"Luxembourg Grand Duke Day"                               } ,
   {JUN,25,"Anniversary of Battle of the Little Big Horn"            } ,
   {JUN,25,"Mozambique Independence Day"                             } ,
   {JUN,26,"Malagasy Republic Independence Day"                      } ,
   {JUN,27,"Djibouti Independence Day"                               } ,

   {JUL, 1,"Canada Day"                                              } ,  /* WW */
   {JUL, 1,"Anniversary of Battle of the Somme"                      } ,
   {JUL, 1,"Gottfried Wilhelm Leibniz's birthday"                    } ,
   {JUL, 1,"Burundi Independence Day"                                } ,
   {JUL, 1,"Ghana Republic Day"                                      } ,
   {JUL, 1,"Rwanda Independence Day"                                 } ,
   {JUL, 1,"Somalia Independence Day"                                } ,
   {JUL, 2,"Anniversary of American Independence"                    } ,
   {JUL, 2,"Thurgood Marshall's birthday"                            } ,
   {JUL, 2,"Hans Bethe's birthday"                                   } ,
   {JUL, 3,"Franz Kafka's birthday"                                  } ,
   {JUL, 4,"Anniversary of Declaration of Independence"              } ,
   {JUL, 4,"Anniversary of Vickburg's surrender"                     } ,
   {JUL, 4,"Rube Goldberg's birthday"                                } ,
   {JUL, 5,"Anniversary of Newton's Principia"                       } ,
   {JUL, 5,"Anniversary of introduction of bikini"                   } ,
   {JUL, 5,"Venezuela Independence Day"                              } ,
   {JUL, 6,"Malawi Independence Day"                                 } ,
   {JUL, 7,"Satchel Paige's birthday"                                } ,
   {JUL, 7,"Robert Heinlein's birthday"                              } ,
   {JUL, 9,"Argentina Independence Day"                              } ,
   {JUL, 9,"Palau Constitution Day"                                  } ,
   {JUL,10,"Bahamas Independence Day"                                } ,
   {JUL,11,"Mongolia Revolution Day"                                 } ,
   {JUL,12,"Sao Tome & Principe Independence Day"                    } ,
   {JUL,13,"Gaius Julius Caesar's birthday"                          } ,
   {JUL,14,"Bastille Day"                                            } ,
   {JUL,14,"Iraq Republic Day"                                       } ,
   {JUL,14,"Gerald Ford's birthday"                                  } ,
   {JUL,15,"Anniversary of Battle of Grunwald"                       } ,
   {JUL,16,"Anniversary of 1st atomic explosion"                     } ,
   {JUL,16,"Anniversary of Apollo 11's launch"                       } ,
   {JUL,17,"Anniversary of Disneyland's opening"                     } ,
   {JUL,17,"South Korea Constitution Day"                            } ,
   {JUL,18,"John Glenn's birthday"                                   } ,
   {JUL,18,"Nelson Mandela's birthday"                               } ,
   {JUL,18,"Spain National Day"                                      } ,
   {JUL,19,"George McGovern's birthday"                              } ,
   {JUL,19,"Edgar Degas' birthday"                                   } ,
   {JUL,20,"Anniversary of Apollo 11 Moon landing"                   } ,
   {JUL,20,"Edmund Hillary's birthday"                               } ,
   {JUL,20,"Columbia Independence Day"                               } ,
   {JUL,21,"Belgium Independence Day"                                } ,
   {JUL,21,"Martyr's Day in Bolivia"                                 } ,
   {JUL,22,"Friedrich Bessel's birthday"                             } ,
   {JUL,22,"Gregor Mendel's birthday"                                } ,
   {JUL,23,"Raymond Chandler's birthday"                             } ,
   {JUL,23,"Egypt National Day"                                      } ,
   {JUL,24,"Simon Bolivar's birthday"                                } ,
   {JUL,24,"Anniversary of Apollo 11's return to Earth"              } ,
   {JUL,24,"Amelia Earhart's birthday"                               } ,
   {JUL,25,"Arthur Balfour's birthday"                               } ,
   {JUL,26,"Maldives Independence Day"                               } ,
   {JUL,26,"George Bernard Shaw's birthday"                          } ,
   {JUL,28,"Gerard Manley Hopkin's birthday"                         } ,
   {JUL,28,"Peru Independence Day"                                   } ,
   {JUL,29,"Alexis de Tocqueville's birthday"                        } ,
   {JUL,29,"Sigmund Romberg's birthday"                              } ,
   {JUL,30,"Anniversary of Amistad uprising"                         } ,
   {JUL,30,"Vanuatu Independence Day"                                } ,
   {JUL,30,"Arnold Schwarzenegger's birthday"                        } ,
   {JUL,31,"Anniversary of Battle of Passchendaele"                  } ,
   {JUL,31,"Primo Levi's birthday"                                   } ,
   {JUL,31,"Joanne Kathleen Rowling's birthday"                      } ,

   {AUG, 1,"Anniversary of Warsaw Uprising"                          } ,
   {AUG, 1,"Dahomey Independence Day"                                } ,
   {AUG, 1,"Switzerland Confederation Day"                           } ,
   {AUG, 1,"Jerry Garcia's birthday"                                 } ,
   {AUG, 2,"Anniversary of Battle of Cannae"                         } ,
   {AUG, 4,"Percy Bysshe Shelley's birthday"                         } ,
   {AUG, 5,"Upper Volta Independence Day"                            } ,
   {AUG, 5,"Neil Armstrong's birthday"                               } ,
   {AUG, 6,"Bolivia Independence Day"                                } ,
   {AUG, 6,"Alexander Fleming's birthday"                            } ,
   {AUG, 7,"Ivory Coast Independence Day"                            } ,
   {AUG, 8,"P A M Dirac's birthday"                                  } ,
   {AUG, 9,"Anniversary of Richard Nixon's resignation"              } ,
   {AUG, 9,"Singapore National Day"                                  } ,
   {AUG,10,"Ecuador Independence Day"                                } ,
   {AUG,11,"Anniversary of Alcatraz Prison"                          } ,
   {AUG,11,"Anniversary of Battle of Thermopylae"                    } ,
   {AUG,12,"Erwin Schrodinger's birthday"                            } ,
   {AUG,14,"Pakistan Independence Day"                               } ,
   {AUG,15,"Napoleon's birthday"                                     } ,
   {AUG,15,"India Independence Day"                                  } ,
   {AUG,16,"Cyprus Independence Day"                                 } ,
   {AUG,17,"Pierre de Fermat's birthday"                             } ,
   {AUG,17,"Gabon Independence Day"                                  } ,
   {AUG,17,"Indonesia Independence Day"                              } ,
   {AUG,18,"Afghanistan Independence Day"                            } ,
   {AUG,19,"Gene Roddenberry's birthday"                             } ,
   {AUG,20,"Waclaw Sierpinski's birthday"                            } ,
   {AUG,22,"Anniversary of Battle of Bosworth Field"                 } ,
   {AUG,23,"Rumania Liberation Day"                                  } ,
   {AUG,23,"Gene Kelley's birthday"                                  } ,
   {AUG,24,"William Wilberforce's birthday"                          } ,
   {AUG,25,"Uruguay Independence Day"                                } ,
   {AUG,26,"Anniversary of 19th Amendment's adoption"                } ,
   {AUG,27,"Confucius' birthday"                                     } ,
   {AUG,27,"Charles Gates Dawes' birthday"                           } ,
   {AUG,30,"Olga Taussky-Todd's birthday"                            } ,
   {AUG,31,"Anniversary of Solidarity's creation"                    } ,
   {AUG,31,"Trinidad & Tobago Independence Day"                      } ,

   {SEP, 1,"Anniversary of Nazi invasion of Poland"                  } ,
   {SEP, 2,"VJ Day"                                                  } ,
   {SEP, 2,"Queen Liliuokalani's birthday"                           } ,
   {SEP, 3,"Qatar Independence Day"                                  } ,
   {SEP, 3,"San Marino Anniversary of Founding"                      } ,
   {SEP, 3,"Anniversary of Treaty of Paris, 1783"                    } ,
   {SEP, 4,"First hard disk's birthday"                              } ,
   {SEP, 6,"Swaziland Independence Day"                              } ,
   {SEP, 7,"Queen Elizabeth I's birthday"                            } ,
   {SEP, 7,"Brazil Independence Day"                                 } ,
   {SEP, 7,"Sinclair Lewis's birthday"                               } ,
   {SEP, 7,"Buddy Holly's birthday"                                  } ,
   {SEP, 7,"Anniversary of Battle of Borodino"                       } ,
   {SEP, 7,"Luigi Galvani's birthday"                                } ,
   {SEP, 8,"Anniversary of Star Trek TV debut"                       } ,
   {SEP, 8,"Andorra National Festival"                               } ,
   {SEP, 9,"Bulgaria Liberation Day"                                 } ,
   {SEP,12,"Anniversary of Battle of Vienna"                         } ,
   {SEP,14,"Jan Masaryk's birthday"                                  } ,
   {SEP,14,"Anniversary of Friston & Cox Debut"                      } ,
   {SEP,15,"Costa Rica Independence Day"                             } ,
   {SEP,15,"El Salvador Independence Day"                            } ,
   {SEP,15,"Guatemala Independence Day"                              } ,
   {SEP,15,"Honduras Independence Day"                               } ,
   {SEP,15,"Nicaragua Independence Day"                              } ,
   {SEP,16,"Malaysia Independence Day"                               } ,
   {SEP,16,"Papua New Guinea Independence Day"                       } ,
   {SEP,17,"Anniversary of signing of American Constitution"         } ,
   {SEP,17,"Georg Bernhard Riemann's birthday"                       } ,
   {SEP,17,"Anniversary of Battle of Antietam"                       } ,
   {SEP,17,"Anniversary of Soviet invasion of Poland"                } ,
   {SEP,18,"Mexico Independence Day"                                 } ,
   {SEP,19,"Anniversary of Battle of Saratoga"                       } ,
   {SEP,20,"Anniversary of Battle of Chalons"                        } ,
   {SEP,21,"Chile Independence Day"                                  } ,
   {SEP,21,"Belize Independence Day"                                 } ,
   {SEP,21,"Malta Independence Day"                                  } ,
   {SEP,22,"Bilbo & Frodo Baggin's birthday"                         } ,
   {SEP,22,"Mali Republic Day"                                       } ,
   {SEP,23,"Saudi Arabia National Day"                               } ,
   {SEP,23,"Emperor Augustus Caesar's birthday"                      } ,
   {SEP,26,"Yemen National Day"                                      } ,
   {SEP,27,"Anniversary of founding of Jesuit Order"                 } ,
   {SEP,29,"Lech Walesa's birthday"                                  } ,
   {SEP,30,"Botswana Independence Day"                               } ,

   {OCT, 1,"Nigeria Independence Day"                                } ,
   {OCT, 2,"Guinea Independence Day"                                 } ,
   {OCT, 2,"Anniversary of Saladin's capture of Jerusalem"           } ,
   {OCT, 2,"Groucho Marx's birthday"                                 } ,
   {OCT, 3,"Anniversary of reunification of Germany"                 } ,
   {OCT, 4,"Anniversary of Sputnik launch"                           } ,
   {OCT, 6,"Anniversary of attack on Frodo at Weathertop"            } ,
   {OCT, 9,"Alfred Dreyfus's birthday"                               } ,
   {OCT,10,"Anniversary of Battle of Tours"                          } ,
   {OCT,12,"Columbus Day"                                            } ,
   {OCT,14,"Dwight Eisenhower's birthday"                            } ,
   {OCT,15,"Pelham Grenville Wodehouse's birthday"                   } ,
   {OCT,16,"National Boss Day!"                                      } ,
   {OCT,19,"Anniversary of Cornwallis' surrender at Yorktown"        } ,
   {OCT,21,"Anniversary of Battle of Trafalgar"                      } ,
   {OCT,24,"Anniversary of founding of United Nations"               } ,
   {OCT,24,"Zambia Independence Day"                                 } ,
   {OCT,25,"Saint Crispin's (or Crispian's) Day"                     } ,
   {OCT,25,"Evariste Galois' birthday"                               } ,
   {OCT,26,"Anniversary of Gunfight at the OK Corral"                } ,
   {OCT,27,"Theodore Roosevelt's birthday"                           } ,
   {OCT,27,"John Cleese's birthday"                                  } ,
   {OCT,28,"Anniversary of Battle of Milvian Bridge"                 } ,
   {OCT,29,"Turkey Republic Day"                                     } ,
   {OCT,29,"Anniversary of Black Tuesday"                            } ,
   {OCT,30,"Anniversary of the War of the Worlds!"                   } ,
   {OCT,31,"Halloween"                                               } ,
   {OCT,31,"John Keats' birthday"                                    } ,
   {OCT,31,"Karl Weierstrass's birthday"                             } ,

   {NOV, 1,"All Saint's Day"                                         } ,  /* WW */
   {NOV, 1,"Anniversary of Great Lisbon Earthquake"                  } ,
   {NOV, 2,"Marie Antoinette's birthday"                             } ,
   {NOV, 2,"Anniversary of Balfour Declaration"                      } ,
   {NOV, 2,"Daniel Boone's birthday"                                 } ,
   {NOV, 3,"Panama Independence Day"                                 } ,
   {NOV, 3,"Dominica Independence Day"                               } ,
   {NOV, 4,"Art Carney's birthday"                                   } ,
   {NOV, 5,"Guy Fawkes Day"                                          } ,
   {NOV, 6,"John Philip Sousa's birthday"                            } ,
   {NOV, 6,"Dominican Republic Constitution Day"                     } ,
   {NOV, 7,"Maria Sklodowska Curie's birthday"                       } ,
   {NOV, 7,"Lise Meitner's birthday"                                 } ,
   {NOV, 8,"Anniversary of discovery of X-rays"                      } ,
   {NOV, 8,"Anniversary of Louvre museum opening"                    } ,
   {NOV, 8,"Edmond Halley's birthday"                                } ,
   {NOV, 8,"Bram Stoker's birthday"                                  } ,
   {NOV, 8,"Felix Haussdorf's birthday"                              } ,
   {NOV, 8,"Katherine Hepburn's birthday"                            } ,
   {NOV, 9,"Benjamin Banneker's birthday"                            } ,
   {NOV, 9,"Cambodia Independence Day"                               } ,
   {NOV,10,"Martin Luther's birthday"                                } ,
   {NOV,11,"Veteran's & Remembrance Day"                             } ,
   {NOV,11,"Poland Independence Day"                                 } ,
   {NOV,12,"Sun Yat Sen's birthday"                                  } ,
   {NOV,12,"Elizabeth Cady Stanton's birthday"                       } ,
   {NOV,12,"Auguste Rodin's birthday"                                } ,
   {NOV,12,"Comoros Independence Day"                                } ,
   {NOV,13,"Saint Augustine's birthday"                              } ,
   {NOV,13,"James Clerk Maxwell's birthday"                          } ,
   {NOV,13,"Robert Louis Stevenson's birthday"                       } ,
   {NOV,14,"Claude Monet's birthday"                                 } ,
   {NOV,16,"James Bonds' birthday"                                   } ,
   {NOV,16,"d'Alembert's birthday"                                   } ,
   {NOV,17,"Korbinian Brodmann's birthday"                           } ,
   {NOV,18,"Ignacy Paderewski's birthday"                            } ,
   {NOV,19,"Anniversary of Gettysburg Address"                       } ,
   {NOV,19,"Monaco National Fete"                                    } ,
   {NOV,20,"Edwin Hubble's birthday"                                 } ,
   {NOV,21,"Francois-Marie Arouet's birthday"                        } ,
   {NOV,22,"Anniversary of Kennedy's assasination"                   } ,
   {NOV,22,"Lebanon Independence Day"                                } ,
   {NOV,22,"Charles de Gaulle's birthday"                            } ,
   {NOV,23,"Anniversary of Dr Who's debut"                           } ,
   {NOV,23,"Billy the Kid's birthday"                                } ,
   {NOV,23,"Boris Karloff's birthday"                                } ,
   {NOV,23,"Harpo Marx's birthday"                                   } ,
   {NOV,24,"Baruch Spinoza's birthday"                               } ,
   {NOV,24,"Anniversary of Tasmania's discovery"                     } ,
   {NOV,24,"Anniversary of Darwin's The Origin of Species"           } ,
   {NOV,25,"Pope John XXIII's birthday"                              } ,
   {NOV,25,"Joe DiMaggio's birthday"                                 } ,
   {NOV,25,"Suriname Independence Day"                               } ,
   {NOV,26,"Anniversary of Casablanca's debut"                       } ,
   {NOV,26,"Norbert Wiener's birthday"                               } ,
   {NOV,27,"Anniversary of First Crusade's start"                    } ,
   {NOV,27,"Chaim Weizmann's birthday"                               } ,
   {NOV,27,"Aleksander Dubcek's birthday"                            } ,
   {NOV,28,"Mauritania Independence Day"                             } ,
   {NOV,29,"Clive Staples Lewis's birthday"                          } ,
   {NOV,29,"Jacques Chirac's birthday"                               } ,
   {NOV,30,"Samuel Clemens' birthday"                                } ,
   {NOV,30,"Winston Churchill's birthday"                            } ,
   {NOV,30,"Barbados Independence Day"                               } ,
   {NOV,30,"Saint Andrew's Day"                                      } ,
   {NOV,30,"Barbados Independence Day"                               } ,

   {DEC, 1,"Anniversary of Rosa Parks' arrest"                       } ,  /* WW */
   {DEC, 1,"Woody Allen's birthday"                                  } ,
   {DEC, 1,"Central African Republic National Day"                   } ,
   {DEC, 2,"Anniversary of Monroe Doctrine"                          } ,
   {DEC, 2,"Georges Seurat's birthday"                               } ,
   {DEC, 2,"Anniversary of Napoleon's coronation"                    } ,
   {DEC, 2,"Anniversary of Battle of Austerlitz"                     } ,
   {DEC, 3,"Joseph Konrad's birthday"                                } ,
   {DEC, 3,"Anniversary of Galileo's telescope"                      } ,
   {DEC, 4,"Crazy Horse's birthday"                                  } ,
   {DEC, 5,"Anniversary of Prohibition's end"                        } ,
   {DEC, 5,"George Armstrong Custer's birthday"                      } ,
   {DEC, 5,"Werner Karl Heisenberg's birthday"                       } ,
   {DEC, 6,"Spanish Constitution Day"                                } ,
   {DEC, 6,"Finland Independence Day"                                } ,
   {DEC, 7,"Anniversary of Battle of Pearl Harbor"                   } ,
   {DEC, 7,"Ivory Coast National Day"                                } ,
   {DEC, 8,"Jacques Hadamard's birthday"                             } ,
   {DEC, 8,"Jim Morrison's birthday"                                 } ,
   {DEC, 8,"Anniversary of Syllabus Errorum"                         } ,
   {DEC, 8,"Anniversary of US Declaration of War on Japan"           } ,
   {DEC, 9,"John Milton's birthday"                                  } ,
   {DEC, 9,"Anniversary of Lech Walesa's election"                   } ,
   {DEC, 9,"Tanzania Independence Day"                               } ,
   {DEC,10,"Ada Lovelace's birthday"                                 } ,
   {DEC,10,"Anniversary of Spanish-American War's end"               } ,
   {DEC,10,"Anniversary of Grateful Dead's first concert"            } ,
   {DEC,10,"Emily Dickinson's birthday"                              } ,
   {DEC,10,"Anniversary of Female Suffrage in Wyoming"               } ,
   {DEC,11,"Robert Koch's birthday"                                  } ,
   {DEC,11,"Upper Volta Republic Day"                                } ,
   {DEC,11,"Aleksander Solzhenitsyn's birthday"                      } ,
   {DEC,11,"Max Born's birthday"                                     } ,
   {DEC,12,"Frank Sinatra's birthday"                                } ,
   {DEC,12,"Kenya Independence Day"                                  } ,
   {DEC,12,"William Lloyd Garrison's birthday"                       } ,
   {DEC,12,"Edvard Munch's birthday"                                 } ,
   {DEC,13,"Werner von Siemens's birthday"                           } ,
   {DEC,14,"Tycho Brahe's birthday"                                  } ,
   {DEC,14,"Nostradamus's birthday"                                  } ,
   {DEC,14,"Jimmy Doolittle's birthday"                              } ,
   {DEC,15,"Anniversary of adoption of US Bill of Rights"            } ,
   {DEC,15,"Anniversary of Gone With the Wind debut"                 } ,
   {DEC,16,"Anniversary of Boston Tea Party"                         } ,
   {DEC,16,"Jane Austen's birthday"                                  } ,
   {DEC,16,"Beethoven's birthday"                                    } ,
   {DEC,16,"Arthur C Clarke's birthday"                              } ,
   {DEC,17,"Anniversary of Wright brother's flight"                  } ,
   {DEC,17,"Roman Saturnalia!"                                       } ,
   {DEC,17,"Bhutan National Day"                                     } ,
   {DEC,18,"Anniversary of 13th Amendment's adoption"                } ,
   {DEC,18,"Niger Independence Day"                                  } ,
   {DEC,19,"William Pitt's (the younger) birthday"                   } ,
   {DEC,20,"Robert Menzies' birthday"                                } ,
   {DEC,20,"Anniversary of Louisiana Purchase"                       } ,
   {DEC,21,"Anniversary of Pilgrim's landing"                        } ,
   {DEC,21,"Thomas Becket's birthday"                                } ,
   {DEC,21,"Jan Lukasiewicz' birthday"                               } ,
   {DEC,21,"Nepal Independence Day"                                  } ,
   {DEC,22,"Srinivasa Ramanujan's birthday"                          } ,
   {DEC,23,"Emperoro Akihito's birthday"                             } ,
   {DEC,24,"Adam Mickiewicz's birthday"                              } ,
   {DEC,24,"Ignatius Loyola's birthday"                              } ,
   {DEC,24,"Kit Carson's birthday"                                   } ,
   {DEC,24,"Christmas Eve"                                           } ,
   {DEC,25,"Christmas Day - Ho Ho Ho"                                } ,
   {DEC,25,"Sir Isaac Newton's birthday"                             } ,
   {DEC,25,"Clara Barton's birthday"                                 } ,
   {DEC,25,"Rod Serling's birthday"                                  } ,
   {DEC,25,"Anwar Sadat's birthday"                                  } ,
   {DEC,25,"Anniversary of Washingon's crossing the Delaware"        } ,
   {DEC,26,"Charles Babbage's birthday"                              } ,
   {DEC,26,"Boxing Day"                                              } ,
   {DEC,27,"Johannes Kepler's birthday"                              } ,
   {DEC,27,"Louis Pasteur's birthday"                                } ,
   {DEC,28,"Arthur Eddington's birthday"                             } ,
   {DEC,28,"John von Neumann's birthday"                             } ,
   {DEC,28,"Linus Torvalds' birthday"                                } ,
   {DEC,29,"William Gladstone's birthday"                            } ,
   {DEC,30,"Tiger Woods' birthday"                                   } ,
   {DEC,30,"Rudyard Kipling's birthday"                              } ,
   {DEC,31,"New Year's Eve"                                          } ,
   {DEC,31,"George Marshall's birthday"                              } ,

   /* cf. http://www.theonlinerecipebox.com/national-food-holidays/ */
  
   {JAN, 1, "Celebrate National Soup Month" } ,
   {JAN, 2, "National Cream Puff Day" } ,
   {JAN, 3, "National Chocolate Covered Cherry Day" } ,
   {JAN, 4, "National Spaghetti Day" } ,
   {JAN, 5, "National Whipped Cream Day" } ,
   {JAN, 6, "National Shortbread Day" } ,
   {JAN, 7, "Celebrate National Oatmeal Month" } ,
   {JAN, 8, "National English Toffee Day" } ,
   {JAN, 9, "National Apricot Day" } ,
   {JAN, 10, "National Bittersweet Chocolate Day" } ,
   {JAN, 11, "National Milk Day" } ,
   {JAN, 12, "National Curried Chicken Day" } ,
   {JAN, 13, "National Peach Melba Day" } ,
   {JAN, 14, "National Hot Pastrami Sandwich Day" } ,
   {JAN, 15, "National Strawberry Ice Cream Day" } ,
   {JAN, 16, "National Fig Newton Day" } ,
   {JAN, 17, "Celebrate National Wheat Bread Month" } ,
   {JAN, 18, "National Peking Duck Day" } ,
   {JAN, 19, "National Popcorn Day" } ,
   {JAN, 20, "National Granola Bar Day" } ,
   {JAN, 21, "National New England Clam Chowder Day" } ,
   {JAN, 22, "National Blonde Brownie Day" } ,
   {JAN, 23, "National Rhubarb Pie Day" } ,
   {JAN, 24, "National Peanut Butter Day" } ,
   {JAN, 25, "Celebrate National Egg Month" } ,
   {JAN, 26, "National Pistachio Day" } ,
   {JAN, 27, "National Chocolate Cake Day" } ,
   {JAN, 28, "National Blueberry Pancake Day" } ,
   {JAN, 29, "National Corn Chip Day" } ,
   {JAN, 30, "National Croissant Day" } ,
   {JAN, 31, "Celebrate National Meat Month" } ,
   {FEB, 1, "National Baked Alaska Day" } ,
   {FEB, 2, "National Heavenly Hash Day" } ,
   {FEB, 3, "National Carrot Cake Day" } ,
   {FEB, 4, "National Homemade Soup Day" } ,
   {FEB, 5, "National Chocolate Fondue Day" } ,
   {FEB, 6, "celebrate National Sweet Potato Month" } ,
   {FEB, 7, "National Fettuccini Alfredo Day" } ,
   {FEB, 8, "National Molasses Bar Day" } ,
   {FEB, 9, "National Pistachio Day" } ,
   {FEB, 10, "National Pizza Pie Day" } ,
   {FEB, 11, "National Peppermint Patty Day" } ,
   {FEB, 12, "National Plum Pudding Day" } ,
   {FEB, 13, "National Tortellini Day" } ,
   {FEB, 14, "National Cream Filled Chocolates Day" } ,
   {FEB, 15, "National Gum Drop Day" } ,
   {FEB, 16, "National Almond Day" } ,
   {FEB, 17, "National Indian Pudding Day" } ,
   {FEB, 18, "National Crab Stuffed Flounder Day" } ,
   {FEB, 19, "National Chocolate Mint Day" } ,
   {FEB, 20, "National Cherry Pie Day" } ,
   {FEB, 21, "National Sticky Bun Day" } ,
   {FEB, 22, "Celebrate National Grapefruit Month" } ,
   {FEB, 23, "National Banana Bread Day" } ,
   {FEB, 24, "National Tortilla Chip Day" } ,
   {FEB, 25, "National Clam Chowder Day" } ,
   {FEB, 26, "National Pistachio Day" } ,
   {FEB, 27, "National Strawberry Day" } ,
   {FEB, 28, "National Chocolate Souffle Day" } ,
   {FEB, 29, "Celebrate National Cherry Month" } ,
   {MAR, 1, "National Peanut Butter LoverÕs Day" } ,
   {MAR, 2, "National Banana Cream Pie Day" } ,
   {MAR, 3, "National Cold Cuts Day" } ,
   {MAR, 4, "National Pound Cake Day" } ,
   {MAR, 5, "National Cheese Doodle Day" } ,
   {MAR, 6, "National White Chocolate Cheesecake Day" } ,
   {MAR, 7, "National Cereal Day" } ,
   {MAR, 8, "National Peanut Cluster Day" } ,
   {MAR, 9, "National Crab Meat Day" } ,
   {MAR, 10, "National Blueberry Popover Day" } ,
   {MAR, 11, "National Oatmeal Nuts Waffles Day" } ,
   {MAR, 12, "National Baked Scallops Day" } ,
   {MAR, 13, "National Coconut Torte Day" } ,
   {MAR, 14, "National Potato Chip Day" } ,
   {MAR, 15, "National Pears Helene Day" } ,
   {MAR, 16, "National Artichoke Hearts Day" } ,
   {MAR, 17, "National Corned Beef and Cabbage Day" } ,
   {MAR, 18, "National Oatmeal Cookie Day" } ,
   {MAR, 19, "National Chocolate Caramel Day" } ,
   {MAR, 20, "National Ravioli Day" } ,
   {MAR, 21, "National California Strawberry Day" } ,
   {MAR, 22, "Celebrate National Celery Month" } ,
   {MAR, 23, "National Melba Toast Day" } ,
   {MAR, 24, "National Chocolate Covered Raisins Day" } ,
   {MAR, 25, "National Waffle Day" } ,
   {MAR, 26, "National Spinach Day" } ,
   {MAR, 27, "National Spanish Paella Day" } ,
   {MAR, 28, "National Black Forest Cake Day" } ,
   {MAR, 29, "National Lemon Chiffon Cake Day" } ,
   {MAR, 30, "Celebrate National Peanut Month" } ,
   {MAR, 31, "National Tater Day" } ,
   {APR, 1, "National Sourdough Bread Day" } ,
   {APR, 2, "National Peanut butter and Jelly Day" } ,
   {APR, 3, "National Chocolate Mousse Day" } ,
   {APR, 4, "National Cordon Bleu Day" } ,
   {APR, 5, "National Raisin and Spice Bar Day" } ,
   {APR, 6, "National Caramel Popcorn Day" } ,
   {APR, 7, "Celebrate National Florida Tomato Month" } ,
   {APR, 8, "National Empanada Day" } ,
   {APR, 9, "National Chinese Almond Cookie Day" } ,
   {APR, 10, "National Cinnamon Crescent Day" } ,
   {APR, 11, "National Cheese Fondue Day" } ,
   {APR, 12, "National Grilled Cheese Sandwich Day" } ,
   {APR, 13, "National Peach Cobbler Day" } ,
   {APR, 14, "National Pecan Day" } ,
   {APR, 15, "National Glazed Spiral Ham Day" } ,
   {APR, 16, "National Eggs Benedict Day" } ,
   {APR, 17, "National Cheese ball Day" } ,
   {APR, 18, "Animal Crackers Birthday" } ,
   {APR, 19, "National Garlic Day" } ,
   {APR, 20, "National Pineapple Upside-down Cake Day" } ,
   {APR, 21, "National Chocolate-covered Cashew Truffle Day" } ,
   {APR, 22, "National Jelly Bean Day" } ,
   {APR, 23, "National Cherry Cheesecake Day" } ,
   {APR, 24, "National Pigs-in-a-Blanket Day" } ,
   {APR, 25, "National Zucchini Bread Day" } ,
   {APR, 26, "National Pretzel Day" } ,
   {APR, 27, "National Prime Rib Day" } ,
   {APR, 28, "National Blueberry Pie Day" } ,
   {APR, 29, "National Shrimp Scampi Day" } ,
   {APR, 30, "National Raisin Day" } ,
   {MAY, 1, "National Chocolate Parfait Day" } ,
   {MAY, 2, "National Truffles Day" } ,
   {MAY, 3, "National Raspberry Tart Day" } ,
   {MAY, 4, "National Orange Juice Day" } ,
   {MAY, 5, "National Chocolate Custard Day" } ,
   {MAY, 6, "National Crepes Suzette Day" } ,
   {MAY, 7, "National Roast Leg of Lamb Day" } ,
   {MAY, 8, "Celebrate National Salsa Month" } ,
   {MAY, 9, "National Butterscotch Brownie Day" } ,
   {MAY, 10, "National Shrimp Day" } ,
   {MAY, 11, "Celebrate National Gazpacho Avocado Month" } ,
   {MAY, 12, "National Nutty Fudge Day" } ,
   {MAY, 13, "National Fruit Cocktail Day" } ,
   {MAY, 14, "National Buttermilk Biscuit Day" } ,
   {MAY, 15, "National Chocolate Chip Day" } ,
   {MAY, 16, "Celebrate National Asparagus Month" } ,
   {MAY, 17, "National Cherry Cobbler Day" } ,
   {MAY, 18, "National Cheese Souffle Day" } ,
   {MAY, 19, "National DevilÕs Food Cake Day" } ,
   {MAY, 20, "National Quiche Lorraine Day" } ,
   {MAY, 21, "National Strawberries and Cream Day" } ,
   {MAY, 22, "National Vanilla Pudding Day" } ,
   {MAY, 23, "National Taffy Day" } ,
   {MAY, 24, "National Escargot Day" } ,
   {MAY, 25, "Celebrate National Egg Month" } ,
   {MAY, 26, "National Blueberry Cheesecake Day" } ,
   {MAY, 27, "National Grape Popsicle Day" } ,
   {MAY, 28, "National Brisket Day" } ,
   {MAY, 29, "Celebrate National Salad Month" } ,
   {MAY, 30, "Celebrate National Barbeque Month" } ,
   {MAY, 31, "National Macaroon Day" } ,
   {JUN, 1, "National Hazelnut Cake Day" } ,
   {JUN, 2, "National Rocky Road Ice Cream Day" } ,
   {JUN, 3, "National Egg Day" } ,
   {JUN, 4, "National Frozen Yogurt Day" } ,
   {JUN, 5, "National Gingerbread Day" } ,
   {JUN, 6, "National Applesauce Cake Day" } ,
   {JUN, 7, "National Chocolate Ice Cream Day" } ,
   {JUN, 8, "National Jelly-filled Doughnut Day" } ,
   {JUN, 9, "National Strawberry Rhubarb Pie Day" } ,
   {JUN, 10, "National Herbs and Spice Day" } ,
   {JUN, 11, "National German Chocolate Cake Day" } ,
   {JUN, 12, "National Peanut Butter Cookie Day" } ,
   {JUN, 13, "Celebrate National Papaya Month" } ,
   {JUN, 14, "National Strawberry Shortcake Day" } ,
   {JUN, 15, "National Lobster Day" } ,
   {JUN, 16, "National Fudge Day" } ,
   {JUN, 17, "National Apple Strudel Day" } ,
   {JUN, 18, "National Cherry Tart Day" } ,
   {JUN, 19, "Celebrate National Dairy Month" } ,
   {JUN, 20, "National Vanilla Milkshake Day" } ,
   {JUN, 21, "National Peaches and Cream Day" } ,
   {JUN, 22, "National Onion Rings Day" } ,
   {JUN, 23, "National Pecan Sandy Day" } ,
   {JUN, 24, "National Pralines Day" } ,
   {JUN, 25, "National Strawberry Parfait Day" } ,
   {JUN, 26, "National Chocolate Pudding Day" } ,
   {JUN, 27, "National Orange Blossom Day" } ,
   {JUN, 28, "National Tapioca Day" } ,
   {JUN, 29, "National Almond Butter Crunch Day" } ,
   {JUN, 30, "National Ice Cream Soda Day" } ,
   {JUL, 1, "National Gingersnap Day" } ,
   {JUL, 2, "Celebrate National Hot Dog Month" } ,
   {JUL, 3, "Eat Beans Day" } ,
   {JUL, 4, "National Cesar Salad Day" } ,
   {JUL, 5, "National Apple Turnover Day" } ,
   {JUL, 6, "National Fried Chicken Day" } ,
   {JUL, 7, "National Strawberry Sundae Day" } ,
   {JUL, 8, "National Chocolate with Almonds Day" } ,
   {JUL, 9, "National Sugar Cookie Day" } ,
   {JUL, 10, "National Pina Colada Day" } ,
   {JUL, 11, "National Blueberry Muffin Day" } ,
   {JUL, 12, "National Pecan Pie Day" } ,
   {JUL, 13, "National French Fries Day" } ,
   {JUL, 14, "National Macaroni Day" } ,
   {JUL, 15, "National Tapioca Pudding Day" } ,
   {JUL, 16, "National Corn Fritters Day" } ,
   {JUL, 17, "National Peach Ice Cream Day" } ,
   {JUL, 18, "National Caviar Day" } ,
   {JUL, 19, "Celebrate Ice Cream Month" } ,
   {JUL, 20, "National Lollipop Day" } ,
   {JUL, 21, "National Junk Food Day" } ,
   {JUL, 22, "National Penuche Fudge Day" } ,
   {JUL, 23, "National Vanilla Ice Cream Day" } ,
   {JUL, 24, "Celebrate National Baked Bean Month" } ,
   {JUL, 25, "National Hot Fudge Sundae Day" } ,
   {JUL, 26, "Celebrate National Hotdog Month" } ,
   {JUL, 27, "National Creme Brule Day" } ,
   {JUL, 28, "National Milk Chocolate Day" } ,
   {JUL, 29, "Cheese Sacrifice Purchase Day" } ,
   {JUL, 30, "National Cheese Cake Day" } ,
   {JUL, 31, "Jump For Jelly Beans Day" } ,
   {AUG, 1, "National Raspberry Cream Pie Day" } ,
   {AUG, 2, "National Ice Cream Sandwich Day" } ,
   {AUG, 3, "National Watermelon Day" } ,
   {AUG, 4, "National Lasagna Day" } ,
   {AUG, 5, "National Waffle Day" } ,
   {AUG, 6, "National Root Bear Float Day" } ,
   {AUG, 7, "National Raspberries in Cream Day" } ,
   {AUG, 8, "National Zucchini Day" } ,
   {AUG, 9, "National Rice Pudding Day" } ,
   {AUG, 10, "National SÕmores Day" } ,
   {AUG, 11, "National Raspberry Tart Day" } ,
   {AUG, 12, "National Julienne Fries Day" } ,
   {AUG, 13, "National Filet Mignon Day" } ,
   {AUG, 14, "National Creamsicle Day" } ,
   {AUG, 15, "National Lemon Meringue Pie Day" } ,
   {AUG, 16, "National Bratwurst Day" } ,
   {AUG, 17, "National Vanilla Custard Day" } ,
   {AUG, 18, "National Soft Ice Cream Day" } ,
   {AUG, 19, "National Potato Day" } ,
   {AUG, 20, "National Lemonade Day" } ,
   {AUG, 21, "National Pecan Torte Day" } ,
   {AUG, 22, "National Eat a Peach Day" } ,
   {AUG, 23, "National Sponge Cake Day" } ,
   {AUG, 24, "National Peach Pie Day" } ,
   {AUG, 25, "National Spumoni Day" } ,
   {AUG, 26, "National Cherry Popsicle Day" } ,
   {AUG, 27, "National Banana Lovers Day" } ,
   {AUG, 28, "National Cherry Turnover Day" } ,
   {AUG, 29, "National More Herbs, Less Salt Day" } ,
   {AUG, 30, "National Toasted Marshmallow Day" } ,
   {AUG, 31, "National Trail Mix Day" } ,
   {SEP, 1, "National Cherry Popover Day" } ,
   {SEP, 2, "National Blueberry Popsicle Day" } ,
   {SEP, 3, "Celebrate National Potato Month" } ,
   {SEP, 4, "National Macadamia Nut Day" } ,
   {SEP, 5, "National Cheese Pizza Day" } ,
   {SEP, 6, "Celebrate National Rice Month" } ,
   {SEP, 7, "National Acorn Squash Day" } ,
   {SEP, 8, "National Date Nut Bread Day" } ,
   {SEP, 9, "National Weiner schnitzel Day" } ,
   {SEP, 10, "National TV dinner Day" } ,
   {SEP, 11, "National Hot Cross Bun Day" } ,
   {SEP, 12, "National Chocolate Milkshake Day" } ,
   {SEP, 13, "National Peanut Day" } ,
   {SEP, 14, "National Cream Filled Donut Day" } ,
   {SEP, 15, "National Linguini Day" } ,
   {SEP, 16, "National Guacamole Day" } ,
   {SEP, 17, "National Apple Dumpling Day" } ,
   {SEP, 18, "National Cheeseburger Day" } ,
   {SEP, 19, "National Butterscotch Pudding Day" } ,
   {SEP, 20, "Celebrate National Biscuit Month" } ,
   {SEP, 21, "National Pecan Cookie Day" } ,
   {SEP, 22, "National Ice Cream Cone Day" } ,
   {SEP, 23, "National White Chocolate Day" } ,
   {SEP, 24, "National Cherries Jubilee Day" } ,
   {SEP, 25, "National Crabmeat Newburg Day" } ,
   {SEP, 26, "National Pancake Day" } ,
   {SEP, 27, "National Chocolate Milk Day" } ,
   {SEP, 28, "National Strawberry Cream Pie Day" } ,
   {SEP, 29, "National Linguini Day" } ,
   {SEP, 30, "Celebrate National Chicken Month" } ,
   {OCT, 1, "World Vegetarian Day" } ,
   {OCT, 2, "National Fried Scallops Day" } ,
   {OCT, 3, "National Caramel Custard Day" } ,
   {OCT, 4, "National Taco Day" } ,
   {OCT, 5, "National Apple Betty Day" } ,
   {OCT, 6, "National Noodle Day" } ,
   {OCT, 7, "National Frappe Day" } ,
   {OCT, 8, "Celebrate National Chili Month" } ,
   {OCT, 9, "Celebrate National Apple Month" } ,
   {OCT, 10, "National Angel Food Cake Day" } ,
   {OCT, 11, "World Egg Day" } ,
   {OCT, 12, "Celebrate National Popcorn Popping Month" } ,
   {OCT, 13, "National Yorkshire Pudding Day" } ,
   {OCT, 14, "Celebrate National Pretzel Month" } ,
   {OCT, 15, "National Chicken Cacciatore Day" } ,
   {OCT, 16, "Celebrate National Seafood Month" } ,
   {OCT, 17, "National Pasta Day" } ,
   {OCT, 18, "National Chocolate Cupcake Day" } ,
   {OCT, 19, "National Seafood Bisque Day" } ,
   {OCT, 20, "Celebrate National Pork Month" } ,
   {OCT, 21, "National Pumpkin Cheesecake Day" } ,
   {OCT, 22, "National Nut Day" } ,
   {OCT, 23, "National Boston Cream Pie Day" } ,
   {OCT, 24, "National Bologna Day" } ,
   {OCT, 25, "National Greasy Foods Day" } ,
   {OCT, 26, "National Mincemeat Pie Day" } ,
   {OCT, 27, "National Potato Day" } ,
   {OCT, 28, "National Chocolate Day" } ,
   {OCT, 29, "National Oatmeal Day" } ,
   {OCT, 30, "National Candy Corn Day" } ,
   {OCT, 31, "National Candy Apple Day" } ,
   {NOV, 1, "National Vinegar Day" } ,
   {NOV, 2, "National Deviled Egg Day" } ,
   {NOV, 3, "National Sandwich Day" } ,
   {NOV, 4, "National Candy Day" } ,
   {NOV, 5, "National Doughnut Day" } ,
   {NOV, 6, "National Nachos Day" } ,
   {NOV, 7, "National Bittersweet Chocolate with Almonds Day" } ,
   {NOV, 8, "Celebrate National Raisin Bread Day" } ,
   {NOV, 9, "Celebrate National Vegan Month" } ,
   {NOV, 10, "National Vanilla Cupcake Day" } ,
   {NOV, 11, "National Sundae Day" } ,
   {NOV, 12, "National Chicken Soup for the Soul Day" } ,
   {NOV, 13, "National Indian Pudding Day" } ,
   {NOV, 14, "National Pickle Day" } ,
   {NOV, 15, "National Raisin Bran Cereal Day" } ,
   {NOV, 16, "Celebrate National Peanut Butter LoverÕs Month" } ,
   {NOV, 17, "National Homemade Bread Day" } ,
   {NOV, 18, "Celebrate National Georgia Pecan Month" } ,
   {NOV, 19, "Celebrate National Pepper Month" } ,
   {NOV, 20, "National Peanut Butter Fudge Day" } ,
   {NOV, 21, "National Gingerbread Day" } ,
   {NOV, 22, "National Cashew Day" } ,
   {NOV, 23, "National Eat a Cranberry Day" } ,
   {NOV, 24, "National Sardines Day" } ,
   {NOV, 25, "National Parfait Day" } ,
   {NOV, 26, "National Cake Day" } ,
   {NOV, 27, "National Bavarian Cream Pie Day" } ,
   {NOV, 28, "National French Toast Day" } ,
   {NOV, 29, "National Lemon Cream Pie Day" } ,
   {NOV, 30, "National Mousse Day" } ,
   {DEC, 1, "National Eat a Red Apple Day" } ,
   {DEC, 2, "National Fritters Day" } ,
   {DEC, 3, "National Apple Pie Day" } ,
   {DEC, 4, "National Cookie Day" } ,
   {DEC, 5, "National Sachertorte Day" } ,
   {DEC, 6, "National Microwave Oven Day" } ,
   {DEC, 7, "National Cotton Candy Day" } ,
   {DEC, 8, "National Chocolate Brownie Day" } ,
   {DEC, 9, "National Pastry Day" } ,
   {DEC, 10, "Celebrate National Fruit Cake Month" } ,
   {DEC, 11, "National Noodle Ring Day" } ,
   {DEC, 12, "National Cocoa Day" } ,
   {DEC, 13, "National Ice Cream and Violins Day" } ,
   {DEC, 14, "National Bouillabaisse Day" } ,
   {DEC, 15, "National Cupcake Day" } ,
   {DEC, 16, "National Chocolate Covered Anything Day" } ,
   {DEC, 17, "National Maple Syrup Day" } ,
   {DEC, 18, "National Roast Pig Day" } ,
   {DEC, 19, "National Hard Candy Day" } ,
   {DEC, 20, "National Fried Shrimp Day" } ,
   {DEC, 21, "National Kiwi Fruit Day" } ,
   {DEC, 22, "National Date Nut Bread Day" } ,
   {DEC, 23, "National Pfeffernuesse Day" } ,
   {DEC, 24, "National Egg Nog Day" } ,
   {DEC, 25, "National Pumpkin Pie Day" } ,
   {DEC, 26, "National Candy Cane Day" } ,
   {DEC, 27, "National Fruit Cake Day" } ,
   {DEC, 28, "National Chocolate Candy Day" } ,
   {DEC, 29, "National Pepper Pot Day" } ,
   {DEC, 30, "National Bicarbonate of Soda Day" } ,
   {DEC, 31, "Celebrate National Egg Nog Month" } ,

 {0,0,NULL} } ;  /* the last element, a flag to stop searching */

/*------------------------------------------------------------------------------*/
/*! Return one of today's date trivia string. */

char * AFNI_get_date_trivia(void)
{
   time_t tt ;
   struct tm *lt ;
   int ii ;
   static char *monthlist[12] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun",
                                  "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" } ;
   static char dmy[32] ;
   static int ncall=0 ;

   tt = time(NULL) ;         /* seconds since 01 Jan 1970 */
   lt = localtime( &tt ) ;   /* break into pieces */

   /**** find this month and day in the trivia list, if present ****/

   for( ii=ntar=0 ; ntar < NTMAX && holiday[ii].day != 0 ; ii++ )
     if( holiday[ii].mon == lt->tm_mon+1 && holiday[ii].day == lt->tm_mday )
       tar[ntar++] = holiday[ii].label ;

   /**** Special days not on fixed dates ****/

   /* Day of month = 13 and weekday = Friday */

   if( ntar < NTMAX && lt->tm_mday == 13 && lt->tm_wday == 5 )
      tar[ntar++] = "Friday the 13th" ;

   /* 1st Monday in September */

   if( ntar < NTMAX && lt->tm_mon+1 == SEP && lt->tm_wday == 1 && lt->tm_mday <= 7 )
      tar[ntar++] = "Labor Day (USA)" ;

   /* 4th Thursday in November */

   if( ntar < NTMAX && lt->tm_mon+1 == NOV && lt->tm_wday == 4 &&
                       lt->tm_mday <= 28 && lt->tm_mday >= 22 )
      tar[ntar++] = "Thanksgiving (USA)" ;

   /* 1st Monday in October */

   if( ntar < NTMAX && lt->tm_mon+1 == OCT && lt->tm_wday == 1 && lt->tm_mday <= 7 )
      tar[ntar++] = "Opening of Supreme Court (USA)" ;

   /* 1st Tuesday after 1st Monday in November */

   if( ntar < NTMAX && lt->tm_mon+1 == NOV && lt->tm_wday == 2 &&
                       lt->tm_mday >= 2    && lt->tm_mday <= 8   )
      tar[ntar++] = "Election Day (USA)" ;

   ncall++ ;
   if( ntar == 0 || (ntar < NTMAX && ncall > 3) ){  /* 04 Oct 2007 */
     char *fm = AFNI_get_friend() ;
     tar[ntar++] = fm ;
   }

   /**** select which one to return ***/

   if( ntar == 1 ){
     return tar[0] ;
   } else if( ntar > 1 ){
     static int iold=-1 ;
     ii = (lrand48()>>8) % ntar ;
     if( ii == iold ) ii = (ii+1)%ntar ;
     iold = ii ; return tar[ii] ;
   }

   /* default trivia */

#if 1
   sprintf( dmy , "[%02d %s %d]" ,
           lt->tm_mday , monthlist[lt->tm_mon] , lt->tm_year+1900 ) ;
   return dmy ;
#else
   return "[Elen sila lumenn' omentielvo]" ;
#endif
}
