Questions tagged [multiple-instances]

Multiple-instances are two or more programs which share the same code and run at the same time

947 questions
13
votes
2 answers

Gedit in Windows creates multiple instances

I installed the latest version (2.30.1) of Gedit for Windows. And whenever I open files from explorer with gedit, it won't open as tabs in the current instance, instead it opens a new window for each file, like a notepad. I do not like this…
Vivek
  • 4,204
  • 15
  • 54
  • 65
13
votes
1 answer

WDS: Disconnected! loop when running webpack-dev-server simultaneously

Here is my use case. Several instances of webpack-dev-servers, running simultaneously on shared server everyone is serving content on its one port. At some point, every site falls into [WDS] Disconnected! loop. It's not clear to me where's the…
13
votes
2 answers

how to use node-schedule to run a cron only on one instance?

My question is how to use node-schedule to run a cron only on one instance out of two instances of node server. Currently it is running on both instances but I want it to be executed only on one instance. So How can you make a cluster run a task…
Kamal K
  • 149
  • 1
  • 8
13
votes
1 answer

Multiple instances of a Windows Universal App (Windows 10)

I'm beginning to develop apps for the Universal Windows Platform (Windows 10), and I'm making an app that needs to be able to run on multiple instances. I've seen that this is possible with the universal apps as there are some apps that can already…
13
votes
3 answers

Inject different implementations of an Interface to a command at runtime

I have an interface in my project that 2 classes implement it: public interface IService { int DoWork(); } public class Service1:IService { public int DoWork() { return 1; } } public class Service2:IService { public int…
Masoud
  • 7,580
  • 9
  • 51
  • 108
13
votes
5 answers

Detecting if another instance of the application is already running

My application needs to behave slightly differently when it loads if there is already an instance running. I understand how to use a mutex to prevent additional instances loading, but that doesn't quite solve my problem. For example: Instance 1…
Andy
  • 2,734
  • 6
  • 21
  • 33
13
votes
6 answers

Wisdom of merging 100s of Oracle instances into one instance

Our application runs on the web, is mostly an inquiry tool, does some transactions. We host the Oracle database. The app has always had a different instance of Oracle for each customer. A customer is a company which pays us to provide our service to…
hoytster
  • 247
  • 4
  • 15
12
votes
2 answers

How can I run multiple instances of TeamCity on the same server?

I am on Windows and trying to run multiple (currently two) instances of TeamCity on the same server. I chose not to install the Windows services and instead run the server via runAll.bat start command. When I ran the installer I chose different…
Pawel Krakowiak
  • 9,300
  • 2
  • 33
  • 54
12
votes
4 answers

Restrict multiple instances of an application

Okay, so i've created my c# application, created an installer for it and have it working installed on my machine. The problem is, when the user opens the application exe twice, there will be two instances of the application running. I only ever want…
Lloyd Powell
  • 16,975
  • 15
  • 80
  • 119
12
votes
6 answers

How to set up CKEditor for multiple instances with different heights?

I'd like to have multiple instances of CKEditor based on the same config settings, but with different heights. I tried setting up config with the default height, setting up the 1st instance, then overriding the height & setting up the 2nd…
Wick
  • 1,172
  • 2
  • 14
  • 21
10
votes
2 answers

How to limit concurrent instances of same Ruby script?

In Ruby 1.9.x, what might be a simple way to either not allow my Ruby script to run again, or wait for the previous instance to finish?** I'm hoping to avoid messy file-locking or process table checking. Is there something like a global mutex or…
Marcos
  • 4,350
  • 5
  • 36
  • 61
10
votes
1 answer

Resolving overlapping instances in external library

I'm trying to show something of type Tagged s b (Data.Tagged) in a module that also imports from the accelerate library. Unfortunately, the accelerate library defines the show instance instance Kit acc => Show (acc aenv a) where in…
crockeea
  • 21,467
  • 10
  • 44
  • 93
10
votes
3 answers

jQuery multiple selector with $(this)

is there any way to make this work: $(this, '#foo') with that I want to select "this" element and #bar as well. For selecting let's say two IDs, it is just as easy as '#foo, #bar', but when I want one of those two to be "this" I cannot get it to…
10
votes
1 answer

How to use multiple Active Admin instances for Complete Separate Models

I have 2 models: Users Suppliers and I want to provide 2 isolated Active Admin interfaces. They both have devise routes: devise_for :users, ActiveAdmin::Devise.config devise_for :suppliers, ActiveAdmin::Devise.config (can I somehow say…
stonehz
  • 128
  • 1
  • 7
9
votes
2 answers

Which of the below Mutex expressions ideally prevents multiple instances of .Net application and what is the difference?

Typically I see these two pieces of code all around. Both works in my case too, but which should I stick to? Case 1: bool isNew = false; Mutex mutex = new Mutex(true, "MyApp_Mutex", out isNew); if (!isNew) { MessageBox.Show("already running.",…
nawfal
  • 62,042
  • 48
  • 302
  • 339
1
2
3
63 64