Now here are some basic tips for you budding domestic gods and goddesses, also known as do-it-yourselfers.
For carpet stains, get some white vinegar (the old, plain kind will do), hydrogen peroxide, washing-up liquid, and baking soda. First, use a sponge to mop up as much of the liquid as possible without rubbing it in deeper, and then mix equal parts water to vinegar. Pour the mix over the spot where kitty was naughty and let it dry. Once it has dried, liberally sprinkle baking soda over the spot. Then stir up a mixture of hydrogen peroxide and dish liquid (four parts hydrogen peroxide to one part detergent) and lightly rub the mix onto the urinated area. Use a brush (old toothbrushes work wonders), gloved fingers, or whatever else you have on hand to get the job done. After it dries, vacuum the area. If the smell remains, repeat the process.
Removing cat pee from non-carpeted surfaces, on the other hand, requires cleaning with a non-ammonia based detergent/cleaning product. The cleaning product can be commercial, all-natural, or homemade, just make sure the product does not contain bleach, as bleach mixed with the ammonia in cat urine would be a bad combination. Clean the spot, by mop or by hand, rinse thoroughly, and repeat. Then, making sure the room is well ventilated, give the area a final wash with a bleach and water solution (about one part bleach to seven or eight parts water).
And what if kitty has stained the bedding or clothes? This can be remedied by adding about a quarter of a cup of cider vinegar to the wash cycle, along with the detergent.
Avoid yelling at your cat during these "episodes." Yelling will not help the situation. In fact, it may only make the problem worse -- a stress-ridden cat will have even less compulsion to follow the rules. If the problem does not end, instead of getting angry take your cat to the vet for a checkup. Kitty may just be acting naughty, but there could also be something medically wrong. Conditions like polyuria, dysuria, and pollakiuria are all urinary disorders that are outward conditions of more complex underlying disorders.
The act of urinating on objects or areas as a method of marking territory
A medical condition involving frequent urination
Having a hard time urinating; pain while urinating