1 Shuck ears of corn and slice off kernels with a sharp knife.
2 Cut bell pepper into quarters, remove seeds, rinse and pat dry. Coarsely chop pepper. Halve chile pepper lengwhise, remove seeds, rinse and pat dry. Finely chop chile. Peel the onions and garlic and chop finely.
3 Heat 1 tablespoon oil in a skillet over medium heat. Add half of the corn kernels, bell pepper, chile, onions and garlic and cook for 8 minutes, stirring frequently. Remove from heat, season with salt and pepper and allow to cool slightly.
4 Puree the remaining corn kernels together with milk, eggs, flour and chili powder in a food processor until smooth. Season with salt and pepper.
5 Combine sauteed vegetables in a bowl with the corn puree and stir to combine.
6 Brush 4 oven-proof ramekins (each about 150 ml) (each approximately 5 ounces) with butter, then dust with cornmeal. Pour batter into ramekins, filling each about 2/3 full.
7 Gently place ramekins in a baking dish and fill with enough boiling water to come halfway up sides of ramekins. Bake in preheated oven at 180°C (fan 160°C, gas: mark 2-3) (approximately 350°F) until custards are set, about 40 minutes.
8 Meanwhile, rinse tomatoes, wipe dry and cut out stems. Cut tomatoes into quarters, remove seeds and finely dice tomatoes. Peel and finely chop red onion. Squeeze juice from lime.
9 About 10 minutes before serving, prepare the avocado salad: Halve avocado lengthwise and remove the pits, then peel and coarsely chop. In a bowl, combine avocado with lime juice and remaining oil.
10 Stir in the tomatoes and onion and season with salt and pepper. Rinse cilantro, shake dry, pluck leaves and coarsely chop. Gently mix into the salad.
11 Remove custards from the oven and use tongs to lift the ramekins from the hot water in the baking dish. Let cool for 1 minute, then gently invert onto plates and serve with avocado salad.