Skip to main content

All Questions

Tagged with or
-3 votes
2 answers
85 views

I have an JavaScript array like this: let myArray = [ { name: 'Alice', children: ['Bob', 'Bill'] }, { name: 'Bob', children: 'Cindy' }, { name: 'Bill', children: [] }, { name: 'Cindy', ...
Wernfried Domscheit's user avatar
Best practices
1 vote
4 replies
65 views

How can i create a mini quiz app with pure vanilla JavaScript which takes questions and presents options which include the correct answer and output the scores with a next button which switches the ...
Ekedegba Benedict's user avatar
4 votes
2 answers
133 views

As far as I know, the type of N in T[N] is std::size_t. I'm using C++17, in case it matters. template<class T, T N> void check(char const (&)[N]) { std::cout << std::is_same_v<std::...
ABu's user avatar
  • 12.6k
3 votes
0 answers
59 views

I am trying to write a code that generates a random array of 14 day temperature readings; 11 readings per day. Then calculate the daily high/low temperatures for each day and calculate the average ...
Rachelle Brown's user avatar
Best practices
0 votes
1 replies
48 views

I'm making a quiz-type program and I have 8 preset answer keys that each have an array of 15 binary values. User answers the same 15 questions, I compare their array against all 8 and then return the ...
Joe Bonachea's user avatar
Advice
0 votes
4 replies
45 views

I know that seasoned PHP would do this easily. My background is more from Obj-C/Swift, and I haven't been able to come up with an elegant/optimal solution to this issue without iterating three times ...
nomad_cool's user avatar
Advice
0 votes
3 replies
99 views

I have an apache webserver and a browser plugin. The Plugin does check form which website something is downloaded from and checks if it is downloaded from a specific domain. If so it fetches some data ...
user avatar
13 votes
1 answer
611 views

It doesn’t make sense to me. It looks like nonzero(arr != 0) just creates an intermediate array, allocating more memory. No way it is faster, otherwise why doesn’t NumPy optimize it? But here is my ...
Mr. W's user avatar
  • 397
0 votes
2 answers
83 views

Good day, Something interesting I hope you may help me solve. I have a global variable FlowTable() as Variant. I'm deleting rows in it within a loop. Each time it runs, it should update the Ubound(...
Chris's user avatar
  • 43
Advice
0 votes
26 replies
127 views

Answer: I was doing things the wrong way, as I had misunderstood what my code was actually doing. The undefined behavior was "working" up to a limit, and not beyond that. I am new to C, I ...
Oganesson403's user avatar
0 votes
0 answers
46 views

My Question: I am trying to run an acoustic program with Python. I have encountered an error in the file bellhop_block_tl.py, which the below directory PyAT-main reccomends running first. I am looking ...
user21764386's user avatar
3 votes
1 answer
101 views

When testing a variable v that contained an empty array, I found that isMissing(v) unexpectedly returns true. I can't see why that should be. ' in a module function test(optional v) debug.print ...
vbAdder's user avatar
  • 698
0 votes
1 answer
67 views

I tried CELL, ADDRESS and INDIRECT, but gids are elusive. how would one get the list of sheet gids, and sheet names that are not tainted by JS-style hexadecimal escape sequence (so they could be ...
player0's user avatar
  • 132k
0 votes
2 answers
103 views

Does anyone know how to assign embedded Excel statistical methods (like in this case Normal Distribution) to an array? Function NormDistr(r As Range, average As Double, std As Double) As Variant ...
Chris's user avatar
  • 43
0 votes
0 answers
52 views

Strangely, the following code returns an error stating that the array key 11 or 12 does not exist for the playersPool[$x]['gender']. When dumping the $playersPool array it usually returns a count of 9:...
stomperDev's user avatar

15 30 50 per page
1
2 3 4 5
27871