The expression "violates copyright" is confusing here. None of these ten things violate copyright if "somebody" has your permission to do them.
Also, some permissions are implied. For example, I can copyright some code and post it on my web site. The very act of reading the code in a browser creates a copy of the code in your computer's memory, but permission to create that copy is implied by my posting it on the web. However, that implied permission doesn't extend to you reposting the same code on your web site.
However, that implied permission doesn't extend to you reposting the same code on your web site.
I wonder if the technology changes this. Here is what comes to mind:
Is it okay if in my copy I provided an attribution to the original author? How extensive does the attribution need to be? Is "raganwald wrote this" sufficient, or do I need a link to the original location? If it is a link, do I need to actively ensure the link is still valid, just in case you decide to change the location or stop publishing? If, after publishing your code once, you decide to retract it, can you force me to retract my attributed copy as well? What if my copy is a picture of your code? What if it is an iframe?
And thank you to everyone for these kinds of answers; I think a lot of people have a number of strange opinions and buy into various myths with regards to copyright. Hopefully my questions have covered a good enough number of scenarios to help translate the legalese to layman's terms.
In many cases, you cannot copy the entire thing without permission, even if you provide an attribution. The doctrine governing this case is subject to interpretation:
Also, some permissions are implied. For example, I can copyright some code and post it on my web site. The very act of reading the code in a browser creates a copy of the code in your computer's memory, but permission to create that copy is implied by my posting it on the web. However, that implied permission doesn't extend to you reposting the same code on your web site.