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 the April 1948 issue of Astounding Science Fiction (the magazine now known as Analog) 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: