In a pinch, cover the bottom of your ruler with some rubber cement and let dry. It's clear when dry and works as well or better than the non-slip stuff on the market. Oh---and at my Walmart, rubber cement is about 50 cents a bottle more expensive in the crafting section than for the exact same bottle sold in the home improvement section...gotta watch out for weird stuff like that! :)