Do you leave the nikon d50 on while charging via a usb port?

the D50 can't be charged via usb. If you mean transferring images to the computer, the answer is yes, but I'd strongly reccomend a card reader.