From the children's nuclear-warfare simulation game described in David Foster Wallace's "Infinite Jest." When the game master puts on the red beanie, s/he signifies an utter global crisis. The only time the red beanie has been put on in earnest was when a user-input error in the hideously complex computer program used to calculate thermonuclear yield output an apparent ignition of the Earth's atmosphere.