Like virtually every other gadget, HP’s cartridges have general-purpose computers in them with millions of lines of code running on them – code for cleaning and calibrating printer-heads and many other utility functions.