We simply ignored ours when they were begging for food - so now one lies at our feet, and the other lies somewhere in the area. After we are done, they get a little bit in their bowls - this has stopped them constantly trying to climb into our plates.

Dog naturally try to get into trash cans - we got the kind you have to step on a lever to open the top. Then we turned the top toward the wall, and they wasted some time trying to open the part with the hinge, and now have given up on it. all the other advice above is great.