I've never actually used it, but had an interesting idea for it.
Get a shocking dog collar and install an RFID reader. Place RFID tags on things you don't want the dog to be near (like the garden, cat's litter box, or whatever). The dog gets a shock whenever it gets too close, quickly figuring out what things should be avoided.
The only problem with this is that RFID usually only goes a couple inches.