Questions tagged [instances]

An instance is a specific realization of any object.

516 questions
2
votes
0 answers

com.netflix.eureka.InstanceRegistry never evict stale instances

registred but died instances of services will not be evicted by the InstanceRegistry. The timer instance is started but the method isLeaseExpirationEnabled() always returns false. this stems from these lines: boolean leaseExpirationEnabled =…
2
votes
1 answer

can I delete / remove a class instance programmatically in Swift

I have thousands of lines of chained animations code. I have moved it all to a GraphicsHelper class with references back to the data in my ViewController. Once I am through with the code I would like to jettison the class instance on the theory that…
Sid Wyckoff
  • 83
  • 3
  • 5
2
votes
0 answers

Generic entity cannot be referenced by multiple instances of IEntityChangeTracker

After a lot of hair pulling I've decided to join the stack overflow community and post my first question. When I try to update I get this error "entity cannot be referenced by multiple instances of IEntityChangeTracker". Here's the…
2
votes
2 answers

Python classes: duplicate instances

I cant really show my code but i can explain the problem. Im using python 2.7 and I created 2 instances of a class I wrote. For some reason when i change the field of lets say email in one instance, the same field will change to the same value on…
Yarden
  • 496
  • 1
  • 5
  • 16
2
votes
2 answers

Java code to count # of instances an item was entered in an array?

EDIT: I want to add that I am in a high school AP computer science class that is only at chapter6, I do not know what a heshmap is and I do not know what an array list is, I need to make this work by using For and While loops, and just arrays. I…
user3394571
  • 21
  • 1
  • 3
2
votes
3 answers

Best practice for sharing instances between Objects

Let's assume I have a class MainActivity. This contains a number of objects stored in fields, such as instances of Player, Enemy, Level, etc. Each of these objects needs to be able to refer to every other object. What is the best way to go about…
Dan
  • 1,198
  • 4
  • 17
  • 34
2
votes
1 answer

How to instantiate a chain of objects in JavaScript

I have for some time wondered if there is any quicker way to instantiate a chain of objects in in javascript. Lets say that we for instance have the following "chain of objects" window.myobject1.myobject2.myobject3 = {} This will ofcourse not…
Inx
  • 2,364
  • 7
  • 38
  • 55
2
votes
1 answer

How to find out the number of instances of a shared Excel file using VBScript

I am trying to find out, using VBScript, the number of instances of a shared Excel file running on different systems. Let's say the file is 'test.xls', and it is placed on a shared drive and different people are accessing it. I want to find out,…
Anurag Rana
  • 1,429
  • 2
  • 24
  • 48
2
votes
1 answer

Java - WEKA - Add new catergories to training set

I'm using WEKA to train a categorization Java program. There are initially several categories, let's say 10, and the system must work with those initial categories and start training. In order to do that...: String [] categories = {"cat1", "cat2",…
Azurlake
  • 612
  • 1
  • 6
  • 29
2
votes
3 answers

Combine multiple instances of jquery code

I am currently using the below to toggle multiple div's but am wondering if i can combine all of these into one?