Mix butter and sugar until creamy.
Add extracts and eggs and beat on lower speed until well combined.
Add flour, baking powder, and baking soda and mix on low speed until mixed.
Add almonds and coconut and continue mixing on low speed until well combined.
Form dough into 2 10-11 inch logs and place on a greased cookie sheet.
Bake in a 350 degree oven for 25-30 minutes.
Cool 15 minutes.
Slice the logs into 3/4 inch pieces and place cut side down on the cookie sheet.
Bake another 10-15 minutes.
Cool.