Questions tagged [multiple-instances]
Multiple-instances are two or more programs which share the same code and run at the same time
1,027
questions
0
votes
2
answers
36
views
Returning multiple implementations of same interface from Abstract Factory with ASP.NET Core
I want to make multiple implementations of a specific interface accessible through an Abstract Factory in .NET Core. Based on a supplied enum the correct implementation should be returned. This is my ...
-1
votes
1
answer
74
views
How to plot relationship of three parameters with a Group? [closed]
I have a dataframe as below:
GR CYT EMT PRO
High 8 5 8
Low 8 2 2
High 6 2 10
High 5 7 4
Low 7 2 1
Low 5 10 4
High 6 3 5
Low 8 1 10
High 4 7 5
High ...
2
votes
1
answer
51
views
How to properly rename column in postgresql if there are 2 or more instances?
I was doing database migration, where I had to rename column product_id to column entity_id. It was an easy task at a glance, but when we as a team, deployed it in qa env, we've started to get massive ...
0
votes
0
answers
7
views
Run multiple times js stopcounter at the same page
I found this js stopcounter and I would like to add it in multiple input fields in the same page depended an id varible, I suppose that is easy but how can I do that?
e.g
<input type="text&...
-3
votes
0
answers
51
views
How to prevent duplicate database writing call in multiple instance?
As a web server has published by kubernetes with multiple pods and round-robin strategy for accessing each pod, and it has connection of seperate database server.
When an user call API to this, web ...
0
votes
1
answer
47
views
Connecting Multiple Clients to a Single SQL Server over LAN using WinForms? [closed]
So I have successfully connected a client system which has a C# WinForms application with a SQL Server (through an Ethernet Cable) and have been able to read and update the database from the client ...
1
vote
0
answers
28
views
How to collect arguments from multiple instances of autohotkey script and pass it to handler script?
The actual thing I did and want to do:
I have a autohotkey script 1.ahk that do something with directory, something like:
#Requires Autohotkey v2.0
if(A_Args.length > 0){
srcFolderPath := ...
1
vote
2
answers
146
views
Excel counting with multiple criteria and multiple instances in a single cell
I need help with a function which will find all values of 1 in column A (e.g. A1). For each value of 1, I need the function to count the number of IP addresses beginning with either 178. or 14. in ...
0
votes
0
answers
24
views
multiple videojs players on same page with mouse over unmute/mute function
I currently have a page where I am trying to get 4 video players to auto-play muted video and then unmute the video when I mouse over them. I was successful in doing that for the first player.
<...
-1
votes
1
answer
22
views
Efficient management of instances with unique dictionaries in a repeated instantiation situation
About my problem:
I create instances of a class several times, each time my frontend sends a message to my backend.(This can't be changed either).
Now the instances have to fulfill the following:
The ...
0
votes
1
answer
50
views
Using multiple instances of a library that returns an instance
I am using a library (Voice) that returns an instance of it. I made following component that uses it successfully
But I need multiple instances of following component in an other component. Where each ...
0
votes
0
answers
6
views
Multiple instances of Spyder on Mac option not working
I would like to run multiple instances of Spyder on my mac and have found this answer.
Unfortunately, Spyder is not allowing me to de-select "Use a single instance."
Are there work arounds ...
1
vote
0
answers
60
views
Selenium multiple Firefox error: session is already started
I'm using Python, Selenium and Ubuntu 22.04. I can open several Chrome windows, but when I try to do the same using Firefox I just get this error after opening the first window:
selenium.common....
1
vote
1
answer
21
views
Manage handler execution in multiple instance of activity running
I have been running a activity with mode = singleInstance in my app. In this activity onStart() method i am initializing a handler like this
Handler handler;
@Override
protected void onStart() { // ...
0
votes
0
answers
38
views
Are conflicts possible when writing multiple separate files using foreach R parallel?
Since I cannot provide a reproducible example I will give you a description.
I need to process some thousand images with an image editing software (i.e. Rawtherapee).
In essence, I am using foreach in ...
-1
votes
2
answers
174
views
How to enable only one instance of spring boot microservice to make a particular rest call?
I've two instances of spring boot microservice and I want only one of them to make a particular rest call.
My first thought was to create a table and put lock which only one of the service can acquire ...
-3
votes
1
answer
40
views
Creating multiple instances of a constructor with different values [duplicate]
I have a class with a constructor
public class Test {
private static String name;
public Test(String name) {
this.name = name;
}
public static String getName() {
return this.name;
}...
1
vote
0
answers
72
views
Discord client sharding for multiple node k8s cluster
I currently use DiscordSocketClient which is being handled in each pod in my k8s cluster.
I am applying manual sharding by processing the interaction command only if it's the correct pod based on a ...
0
votes
0
answers
78
views
Thread Lock in Shedlock in Multi instance Environment
In multi instance environment(instances 4), two scheduler are spawning 4 threads. we need to have lock for these thread with respect to particular instance.
Can you please suggest if shedlock will ...
0
votes
1
answer
173
views
How to run multiple instances of Firefox independently?
There's a web page that generates a key number for each user, however, you only get a different number using the same PC if you use a different browser. How could I run multiple instances of Firefox ...
0
votes
0
answers
137
views
Batch size for Attention-based Multiple Instance Learning
I'm new to Multiple Instance Learning, so studied by following the code of the paper (Ilse, M., Tomczak, J. M., & Welling, M. (2018). Attention-based Deep Multiple Instance Learning. arXiv ...
0
votes
0
answers
11
views
Custom dropdown select but when I use it multiple times i cant get each selector to show it's reffered option selected
I've created in React JS a custom dropdown select but when I use it multiple times i cant get each selector to show it's reffered option selected.
This is the custom selector's return:
{props....
0
votes
0
answers
83
views
How to configure MLflow and encapsulate it for multiple instances
I would like to learn how to configure MLflow within a class and encapsulate it so that I can create an object from the class to perform all standard MLflow commands, such as my_mlflow_object....
0
votes
0
answers
20
views
Selenium Opens Multiple Tabs Sequentially
I'm trying to open each of the multiple existing tabs using Selenium Webdriver and get the titles. I would navigate through the pages with the switchto() function and start to pick up the titles. The ...
0
votes
1
answer
63
views
Using several instances of a parent class in a child class in Python
I am building an application in Finance. I have a Schedule object that I would like to use several times in a child class. The child object has multiple schedules.
I can simplify the problem as ...
0
votes
1
answer
214
views
Manage multiple file upload control in one form mvc c#
I am having one form with multiple file upload control with multiple file selection allowed as shown in below image.
Now I want data to be submitted in controller as per row in table. One row is one ...
0
votes
1
answer
43
views
How can I manage many instances of a class in C++, giving them all information and then deleting them?
I apologize for the imprecision on my language, I'm fairly new to programming.
Let's say I'm trying to create a particle effect in SFML. The solution I have at the moment is to create multiple ...
0
votes
0
answers
104
views
Modal created with createPortal - how to handle multiple opened modals in React? Click outside closes all them
I have created custom modal component in my React app and this is code:
useKeyPressEvent('Escape', onClose);
useClickAway(ref, preventOnClickOutside ? () => {} : onClose);
return createPortal(...
0
votes
1
answer
44
views
How to write to Tkinter element from another Python script
Let's say I have seperated my GUI and modules like this: gui.py, module1.py, module2.py, etc..
If I would like to initialize module1.py, I would click a button in gui.py, and it will start the main() ...
1
vote
0
answers
148
views
Multiprocessing on multiple function with GPU processing inside the function
I have an A100 GPU which allow me the create multiple instances GPU (MIG) in my system.
I'm trying to execute multiple function in parallel at the same time. When I execute it, it give me error like &...
1
vote
2
answers
1k
views
Is it possible to have two versions of PostgreSQL Server on same Fedora 37 Server?
We currently have a PostgreSQL 11 Server which is about to be upgraded to version 15. There is a test box running Fedora 37. I'd like to try out several scripts on top of these different versions and ...
0
votes
1
answer
46
views
My peerjs is creating too many client ids. How can I prevent this?
Every time a user connects my peerjs terminal goes mad. This seems to impact my video stream as multiple videos appear. Here's an example of the output. How can I prevent this?
Client connected: ...
0
votes
0
answers
44
views
Instances can not reach physical network in Openstack Wallaby
my virtual instances can not reach the physical network. I created a external netowrk with the same configuration as my physical network.
physical network/external network
network: 10.80.40.0/22
...
3
votes
1
answer
471
views
caching python class instances
I have a memory heavy class, say a type representing a high-resolution resource (ie: media, models, data, etc), that can be instantiated multiple times with identical parameters, such as same filename ...
-1
votes
1
answer
40
views
how to process one or more items in PayPal shopping cart
I would like some recommendations about open source or other solutions for processing one or more items collected using PayPal's shopping cart button. Thanks.
At this point, I am researching, looking ...
0
votes
1
answer
97
views
Oracle Concurrency Problem with competing race condition
I am facing a concurrency problem with Oracle DB. Say I have 3 Objects of type A that need to be processed and only on the final processing of an Object A can I move on to processing Objects of type B....
0
votes
1
answer
63
views
All cards are added to the same hand despite creating two different instances in Java
I'm creating a blackjack game in Java. I need to have multiple players and need a hand class to store the cards that have been pulled from the deck. I have a hand class that functions, but even when I ...
0
votes
2
answers
61
views
Multiple wordpress site installation
guys i have question,
lets say i want to upload hundreds thousands of post / product to wordpress, which will slow down the website performance, and the database size will also getting bigger.
what ...
0
votes
1
answer
108
views
Schedule tasks are called twice with the @SnapLock annotation
I want only one schedule method to work for many instances.
I added the snap-scheduler to my project, and after that I deployed two different instances to the railway. And two entries about the ...
0
votes
0
answers
38
views
How can I run more than standard docker-compose instances on my server?
I'm trying to run multiple instances of a docker-compose app (4 containers) on a VM (8 CPU-cores, 32 GB RAM, 1TB SSD, Ubuntu 20.04 LTS on Virtuozzo Platform). A single nginx-container is doing the ...
2
votes
1
answer
915
views
Multiple Instance with GetX tag not working in flutter
Ive been working on a multiple instance project. so i tried doing this in the counter app.
but only first instance is updating. below is my all code.
class MyHomePage extends StatefulWidget {
const ...
-1
votes
1
answer
350
views
How to use 3 or more telegram clients at the same time?
i want to use 3 or more telegram clients at the same time, with 1 or/and 2 clients i don't have problems, but with 3 clients i get errors.
client2 = TelegramClient('session1', api_id2, api_hash2)
...
-2
votes
1
answer
24
views
How to Deserialize a string which contains multiple object of same type in appended format [C#]
Let's say I have an Employee class.
Employee
{
string Name;
int Age
}
My string contains the data of different company's employee in a string. I want deserialize it as List of Company Info. I ...
0
votes
1
answer
332
views
Selenium Multithreading with two webdriver instances but only execute in one instance
I wrote a class to create a instance of Selenium webdriver then scrap some data. Everything works fine in single thread but when I try switching to multithread all operation only execute in one ...
0
votes
1
answer
292
views
How can use Two roles in attribute role
I have a problem with the insertion of two roles in the directive [role]
Code HTML
<app-authorize-veiw [role]="'Admin'">
<ng-container Authorized>
<a [routerLink]="['/...
0
votes
1
answer
76
views
How can I start multiple vscode from c# and keep track of when they terminate?
I want to start vscode as an external editor in a program that Im writing in c#. I use the Process class. I can do that but I also like to be notified when a particular instance is closed. Now I run ...
0
votes
0
answers
38
views
Spring Transactions failing in multiple instance applications
Spring transactions in multiple instance application is failing regularly. Unable to reproduce. Failing with PK constraint(jobname+key)
Note: I have modified the query part to look-alike
@Override
...
0
votes
1
answer
19
views
How to create a new column based on condition from another column, but with outputs beyond binary values
So, I have a tool data on some basic football players' statistics.
I want to classify leagues based on their difficulty between 1 and 0.4. If I use ifelse statement, I believe I will get binary ...
0
votes
2
answers
146
views
How to run a script on several gmail calendars
I have multiple staff who input their day into a goggle calendar and I take the data and run stats. At the moment I can only take data from one calendar at a time. How can I take this script and make ...
0
votes
0
answers
76
views
How to select and pass workbook names that are open in different instance?
I'm trying to develop an excel file that contains VBA to manipulate and adjust repots that are excel files generated from SQL Server using Excel-Macro Enabled Template. The excel that contains the ...