To catch fruit flies/gnats, put about 1/4 -1/2 inch cider vinegar in a small glass cup and add 1-2 drops dish washing liquid (I usually use a fruit flavored scent like orange or green apple). I leave mine on my windowsill and it works very well. There are 10 in here that I need to clean out! I actually get excited about catching those little bugs.
For more great tips, head on over to Rocks in My Dryer!