A less familiar Scottish adage used for students:
When a student does poorly on an assignment/test/quiz and is frustrated for the long hours devoted to studying. So frustrated, the student feels the urge to murder the/insert into the teacher responsible with a garden gnome.