4,546
questions
-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,...
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 ...
-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 ...
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 ...
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-...
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 ...
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 ...
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("...
-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 ...
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 ...
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 ...
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 ...
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 ...
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:...
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 ...
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 ||
...
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 ...
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 ...
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 ...
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 ...
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 ...
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:
...
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 ...
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 ...
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 ...
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, ...
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 =...
-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).
...
-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 ...
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
<...
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 ...
-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 ...
-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 ...
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 ...
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 ...
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? ...
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 ...
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 ...
-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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 "...
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]"
}...