Banging your head against a brick wall

1. Being frustrated. 2. Thinking without success about a problem.