If you feel that an attack is coming, listen to your favorite music. Choose music with comforting or upbeat lyrics and focus on the words or even sing along. Keeping your mind on the music, rather than your feelings of anxiety, will allow your body to feel relaxed and let go of the panic.
The best way to breathe while having a panic attack is by focusing on how you exhale. You may find yourself inhaling quickly, and that is okay. It is actually very common when someone is in panic mode. It is more important to try not to exhale too quickly. Socializing and getting out of the house is the best way to settle your fears, and to meet your needs for human contact. The Internet is great, but it is not a substitute for face-to-face human interaction. Use it as a way to strengthen the contacts you have made in real life.