Questions tagged [instance]

In object-oriented programming an instance is an occurrence or a copy of an object, whether currently executing or not.

Filter by
Sorted by
Tagged with
0 votes
0 answers
6 views

Python TypeError: < not supported between instances of str and int in training model

I'm encountering an issue when trying to convert an object to a string in Python. Specifically, I'm working with a dataset for a Named Entity Recognition (NER) task (new at this), and I need to ...
Manuela Str's user avatar
-3 votes
0 answers
8 views

configure Splunk to capture and store records of client SSH login and logoff activities on aws

how to configure Splunk to capture and store records of client SSH login and logoff activities on aws how to configure Splunk to capture and store records of client SSH login and logoff activities on ...
oladeji clare's user avatar
0 votes
1 answer
17 views

Another instance of exe opened when running procces task, where to search the problem?

After compiling Python project (on vmvare windows) into an EXE file using cx_Freeze and testing it on VMware, actions that require processes (proccesing ics - calendar file records) another instance ...
user2204328's user avatar
0 votes
1 answer
58 views

Is each activity function in Azure's Durable functions a separate instance?

I am planning to program with Azure's Durable functions. I am a beginner and have looked at a lot of documentation, but I couldn't understand the behavior of each function. Are client function, ...
TY00's user avatar
  • 5
-3 votes
0 answers
39 views

Indexing a method using the 'locals()' function

I have a class of functions that return the values of math equations. Instead of calling each function individually, I want a neat way to print out, "The answer to relation 1 is blank." My ...
Sam Perkins's user avatar
-2 votes
0 answers
19 views

inheritance calls with java and instance order [duplicate]

I have a parent class ConSuper and child classes that inherit from it. How does the java language handle the order of class instantiation when creating objects, and how are constructors invoked in ...
Ah1996's user avatar
  • 1
1 vote
2 answers
29 views

Is it possible to update all attributes in class instance by changing just one attribute?

I'd like to update all attributes in my class, if I change at least one attribute, here's my example in Python: class A: def __init__(self, my_list): self.my_list = my_list self....
Curious's user avatar
  • 210
0 votes
1 answer
21 views

Is it possible to access class members by just its class name in dart 3 without making instance of the class? and how?

I am creating a class of strings for my flutter applicaion and I want t make all class members static but problem is I want to prevent making instance of that class and I want to acces its members by ...
Huzaifa Zameer's user avatar
0 votes
0 answers
12 views

'This site can’t be reached' after closing ec2 console tab on browser [duplicate]

i am created a travel agency management website with Django and i hosted it in AWS free tier ec2 instance then with instance IP address and port number 8000 i activate my server by python3 manage.py ...
Muhammed Rinshid's user avatar
0 votes
0 answers
23 views

Dynamically decorating method of instance in Python

I have recently come across MethodType which allows to do arguably hacky but fun stuff like: from types import MethodType class MyClass(): def __init__(self, n : int): self.list_of_items = ...
jeandut's user avatar
  • 2,471
0 votes
0 answers
6 views

What could be the reason of bulk load running from Dbeaver during salesforce refresh without fail?

Can I get some help on the below points please I am able to run bulk load using Dbeaver during instance refresh not able to understand what could be the reason if the salesforce service brought down ...
khushi's user avatar
  • 3
0 votes
1 answer
52 views

How the getInstance() method works and why the new keyword is not used?

I noticed that the new keyword is not used when creating the reference to the instance. Here's the code snippet: public class SingletonExample { private static SingletonExample instance; ...
David 's user avatar
0 votes
1 answer
33 views

what is the difference between `c = Controller(model, view)` and `Controller(model, view)` in python?

I encontered a situation in my code and doubt it. I have a code like this: def main(): app = QApplication(sys.argv) view = View() db_name = 'db/main.db' model = Model(db_name) ...
Morteza's user avatar
  • 28
-1 votes
0 answers
13 views

Class variables VS Instance variables, but both defined in __init__() with different outcomes [duplicate]

I was confused due to the difference between class and instance variables. I read this post How to avoid having class data shared among instances? which did a good job at explaining things, however ...
Xtiaan's user avatar
  • 254
-1 votes
1 answer
36 views

Why does a calculated property return a property object when called from the class object, but an instance of the class returns the expected object?

class a_class(): _x = [] @property def x(self): return a_class._x ac1 = a_class() print(a_class.x) print(ac1.x) Why does the first print return a property object, while the ...
Joshua Merrifield's user avatar
-4 votes
1 answer
272 views

How do I access a particular instance of a C++ class when I only know the value of a member variable?

Suppose I have a class like this: class convoy_t { private: uint ID; /* some other fields too */ public: int get_ID() { return ID; } /* plus some other methods, like a constructor */ }; I ...
Matthew's user avatar
  • 156
0 votes
1 answer
37 views

TopLevel instance never closed even when .destroy()?

I was doing a big HMI using tkinter with multiple windows when some button are clicked. I found out that when I try to close a second window (TopLevel of Tk main window), the instance of it never ...
David01's user avatar
  • 55
0 votes
0 answers
32 views

I'm getting the (publickey,gssapi-keyex,gssapi-with-mic) error message when trying to connect to my instance

This is exactly what I get $ ssh -i vprofile-prod-key.pem ec2-user@myipaddress ec2-user@myipaddress: Permission denied (publickey,gssapi-keyex,gssapi-with-mic). Nothing seems to work. please help I'm ...
Moladejo 's user avatar
0 votes
0 answers
48 views

How to set environment variable to multiple MS SQL server instances running on same host?

I have two instances of sql server running on two different ports on the same machine. I need to set same environment variable for these two instances to get the instance's port number. For eg. ...
Bipin Chandra's user avatar
0 votes
0 answers
23 views

Lua NPC door returning "Attempt to call a Instance Value"

I want my code to have an interactable door by players, which works fine. However the code that makes the door open when an enemy NPC walks through a hitbox is not working. It tells me that 'attempt ...
Fantaniel's user avatar
0 votes
1 answer
33 views

Interaction between object literal notation and object defined via constructor

If I define let bar: Bar; and assign bar = initialFooConfig;, is bar still of type Bar and an object, or is it now an object in literal notation? As long as this assignment is possible vice versa (...
Hölderlin's user avatar
1 vote
1 answer
31 views

Django. How to create a new instance of a model from views.py with an image field in the model

I am trying to create a new instance of a model that has an image field in it. I take a PDF from a form and convert it to a png file format and am now trying to save the png image to a model data base ...
Bleached's user avatar
0 votes
0 answers
32 views

Enabling Audio Transmission from GCP Cloud VM using Remote Access App

I have set up a Google Cloud Platform (GCP) virtual machine (VM) running Ubuntu Server. As expected, the VM doesn't have any audio hardware installed. Currently, I'm using Google's remote desktop app ...
Harsh Rao's user avatar
-1 votes
1 answer
35 views

Why is this method in my function being called until the list in which it is contained in goes out of range?

I have an object which is a list of list of list. It is used to hold a list of object in 2d matrix like format. Kinda like this: [[ [], [], [], ], [ [], [], [], ]] Let's call this World. World is a ...
Sushanta Banerjee's user avatar
0 votes
2 answers
23 views

I can't locate where to fix this error stating "Instance member can't be accessed using static access"

I am getting this error Instance member can't be accessed using static access and I can't locate where as I have data related to the error in another class. Am new to Dart Flutter and still learning,...
user avatar
0 votes
1 answer
38 views

SQL Server migration instance change to default instance

We have an old SQL Server instance SERVER1\INS1 that was moved to a new SQL Server 2014 machine SERVER2 using the default instance (old software doesn't support above 2014). SERVER2 only has the ...
Jon Stabile's user avatar
0 votes
0 answers
12 views

Attempt to create field name which already exists and is active

I have created a custom module. Show me an error when I want to enable my custom module. The error is - FieldException: Attempt to create field name windfarm_unit_count which already exists and is ...
Tanmay's user avatar
  • 1
0 votes
0 answers
42 views

Vulkan Instance APIVersion versus Vulkan Device APIVersion

I have a notebook with 2 graphics devices. My Vulkan Instance is APIversion 1.3. One Vulkan device driver is version 1.3 and the other driver is 1.2. I want to use ...
JohnHutch's user avatar
-1 votes
1 answer
31 views

A closed instance in AWS cannot connect to external resources

I need to set up an AWS instance that is closed from the Internet. I created such an instance, but it cannot connect to external network resources (for example, using the apt get update command) I ...
Leorisar's user avatar
0 votes
0 answers
54 views

<Instance member cannot be used on type> & <Cannot convert value of type to expected argument type> - error

I’m kinda new to Swift and when I run my code in SwiftPlaygrounds on my iPad, I get those two errors: ollRow & ollView -> Instance member 'ollName' cannot be used on type 'ollCase'; did you ...
Shae's user avatar
  • 1
0 votes
1 answer
179 views

Start specific instance of bluestacks 5 using command line on windows 11

i have been looking all around but i can't seem to be able to start a specific bluestacks instance using command line. Basically, i found this question : https://www.reddit.com/r/BlueStacks/comments/...
Jeremie Tanguay's user avatar
2 votes
1 answer
179 views

MS EXCEL - Search and Extract all text before last instance of a Keyword in String

With the use a MS Excel Formula - I need a formula that will extract all words Left or Before the last (Nth) instance of a specific keyword (non-case sensitive and partial wildcard matches) within a ...
Miaka3's user avatar
  • 339
0 votes
2 answers
52 views

Java Serialization and unique ID of objects

I have class that have automatically generated id (instance number) for every object. I need serialized this, then deserialized. Simply done. But the thing is that after deserialization and create new ...
michalbarnat's user avatar
0 votes
1 answer
12 views

Deployment of compute instances in PieCloudDB Database

I deployed a Cloud On Cloud version of PieCloudDB Database on a private cloud environment with 6 nodes. When creating a virtual data warehouse, I noticed that the compute instance pods only appeared ...
Meliodas Dragon's user avatar
1 vote
1 answer
29 views

Need to find out which button was pressed

The following scripts job is to scan the given directory and find out how many files(or characters) are in it. Then it creates a number of buttons equal to the total number of files. Currently my ...
Stwest's user avatar
  • 17
0 votes
0 answers
54 views

Can creating an instance between Google Cloud Platform and Microsoft SQL Server allow me to transfer my GCP data to the SQL server?

Hi we just recently started using Google Cloud Platform. We still use Microsoft SQL Server and SSRS for our reports. I have data that gets imported into GCP that I would like to use within Microsoft ...
Louis Donofrio's user avatar
0 votes
0 answers
31 views

How to change the second init argument in inheritance Python

class window1(): def __init__(self,height=2,width=9): self.height = height self.width = width class window2(window1): def __init__(self,width): super().__init__(width) ...
Zack's user avatar
  • 15
0 votes
1 answer
44 views

Libre Calc - Instantiate a class from outside the current library

I am trying to instantiate a class. Within my library ClassLib, it is working ok. But if I try to create an instance of it outside of this library ie. Standard lib. It produces the error. Object not ...
Ibraheem's user avatar
0 votes
0 answers
22 views

Exception in thread "main" java.lang.NoSuchFieldError: INSTANCE selenium java

Na hora de executar o programa feito a selenium ele aparace a excessão Exception in thread "main" java.lang.NoSuchFieldError: INSTANCE Exception in thread "main" java.lang....
Lucas Silva's user avatar
-1 votes
1 answer
26 views

Class instantiated within another class - Beginner question [duplicate]

Sorry in advance for the very basic question, I'm approaching Python since few days. I've looked to some other threads and while I understand why this happens I'm not sure I have understood the ...
MRoot's user avatar
  • 45
0 votes
0 answers
24 views

New JavaScript object instance unexpectedly retaining old array data

I have a JavaScript object declared in code like: ObjectClass = Class.extend({ ... arrayProperty : [], }); It gets instantiated with: var gblObject; ... gblObject = new ObjectClass(); ...
emoryawhite's user avatar
1 vote
2 answers
42 views

Instance of Chrome Class Python

when we create an object of Chrome Class using a code: #Creating an instance of Chrome class of webdriver module Chrome_class_object = webdriver.Chrome() #Printing an Output print(type(...
Ali Haider's user avatar
0 votes
0 answers
43 views

List Object Reference null

I have a ProfileVM that includes: public class ProfileVM { public ApplicationUser User { get; set; } [NotMapped] public IEnumerable<SelectListItem> JobsList { ...
Baran's user avatar
  • 11
0 votes
0 answers
25 views

Specify modiefied object without passing it in as parameter

being quite new to Java, so please be kind:) In our Java programming Assignment we've got a set of given classes/ interfaces and a specification we should comply with. In some cases, we're allowed to ...
BlackSquirrelAJP's user avatar
0 votes
0 answers
49 views

How to send class instance through sockets?

I've run into a problem with sockets. I need to pass an instance of a Message class through socket to a server. Is there any way to do so? Message class class Message { private Socket ...
IglKa11's user avatar
  • 23
0 votes
0 answers
21 views

Functions of adding `this` to methods & static and instance methods [Java] [duplicate]

For one of my programming assignments, I was tasked to write a couple methods. I noticed that one of my methods could be expressed as using an if-else statement between two methods I already defined. ...
LB2727's user avatar
  • 1
0 votes
1 answer
25 views

SQL Server BCP load data by using master.dbo.xp_cmdshell - Errors and server with multiple instances

I get some errors when loading data from txt/csv file into SQL Server table: Error = [Microsoft][ODBC Driver 11 for SQL Server]Unable to open BCP host data-file Error = [Microsoft][ODBC Driver 11 ...
zmaggie's user avatar
  • 264
1 vote
2 answers
37 views

Why does the prefix for instance variables remain the same for both the parent and child class?

I have two classes, Rectangle and Square. Square is the child class to Rectangle. My issue is when I put in a self.dict statement for either class, to check the values for their instances, both have ...
steve_wanash's user avatar
-2 votes
1 answer
37 views

Accessing instance variables from a class with a different class

As the title says, I need to access an instance variable from one class which is in a different file and is defined in the init method in that class and will be a bool. I've imported that class into ...
Crystal Element's user avatar
0 votes
1 answer
32 views

Mock Jest Function Instance Doesn't Carry Over to Call in Other File

Mock Jest function instance doesn't seem to carry over to an imported module. I have a function sendDataHandler that calls sendToEH. I want to write jest test that makes sure calls to sendDataHandler ...
Daniel Gros's user avatar

1
2 3 4 5
108