A western New York judge said Friday she has learned a "harsh lesson" after coming under fire for reported profane and inappropriate remarks on social media, including a post that bragged about "ripping apart" a witness on cross-examination, and another that ogled about a fellow military veteran's body.