Sauté onion and garlic in oil for 10 minutes. Purée in food processor or blender with chiles and salt. Stir together purée, kidney beans, pineapple, almonds and rice.