Skip to main content
Filter by
Sorted by
Tagged with
-6 votes
0 answers
68 views

Java clone() method - when to do type casting? (Comparing arrays and self defined class) [closed]

In the below sample code examining shallow and deep copy: import java.util.*; public class MyClass { public static void main(String args[]) throws CloneNotSupportedException { int[] arr = {1,2,...
SayMyNameHeisenberg's user avatar
0 votes
0 answers
61 views

The child process does not start with syscall(SYS_clone3, …) + CLONE_VM

Hello, everyone. It is necessary that the calling process and the child process are in the same memory space. Therefore, I use the CLONE_VM flag. But the child process does not start. It looks like ...
0m3's user avatar
  • 1
-2 votes
0 answers
16 views

Clone a phone IMEI/ MAC/ Unique ID to a virtual phone

Can anyone tell me is it possible or how to do this? I would like to clone a particular phone, for example my android phone, to a virtual phone on pc. For example, so that when i download some apps on ...
khai liang's user avatar
0 votes
1 answer
41 views

git clone over HTTP using project token fails with HTTP Basic: Access Denied

I'm currently trying to clone a repository from a gitlab instance that doesn't use SSL using a project access token with Maintainer permissions. The command I'm trying to run can be abstracted to the ...
fireshadow52's user avatar
  • 6,446
0 votes
0 answers
46 views

Duplicating/cloning huggingface space

I'm interested in setting up an inference API, using huggingface. I'm following an article https://medium.com/@dahmanihichem01/mixtral-and-rest-api-turning-mixtral-8x7b-into-an-api-using-huggingface-...
user1592380's user avatar
  • 35.7k
0 votes
1 answer
32 views

Clone or use Time travel in Snowflake?

So if I clone my whole production DB daily, I can save a lot of money with Time Travel 90 days storage cost, right? Also I can utilize that clone DB in the test Data Warehouse environment with latest ...
Iory's user avatar
  • 25
0 votes
0 answers
23 views

How to handle a Bitbucket file that is required in multiple places

I have a series of python files that are as follows, Engineering files, used only by engineering for product development. Production files, used by production for actually making and testing the ...
user26531635's user avatar
1 vote
1 answer
42 views

Clone() not seeming to work when setting it's parent to the StarterPack

I have a local script that should add an item to the player's StarterPack when I call a function in it and provide the name of the item as a parameter. local replicatedStorage = game:GetService("...
Lukas Raby's user avatar
-1 votes
2 answers
58 views

Syfmony new Project directory . is not empty error

After cloning an existing git repo to install a new fresh Symfony I got the error Project directory not empty due to the existing .git folder I suspect. What is the recommended best practices/steps ...
adam314315's user avatar
0 votes
0 answers
23 views

How to add solution and project .vcxproj files to cloned repo with multiple projects and no Visual Studio (Community Edition) files

I created a repository using Visual Studio and Git and made a remote repository for it. The way it's structured is the repository (the root), three directories that are for a project each within the ...
Pythagoreanism's user avatar
1 vote
0 answers
84 views

ORACLE OCI cloning PDB issues

Basically, I am performing a local clone (to the same CDB) of a very large PDB, approximately 12 terabytes, which is on OCI Oracle 19c, and I used the following command to perform the cloning: CREATE ...
dntz's user avatar
  • 11
1 vote
2 answers
196 views

Powershell: How to copy, duplicate, or clone an object? [duplicate]

I'm banging my head against the wall. I have an issue where I'm dealing with objects created using the AWS Powershell Tools, specifically objects of type Amazon.Route53.Model.ResourceRecordSet and ...
Matthew McDonald's user avatar
1 vote
1 answer
80 views

How to avoid a clone when passing a value to a consuming function, but needing it back in the event of an error?

Say I have a function that calls a Rust API that consumes a value. That API function returns a Result, potentially indicating an error. If the error happens, I need some information from the original ...
davidA's user avatar
  • 13.4k
3 votes
1 answer
103 views

Is there a way to find "hidden" unused variables in Rust?

The Rust linter is great at picking up unused variables. However, I'm interested in variables, where in certain conditions (release mode, features) aren't used. A simple example is something like this:...
theflash's user avatar
  • 101
1 vote
1 answer
36 views

Instantiated Enemies in Unity Following Player Overlap over Each Other

So for my top-down RPG, there are enemies in the overworld that will chase you if you get too close. (Like most turn-based RPGs nowadays.) The way it works is that the enemy spawner instantiates ...
Mike the Scripter's user avatar
0 votes
0 answers
22 views

when add system call in xv6, Implicit Declaration error

I implement clone, join system call in sysproc.c. int sys_clone(void) { void (*fcn)(void*, void*); void *arg1, *arg2, *stack; if (argptr(0, (void*)&fcn, sizeof(fcn)) < 0 || ...
kkk's user avatar
  • 1
1 vote
0 answers
109 views

Process Cloning Not Working in x86 Windows Config (C++)

I'm attempting to clone a process in C++ on Windows. All shown examples were compiled & ran with Visual Studio 2022 on a Windows 10 system. The minimal example below (adapted from the following ...
Runsva's user avatar
  • 627
0 votes
1 answer
143 views

Clone/Fork a Process in C++ on Windows? [duplicate]

I'm attempting to understand what is the proper way to clone/fork a process in C++ on Windows. All the examples below are compiled & ran using Visual Studio 2022 on a Windows 10 system. It is my ...
Runsva's user avatar
  • 627
0 votes
0 answers
17 views

Any way to include "npm install react-scripts --save" in a React app github repository? Or is it always needed to install after installing the repo?

Any way to include "npm install react-scripts --save" in a React app github repository? Or is it always needed to install after installing the repo? I am curious if its normal for someone to ...
weston guidero's user avatar
0 votes
1 answer
115 views

How to drag and clone elements in Svelte?

I'm working on a visual programming app which has two columns. The column on the left is a tool box of parts from which users can drag 'items' to a column on the right which represents a script which ...
pnadeau's user avatar
  • 461
2 votes
2 answers
60 views

very unique cloning issue - multiple cloning activity on a single page but on differnt ids

I have got two set of lists once complete and one incomplete... If I click on the complete line item, it should be transferred to the incomplete list (prepend) and vice versa. The code is real simple ...
Apurva's user avatar
  • 513
1 vote
0 answers
109 views

Cannot clone GitLab repository: The requested URL returned error: 403

I am trying to clone the repository of one of our projects on GitLab but get a 403 error whenever cloning with HTTPS. It works without any problems on another laptop. I have tried the following: ...
M4rky8's user avatar
  • 11
0 votes
1 answer
84 views

How to clone or duplicate an Analytic Rule

How can you clone or duplicate an Analytic Rule that resides in Microsoft Sentinel, using either PowerShell or Azure CLI? The cloned Analytic Rule will require a new ruleId and name but all other ...
Jason Smyth's user avatar
0 votes
0 answers
34 views

how do I clone github repo ssh key to cli, i keep getting syntax error near unexpected token `newline`

I keep getting syntax error near unexpected token 'newline' I am using windows and git bash I copied ssh key for GitHub repo I was expecting to clone GitHub repo I downloaded code editor trying to ...
ShmacksUp's user avatar
1 vote
0 answers
2k views

Git clone error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0

I'm trying to git clone a repo but nothing seems to work. Every time I get the same error: error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0 I'm trying through git bash, it ...
gabriel.oliva's user avatar
0 votes
1 answer
68 views

Example for Effective Java where clone() returns a shallow copy

In Effective Java 3rd edition Joshua Bloch talks about how you should implement clone method in complex objects. public class SimpleHashtable<K, V> implements Cloneable { private Entry<K, ...
Davyd's user avatar
  • 3
0 votes
1 answer
38 views

Changing attributes on a cloned object changes all objects

I have loaded an OBJ file and from that original I .clone() it into an array. Later I wish to change the vertexColor of some of them to a different color, but changing one changes them all. var oload =...
Edward's user avatar
  • 537
-4 votes
2 answers
237 views

How do you clone a RegExp object?

How do you clone a regular expression in JavaScript? I would like to know how to do the following: Clone the regex itself, not including state properties like lastIndex ("shallow" clone). ...
Mystical's user avatar
  • 2,744
-1 votes
1 answer
60 views

Is there a way around clone in this example?

I have the piece of code below, which works fine, but I am a bit bothered by the need for clone inside the for loop. In principle, the vector is no longer needed after a.clear() is called, so it could ...
André's user avatar
  • 151
1 vote
0 answers
28 views

Copy or Sync all the branches from one Org Repo to another org with same repo

I have written the powershell script which will sync or copy the repo from one org to another org, but currently this script is sync only master branch, but not all the branches. Below is the Code <...
nikon D3400's user avatar
0 votes
0 answers
48 views

Deep and shallow copy [duplicate]

I have trouble understanding the deep and shallow copy, and how the method .clone() works in Java. Some sources say it creates a shallow copy, others say it's deep. public class Kopie { public ...
xenfoulis's user avatar
-1 votes
1 answer
24 views

Would I fork or clone a repository to get my copy of a repo only to look at?

I want to have my own copy of a Git repository to b able to set up and run the project on my machine. I only want to look at it, run it and debug/trace through it. I will not make any changes to my or ...
user3443063's user avatar
  • 1,571
-1 votes
1 answer
64 views

How can I properly run a git clone repo? [closed]

Problem that appear: Same here: I'm currently facing an issue with deploying a Flutter project after cloning it from a Git repository. Despite successfully cloning the repository, I encounter errors ...
Ginofvs's user avatar
0 votes
0 answers
20 views

After clone image upload and date picker is not working

Image upload and date picker not working after clone I want to duplicate the HTML section when I click add more button After clone the date picker and image uploads are not working. but if I manually ...
ajmal's user avatar
  • 11
0 votes
1 answer
72 views

Implementing clone() in a Generic Class with Cloneable Bound Leads to Unchecked Cast and Access Errors

I'm working on extending a generic Node class to create a GenericNode class for a data structure exercise. The GenericNode class is generic, bounded above by the Cloneable interface, and implements ...
Saiko's user avatar
  • 41
0 votes
1 answer
45 views

Leetcode 1255-recursion and backtracking

I dont quite understand why have we used .clone() method when we have a second for loop to restore the letterCount.And when i'm runnig this code without .clone() method its giving me the wrong answer? ...
jonshrey's user avatar
0 votes
1 answer
34 views

Forking vs Cloning in GitHub

I have a GitHub account and my friend invites me as a collaborator to his project. And now I want to rub the code base locally in my personal computer. Help me with following; Do I need to clone his ...
Deshitha Gallage's user avatar
0 votes
1 answer
65 views

Trying to run a "uber clone" from github in react native ( vs code )

warn Multiple Podfiles were found: DriverApp/ios/Podfile,MyCabApp/ios/Podfile,UberClone/DriverApp/ios/Podfile,UberClone/UserApp/ios/Podfile,UserApp/ios/Podfile. Choosing DriverApp/ios/Podfile ...
Faraz Ahmed's user avatar
-3 votes
1 answer
158 views

I can´t clone my github repository with a ssh key

I can´t clone my github repository with a ssh key , the terminal said me -"[email protected]: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have ...
user avatar
0 votes
0 answers
32 views

Laravel 9 $model->replicate() is not immutable

it seems Laravel 9 $model->replicate() does not create immutable instance. Am I right or not? Cause if I make changes on original model it changes also the replica instance. How to make an ...
Čamo's user avatar
  • 4,132
0 votes
1 answer
278 views

Cloning resources group into another

Is it possible in Azure to clone one group of resources into another? I tried to use "Export Template" in azure for this, but when I deployed this template, some resources did not load and I ...
Maks Bubela's user avatar
0 votes
0 answers
30 views

A way to declare and clone a cloneable (#[derive(Clone)]) struct with a type parameter and a field that is an Arc of an uncloneable type in Rust? [duplicate]

I would like to have a cloneable struct with a type parameter that is uncloneable used for a field that is of type Arc. It looks like Rust requires all type parameters for a cloneable struct to be ...
Anton Yudin's user avatar
2 votes
1 answer
49 views

GIT repo with submodule that can point to two different repositories

We have a repo that has a few submodules. One of the submodule directories is an API. Depending on the branch of the main repo, the API subdirectory either points to API_V1 repo or API_V2 repo. If I ...
Larry_C's user avatar
  • 336
0 votes
0 answers
152 views

Site Not Found Error After Deployed in Firebase

This is my first project in firebase. I wanted to deploy in it. So that I had created Netflix Clone Web Application using TMDB API. I use VS Code as my code editor. Initially I had struggle on opening ...
Razlina's user avatar
1 vote
1 answer
52 views

PHP Cloning an object when a reference exists breaks the clone

If I deep clone an object that contains another object while I have a reference in a variable of the inner property, the clone will not be deep. <?php class Person { public function ...
user3416510's user avatar
0 votes
1 answer
32 views

Git how to pull the update from original repository and keep my own changes

should i clone-branch or fork-clone-branch. the original repository is Tom's project in github, but i want to make some changes, and keep my changes while can keep updating or pulling update from ...
QQTT's user avatar
  • 1
0 votes
0 answers
10 views

git svn clone does not grab a branch not in stdlayout

I have a svn folder structure like this: mainFolder |_ trunk |_ branches |_ tags |_ accidentallyCreatedBranch Now I want to grab the complete svn repo and convert it to a git repo. For this my ...
Daimonion's user avatar
  • 146
0 votes
1 answer
24 views

Problem in Hover Animation in a ReactJS Component

So, I was trying to clone the website of Rivian, I had a component which contains 2 boxes, and they have some hover animations similar to the one seen on the websites. The animation on the left box is ...
DOMINATOR X's user avatar
0 votes
1 answer
48 views

How to clone an element on click in React.js

I'm a beginner to react.js, and i'm using typescript for that. I want to create an element that will duplicate itself on click, how would I do that? This is the current code: import React from "...
mariuslohoho's user avatar
0 votes
1 answer
69 views

How does the field access behave after cloning a constant map in Ballerina

Consider the following code: import ballerina/io; type User record {| string name; string email; |}; const USER = { name: "John Doe", email: "[email protected]" }...
Sasindu Dilshara's user avatar

1
2 3 4 5
91