Preheat the oven to 375 degrees F. In the large bowl, cream the butter with the sugar using an electric mixer. Add the egg and ground nuts. In another bowl, mix the flour with the baking powder, soda, cardamom, cinnamon, cloves, allspice and nutmeg. Blend the dry ingredients into the creamed mixture until a stiff dough forms. Shape the dough into a ball. (At this point, you can wrap the dough in plastic wrap and refrigerate it to develop the flavor, for up to a week). Cut off a portion of the dough at a time and roll between your hands and a lightly floured work surface to make slim, ropes about 1/2-inch thick. Place 4 or 5 ropes on an ungreased cookie sheet. Cut ropes into 1/2-inch pieces using a sharp, small knife. Separate the pieces. Bake for 8 minutes or until the cookies are lightly browned and dry. Remove from the oven; cool on the baking sheet.