Following are some of the stocks that gained in the extended trading hours on the New York Stock Exchange.

Flotek Industries, Inc. (NYSE:FTK) shares gained 9.16 percent, or 68 cents, to $8.10 after the drilling services provider swung to a profit in the third quarter. The company reported net income of $17.9 million or 38 cents per share, compared to a net loss of $2.4 million or 9 cents per share for the year-ago quarter. Excluding items, it earned 21 cents a share. Quarterly revenue jumped 88 percent to $75.1 million.

Shares of C&J Energy Services, Inc. (NYSE:CJES) rose 7.35 percent, or $1.42, to $20.75 after its quarterly profit more than tripled from last year and beat estimates on strong demand for its hydraulic fracturing services. For the third quarter, the company earned $46.27 million, or 89 cents a share, compared to $13.81 million or 29 cents a share last year. Revenues more than doubled to $229.03 million from $83.92 million a year-ago. Analysts expected the company to earn 78 cents a share on revenue of $208.70 million, according to analysts polled by Thomson Reuters.

Cenveo, Inc. (NYSE:CVO) shares advanced 6.37 percent, or 24 cents, to $4.01 after it reported better-than-expected profit compared to last year's loss. For the third quarter, net income was $2.8 million, or 4 cents a share, compared with a loss of $157.1 million, or $2.52 a share last year. Excluding items, the printing company earned 26 cents a share. Revenue rose 10 percent to $500.6 million. Analysts expected earnings of 12 cents a share.

Shares of Triangle Capital Corp. (NYSE:TCAP) gained 5.55 percent, or 92 cents, to $17.50. For the past 52-weeks, the stock has been trading in the range of $13.62 to $20.97.

Enersys (NYSE:ENS) shares rose 4.26 percent, or 94 cents, to $23 after it reported better-than-expected quarterly results. For the second quarter, the company posted an adjusted profit of 58 cents a share, beating analysts' average estimates of 56 cents. Revenue rose 16 percent to $547.2 million. Analysts expected earnings of 56 cents a share on revenue of $544.84 million.

Viad Corp. (NYSE:VVI) shares gained 4.21 percent, or 80 cents, to $19.86. For the past 52-weeks, the stock has been trading between $15.77 and $27.34.

Avnet, Inc. (NYSE:AVT) shares advanced 4.16 percent, or $1.23, to $30.78 after its unit signed a distribution deal with Digilent, Inc. Digilent's wide range of low-cost development boards augments Avnet's existing Xilinx offering and provides customers with access to programming cables and embedded programming modules to jump-start new designs.