Using a food processor, grind the walnuts, leaving some medium-sized chunks for texture. Alternatively, place the walnuts in a ziplock bag and crush them with a rolling pin. In a large bowl, combine the ground walnuts, flour, granulated sugar, baking soda, baking powder, and salt until well mixed.