Questions tagged [instances]

An instance is a specific realization of any object.

516 questions
0
votes
1 answer

2 Java web applications on 2 tomcat instances (same windows machine) on different ports

I have two java web applications running on two instances of tomcat 7 on same windows machine. One application is running on port 9080 and another on 9090. I log into both applications using 2 tabs in the SAME browser. When I logout from one…
0
votes
2 answers

python: call class instance by variable

How can i access a class instance with it's name stored as a string. For Example: i have a class: Feets and two instances of Feets: RF and LF within both instances i need a value of the the other instance. Each Instance knows the name of the other…
user2488
  • 113
  • 2
0
votes
2 answers

Using an allocated and initialised object outside of viewDidLoad?

I hope the question title is adequate Just confused about something in a piece of code I have seen in an online tutorial. There is a generic ZHEDog class with declared properties, methods, etc. and from this class we have created several instances -…
cheznead
  • 2,589
  • 7
  • 29
  • 50
0
votes
3 answers

How to have two (or more) instances of a template typename class use the same function

I'm wondering if it is possible to have a class which uses a template with functions which the 'typename T' uses by default. I'll give examples: Header: includes all here extern template class Object extern template class…
Jack
  • 309
  • 5
  • 18
0
votes
1 answer

Formula To Remove Some, But Not All, Duplicates From A List

I have a list containing different words and numbers, a sample of which is as follows: Green Blue 14 Green Yellow 11 Yellow Green Green 14 I would like to create a parallel list that removes every unique word/number as well as every second instance…
Nat Aes
  • 887
  • 5
  • 18
  • 34
0
votes
1 answer

Add property to instance of instafeed.js?

I have a website siavoush-re.co.uk which is linked to my Instagram account using Instafeed.js. To use instafeed.js I have to create a new instance of it with properties of my choosing. I am trying to add a property to the instance depending on the…
Sai
  • 801
  • 3
  • 10
  • 27
0
votes
2 answers

Rails 4: new instance is created and saved to database but not displayed in view

In our Rails 4 app, there are four models: class User < ActiveRecord::Base has_many :administrations, dependent: :destroy has_many :calendars, through: :administrations end class Administration < ActiveRecord::Base belongs_to :user …
0
votes
0 answers

C# Separate instances running under same appdomain?

Two or more instances of application are running under same appdomain, sharing those global variables and UI. Example pressing START at one instance would fire a method on this and all other instances. Except singleton, is there any other way to…
user2818626
  • 43
  • 1
  • 2
  • 8
0
votes
2 answers

Java Get and then remove from a list

In my code i have a list of instances of a class. And i want to get a attribute of 1 instance which is ArrayList. In this class i have implement getters and setters. So I call listofinstances.get(i).getArrayList().remove(0); in order to remove the…
Puteolana
  • 41
  • 1
  • 6
0
votes
1 answer

How to open a JFrame that was previously hidden from another class?

I have 2 frames and in the first one, I press a button to go to the other and then I hide the frame with: frame1.this.hide(); How can I set that frame visible without creating a new one? I know that I can make an instance to open a new frame1…
0
votes
2 answers

In Actionscript 3, how to create many instances of the same symbol?

Though coding, I must make many copies of the same MovieClip to be placed on the stage, each to be manipulated code-wise on its own For instance, I have a MovieClip named MC and I wish to have 99 copies of ít loaded onto the stage, each in a…
Incognito
  • 331
  • 1
  • 5
  • 14
0
votes
1 answer

SQL Server Instance Public Website Security

Is it best practices to separate databases that are used by public website applications into their own database instance, from those databases that have PII info and company IP info? The idea being for security reasons. I have around 30 databases…
spaghettiwestern
  • 393
  • 1
  • 6
  • 17
0
votes
0 answers

Issues creating independent OpenGL Viewports

Goal: In my application I'm trying to implement multiple viewports to allow the user to view a scene from multiple perspectives. Each of my viewports need to be able to switch between wireframe, shaded, lighting, etc. I can currently render from…
Yattabyte
  • 1,280
  • 14
  • 28
0
votes
0 answers

Python - create and access an arbitrary number of instances from a list or file input

So there's a few partial answers to this here, but nothing clearly answers this question. I want to take a .txt file with an arbitrary number of names, each on a new line, like this. John Citizen Genghis Khan Ex Parrot ... could be hundreds of…
0
votes
2 answers

run same project in parallel using eclipse

I have a java project under eclipse. since it produces different results any time it's launched, I have to launch it like hundreds of times and collect the results. is there any way to launch the same project in parallel? like 10 instances per…