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.
10,715
questions
0
votes
0
answers
21
views
Copy and Paste data from one workbook to another from specified cell
I have to prepare a macro for tickets. I have workbook (Test100). User open this workbook. If in column F in this workbook, user gonna change value (doen's matter what is the change, it can be just ...
-3
votes
0
answers
10
views
Coping several specific lines from multiple files to one file [closed]
I have some metadata files and I'd like to copy specific lines from each one of them to one file.
Let's say from all the files i'd like the lines that contains deposition and resolution to one other ...
0
votes
0
answers
14
views
How do you copy data from a dataframe to another
I am having a difficult time getting the correct data from a reference csv file to the one I am working on.
I have a csv file that has over 6 million rows and 19 columns. I looks something like this :
...
0
votes
0
answers
10
views
How to Copy Image from Our Android App and Past that Image in Our Android App through EditText
I want to add Copy Paste Image Functionality in my Android App Like IOS.
Where I Copy Image from My Android App and Paste that Image in My Same Android App through EditText (just like IOS Whatsapp)
Is ...
0
votes
1
answer
16
views
Postgres copy command adding extra backslash "\"
I am trying to copy jsonb type of data into a file.
\copy (select myjsonbcolumn from mytable where time > timestamp '2021-05-01 00:00:00') to '/home/ubuntu/jsobdata.ndjson';
Now this jsonb data ...
0
votes
2
answers
28
views
A safest way to replace an important file: copyTo vs rename vs... in Java/Kotlin
My app needs to update(replace) a very important file A from a pending one P.
There are several ways to do it, such as:
Remove A and Rename P to A
CopyTo A with overwrite option
...
Is there a way ...
0
votes
0
answers
10
views
Kotlin atomic copy folder
I want to copy a folder over another, but want to achieve it atomically, i.e. if any error happens, it will recover the folder to its original state. Something is similar to Kotlin Atomic file
0
votes
1
answer
18
views
Copy file from Remote Server using PgAdmin4
I am trying to copy a file from my Office Remote server as CSV output on my local machine (windows). I cannot use the export/import dialog. It shows the following error
Utility file not found. Please ...
0
votes
1
answer
17
views
Problem of creating several VMs with different names by using the concat of names and copyindex in variable of an ARM code
I am looking to create an ARM template code to be able to deploy several VMs with different names using copy and copyindex. To achieve this, I turned to this Microsoft procedure:
{
"$schema&...
0
votes
0
answers
28
views
How to COPY data from array to a table? [closed]
I have been told that "COPY" command is a lot faster, than doing it with "INSERT" (at least with a bunch of data). PostgreSQL documentation says that I can COPY data into table ...
-2
votes
0
answers
14
views
How can I avoid copy-paste in this VBA code? [closed]
I copy the cell data from Worksheet "Schedule" to the cell at Worksheet "Skils" and want to paste only values.
Sub MyMacro()
ActiveSheet.Range("$A$2:$I$2848").AutoFilter ...
0
votes
1
answer
32
views
Increasing array size
I just started learning java and I'm having a problem in increasing an array's size with a new length provided by the user.
If the user's input is greater than 10 (the initial array's size), then I ...
1
vote
0
answers
27
views
VBA script Not Copying Data - Inserting #REF
I have 1 workbook with multiple sheets and I am running into an issue copying over data from one sheet to another.
Sheets - "ALL CONTACTS" & "MAA DATA"
There are 4 columns ...
1
vote
1
answer
17
views
Understanding Scope / Copy in Python Classes where arguments default to numpy vectors
I have a pretty simple python-3 code that is puzzling me.
test.py :
import numpy as np
class PARTICLE:
def __init__(self, PosV = np.zeros(3), Mass=0):
self.posV = PosV
self.mass = ...
1
vote
2
answers
30
views
my copy array function didn't work. i didn't understand why
This code has to copy one array to another via void copy function. But I don't understand why it doesn't work.
#include <stdio.h>
void copy(int func_array_1[], int func_array_2[], int size) {
...
0
votes
0
answers
14
views
copy files from folder based on csv file list
I want to copy certain files from a folder based on a list stored in a .csv file. Previously I used rsync to do this using
rsync -a /source/directory --files-from=/full/path/to/listfile /destination/...
-1
votes
0
answers
17
views
VBA email sending macro - Loop through sheets and copy table to the email body [closed]
I would like to write an email sending macro which loops through the Names in “Raw data” sheet column “D”, takes the first 32 characters, searches for the relevant sheet name (32 characters of the ...
0
votes
1
answer
11
views
gradle war CopySpec “add only” (no override)
I’m trying to set up the files that are copied to my war.
The source directory has 2 directories, and some of the files below them should be added to the war. This works when the directories are ...
0
votes
1
answer
32
views
How to copy a class object in python
This is quite a simple question, however I cannot seem to figure out how to do it. I simply need to make a copy of a class object, for example:
class Foo():
def __init__(self, nums):
...
2
votes
1
answer
44
views
Apply vba function to cell directly above button
In my vba code the goal is to add 500 to the cell above the button. Right now the button in question is in cell "c7". I want the cell directly above it which is cell be "b7" to add ...
0
votes
0
answers
11
views
Clone rows based on the number of elements separated by commas in a cell (R language) [duplicate]
I have a data frame which looks like the following
name country lang_spoken
Joseph Germany de,en,fr
Luisa Italy it
Carlos Colombia es,en
And i want it to look like:
name country ...
4
votes
1
answer
48
views
Prevent creating a class only if shared pointer
how to prevent people from creating an instance of class, but only create a shared pointer? I am doing something like:
class OnlyShred
{
public:
friend std::shared_ptr<OnlyShred> make_shared(...
1
vote
3
answers
39
views
Numpy create four other points arrays based on one point array
Suppose I have an array a representing 3 center points of 3 rectangles. I want to create four other copied points based on each of points in array a by add 1 or minus 1 in x, y coordinates like shown ...
-1
votes
1
answer
22
views
macOS terminal asking for password every time I run copy command
I'm running a bash command on mac that moves a file to private/etc/app_name/.
sudo cp my_file.cpp private/etc/app_name/
Every time the I want to run the bash file, the OS asks for my system password.
...
0
votes
0
answers
14
views
Cannot write to clipboard from service worker in a MV3 chrome extension
I have an existing Chrome Extension with Manifest Version V2. I'm trying to copy page url when user clicks on the extensions icon. I was relying on execCommand('copy') function to copy links before. ...
0
votes
1
answer
12
views
ThreeJS Object Clone Properties are Undefined
In ThreeJS (and typescript) I am creating an instance of a custom object which extends Object3D, then attempting to clone it. However, the field (one required for new object creation) gets an ...
1
vote
1
answer
27
views
How to create and copy a formula which takes data from every second column and adds it to another sheet in a row
I have a sheet ("Names") with data starting in B1 and continuing across the row with a named value in every second cell. (eg B1, D1, F1 etc).
I would like to use a formula to insert this in ...
0
votes
0
answers
3
views
What or how can I use something to copy files between hard drives
What or how can I check if file exist if modified from original copy to this folder in an external hard drive, ie. I want to copy but just the modified version of a GTA V with mods, but I don't have ...
0
votes
0
answers
23
views
Object Required Error for copy and paste between 2 workbooks
Sub CriticalSummerList()
Dim wb1 As Workbook
Dim ws1 As Worksheet
Set wb1 = Workbooks("1")
Set ws1 = wb1.Sheets("Sheet1")
Set wb2 = Workbooks.Open("G:\")
Set ws2 = wb2....
0
votes
0
answers
22
views
Is it possible to save an R script, with unique parameters used in the script, after it has run?
I'm using R for some processes, and I was wondering if it was possible to save a copy of an Rscript with the parameters in the script after it has ran - instead of args[1]. This would let the user be ...
0
votes
0
answers
14
views
Copy Item on oneDrive API
Copying content from one OneDrive always returns internal server serror 500
https://docs.microsoft.com/en-gb/onedrive/developer/rest-api/api/driveitem_copy?view=odsp-graph-online
Is there anyone who ...
-1
votes
0
answers
28
views
Copy files with same name using robocopy
I have 2 files present in source folder with same name but different content. I want to copy them to destination folder using robocopy but only 1 file is getting copied. Is there a way to copy both ...
0
votes
2
answers
55
views
Excel copy cell from a column if value is starting with Formula
I have this kind of column in my Excel:
A B
gbgdf,
dsfsd,
gdgdf,
TC-EVTgfdsfs,
gdfgd,
I am willing to copy every cell that is NOT starting with 'TC-EVT'
I tried to use different ...
-2
votes
1
answer
38
views
List change after copy Python
I'm coding the final part of a clustering program, I want to parse a file like
--
COLOR
-
POINT COLOR
...
where
COLOR = (R,G,B)
POINT = (X,Y)
Example:
--
(255,0,4)
-
(0,0) (255,0,4)
(0,1) (255,0,4)
(...
0
votes
2
answers
38
views
Different methods of copying dicts and lists
In Python there are various ways to create a shallow copy of a dict: there's the dict constructor, the dict.copy method, and the function copy from the copy module:
>>> a = {'a':3, 'b': [1,2,...
1
vote
1
answer
47
views
Too many copies of the function to use std::move in C++
I have 2 classes: A and B. I need to pass instances of them to a function that will push them into a vector. I want to have good efficiency in my program, so I try to use move semantics. So in that ...
0
votes
0
answers
4
views
BCP No Rows Copied Runs Locally but Not Remotely
I built this BCP Call that works perfectly on my DEV host, but not on my PROD host. It is executed by a .bat file on the host that contains this call to BCP. When I run it from an elevated command ...
0
votes
2
answers
18
views
Log errors after running robocopy command
I am running a robocopy command to copy files from one folder to another like below -
"Robocopy source destination filename"
Some files are not getting copied although they are present at ...
0
votes
0
answers
14
views
Subprocess python doesnt handle the database path from my process im spawning
Im have been copying a project and from the main project i try to Popen a subprocess that starts a file in the project which is the copy of the main project, the issue is that when the terminal opens ...
0
votes
0
answers
14
views
Pasting text through selenium is not working while executing tests in Docker, however locally its working
On a webpage, by clicking on a button, it copies a link and then I am trying to paste that link through clipboard class and other ways in selenium but its not working while tests are executed in ...
0
votes
2
answers
13
views
Copy buttons element Array values - Javascript
I'm creating a dropdown list that sets and resets colors of buttons nearby. I'm trying to copy an array html button elements into another array. The problem is, When I change the first array of ...
0
votes
0
answers
12
views
Issue with variable getrange (error cannot convert to int)
Trying to do a personal project to create an additive list. So you enter a question on one sheet, press a button, and it copies it over to the master list on another sheet. Right now I'm having issues ...
-1
votes
0
answers
34
views
How to insert copied rows multiple times?
I would like to insert a copied row into another row (x, y or z below). The closest macro I've seen was this
Sub CopyConcatenate()
Dim ws As Worksheet
Dim rng As Range
'~~> Set ...
-1
votes
0
answers
15
views
Trouble when assigning elements with lists inside a list (created by multiplying list) in Python [duplicate]
Can anyone tell me what is wrong with my simple assign code below:
list_kq = [[0,0]]*5
print(list_kq) #[[0, 0], [0, 0], [0, 0], [0, 0], [0, 0]]
list_kq[0][0] = 1
print(list_kq) #[[1, 0], [1, 0], [1, ...
0
votes
0
answers
36
views
moving WSL venv in Windows
I have started using WSL2 with windows 11.
Recently while organizing my folders I tried to copy and paste a few files created in WSL to a different location but I get the error "Error 0x80070780: ...
1
vote
1
answer
18
views
Copy a label on tkinter and change the text on button click?
I have some program of this kind of type:
from tkinter import *
def apply_text(lbl_control):
lbl_control['text'] = "This is some test!"
master = Tk()
lbl = Label(master)
btn = Button(...
0
votes
1
answer
31
views
R: Copy values from a column in one dataframe to several selected columns in another dataframe for groups
I would like to copy the value from a dataframe to another dataframe. The difficulty for me is that I have four groups in both dataframes and in the dataframe where I would like to copy the values, I ...
0
votes
0
answers
20
views
SettingWithCopyWarning Pandas [duplicate]
I have this part of code that when I run I receive this error:
SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame
See the caveats in the documentation: https://...
0
votes
1
answer
26
views
R: Copying value for one type of group and year downwards and upwards
I created a simplified version of my data since my actual data is too large to be include here.
structure(list(Name = c("A", "A", "A", "A", "B", "...
0
votes
0
answers
20
views
Loop through folder get data from specific ranges copy to master
Im working on creating an macro that will pull data from a specific group of ranges across many files in one folder and feed that data into a master file in the same folder. When running the macro, it ...