Questions tagged [multiple-instances]

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

1018 questions
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
  • 70,104
  • 56
  • 326
  • 368
9
votes
1 answer

Nested forms with django

I have functionality where i need to implement nested django forms with the below models class Publisher(models.Model): name = models.CharField(max_length=256) address1 = models.CharField(max_length=256) address2 =…
Shiva Krishna Bavandla
  • 25,548
  • 75
  • 193
  • 313
8
votes
2 answers

Javascript str.search() multiple instances

How can I retrieve multiple indexes from multiple instances of a string search? var str = "food"; var index1 = str.search("o"); // 1 var index2 = str.search("o"); // ? Thanks much, Wen
Wenn
  • 339
  • 2
  • 4
  • 14
8
votes
8 answers

Restrict multiple instances of an application in java

I want to prevent multiple instances of application being launched in java. I know 2 methods for this: locking file locking socket But which is one is more efficient and good to use? Which one should I use? Any other solution to do the same are…
Harry Joy
  • 58,650
  • 30
  • 162
  • 207
8
votes
2 answers

Android - How to create Multiple instances of an Activity?

I was wondering is it possible to create multiple instances of a single Activity in Android? I currently start my own inCall screen for a Voip Test by using the following code: public void initInCallScreen(String pName, String phoneNumber, int…
Donal Rafferty
  • 19,707
  • 39
  • 114
  • 191
7
votes
1 answer

JQuery plugin not working when used multiple times in a page

I am trying to write a JQuery plugin called grid2carousel which takes some content in a Bootstrap-style grid on desktop devices and becomes a carousel on smaller screens. The plugin works fine if it is the only instance of it on a page but runs into…
James Howell
  • 1,392
  • 5
  • 24
  • 42
7
votes
1 answer

Visual Studio 2015 'New Window'/Multiple Instances for HTML files

Visual Studio 2015 has the "New Window" button and "Window|New Window" menu item disabled for HTML files. I need this feature enabled. I've found ways to do it for VS 2010, but not for VS 2015. Any suggestions?
BRebey
  • 671
  • 8
  • 12
7
votes
1 answer

Debugging two projects in two instances of Visual Studio at the same time

When I try to open two projects in two different instances of Visual Studio and run both of them locally in debug mode at the same time (say, a web application and the backend WebService that it uses) I get the error "Unable to start debugging on…
7
votes
0 answers

How to run multiple instances of Jenkins under one instance of Tomcat?

On a Windows 2008 R2 box, I've installed the latest 64-bit JRE, and Tomcat 7.0. I'm trying to host two instances of Jenkins within this single Tomcat instance. I've created context descriptor files in the conf/Catalina/localhost/ folder to set…
Ants
  • 2,628
  • 22
  • 35
7
votes
1 answer

How stable are multiple instances of R when one instance is running an external program?

I am running an external program via R that is pretty memory hungry and can take >8 hours to run. I'd like to open up another instance of R to do other tasks but am concerned about crashing the external program and having to restart the process. …
N Brouwer
  • 4,778
  • 7
  • 30
  • 35
6
votes
3 answers

Are static variables in functions in PHP global across instances?

If I have code which uses a static variable for caching purposes like this: class BossParty { // ... public function getTemplate() { static $template; if ($template == null) { $template =…
Aistina
  • 12,435
  • 13
  • 69
  • 89
6
votes
2 answers

Multiple instances of Silverlight gallery

I wanted to try was to make an asp website which would include pictures in multiple Silverlight galleries. The reason why I want to do this is that I want something in this fashion: Text describing some places. Gallery with several pictures that are…
Euqil
  • 391
  • 1
  • 10
6
votes
2 answers

changing default my.cnf path in mysql

I am having two mysql instances on same machine. The installations are on /usr/loca/mysql1 and /usr/local/mysql2. I m having separate my.cnf files located in /etc/mysql1 and /etc/mysql2. I installed the first instance of my sql using source…
user377941
  • 145
  • 1
  • 1
  • 7
6
votes
2 answers

Installing multiple Jenkins instances on same Windows machine caused issues

I recently saw a blog, which suggested two instances of Jenkins can run on same Windows machine: Two Guys Arguing, Pro Tips: Run Multiple Jenkins CI Servers on a Single Machine. But rather than deploying the jenkins.war, I actually installed another…
sandejai
  • 931
  • 1
  • 15
  • 22
1 2
3
67 68