If you have problems with fruit flies or similar pests in your house, but don't want to make a trip out to the compost bin every time you have something to put in there, just keep a container in your freezer exclusively dedicated to compost material. Whenever you cook, keep it on the counter to toss things into, then pop it back into the freezer till you have time to make a trip out to your garden. By keeping the collection container in the freezer, you won't deal with any annoying insects or smells, but you can still benefit from all the joys of composting.
I love learning new things. Happy composting!