A contraption with a long, low, green metal arm swept noisily along the edge of a row of almond trees in an experimental orchard just west of UC Davis. Little flashes of light sparked between the bottom of the arm and the green weeds below, and puffs of gray smoke wafted up from the stricken pests.