Used as an expression when someone does something so randomly stupid its funny. its sort of like, the action is the word after the "u know ur cool when" so "u know when ur cool when (you've peed in a can)"