what separates violent Islamic nations from nonviolent nations?

Another factor is how colonialism played out differently in different regions. If you want to understand why there is Boko Haram in Nigeria and not Turkey, you need to understand that Nigeria was designed to be more easily ruled by the British in a way that sowed the seeds of exactly the conflict.

I’m not seeing a strong connection here. If colonialism produced terrorists then you’d expect Canada to have lots of terrorists and Iran to have none.

That’s wrong on a bunch of levels.

A factor is not the same as being the sole factor. Calling Canada a victim of colonialism betrays a severe lack of understanding of the term in this context–and you’ll note I was careful not to say that colonialism was the same everywhere. And colonialism is indisputably important to understanding groups like Boko Haram. Are you aware of how Nigerian politics is structured between Christians and Muslims, and why?

Happy to expand on any of those points if it is really necessary.

People who engage in political violence (revolutionaries, terrorists, etc.) tend to be highly educated and literate. That’s as true of Islamic revolutionaries as it is of communists, democratic revolutions, etc. Revolution succeeded in Cuba, not in Haiti (and in, say, Iran as opposed to Northern Nigeria).

I don’t really know how to answer this question because I don’t know exactly what the OP is asking about. Random religious terrorism? Shariah Law? Islamic revolutionary movements? What?