Boil potatoes in the water until soft. Drain and set aside.
In a small skillet, toast the cumin seeds until fragrant and lightly browned.
Mash potatoes in a large mixing bowl, add cumin seeds, shallots, cilantro, chili flakes, pepper and salt. Mix well with a spoon. Form the potato mixture into patties, about 2-1/2" in size.
Heat oil in a skillet over medium low heat. Coat the potato cakes with beaten eggs and place on a heated skillet pressing down gently. Fry them until golden brown on the outside, about 3 minutes. Turn over and fry the other side.