Gains in technology stocks helped offset weakness in the energy sector as Canada’s main stock index crept higher in ...