This story is at least 20 years old. It involves a man who has these flashes of genius and then blacks out not remembering what he did. He has one of these flashes and when he comes to there is a blue pyramid with eyes in his house. While he is trying to figure this pyramid out every time he tries to pour himself a drink, whiskey I think, the liquid disappears before he can drink it. I do not remember if this was in Analog or just a collection of stories.
"Ex Machina" by Henry Kuttner, originally published in Astounding Science Fiction, April 1948 (available at the Internet Archive) under the pseudonym Lewis Padgett (which Kuttner shared with his wife C. L. Moore).
The story is one of Kuttner's Gallegher stories, a series of five novelettes originally published in Astounding and collected in the book Robots Have No Tails. Gallegher is a genius inventor, but only when he's drunk; he wakes up the next day with weird gadgets he invented the night before and no idea what they are for.
The following description of the story "Ex Machina" is excerpted from an Amazon.com Customer Review by s.ferber of the collection Robots Have No Tails:
The collection ends with a tale called "Ex Machina" (April '48 "ASF"), in which Gallegher, Grandpa and Joe all return one more time for another way-out adventure. In this one, Gallegher sobers up again, only to find an invisible speed drinker in his house, as well as a metallic gizmo with blue eyes staring at him. (This orbed object may bring to mind the blue-eyed doorknob from Kuttner and Moore's extremely psychedelic novella "The Fairy Chessmen," from 1946.) Here, Gallegher is commissioned by a safari expedition company to come up with a way of minimizing the inherent danger to its customers. The story finds Joe discovering philosophy for the first time, has Gallegher once again accused of murder by the dim-witted authorities, and provides another wacky explanation for all the preceding mishegas.