In a medium bowl, stir together the flour, baking powder, and salt. Set aside. In a large bowl, beat together the butter, sugar, and oil until light and fluffy. Add in the eggs, beating the batter between each egg addition. Stir in the vanilla extract and almond extract. Add in about half of the flour mixture and beat until smooth. Then add in the whole milk and mix to combine. Add in the remaining flour along with the chopped pistachios and beat for several minutes until the batter is completely smooth.