home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / wizards / 3596 < prev    next >
Encoding:
Text File  |  1992-08-13  |  4.5 KB  |  95 lines

  1. Newsgroups: comp.unix.wizards
  2. Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!elroy.jpl.nasa.gov!sdd.hp.com!mips!mips!munnari.oz.au!bruce.cs.monash.edu.au!monu6!edp328j
  3. From: edp328j@monu6.cc.monash.edu.au (Ultrix Systems Support)
  4. Subject: Re: Torek a hack? [Re: What must I learn...]
  5. Message-ID: <1992Aug13.162107.16798@monu6.cc.monash.edu.au>
  6. Summary: The full story of coke on the internet
  7. Organization: Monash University, Caulfield Campus
  8. References: <15564.Aug501.37.2992@virtualnews.nyu.edu> <PDS.92Aug12103914@lemming.webo.dg.com>
  9. Date: Thu, 13 Aug 1992 16:21:07 GMT
  10. Lines: 83
  11.  
  12. > [] Regarding Re: Torek a hack? [Re: What must I learn...];
  13. > [] avalon@coombs.anu.edu.au (Darren Reed) writes:
  14. >     dr> Dunno about coffee/cappucino, but coke definately :-) I
  15. >     dr> remeber a post ages ago about a finger daemon hooked upto a
  16. >     dr> coke machine so they knew how cold the coke was likely to be -
  17. >     dr> not something for a unix rookie :)
  18.  
  19. After much searching I finally found the following:
  20.  
  21. -----------------------------------------------------------------------
  22.  
  23. The Only Coke Machine on the Internet
  24.  
  25. Since time immemorial (well, maybe 1970) the Carnegie-Mellon CS
  26. department has maintained a departmental Coke machine which sells
  27. bottles of Coke for a dime or so less than other vending machines
  28. around campus. As no Real Programmer can function without caffeine, the
  29. machine is very popular. (I recall hearing that it had the highest
  30. sales volume of any Coke machine in the Pittsburgh area.) The machine
  31. is loaded on a rather erratic schedule by grad student volunteers.
  32.  
  33. In the mid-seventies expansion of the department caused people's
  34. offices to be located ever further away from the main terminal room
  35. where the Coke machine stood. It got rather annoying to traipse down to
  36. the third floor only to find the machine empty - or worse, to shell out
  37. hard-earned cash to receive a recently loaded, still-warm Coke. One day
  38. a couple of people got together to devise a solution.
  39.  
  40. They installed micro-switches in the Coke machine to sense how many
  41. bottles were present in each of its six columns of bottles. The
  42. switches were hooked up to CMUA, the PDP-10 that was then the main
  43. departmental computer. A server program was written to keep tabs on the
  44. Coke machine's state, including how long each bottle had been in the
  45. machine. When you ran the companion status inquiry program, you'd get a
  46. display that might look like this:
  47.  
  48.         EMPTY    EMPTY    1h 3m
  49.         COLD    COLD    1h 4m
  50.  
  51. This let you know that cold Coke could be had by pressing the
  52. lower-left or lower-center button, while the bottom bottles in the two
  53. right-hand columns had been loaded an hour or so beforehand, so were
  54. still warm. (I think the display changed to just "COLD" after the
  55. bottle had been there 3 hours.)
  56.  
  57. The final piece of the puzzle was needed to let people check Coke
  58. status when they were logged in on some other machine than CMUA. CMUA's
  59. Finger server was modified to run the Coke status program whenever
  60. someone fingered the nonexistent user "coke". (For the uninitiated,
  61. Finger normally reports whether a specified user is logged in, and if
  62. so where.) Since Finger requests are part of standard ARPANET (now
  63. Internet) protocols, people could check the Coke machine from any CMU
  64. computer by saying "finger coke@cmua". In fact, you could discover the
  65. Coke machine's status from any machine anywhere on the Internet!  Not
  66. that it would do you much good if you were a few thousand miles away
  67. ...
  68.  
  69. As far as I know nothing similar has been done elsewhere, so CMU can
  70. legitimately boast of having the only Coke machine on the Internet.
  71.  
  72. The Coke machine programs were used for over a decade and were even
  73. rewritten for Unix Vaxen when CMUA was retired in the early eighties.
  74.  
  75. The end came just a couple years ago when the local Coke bottler
  76. discontinued the returnable, coke-bottle-shaped bottles. The old
  77. machine couldn't handle the non-returnable, totally-uninspired-shape
  78. bottles, so it was replaced by a new vending machine. This was not long
  79. after the New Coke fiasco (undoubtedly the century's greatest example
  80. of fixing what wasn't broken). The combination of these events left CMU
  81. Coke lovers sufficiently disgruntled that no one has bothered to wire
  82. up the new machine.
  83.  
  84. I'm a little fuzzy about the dates, but I believe all the other details
  85. are accurate. The man page for the second-generation (Unix) Coke
  86. programs credits the hardware work to John Zsarnay, the software to
  87. David Nichols and Ivor Durham. I don't recall who did the original
  88. PDP-10 programs.
  89.  
  90. Tom Lane
  91.  
  92. -----------------------------------------------------------------------
  93.  
  94.