Antibotics + yeast infection

Okay so I have a double ear infection right?   That's besides the point and the very least of my worries. So, I was prescribed antibiotics of course and then BAM here comes the yeast infection... and I know the whole spill about why antibotics give yeast infections... it's kills the bad bacteria as well as the good. So my question is is there any way to prevent if from coming before it's starts?? I was prescribed diflucan of course but you have to suffer through the whole bottle of capsules before you can go about taking it. I can barely get to day 2 of antibiotics before it's comes on and that's a long 8 days before taking the damn pill to help.... help me!!!! PLEASE FOR FUTURE REFERENCE.