Constructing a regular octagon

Two questions for you:

The first is more mundane, and is about compass and straight edge construction:

A. Quickest, cleanest way to construct a regular octagon.

B. Given a side, quickest, cleanest way to raise a regular octagon on it.

The second:

Where would you cut a unit square to create a regular octagon? (how far from the corner is your first cut?)