What is the difference between doing, and by doing?
What is the difference between being based on and by doing?
A difficult point to french learners of English as in all three cases, you would say “en faisant”.
How has John L’Engle lived (it’s on Earth)?
Howard put his own life in danger, attempting to protect the Queen in his own time.
How do I earn a living from selling insurance products?
How do I find this blog?
On leaving the person is to do with time and means “when you saw him” whereas by selling the person is to do with Cause and Effect relationship. How can we know this? But there is a difference: by = she sells insurance in order to earn a living, it is her aim, it is a means to an end. In = Howard does not try to protect the Queen in order to put his own life in danger, it is just an occupational hazard for bodyguards, a side effect.