Some teachers have resorted to extreme means to punish students when they refuse to obey rules, while others search for more unorthodox solutions.