Malaysian
Rinse the rice, then cook it with the coconut milk, 350 ml of the water, a third of the salt, the knotted pandan leaves and the ginger in a rice cooker or covered pot for 15 minutes; rest 10 minutes.
Fry the anchovies in the oil over medium heat for 4 minutes until crisp and lift them out; fry the peanuts in the same oil for 4-5 minutes and drain.
Blend the soaked chilies, shallots, garlic and shrimp paste to a paste with a splash of water.
Pour off all but about 4 tbsp of the oil and fry the paste over medium-low heat for 15 minutes, stirring, until dark red and the oil separates.
Soak the tamarind in the remaining 100 ml of warm water, strain it into the sambal, add the sugar, the remaining salt and half the anchovies, and cook for 5 minutes more.
Slice the cucumber and halve the hard-boiled eggs.
Serve the rice with the sambal, the remaining crisp anchovies, peanuts, egg and cucumber.