While I don't condone violence, military technology is a big part of the advantage of western powers up to this point. It has driven innovations in other areas as well.
And I didn't mean to say China is not awesome (just not as awesome back then), I love Chinese history and culture, but my reaction is against the popular sentiment that China was humiliated for ~two centuries and it was just a temporary fluke. I think it began way before then, and that it's not certain that China was on the cusp of a scientific and industrial revolution itself, had not western powers arrived there first.