Maybe not the right place for this.
Sew A Button
Included is a video of my sewing machine using the buttonhole feature to sew the button. I set it to the end of the buttonhol stitch, which makes the needle go back and forth without moving the feed dogs to advance the fabric. I hand turn the machine to slowly line up the button with the needle's movement. Not every button works with this method but it did in this case.
After I cut the strings from the machine, I just tie a few knots before cutting them off.