Questions tagged [copy]

To copy is to create a duplicate of an object without destroying the original. Commonly seen in text editors that will let you copy some text and paste it somewhere else.

In computing, copy is related both to the command by which a duplicate of a specified entity is made, both in terms of its definition and content, as well as the resulting duplicate itself.

In terms of abstracted use, 'copy' such as when performing a cut-copy-paste operation via a graphical user interface, is an interface metaphor based on the physical procedure used in manuscript editing to create a page layout.

11278 questions
3
votes
1 answer

in numpy array, I want to copy one column to another matrix and remove the column from original matrix

mat=[[0,1,5],[1,3,6],[-1,4,4],[1,2,2],[7,3,7],[2,5,3]] mat matrix shape could be a 10000*5. here just an example Here I define a function. It tries to find mat[:,0] < be or mat[:,0] > ba or mat[:,1] < bb. If one column match the condition, the…
rfeynman
  • 97
  • 1
  • 9
3
votes
1 answer

Bash: copy file to the latest directory

I know that cd - goes back to the latest directory. Is there a similar shortcut for copying a file from the current directory to the latest directory?
janosdivenyi
  • 3,136
  • 2
  • 24
  • 36
3
votes
2 answers

Why Doesn't reinterpret_cast Force copy_n for Casts between Same-Sized Types?

According to cppreference.com, reinterpret_cast: Converts between types by reinterpreting the underlying bit pattern. But wait, that's a lie cause it only works in these cases: When a pointer or reference to object of type T1 is reinterpret_cast…
Jonathan Mee
  • 37,899
  • 23
  • 129
  • 288
3
votes
1 answer

Copy file in java to directory that may not exist

I am trying to copy a file to a path that may not exist with this code public static void copyFile( File from, File to ) throws IOException { if ( !to.exists() ) { to.createNewFile(); } try ( FileChannel in = new…
Nick Nikolov
  • 261
  • 3
  • 13
3
votes
2 answers

Copy cell from on sheet to another, if other cell in row matches values

What I want, is to copy a cell(s) from one sheet to another, only if another cell in the same row (different column) have/has a particular value(s) in Google Sheets. Ideally, I would like this to be live; if I add a row in the first sheet and the…
Jonathon Oates
  • 2,912
  • 3
  • 37
  • 60
3
votes
3 answers

Make a deep copy of a dictionary

I have a Dictionary called baseDictionary. The key is a string and the values are the properties of a class called myData. In partiular the properties are: "age" (as int), "nationality" (as string) and "income" (as double). So baseDictionary has…
mickG
  • 335
  • 5
  • 13
3
votes
2 answers

Vbscript - Compare and copy files from folder if newer than destination files

I'm trying to design this script that's supposed to be used as a part of a logon script for alot of users. And this script is basically supposed to take a source folder and destination folder as basically just make sure that the destination folder…
Kenny Bones
  • 5,017
  • 36
  • 111
  • 174
3
votes
1 answer

Errno13 - Permission denied in documents folder?

Okay, I worked for an hour on an code which allows the user to create an project, but now I am stunning. I try to copy a file using shutil and copyfile. Here is my code: class Adder(): @staticmethod def…
Jan
  • 139
  • 10
3
votes
3 answers

Linux : Copy Multiple files and remove it's extension

I have got a directory containing files of type *.cpp.So i would like to copy each file in the directory and to paste it in the same directory by using cp -a *.cpp with an option to remove the .cpp while pasting.Is it possible ?
CodeIt
  • 3,492
  • 3
  • 26
  • 37
3
votes
0 answers

WIX MSI: copying long file names or files which has long file path

I created MSI using WIX. It contains few files which has long path (more than 248 characters) and file name (more than 260 characters, including file path + file name). while installing this MSI package into my computer it is throwing error "Error…
mgr
  • 641
  • 1
  • 8
  • 23
3
votes
2 answers

How to copy image of a chart from Silverlight application to clipboard?

I have a Silverlight 3.0 applications with some custom graphics and some charts. I need to find the best way to transfer these graphics to a PowerPoint presentation. I've read that Silverlight 4.0 offers a Clipboard API, but there is only support…
zidane
  • 642
  • 1
  • 7
  • 19
3
votes
3 answers

Copying structure elements vs copying array elements in C

As described in the answer to this question Copying one structure to another, We can copy the contents of a structure element to another by simple assignment. e1=e2; But this simple assignment does not work when copying array elements. Can someone…
sheetal_158
  • 7,391
  • 6
  • 27
  • 44
3
votes
5 answers

How to copy packages in IntelliJ without creating numerous fully-specified links to the old package

To readers who like this question: I asked this question eight years ago (as of 2022) and there are only three upvotes. Please be aware that there are not many of us who need this feature and it is unlikely this will be supported by IntelliJ (or…
Josiah Yoder
  • 3,321
  • 4
  • 40
  • 58
3
votes
0 answers

Extracting Folder from Resources to disk

I am trying to copy the Files of a Resources Folder to disk. final URL url = TemplateUtils.class.getResource("/templates/"); LOG.info(url); if (url != null) { final File dir = new File(url.toURI()); //Line 59 …
Tobi
  • 924
  • 1
  • 10
  • 39
3
votes
2 answers

In terminal, merging multiple folders into one

I have a backup directory created by WDBackup (western digital external HD backup util) that contains a directory for each day that it backed up and the incremental contents of just what was backed up. So the hierarchy looks like this: 20100101 …
Joshua Pinter
  • 45,245
  • 23
  • 243
  • 245
1 2 3
99
100