For the transistor, get a databook from the manufacturer, or check their website. It will have all the pinout info, and is just a generally useful thing to have.
Diodes are polar. That's sort of the point of the device . The line on the diode case matches the line the arrow points to in the schematic.
I think I have diode info at http://www.aaroncake.net/electronics/schem.htm