Just to emphasis, if you are carrying a knife for the purpose of self defence, you will be arrested. Don't do it.
Glasgow is a safe city for the most part. A bit of common sense will keep you safe. Using your laptop in a cafe is very common and not risky at all, unless you leave it unaccompanied.