Questions tagged [creation]

Do not use. Too vague to be of any possible significance.

Do not use. Too vague to be of any possible significance. Tag should be removed.

481 questions
2
votes
1 answer

Hyperledger Fabric - First Network Sample - Error while creating the channel

Hyperledger Fabric: I am using the fabric samples. While running the command ./byfn.sh -m up I am getting the following error while creating the channel: 018-02-27 19:34:51.325 UTC [bccsp_sw] loadPrivateKey -> ERRO 001 Failed loading private…
2
votes
2 answers

Javascript: member method error when cloning an instance with Object.assign

I'm a JS newbie and I've been playing around the object creation and cloning with create () and assign () when I encountered the following error: let Student = { first_name : '', last_name : '', major : '', IsNotSet : function () { …
R34
  • 59
  • 6
2
votes
6 answers

Make object by its name

is it possible to return exemplar of object using passed type name (string) in c++? I have some base abstract class Base and a few derivates. Example code: class Base { /* ... */ }; class Der1 : public Base { /* ... */ }; class Der2 : public…
Max Frai
  • 61,946
  • 78
  • 197
  • 306
2
votes
1 answer

Angular4 communication between child dynamically created component to parent

I have an Angular4 component that creates dynamically many children as soon as the user press a plus button. The child component has an input select that must send an information to the parent component after option selection. Children components…
Fabrizio
  • 89
  • 1
  • 1
  • 8
2
votes
3 answers

Create pandas dataframe by repeating one row with new multiindex

In Pandas I have a series and a multi-index: s = pd.Series([1,2,3,4], index=['w', 'x', 'y', 'z']) idx = pd.MultiIndex.from_product([['a', 'b'], ['c', 'd']]) What is the best way for me to create a DataFrame that has idx as index, and s as value for…
Zhang18
  • 4,800
  • 10
  • 50
  • 67
2
votes
1 answer

Instantiate Self outside of init in Swift

I want to create a class, so that the it's subclasses after calling a function a, will receive a new object of the type Self. I'm insuring, that the subclasses will have the init() method. In a way I want to clone the object, but actually it's more…
denis631
  • 1,765
  • 3
  • 17
  • 38
2
votes
1 answer

MacOS and swift change/set file creationDate

macOS sierra, iMac, swift3 I am trying to write a program that will change the creation date of a file. I have a lot of scanned photos and documents that I wish to be able to store in alphabetical or chronological order. I have achieved this in…
jon
  • 121
  • 5
2
votes
0 answers

Most efficient way to create pandas columns from another column containing lists

I have a pandas dataframe that looks like this | col1 | col2 ------------------------------- 0 | ['a', 'b', 'c'] | a 1 | ['b', 'd', 'e'] | g and I want to know what is the most efficient way to get this dataframe |…
dark
  • 256
  • 2
  • 12
2
votes
2 answers

How to create a derby user

I tried to set the DB schema name by schema.xml but it caused a schema name duplication in the generated SQL statement for ID generators. (Duplicate schema name in sequece generation) I read the schema is defined by the passed user at connection…
The Bitman
  • 1,279
  • 1
  • 11
  • 25
2
votes
0 answers

c# slimdx offscreen rendering, output to multiple windows / monitors

Okay, I'm rewriting this post because I had a really specific question but I think it might be more useful to just explain what I want to do :) I'm working in WPF with SlimDX. The target is a program that initializes a Direct3D device, and is able…
Pygmy
  • 1,268
  • 17
  • 33
2
votes
2 answers

C++ How does order of instance creation matter?

I have a class that creates instances of other classes, and when I call them, compiler gives me warning about order of the instances. Why does it matter? It does same job, regardless of the order. E.g. I have this in my core class header file (core…
Hengad
  • 23
  • 4
2
votes
1 answer

Microsoft Visual C++ 2010 Express - project creation failed

When I try to create a new project, it says: Creating project 'example'... project creation failed. I tried to reinstall, it didn't work, I googled about the error, and all the answers for VCExpress 2008. There are some people who asked about the…
Anonymous
  • 21
  • 3
2
votes
1 answer

Memory allocation using "new" in Javascript

I have few basic questions about dynamic object creation using Javascript. I understand that browser takes care of allocating memory space for any 'new' keyword found in the JS. If my understanding is correct, then i have following queries one by…
LNarine
  • 21
  • 3
2
votes
2 answers

Python - Created number of nested folders

I am trying to create a number of nested folders in python. Objective: 1) Ask user for a number (Let us say 3) 2) Create 3 folders. 3) Inside each folder, there should be 3 folders. This nesting should be done 3 times. Example: Folder1 Folder1 …
adb16x
  • 658
  • 6
  • 24
2
votes
1 answer

dynamically create objects in a loop

I am a complete newbie to Java programming, I want to dynamically create objects in Java during run time, I have checked the forms and tried some code but nothing really seems to work. here is my code .. all help is really appreciated :) import…