Emergency landing here in Noumea, New Caledonia due to smoke in the cockpit. Landed safely without incident. However, it was a bit unsettling to see the aircraft dumping fuel over the ocean before landing. Also, it was my first time seeing the flight attendants demonstrate how to do the "brace position". Hope to get more info on when we can leave the island (hopefully tomorrow morning). New Caledonia is a beautiful place. United and the people of New Caledonia have taken good care of us.