Skip to main content
-4 votes
3 answers
60 views

How to create list of class instances from a dictionary in python [closed]

I'm trying to refactor some code where I instantiate a lot of different classes and set their properties and wondered if I might be able to use a dictionary in some way. Is it possible in python to ...
Andy Mc's user avatar
1 vote
1 answer
66 views

Clarification on Computed Properties [closed]

I’m studying TypeScript and came across this pattern: type Animal = { [key: string]: number }; let Tiger: Animal = { legs: 4, age: 5, tail: 1, eyes :2 }; From what I understand, this allows adding ...
Reema's user avatar
  • 23
-3 votes
0 answers
93 views

How to read the object instead of the memory address

I've been working on this project and when I try to read the data stored in the memory retrieves only the memory address instead of reading the object I tried to see if it was a problem with my code ...
Oscar Rivera's user avatar
-5 votes
0 answers
80 views

How are initialization and assignment fundamentally different? [duplicate]

take the following classes for example: class Test { public: int a=1;// no error }; class Test { public: int a; a=1; // error }; Here the second case gives error. After a few ...
m112120's user avatar
  • 19
0 votes
1 answer
30 views

Creating a Map from Flatten in Terraform

Here is my issue - I have a locals code block like the below. I need to create a Map from these values (these values are used in multiple places) locals { object = { 1 = { name = "...
TheDemonLord's user avatar
1 vote
1 answer
116 views

Matching Card Game using JS

*{ box-sizing: border-box; } .clear { clear: both; } section { border: 1px solid black; height: 200px; width: 50%; float: left; } <!DOCTYPE html> <html lang="en"> <...
techCARE_'s user avatar
-2 votes
2 answers
85 views

How do I call the method from a class that creates other objects? [closed]

I have five classes. My Main class, a form class, two subclasses that extend the form class and a createForm class I am forced to use to create new instances of the subclass. public class FormenFabrik ...
Wannabree's user avatar
1 vote
1 answer
51 views

Attaching inner functions that use the same random number to related button click events js

I'm working on a game that will take a random object, and use that same random object for a series of questions/functions. I'm having trouble getting the next piece of code to run after clicking the &...
Christina Bohn's user avatar
2 votes
0 answers
47 views

How to compare two Powershell objects, property by property?

I'm trying to compare to MECM outputs from $cmAppBefore = Get-CMApplication -LocalizedDisplayName $cmAppName | Select-Object * (to an after object). The objects returned are standard objects as well ...
Bbb's user avatar
  • 679
4 votes
1 answer
47 views

C++ Makefile object file doesn't exist. It needs to be manually created

I have the following Makefile for building my C++ application : SRC_DIR := ./src OBJ_DIR := ./obj INC_DIR := -I./include SRC_FILES := $(wildcard $(SRC_DIR)/*.cpp) OBJ_FILES := $(patsubst $(SRC_DIR)/%....
Engineer999's user avatar
  • 4,059
0 votes
0 answers
42 views

Access system object via a view whose owner is granted with grant option

I have created the following view in my database, my schema CREATE VIEW [OMEGACA].[V_SYS_MANAGE_ACC] AS SELECT name, object_id, parent_class, parent_class_desc, parent_id, ...
altink's user avatar
  • 369
0 votes
0 answers
30 views

Constructor and datatype not matching in java [duplicate]

I'm relatively new to Java and object oriented programming, and I don't understand why sometimes the constructor used in declaring and object will be a subclass of the objects type instead of the ...
Bluebox's user avatar
-3 votes
1 answer
73 views

Adding a Script to an Object from a list of Scripts during runtime in Unity

for the game I'm working on I had my groups write multiple scripts that I would be implementing into the project. Each script would contain the dialogue for the game. It was a rushed solution and very ...
Juan Alarcon's user avatar
0 votes
1 answer
77 views

How can I implement a bash function to read a JSON file, and assign all the data to variables, including arrays and objects? [duplicate]

I wanted to share a set of configuration data between powershell, python and bash. JSON is convenient for powershell and python, but bash does not have built-in support for JSON. Most bash JSON ...
Charlweed's user avatar
  • 1,632
1 vote
1 answer
56 views

Object is returning empty has some properties on expand it shows

I'm getting response as empty by checking Object.keys(response) it returns empty array but on expanding the response it looks like what shown below. Can someone help me to understand this? This is the ...
Afrin Athar's user avatar

15 30 50 per page
1
2 3 4 5
4342