josephs sailed before the mast on almost every kind of ship in the navy , frigates , brigs , schooners , right up to the three deckers hes on today , and along the way as hes worked his ticket up to petty officer of the foretop hes learned a trick or two on the subject of knots .