[EDI-L Mailing List Archive Home] [Message List] [Reply To This Message]

OT: More Humor

From: rich hurd <r.hurd@...>
Date: Sat Dec 21, 2002  1:18 am
Subject: OT: More Humor
Tensions are running a tad high here on the list. Here's that tech
Christmas humor that I promised last week. No rotten tomatoes, please,
and take the XML vs. EDI arguments out back in the alley.

/*

AN ELECTRONIC CHRISTMAS/CHANUKAH CARD TO ALL

Lyrics: Evan Leibovitch < Code: Beverly Erlebacher < Written: December 1989

This code is in the public domain.

*/

#include <stdio.h>

#define DEFAULT_HOLIDAY "CHRISTMAS/CHANUKAH"
#define DAYS_OF_NEGLECT 12

char heading[] = "AN ELECTRONIC %s CARD TO ALL\n\n\
Lyrics: Evan Leibovitch < Code: Beverly Erlebacher < Dedicated to Dave Mason, Chris Siebenmann, and anyone who's left\n\
their computers alone just long enough for them to self-destruct:\n\n\
(Sung to the tune of something or other...)\n\n";

char * cardinal[] = {"And a", "Two", "Three", "Four", "Five",
"Six", "Seven", "Eight", "Nine", "Ten", "Eleven", "Twelve"};

char * ordinal[] = {"first", "second", "third", "fourth", "fifth", "sixth",
"seventh", "eighth", "ninth", "tenth", "eleventh", "twelfth",
"thirteenth"};

char * item[] = { "burnt-out V.D.T.", "faulty tapes;",
"heads crashed;", "bad blocks;", "core dumps;", "bad controllers; ",
"blown partitions;", "gettys dying;", "floppies frying;",
"ports a-jamming;", "chips a-smoking;", "boards a-blowing;" };

char daystr[] = "\nOn the %s day I left it, my Unix gave to me:\n";

char finale[] =
"\nOn the %s day I started adapting my Nintendo for the VME bus.\n";

main(argc, argv)
int argc;
char *argv[];

{
int i, j;

printf(heading, argc > 1 ? argv[1] : DEFAULT_HOLIDAY);
for (i = 0; i < DAYS_OF_NEGLECT; i++) {
printf(daystr, ordinal[i]);
if (i == 0)
printf("\tA %s\n", item[i]);
else for (j = i; j >= 0; j--)
printf("\t%s %s\n", cardinal[j], item[j]);
}
printf(finale, ordinal[DAYS_OF_NEGLECT]);
exit(0);
}




 
EDI to XML Mapping for EDIFACT/X12 Convert EDIFACT/X12 Schemas to XML Schema Legacy Data Conversion Tools Access Relational Data as XML Visual XSLT and XQuery Mapping Tools Simplify EDI Data Integration with Stylus Studio XML Enterprise Suite - Free Download!
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.