A trick I use with great success is to write down the name of something I think I "need" on a sticky note along with a date 14-days into the future. I then promise myself that if I still want the item when the designated date arrives I'll be permitted to buy it.