I always apply in my home country, then they understand all documents I have in my language if documents not in English , you can apply for e visa in any country online, you choose what embassy the online application will be send to for approval
I would would take a night out back next day, when I got my I saw a interview with a guy from ministry of foreign affairs he said if out and in same day you in basic make a overstay in the end cos been in Thailand when you leave Thailand , but hear many get new 180 days with out and in same day, I don't know
All that is in Thailand for more than 90 days need to do 90 days rapport, and for most dtv visa easier to do a border run/fly out and back , a good idea stay out atleast 1 day,to get new 180 days, special if have dtv with cooking school or thaiboxing, they can demand you to take new courses if extend on immigration office, not needed if leaving Thailand and come back according to my information right now