Grind together sugar, salt and tartaric acid. Set aside. Do not skip grinding salt, sugar and tartaric acid. It is essential for even mixing of salt and sugar to stick to each grain of namkeen. If you skip this step then, the salt tends to settle down at the bottom, leaving the end portion of namkeen very salty.
Heat oil in wok, add peanuts. Fry them till they are roasted nicely. Check for even browning of peanuts and firm texture. Remove from the wok and set aside.
Add split chillies, curry leaves and sliced coconut. Fry them till the coconut turns nice golden brown or the tenderness is gone and it is crisp.
Add roasted black chanas. Mix well.
Now add turmeric powder, rice flakes and roasted peanuts. Add salt-sugar mix as per taste.
Allow to cool and store in an air-tight container. It stays good for 7-10 days if stored in a sealed container. Serve as a snack with tea or coffee.