Questions tagged [clone]
A clone is a copy of an object with all of the same attributes, data, and methods as the original object. Or a software system that is designed to mimic another system.
4,363
questions
0
votes
1
answer
14
views
How to clone conda environment, which have pip packages besides of conda packages?
Context
I am trying to clone my dev conda environment to a test server. In this environment besides of many conda packages I had to install some packages via pip. I am using miniconda.
What I've tried:...
-3
votes
0
answers
13
views
Laravel - php - Create a closed group system clone facebook in laravel 8 [closed]
How can Create a closed group system clone facebook in laravel 8
( create groups - join member - expire member - invite member....
-1
votes
2
answers
36
views
c# - clone array of list of objects not working [duplicate]
I'm trying to clone array of list of objects.
the clone modified when the original list modified (one of the properties of Page object).
how do i prevent it ?
public List<Page>[] pageStore = new ...
0
votes
0
answers
22
views
Button Scroll view original default button becoming clone
This is in unity
ok this will require some explaining. so I'm making a scroll view two in fact how its supposed to work is that when I click on one of the buttons it creates a another button the ...
0
votes
1
answer
53
views
C# recursive function in for loop is called in the wrong order?
Context
I am trying to write an algorithm to solve the following problem:
Given a collection of numbers, nums, that might contain duplicates, return all possible unique permutations in any order.
My ...
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 ...
0
votes
1
answer
18
views
Imagemagick Keep File Names & Add Prefixes
I have a script that resizes all images from a source directory into a destination directory, but I need to keep the original filenames and add "100-", "200-" and "400-" ...
1
vote
2
answers
37
views
PHP: how to "clone from" another object of same class? 'Internally clone' current object from source obj, NOT clone another object from current
In my current application I have a number of objects that are required repeatedly
To save overhead of instantiating the same object over and over again, I keep an array of 'known' objects.
I can check ...
-3
votes
0
answers
53
views
Multithread (nostdlib) crashes [closed]
-Edit- If I use strace to run my binary it doesn't crash. Perhaps there's a data race. I probably assumed a system call will always succeed
I'm not sure how to understand or debug this. You may need ...
-1
votes
0
answers
53
views
git clone fails with fatal: fetch-pack: invalid index-pack output
I am getting a weird error while cloning a repo on my windows machine. it was working fine earlier
git clone https://gitlabe2.ext.net.com/Ns_DS/microservice.git -b ltems_feature
Cloning into '...
0
votes
0
answers
23
views
Peculiar dynamic when trying to copy project, and start it through subprocess any ideas?
i stumpled upon an interresting situation when i was trying to clone a project with shutil copytree, and just generally copying my project to make a clone project.
So the idea is that i wanted to ...
-2
votes
0
answers
18
views
How can I clone project from Github with all commit? [closed]
enter image description here
How can I clone my code from github without lost any commit? This picture about my code after clone. When I was work original project, suddenly it goes for 'JS heap out of ...
0
votes
0
answers
12
views
Clone Android tablet
I have 200 android tablets all the same make and model and identical. I want to get one of them and install a few apps and make changes to some settings and so on and basically personalize it and then ...
0
votes
0
answers
12
views
cloneNode result not passable to Jquery append in TypeScript
The following code uses cloneNode to create a new Node but JQuery doesn't consider it to be a Node
when trying to pass it into the append function. Why not?
const addLinesBad = function(lines: string[...
0
votes
0
answers
9
views
Can I use Clonezilla to clone from old pc to new pc , even the two pc are in different window version?
my old pc is window 10 home and new pc is window 10 pro.
Can can I use Clonezilla to clone from old pc to new pc (network clone) even the window versions are different?
And it will clone the whole ...
0
votes
0
answers
21
views
How to correctly bind C++ clone pattern with pybind11?
I'm attempting to wrap a C++ class implementing the clone pattern with pybind11. I've been following the documentation provided (see https://pybind11.readthedocs.io/en/stable/advanced/classes.html) ...
1
vote
0
answers
17
views
Iterative cloning of a Page with PDFBox and writing each of them differently
I want to iterate over a list of input data. For every input (which also has input objects to write on a template) I want to clone the template and write said input.
Some how the pages I have cloned ...
0
votes
0
answers
52
views
Use html2canvas to download screenshot without cloning images
I have this task
https://jsfiddle.net/w76hvrab/
take a screenshot of a page with hundred images from different external domains.
I'm using html2canvas to take the screenshot
function screenshot(){
...
0
votes
0
answers
32
views
How to have softlinks in the cloned repository in git?
I am cloning a repo from SVN to git by using git svn clone command.
In the SVN repo there are few softlinks. How to have the same soft links in the cloned git repo?
Is there any flag or command I need ...
0
votes
0
answers
61
views
How Copy trait is implemented under the hood in rust [duplicate]
I wanted to make copy of object i created so writed this code
struct values{
value:i32,
}
impl values{
fn returner(self)->values{
return self
}
}
fn main(){
let mut data =...
1
vote
0
answers
30
views
deep cloning a typed array in Javascript
Trying to deep clone an array buffer (i.e, pass by value not by reference)
const deepClone = (buf) => {
uint32 = new Uint32Array(buf);
let newBuf = new ArrayBuffer(buf.byteLength);
let ...
0
votes
1
answer
55
views
Java Clone Object inside a list N times
I have this object
public class Menu implements Cloneable{
String id;
String repetable;
List <Menu> children;
//Getters and Setters
public Menu clone() {
Menu obj = null;
try {
...
1
vote
2
answers
71
views
(C++) How to write a clone method for a class which has a unique pointer as a data member?
I have the following set up:
class Base {
private:
// data members
public:
// methods
// pure virtual methods
virtual Base* clone() const =0;
}
class Derived : public Base{
private:
// more data ...
0
votes
1
answer
38
views
Git know the list of branches before cloning
Is there a way to know the list of branches a repository has before cloning?
I tried the following command, but it doesn't seem to work for me:
git ls-remote git@github.com:Username/project.git
Edit ...
1
vote
1
answer
36
views
Do I need to clone props before using/mutating it in React?
Imagine a component has props and the props have nested objects and arrays. In the child component, if I need to copy to props.nestedObject or props.myArrays to state.
Is shallow copy OK?
const [obj, ...
0
votes
0
answers
17
views
Getting "Error: fatal: bad numeric config value '9999999999' for 'http.postbuffer': out of range" cloning with SourceTree on Windows
I suddenly started getting this error when cloning with SourceTree. I found that the .gitconfig file in my root folder had a setting for postBuffer. That was set to a different value though. Where ...
0
votes
1
answer
52
views
Deep copying a vector of pointers in derived class
I have a pure virtual class called Cipher
class Cipher
{
public:
//This class doesn't have any data elements
virtual Cipher* clone() const = 0;
virtual ~Cipher() { };
//The class has ...
0
votes
1
answer
59
views
How to clone a NotesDocument java object
I have the following java code and when I try to access the MiscDoc object later it seem to be null. I could not find a .clone() method on NotesDocument.
the if statement is only accessed once
...
0
votes
0
answers
23
views
DEEPCLONE OF A SERIALIZED OBJECT
I do have a .cs class file that represent a schema for a certain object.
All the objects have a SerializableAttribute and I am able to serialize a model following the schema.
[System.CodeDom....
0
votes
0
answers
15
views
Getting "node contents must be a string" exception while cloning a node. How to resolve it?
<Insulator>
<PPLChildElements>
<Span>
<ATTRIBUTES>
<VALUE NAME="DescriptionOverride" TYPE="String" />
...
0
votes
1
answer
51
views
C# Marshal.SizeOf - function for measure size of a class [duplicate]
I've tried to write a function that clone object, altrougth they do not derive from the ICloneable interface. For this I copy the part of the memory where the object is stored. That works fine for ...
0
votes
0
answers
55
views
How do I create a child process with clone and use waitpid to wait until its done?
The code below is wrong for at least 2 reasons. I'll be rewriting this in assembly so I'll need the solution to be only linux system calls. What I'd like to do is create a thread then wait on it until ...
0
votes
2
answers
67
views
Copy a list conditionally C#
I have a List: zephyrPatientDataList
with a much simplified model:
public class zephyrPatientDataList
{
public List<zephyrPatientData> patients { get; set; }
}
...
0
votes
0
answers
15
views
Cloned drive setup as one pv (or two mirroring pv's)
I'm running a k3s cluster in two different locations. I'm currently running a PV in one of these locations and I'm trying to develop a configuration that can be read as one PV but clone/mirror that ...
0
votes
2
answers
343
views
Github remote: Invalid username or password. fatal: Authentication failed
I have generated a new access token, and I tried to clone a repo but got that error:
Github remote: Invalid username or password. fatal: Authentication failed
I tried multiple trials, I set the github ...
0
votes
0
answers
11
views
Javascript cloned new row doesn't have selected selectbox input
i have cloned my first row values to second row and so on, it works for inputs and time variables etc.. everything except selectbox values
function cloneRow() {
var row = document....
3
votes
2
answers
127
views
What is actually moving a variable in Rust?
I have never experimented with languages like C, C++, Go, etc., and I decided to start with Rust, I already understand a little what the stack and the Heap are, but, what does it really mean by moving ...
0
votes
0
answers
25
views
github clone problem (the terminal stop at 'Updating files: 100% (1015/1015), done.')
I clone a programe form github.I write git clone https://github.com/netwarm007/GameEngineFromScratch.git in the terminal of vscode. It run smoothly untill Updating files: 100% (1015/1015), done.. I ...
0
votes
0
answers
19
views
Changing an object variable is changing that variable for all similar objects in Javascript [duplicate]
I am using a player object (playerObject) that has properties and is changed constantly. I initialize with 4 playerObjects with their own properties and name.
This is a clone of the board game ...
0
votes
1
answer
37
views
Dart spread operator with nested map
Why does the spread operator in Dart do not clone nested maps? This example shows that the "nested" map on both clones is referring to the same object.
test("test map", () {
...
0
votes
0
answers
23
views
error: Repository lacks these prerequisite commits in AOSP
I have cloned the source code for android like below:
$ git clone https://gitlab.com/TeeFirefly/rk3399-android10.0-bundle.git .bundle
xxx@xxx:~/android/rk3399_Android10.0$ .bundle/update
[Info]...
0
votes
0
answers
61
views
INVALID_CLIENT: Invalid redirect URI Spotify Clone Error
I'm having a problem with this repository cloned on my computer:
https://github.com/JL978/spotify-clone-server
and also:
https://github.com/JL978/spotify-clone-client
In the clone server, I start the ...
0
votes
2
answers
24
views
cloning project from GitHub failss
enter image description herecloning project from GitHub fails and gives this error. I tried modifying things in AndroidManifest.xml and in java and nothing helps. please I'm been struggling with this ...
0
votes
1
answer
27
views
Clone multiple dropbox selected options and combined them in to 1 appendto
I have multiple dropdowns and I'd like to combine the selected options of both dropdown + text and append that to a <p>.
I was recently able to code URL parameters to auto select certain ...
1
vote
0
answers
81
views
Issues with Git large files flutter
I'm currently working on a project, The app.debug and kernel.bin files got so large, that I had to use git lfs to push into the repository. Which worked
Then, when the other developer merged and ...
0
votes
0
answers
11
views
MVC image blending algorithm implementation
I followed the algorithm mentioned in the sig09 paper Coordinates for Instant Image Cloning
The algorithm
This is my code:
#include<iostream>
#include<vector>
#include<map>
#include&...
0
votes
1
answer
58
views
Unable to clone git repo over https with error "fatal: protocol error: bad line length character: L200"
We had the problem with Git-server on CentOS behind Nginx reverse proxy.
fatal: protocol error: bad line length character: L200
fatal: early
EOF fatal: index-pack failed
Trying to figure out what ...
0
votes
0
answers
15
views
Tippy.js cloned input with label not triggering
I'm using tippy.js (https://atomiks.github.io/tippyjs/) to load a popup on a button click and inside the popup the plugin loads the html content from another container. Inside this container there is ...
0
votes
0
answers
51
views
Is there a reason why git clone wouldn't work in windows but would work in Xubuntu?
Tried to clone a remote repository
"git clone git@github.com:USER-NAME/REPOSITORY-NAME.git"
everything works fine in Xubuntu terminal but when I tried the same on windows with git bash it ...
0
votes
1
answer
20
views
Jquery clone date picker value is not getting selected in the field
I have tried to select a date in the date picker column while cloning and whenever I select the date it is not getting selected. It affects only the first parent row. Cloning and all working fine, and ...