How to deal with theft when backpacking

As some readers of this blog may already know, my laptop got stolen on a 10-hour bus ride from Probolinggo, Java, Indonesia while travelling to Yogyakarta, Java, Indonesia. I placed my laptop in my bag with two security locks by my feet and kept what I thought to be a good eye on it. At…