I had an issue with a computer that I wanted to trouble shoot by buying a replacement power cord. (In case the problem was the cord, not the computer.) The gentleman here advised that I could feel for warmth in the cord block to test whether the cord was functional, rather than replacing it. The issue was probably the computer itself rather than the cord. He advised not buying the cord, but just bringing in my computer to test it.
more