Top "Copy" questions

To copy is to create a duplicate of an object without destroying the original.

Pytorch preferred way to copy a tensor

There seems to be several ways to create a copy of a tensor in Pytorch, including y = tensor.new_tensor(…

copy pytorch tensor
Paste multiple times

What is the best way replace multiple lines with the contents of the clipboard? The problem I'm having is when …

vim copy paste
Copy text from <span> to clipboard

I've been trying to copy the innerContent of a <span> to my clipboard without success: HTML <span …

javascript html copy clipboard copy-paste
What is the difference between "copy" and "retain"?

What is the difference between copy and retain for NSString? - (void)setString:(NSString*)newString { string = [newString copy]; }

objective-c nsstring copy retain
Copy multiple directories with one command

Is there any way to copy multiple directories in one command, to reduce the number of layers? E.g., instead …

docker copy dockerfile
Copy file permissions, but not files

I have two copies of the same directory tree. They almost have the same files in both (one version may …

linux bash permissions copy chmod
"display:none" content copied to clipboard, visible when pasted

I'm having a problem with non-displayed HTML elements being copied to the clipboard, and then displayed when the content is …

html css outlook copy paste
Gradle Copy Task: How to overwrite existing files?

The Copy api doesn't mention a flag/property that can be set. So what's the default action and how can …

java copy gradle overwrite
Why does mmap() fail with permission denied for the destination file of a file copy program?

I'd like to give a try at copying the contents of a file over to another one by using memory …

c linux file-io copy mmap