Dry roast the whole spices under "for roasting and grinding" and grind them finely. Set aside.
Cook the rice till done. Set aside
In a large pan, heat oil. Splutter mustard seeds
Fry the dals and curry leaves briefly. Add the onion and cook till wilted.
Add the rice and the powder and toss to coat well. Cook for a couple of minutes and switch off.