/* SAY - display a saying, selected at random. THVV Written for 7094 CTSS, ported to Multics, to Mac screensaver THVV 05/01/97 converted to Java THVV 11/12/97 added some sayings Include in a page and every time the page is loaded a saying will be shown. */ import java.awt.*; import java.applet.*; import java.util.Random; public class Say extends Applet { public Say() { // constructor this.setBackground(Color.white); this.setLayout(new BorderLayout()); this.add("North", new SayingWindow()); } // constructor // Boiler plate for HotJava public String getAppletInfo () { return "Generate saying 97-05-01 THVV"; } // getAppletInfo public String [][] getParameterInfo () { String [][] info = { }; return info; } // getParameterInfo // Main program for testing only. public static void main(String args[]) { Frame f = new Frame("Say"); Say s = new Say(); s.init(); s.start(); f.add("Center", s); f.resize(600,300); f.show(); } // main } // Say class SayingWindow extends Panel { final static String sayings [] = { "\"Well, it just looked like| a hippopotamus to me.\"", // Adam "Still hungry? Read on.", // Ashberry "There is always a wicked secret, a private resaon for this.", // Auden "lapides loquitur|et caveant lectores ne cerebrum iis excutiat", // St Augustine "si nemo ex me quaerat sci|si quaerenti explicare velim nescio", // St Augustine "I called that number and they said whom the Lord loveth he chasteneth.", // Barthelme "(he didn't notice that the light had changed)", // Beatles "Everybody's got something to hide 'cept for me and my monkey.", // Beatles "It's not a good position I am in.|If I had to do the whole thing over again|I wouldn't.", // Berryman "...Mr Bones,|as i look on the saffron sky,|you strikes me as ornery.", // Berryman "Life, friends, is boring. We must not say so.", // Berryman, dream song 14 "busy, busy, busy", // Bokonon "Hl\u00e4r u fang axaxaxas mlo.", // Borges (ä) "Nobody saw him disembark in the unanimous night.", // Borges "There is no way to peace.|Peace is the Way.", // Peter Bos "Because it is soon, it has a private and quiet|spring.", // Bronk "selling is more of a habit than using", // WSB "i am not innarested in your horrible old|condition", // WSB "\"I was much more physical before my accident.\"", // WSB "After one look at this planet any visitor from outer space would say|\"I want to see the manager.\"", // WSB "Misfortune does not lessen however much you speak of it.", // C P Cafavy "Finally, I said, \"There are no more solutions.\"|He said, \"What is the principle underlying all of the solutions?\"", // Cage "it is not irritating to be where one is|it is only irritating to think one would like to be somewhere else", // Cage "Value judgments are destructive to our proper business,|which is curiosity and awareness.", // John Cage. "\"When I use a word,\" Humpty Dumpty said, in rather a|scornful tone, \"it means just what I choose it to mean --|neither more nor less.\"", // Carroll "if you lived here,|you'd be home now", // Charles River Park "You're only as big|as the littlest thing|that gets you down.", // CTC "It is now pitch dark.|If you proceed, you will likely fall into a pit.", // Crowther "Experiment escorts us last,|His pungent company|Will not allow an axiom|An opportunity.", // Dickinson "To whom the Mornings stand for Nights|What must the Midnights--be!", // Dickinson "Ruin is formal--Devil's work|Consecutive and slow--|Fail in an instant--no man did|Slipping--is Crash's law.", // Dickinson "Toto, I don't think we're in Kansas|any more.", // Dorothy "People may not get all that they pay for in this world,|but they certainly pay for all that they get.", // Frederick Douglas "j'emmerde l'Art", // Duchamp "\"Tools that are no good require more skill.\"", // Duchamp "God is not good.|I am good.", // Eckhart "Raffineirt ist der Herrgott|Aber boshaft is er nicht.", // Einstein "HURRY UP PLEASE ITS TIME", // TSE "The circles of the stormy moon|Slide westward toward the River Plate", // TSE "\"I guess we're all bozos on this bus.\"", // Firesign Theater "The blankets they give the Indians|only make them die.", // Michael Franks "endlich muss man beginnen zu lieben|um nicht krank zu werden", // Freud "verweile doch,|du bist so sch\u00f6n", // Goethe (ö) "Despise the world; despise nothing;|Despise yourself; despise despising yourself;|These are four good things.", // Abbess Herrad of Hohenburg "even a lean pig has it in him to rage|around", // I Ching "But, Holy Saltmartin, why can't you beat time?", // Joyce "Honuphrius is a concupiscent exservicemajor |who makes dishonest propositions to all.", // Joyce "Mankind ascends through a rain of trash.", // Kafka? "Whatever is contradictory or paradoxical is called the back of God.|His face, where all exists in perfect harmony, cannot be seen by man.", // Kafka "human language is a cracked pot|upon which we beat out tunes for bears to dance to", // Kafka "We are digging the pit of Babel.", // Kafka "Leopards break into the temple & drink the sacrifical chalices dry.|This is repeated over and over again;|finally it can be calculated in advance,|and it becomes a part of the ceremony. ", // Kafka "The crows maintain|that a single crow|could destroy the heavens.", // Kafka "\"I have seen the future, and|it does not work.\"", // Herman Kahn "Nothing is a mistake. There is no win and no fail. There is only make.", // Corita Kent "le mots ne sont pas la parole.", // Koryzibski? "perhaps this|will tell you who i am", // Lone Ranger "Since everything is but an apparition, perfect in being what it is,|having nothing to do with good or bad, acceptance or rejection,|one may as well burst out in laughter.", // Longchenpa. "LA GUSTA ESTE JARDIN|QUE ES SUYO?|EVITE QUE SUS HIJOS|LE DESTRUYAN", // Lowry "\"It was the BEST butter.\"", // Mad Hatter "Facts are the score, not the game.", // Harry Mathews "Every cloud from little acorns grows.", // Harry Mathews "Don't think--cook!", // Harry Mathews "The one-eyed shed fewer tears.", // Harry Mathews "have and don't have|confidence in words", // Harry Mathews "If you don't know, why ask?", // Harry Matthews "The blues is a chair,|not a design for a chair,|or a better chair.", // McCartney "There is only one tight connection worth making.", // Mullen "alternation of generations", // Mullen "what is the sound of one yo", // Mullen "(non identity of discernibles)", // Mullen "Did Newton know German?|ap fel", // Mullen "Yes|Terday,|No|Tomorrow", // Mullen "Feuerbach shows how to cut down a tree and stack the logs.|Not useful to say \"Wrong tree\".", // Mullen "Entia non sunt multiplicanda sine necessitate.", // Occam "\"It's GOOD, though.\"", // U. Utah Phillips "How'd you like to climb this high|without no mountain?", // Porkypine "For what do we live, but to make sport for our neighbours,|and laugh at them in our turn.", // Shakespeare "mba-kayere", // Pynchon "Skippy, you little fool, you are off on another of your senseless and |retrograde journeys.", // Pynchon "Sell your cleverness and buy bewilderment.", // Rumi "\"The chief cause of problems is solutions.\"", // Eric Sevareid, 1970 "you never did|the kenosha kid", // Slothrop "\"In that case what is the question?\"", // Gertrude Stein, last words "\"Hemingway, remarks are not literature.\"", // Gerturde Stein "\"Good taste is as tiring as good company.\"", // Gertrude Stein "\"...which read,|The Good Man Has No Shape, as if they knew.\"", // Stevens "Where was it one first heard of the truth?|The the.", // Stevens "One joins him there for company,|but at a distance, in another tree.", // Stevens "I am the Golux,|the only Golux in the world,|and not a mere Device.", // Thurber "Lightning flashes,|Sparks shower.|In one blink of your eyes|You have missed seeing.", // Ummon "I am the man,|I suffer'd,|I was there", // Whitman "\"In the beginning, were there already individual things?\"|\"Garbage in, garbage out.\"", // THVV "\"No\" (meaning later)|\"Later\" (meaning no)", // THVV "meat is meat|said the knife", // THVV "We set out bravely for the Happy Isles.", // THVV "You learn something every day|unless you're careful.", // THVV "\"Nice day out there.\"|\"Mind your own business.\"", // THVV "God must have loved the beer|he made so many of us", // THVV "The best tools are ideas.", // THVV "In the world only one thing|lacks Buddha nature", // THVV "Waste not,|Want not.|Waste love,|Want love.", // THVV "people who live in glass houses|shouldn't", // THVV "a logic|not of rigor|but of turgor", // THVV "precise beyond the decent limits of|precision", // THVV "an ornate windup|but as a pitcher|only soso", // THVV "verbal pinball", // THVV "Never mind how I got past the dog.", // THVV "Have you ever gone to lick the knife|and cut your tongue?", // THVV "All the powers in the universe are already ours.|It is we who have put our hands before our eyes|and cry that it is dark.", // swami vivekananda "I did everything like you said,|and look where I am now, you bastard.", // Mark Vonnegut to R. D. Laing "forsitan et haec olim|meminisse juvabit", // Virgil "\"You won't make yourself a bit realer by crying.\"", // White Queen "No one|to witness|and adjust, no one to drive the car", // Williams "\"No ideas but in things.\"|(the Fortune Cookie Oath)", // Willams/THVV "Die Welt is alles,|was der Fall ist.", // LW "(Ethik und \u00c4esthetik sind Eins.)", // LW (Ä) "4.023 One can DRAW INFERENCES from a false proposition.", // LW "\"Slab.\"", // LW "Der Philosoph behandelt eine Frage;|Wie eine Krankheit.", // LW "Can one play chess without the Queen?", // LW "Handeln vom Netz, nicht|von dem, was das Netz beschreibt.", // LW "Wovon mann nicht sprechen kann,|dar\u00fcber muss mann schweigen.", // LW (ü) "it should be easy to see|the crux of the biscuit|is the apostrophe", // Zappa "There is more stupidity than hydrogen in the universe|and it has a longer shelf life.", // Frank Zappa "Information is not knowledge, knowledge is not wisdom, |wisdom is not truth, truth is not beauty,|beauty is not love, love is not music.|Music is the best.", // Zappa "Paul's Law:|You can't fall off the floor.", // after dark "We look before and after|And pine for what is not", // Shelley, skylark "You've got to find a way of saying it|without saying it.", "What got you here will get you out of here.", "Tallaqtuki.|Tallaqtuki.|Tallaqtuki.", // Islamic divorce "(let us run and tell the king)", // Chicken Little "\"irreversible process\"", // THVV "there ain't no instant replay|in the football game of life", // c&w song "Maybe we lost.", "His Majesty does not know what the Band has just played,|but it is never to be played again!", // George V, on Strauss "If this sentence were in Chinese,|it would say something else.", "a great truth|is a truth whose opposite|is also a great truth", "...Simon Rodia", // THVV "the only vicious horses|are the ones that don't sweat|as any jockey knows", "\"How long will the hallucinations continue?\"|\"What hallucinations?\"", // Ron Padgett? "if you dream of water three nights|leave the desert at once", "\"To organize is to destroy.\"", "lente, lente currite|noctes equi", "no meio do caminho tinha uma pedra", // Carlos Drummond de Andrade "The syllogism is not applied to the first principles of sciences,|and is applied in vain to intermediate axioms;|being no match for the subtlety of nature.|It commands assent therefore to the proposition,|but does not take hold of the thing.", // Bacon, Novum Organum "MAN, being the servant and interpreter of Nature,|can do and understand so much and so much only as he has observed|in fact or in thought of the course of nature:|beyond this he neither knows anything nor can do anything.", // Bacon, Novum Organum "Neither the naked hand|nor the understanding left to itself|can effect much.", // Bacon, Novum Organum "Lovely enchanting language, sugar-cane,|Hony of roses, whither wilt thou flie?", // G. Herbert "we are put on earth for a little space|in order to learn to bear the beams of love", // GMH? "hard cases make bad law", "the ears|have their own dialect", "you can't get here|from here", "don't pay the ransom honey,|I've escaped", "life is either an exciting challenge, or|it is nothing", // fortune cookie "El esp\u00edritu|Es una invenc\u00edon del cuerpo", // (í)(í) "What was your name again?", "\"The desert also blooms.\"", "\"Without deviation, progress is not possible.\"", "Warte nur, balde|Ruhest du auch.", "We are experiencing Technical Difficulties|Please do not adjust your set", "fresh beer is like|fresh anything", // Sign in Kendall Square, 1960s "OBJECTS IN MIRROR ARE CLOSER THAN THEY APPEAR", "Please deposit fifty cents|for the next three minutes.", "may we have the next slide please.", "portions of this broadcast have been|prerecorded", "This is not a dress rehearsal.", "O to be a frog, my lads, and live aloof from care!", // Theocritus "question|authority", // nuclear power button & Multics slogan "I watched the white dogs of the dawn.", // an Eskimo poem against death "What would you say at this moment?", "the tao is near and yet people seek it far away", "I see it is still|with you", "The ten directions are without walls,|The four quarters are without gates.", // Zenrin Kushu "when the cart stops,|do you whip the cart|or whip the ox?", // Huai Jang "he who has a hundred miles to walk|should reckon ninety as half the journey", "the opera ain't over|till the fat lady sings", "When you awake,|you will remember nothing|of what I have told you.", "Rome, it is said, will be eaten by ants.", "they say|a good wine heals itself", "but you can't catch me|said the gingerbread man" }; SayingWindow () { // constructor this.setLayout(new GridLayout(0, 1)); this.setBackground(Color.white); this.setFont(new Font("Times", Font.PLAIN,14)); Random ran = new Random(); // Generate a random source int x = ran.nextInt(); if (x < 0) x = -x; x = x % sayings.length; // pick a saying // scan through looking for line separator and adding each line String rest = sayings[x]; while ((x = rest.indexOf("|")) >= 0) { this.add(new Label(rest.substring(0,x))); rest = rest.substring(x+1); } // while this.add(new Label(rest)); //this.pack(); this.show(); } // constructor } // SayingWindow