SAN JUAN, Puerto Rico -- There are cameras that capture images clear enough to distinguish between a fishing vessel and a boatload of pirates 10 miles away. There are cascades of water and noxious compounds to repel invaders. And there are shields to withstand a rocket-propelled grenade.