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
0 answers

Copying XML input to output verbatim in Haskell

As per title. The application is user-written configuration files which might from time to time have to be updated in certain parts but otherwise should be unchanged. A starting point is just to be able to pass input to output unchanged. I accept…
3
votes
1 answer

Copy a range from one worksheet to another using cells property

I am trying to copy a range from one worksheet to another. I have multiple ranges that I would like to copy and paste at various points in the new worksheet though (for example, I want to paste the first range to D3, then the next range to E12, and…
Bobby Saget
  • 45
  • 1
  • 2
  • 6
3
votes
1 answer

C++11 Segmentation Fault trying to copy array () into vector dynamically

When I try to copy a fixed size array to a default constructed vector, I get a segfault. I'm confused because I always thought vectors are flexible containers which adjust their size to dynamic data they absorb. If I allocate space for the vector in…
moonwalker
  • 1,157
  • 1
  • 18
  • 34
3
votes
1 answer

how to copy updated files to new folder and create directory as source if not exist?

I was trying to compare files in 2 folders and copy those new and updated files to a diff folder, for example: newFolder has a\aa.txt (new folder and new file) b\aa.txt b\ab.exe (modified) b\ac.config (new file) aa.txt (modified) ab.exe…
Duke Wang
  • 83
  • 3
  • 10
3
votes
2 answers

Beanutils.copyProperties with protected set method

Is there a way to make BeanUtils works with a protected setXXX(X x) method? Or do you know some alternative to do this? Something like: public class A{ private String text; public String getText(){ return this.text; } …
rascio
  • 8,968
  • 19
  • 68
  • 108
3
votes
0 answers

xcode "copy files" build phase and symlinks

I have a cmake projects which generates an xcodeproj. In this xcodeproject it copies openAL*.dylib into the Bundle's /Framework directory. OpenAL (from ALSoft) has 3 .dylib files: a) openal.dylib, 17 bytes, symlink pointing to (b) b)…
kalmiya
  • 2,988
  • 30
  • 38
3
votes
1 answer

overwriting map with map possible with ?

I would like to do the following but it seems it is not possible. I am no expert on STL. typedef std::map CMap; CMap m1; m1[0] = 10; m1[1] = 11; m1[2] = 12; CMap m2; m2[20] = 30; m2[21] = 31; m2[22] = 32; std::copy( m1.begin(), m1.end(),…
Lorenz
  • 33
  • 4
3
votes
2 answers

Custom copying dynamic array

How can I copy dynamic array like that: Copy all elements of array, but start in second array not from 0 index, but from first. //We have array x, which have 5 elements, and array y, which have 6 elements; y[1]=x[0]; y[2]=x[1]; //etc... P.S. Don't…
bingo157
  • 113
  • 1
  • 2
  • 12
3
votes
1 answer

HTML 5: Canvas copying Pixel Data within a Polygon

Good afternoon, I am new to Canvas in HTML 5 and in using it with Javascript. But I can see how powerful this really is and I needed help. I have done a search and could not find a clear answer to this. Perhaps someone here can help. I have created…
user1924218
  • 99
  • 1
  • 11
3
votes
2 answers

How can I prevent a certain element's text being copied to the clipboard?

Before someone suggests it: no, user-select isn't the correct answer. Daniel O'Connor's pure CSS method is close but I can't use it for my use case because of those "Accessibility concerns". I need a better way of doing the same thing. I can't think…
Adam Lynch
  • 3,341
  • 5
  • 36
  • 66
3
votes
3 answers

Python: Copying files with special characters in path

Is there a way in Python 2.5 to copy files which have special chars (Japanese chars, cyrillic letters) in their path? shutil.copy cannot handle this. here is some example code: import copy,…
user351681
  • 31
  • 1
  • 2
3
votes
2 answers

copy an element as HTML to clipboard

I've managed to write some jQuery to find an element and copy it's html to the clipboard (ie only). The problem is that when I paste this into a rich text box area in sharepoint it pastes the HTML as text only. How do i replicate the user action of…
Brian Scott
  • 9,221
  • 6
  • 47
  • 68
3
votes
2 answers

Enabled copy on disabled EditText and explain weird behaviour of android editText

My question is: Is it possible to enable copy text function from a disabled editText ? I've tried the following code to test the behaviour on Android 4.4.2 (samsung Galaxy Note II) EditText _edit; @Override protected void onCreate(Bundle…
shaolin
  • 463
  • 5
  • 13
3
votes
2 answers

copy file function in C

I try to copy files using this function, but the output files contains strange characters. int File_Copy (char FileSource [], char FileDestination []) { int result = -1; char c [1]; FILE *stream_R = fopen…
CaTx
  • 1,421
  • 4
  • 21
  • 42
3
votes
2 answers

why Cut,Copy,Paste is not working in Mozilla Firefox and Google Chrome browser?

I tried to create a RichText Editor using jQuery with the help of execCommand(). But the following code: document.execCommand('cut', false, null); document.execCommand('copy', false, null); document.execCommand('paste', false, null); Is not…
Gmv
  • 2,008
  • 6
  • 29
  • 46