I second the use of a detachable handlebar bag for all valuables. Not sure what I would do in the original situation, but I can say that bringing a laptop with wi-fi means you're much more likely to be able to use the internet with your bike in sight.
Steve