20101123 tech: Hewlett-Packard posts gain in profits; sales