throw one's cap over the windmill

Etymology
From a passage in the novel Don Quixote in which the titular character throws his cap over a windmill that he has mistaken for a giant, as a challenge.

Verb

 * 1)  To act in a bizarre or eccentric manner.