Stop a Loose Cord From Being a Tripping Hazard With Double-Sided Mounting Tape
Run double-sided foam mounting tape along a loose cord and press it to the floor — it bonds immediately to both the cable and the surface, so the cord stops sliding and stops being something to trip over. Warm it with a hair dryer first if you ever need to pull it back up.