4,543 questions
0
votes
2
answers
102
views
How to capture delta records in Snowflake when a table is dropped and re-created every day?
I have a pipeline that drops and re-creates several Snowflake tables every day (effectively a full refresh using CREATE OR REPLACE TABLE). I want to capture daily deltas (inserts/updates/deletes) for ...
2
votes
1
answer
117
views
Why is the deep cloned object still linked?
Following the documentation and this SO answer I wrote the following class with clone method, but the tests in the code do not give the expected result.
use v6.d;
use Test;
class Numeration {
...
2
votes
2
answers
131
views
git clone failed because of authentication failed inside a docker
I'm trying to clone a project from gitlab in a docker but having authentication failure issue.
Outside of docker, it works well to checkout the project using git clone command.
$ git clone "git ...
1
vote
1
answer
102
views
What different between variable ref clone and variable deref clone?
I run this code to proof the the difference, All address are different.
#[derive(Clone, Debug)]
#[allow(unused)]
struct Settings {
volume: u16,
}
fn main() {
let settings = &Settings { ...
0
votes
1
answer
43
views
Google Compute Engine -- how to duplicate non-system disk from snapshot and mount on cloned system disk (ubuntu) [closed]
I have a GCE ubuntu system running ubuntu 20.04 which is now EOL.
It has an attached data disk.
I'm trying to upgrade to ubuntu 22.04 by doing the following:
clone system by creating a new vm from the ...
0
votes
1
answer
174
views
`git clone --recurse-submodules` failure during submodule recursion
I'm trying to clone a rather large set of things via git submodules
I am using this command line:
git clone https://github.com/WerWolv/ImHex --recurse-submodules
This ends up pulling about 20-30 ...
0
votes
3
answers
53
views
Why doesn't the span get the updated content, or the input get the updated id? [duplicate]
I'm sure it's something simple that I'm missing, but I can't figure it out! The code is definitely being hit (confirmed by console.log statements)
I am expecting that the id for the checkbox gets ...
0
votes
0
answers
64
views
Content blocked about:security_git-credential-manager.exe
I am trying to clone an Azure repo into a VM in Azure. My command is: git clone https://dev.azure.com/Prynada/Prynada/_git/Automated_test. When I run it, it opens an Internet explorer prompt with the ...
0
votes
0
answers
149
views
How to clone a bitbucket repo using a repository access token
I am trying to clone a bitbucket repo using a repository access token using the following command
git clone -c http.extraHeader='Authorization: Bearer MDM0MjM5NDc2MDxxxxxxxxxxxxxxxxxxxxx' https://...
1
vote
1
answer
112
views
git client erroneously downloads files when server does not support filter
For git clone, I am using the argument --filter=blob:none. This works for my use case.
Turns out, filtering is an optional server side feature. I learned this when I came across a server which doesn't ...
0
votes
1
answer
86
views
Create a virtual copy of Grid Element and add to XPS document
My app is creating from some user input, some unique numbers and displaying those as QR codes, so that they can be printed out.
This is the function where I'm facing an issue.
private void ...
1
vote
1
answer
159
views
Git clone and download only the files that need changed and committed
We have a repository with several large sql files, ranging from 100MB to 10GB in size.
Been trying to setup local cloning so we only download the sql file(s) that need changed and committed at any ...
0
votes
0
answers
30
views
Github repos: Inconsistency in 2 ways of download repos zip file: 1) Click and download, 2) Use the link and wget it
I was trying to programmatically install an private repo. I could not git clone it because of the firewall (maybe something else). However I could manually download the zip file so I want to ...
0
votes
1
answer
59
views
Avoiding double clone conditionally
I have a check method which takes (and needs) ownership of a big vector I have, and outputs a boolean value. If it outputs true, then I set structs field to this vector. It looks something like this:
...
1
vote
1
answer
105
views
What is the correct signature for a rust function which wants to iterate several times over an iterator/collection and avoid unnecessary cloning
I have a mathematical function which is multi-pass: to calculate the results, multiple iterations over a collection are needed. Typically a single-pass function would accept an "impl ...
1
vote
0
answers
43
views
CPU affinity after process cloning
I am cloning a process using the clone() glibc wrapper function.
For some unrelated reasons, I need to set the CLONE_THREAD flag bit ON. It implies that
If CLONE_THREAD is set, the child is placed in ...
0
votes
1
answer
356
views
How display MediaPlayerElement from stream in WinUI 3 Net 8
I have Stream and I want create MediaPlayerElement of WinUI 3 from this stream.
this my code:
var mediaPlayer = new MediaPlayer() {
AutoPlay = x.AutoPlay,
Source = MediaSource....
0
votes
0
answers
72
views
Deep Cloning of a TabPage
I have a TabPage with several panels and nested controls inside them like comboboxes, maskedtextboxes, textboxes, buttons, datagridviews etc.
My goal is to clone this TabPage with all of it's controls ...
0
votes
0
answers
495
views
GIT - error: RPC failed; curl 18 transfer closed with outstanding read data remaining when clone Supabase
I want to setup Supabase for Self-Hosting with Docker. But I failed when clone supabase github.
PS C:\AaFolder\Dev\Supabase> git clone --depth 1 https://github.com/supabase/supabase
Cloning into '...
1
vote
1
answer
123
views
Why can't I move out of a shared reference to an owned vec which is not used afterwards?
I'm wondering why it is not possible to move out of a shared reference to a vector if the vector is owned and not used afterwards?
I have some code that looks like this:
#[derive(Debug)]
struct Item(...
0
votes
1
answer
321
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 ...
0
votes
1
answer
276
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
1k
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
95
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
1
answer
65
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("...
2
votes
3
answers
548
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
symfony new . --webapp
This is because of the .git file generated after clonning the existing repo.
...
1
vote
0
answers
314
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
1
answer
2k
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
151
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
252
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
105
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 ...
1
vote
0
answers
191
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
472
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
1
answer
507
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
68
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
388
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
151
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 ...
2
votes
1
answer
4k
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
95
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
45
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 =...
-2
votes
2
answers
622
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
66
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
39
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
62
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
31
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
146
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
27
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
99
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 ...
-1
votes
1
answer
62
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
69
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 ...