multiple-instances

how can I save a form with ModelMultipleChoiceField ?

I have a model Calendar and in a form I want to be able to create multiple instances of it. Here are my models: class Event(models.Model): user = models.ForeignKey(User) class Group(models.Model): name = models.CharField(_('Name'), max_length=80) events = models.ManyToManyField(Event, through='Calendar') class Calendar(mo...

Run multiple instances of a Popup in ASP.NET

I have done a sticky note application in asp.net. I have a parent window with a button, When I click on the button the sticky notes is opened as popup. I am using javascript window.open to open the popup. But I can run only one instance at a time. How I can I run multiple instances of the window in my application? ...

Write own JQUERY Plugin for multiple instances

Hi there, I'm a newbie when it comes to writing plugins, but I like to learn ;). I got the following wish. I want to write a plugin that turns a "div" with an id to a uploadform for an image file. By setting options I want to pass values for height/size/extension etc. I want to be able to use the plugin more then once on a page. for ...

copying functions located in instances

Here's some (simplified) code for what I'm trying to do: class a: pass class b: def printSelf(self): print self instOfA = a() instOfB = b() instOfA.printSelf = instOfB.printSelf instOfA.printSelf() <__main__.b instance at 0x0295D238> When I call instOfA.printSelf(), it prints self as being instOfB. But I want sel...

Azure platform: scalling instances up and down

Note: if you are familiar with the Azure pricing model, just jump to the "question" section. Microsoft will begin to charge for the use of the Azure platform starting February 1, 2010. The monthly bill will be a function of bandwidth, storage, and others. Among the factors used to calculate the bill is compute time. This latter factor, ...

How do you save your Activity's state when exiting? Android

I have a basic app with text inputs, a spinner input, and a second spinner input whose array depends on a setting changed in the Options menu. Currently, when I press Home or press Return while in my app, I either return to the desktop or cycle back through old inputs i put in recently. How can I prevent my app from opening multiple in...

Running multiple hadoop instances on same machine

I wish to run a second instance of Hadoop on a machine which already has an instance of Hadoop running. After untar'ing hadoop distribution, some config files need to changed from hadoop-version/conf directory. The linux user will be same for both the instances. I have identified the following attributes, but, I am not sure if this is go...

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 the company's employees, typically 10,000-25,000 employees per customer. We intend to hav...

Problem retrieving multiple instances of the same asp.net session variable

I'm having problems with retrieving multiple instances of a session variable from an InProc session state. In the following code I persist a simple BusinessObject into a session variable on the Page_Load event. On the click of a button I try to retrieve the object back into 2 new declared instances of the same BusinessObject. All work...

Is there a way to tell .NET where to look for the user settings file?

Basically multiple instances of our application will be launched but they need to have separate user settings. We currently have use "user settings" for that, and it works fine for a single instance (per windows user) but we would like to be able to launch multiple instances with say a settings path passed in via command line. Is there...

WPF + Communicate between multiple application instances

Hi, I need to grab information between two instances of my WPF app (the contents of a public collection, to be precise). Any help? ...

Single database with multiple instances of Django

I have a Django project where the company will have a main site like www.ourcompany.org and a bunch of sub-domains like project.ourcompany.org. Content appearing in the sub-domains like case studies should also appear in the main site. I've decided to use multiple instances of Django BUT one database for each sub-domain so that I can hav...

Using db4o with multiple application instances under medium trust

I recently stumbled over the object database engine db4o which I think looks really interesting. I would like to use it in an ASP.NET MVC application that will be deployed to a shared hosting environment under medium trust. Because of the trust level, I'm restricted to using db4o in embedded/in-process mode. That in itself should be no ...

Stack overflow error after creating a instance using 'new'

EDIT - The code looks strange here, so I suggest viewing the files directly in the link given. While working on my engine, I came across a issue that I'm unable to resolve. Hoping to fix this without any heavy modification, the code is below. void Block::DoCollision(GameObject* obj){ obj->DoCollision(this); } That is where the sta...

iPhone: Parsing multiple XML with NSXMLParser in background disturbing each other

I have a strange issue, when it comes to parsing XML with NSXMLParser on the iPhone. When starting the app, I want to preload 4 table-views, that are populated by RSS-Feeds in the background. When I init the table-views one-by-one, than loading, parsing and displaying all works like a charm. But when I try to init all view at once (at t...

Java: limit to nest classes?

A very poor style to code but sometimes unavoidable. It is an extreme example. So is there some limit for nesting classes? are they equivalent? how do you deal with such situations? Create library? Code new FileObject().new Format().new Words().new Some().new Continue someThing; ((((new FileObject()).new Format()).new Words()).ne...

mod_wsgi for multiple trac projects [Windows]

Hello, I have a system with windows server 2008, Apache httpd 2.2 and trac 0.11 i'm using mod_wsgi so the apache server do the web server job. Integration with Trac after read this site i found that the most suitable solution was the following (i have in my httpd.conf the line Include conf/extra/httpd-trac.conf) httpd-trac.conf Loa...

Running multiple instances of tomcat in eclipse WTP

Hey, SCENARIO: 10 CATALINA_BASEs with own configuration (always the same port numbers 8080, but 10 different IP/hostnames on one host via virtual IPs - it's a little unconventional, but with good iptables it's ok). created a server in WTP and pick "Use the custom location" option in the server configuration in eclipse. New configurat...

automatically refresh datasource in different instances of windows forms C# application

I have different instances of an [.NET 3.5] C# win forms application that run on different machines. All instances use the same SQL 2005 db. I need to send an alert and to refresh grids [contained in user controls] when another instance of the application changes smth in db. Which is the best way ? Thank you very much. ...

Browser tabs create multiple instances of my sidebar for each tab; I only want one sidebar.

I have a sidebar (iframe). The problem is, if you open a second tab (in the same browser) it creates a new instance of the same sidebar. That means i have now 2 sidebars. In exemple, if i close the sidebar in the first tab, i would like to have it closed in the second tab as well. Is it possible to have only one instance of a sidebar in ...