Gnomes and their hats

Here is a riddle for you.  I will post the answer in the comments.  For the record, I didn’t get it but a co-worker of mine did.

Link via PlanetDan. (where else these days?)