Skip to main content

All Questions

Tagged with or
Filter by
Sorted by
Tagged with
3 votes
2 answers
54 views

I have a search function on my site that takes a text input and searches "documents" for a matching string of text, then displays the matching items in a list. This works perfectly. I just ...
dead-in-a-damn-ditch's user avatar
0 votes
1 answer
76 views

The operation: operation.recordMatchedBlock = {recordID, result in switch result { case .success(let record): print("RecordID: \(recordID), record: \(record)") let ...
valentine's user avatar
-7 votes
0 answers
101 views

I'm using C#. I have a certain number of Newtonsoft.Json.Linq.JArray, let's say A123, A124, A125, and so on. I need to create an array or something similar of this objects in a way that, if I do ...
iii's user avatar
  • 17
5 votes
0 answers
189 views

I implemented a simple 2D array wrapper using a single contiguous std::vector and, benchmarked it against std::vector<std::vector<>>. Surprisingly, array2d is just slightly faster! #...
Ali Sedighi's user avatar
1 vote
1 answer
70 views

Premise I have a MultiDatePicker bounded to a closed range of the current month. In addition, I have a datePicker representing a "Start Date" that is the current day. I want the Day of the ...
tishly's user avatar
  • 67
-5 votes
0 answers
80 views

I am working on a side-project to improve my FE-development skills and am designing a (fictional) toilet paper shop. As a first step, I hard-coded some mock products directly into my HTML file (...
Ems's user avatar
  • 1
-7 votes
1 answer
163 views

I have an object obj; and I then obtain an array arr of key-value pairs. Assuming that the key sets of obj and of arr are disjoint (i.e. no key appears in both) - how do I efficiently add all pairs in ...
einpoklum's user avatar
  • 137k
3 votes
2 answers
115 views

I'm working on this piece of code as part of my coursework, ideally any advice I get for this would be educational in some way; I don't want an exact answer, just need someone who knows more than I do ...
Eve's user avatar
  • 33
4 votes
4 answers
108 views

How can I map an unknown value alongside other known values in bash using an associative array, so that: #!/bin/bash array=("foo" "foo" "bar" "something else" &...
Caio's user avatar
  • 75
3 votes
2 answers
61 views

I'm trying to find the outbreak time (when the number of zombies >= number of humans) as a function of the zombification rate gamma, using the following code: arrOutbreakT = [] arrGamma = np....
me1ll0's user avatar
  • 33
0 votes
0 answers
42 views

I created a php array file. My PHP Array File Example. I put array to g.horje.com/t.php <?php $val = array ( 0 => array ( 0 => '1', 'id' => '1', 1 => 'Search Engine ...
Md Rakib's user avatar
Advice
0 votes
5 replies
87 views

I've been working on a program that prints out each word, their number of occurrence's and percentage of the number occurrences over total length of the sentence. As you can imagine I had to create a ...
Mehmet emi Sevim's user avatar
1 vote
1 answer
137 views

I'm trying to implement a lambda function (for educational purposes) to initiate an array to append to the front of potentially encrypted data to save information like salt and initiation vector, ...
Lucy's user avatar
  • 71
1 vote
1 answer
66 views

Regarding the array reversal problem, I guess loop invariants are logically correct, based on the symmetry of the elements in the array and their relationship after reversal. However, I don’t ...
Morgan's user avatar
  • 13
Advice
1 vote
14 replies
240 views

I need help regarding a code I want to write in c++. I want to develop a program that receives and visualizes CAN messages on a GUI. The messages in question are about 100 distinct ID's, so we're not ...
Simone Sesana's user avatar
0 votes
2 answers
171 views

I'm setting my first steps in COM communication. I have an application, written in C#, using a byte array, and that is working fine. When I try to do the exact same thing in C++, it does not work. I ...
Dominique's user avatar
  • 17.6k
0 votes
0 answers
116 views

I am implementing an ordered list that automatically inserts elements in the correct sorted position using a Comparator. The list is built from scratch (not using java.util.ArrayList) and uses an ...
Raam's user avatar
  • 11
-5 votes
1 answer
135 views

I'm doing an assignment for an engineering course I'm taking, and I'm testing my code as I go along. For some reason, it gives an error when I compare an array element to a value passed into my ...
Maxwell Rantilla's user avatar
Advice
1 vote
4 replies
97 views

Circular shifting cshift in fortran as an equivalent in Julia : circshift. But I'am seeking an equivalent of eoshift (https://fortranwiki.org/fortran/show/eoshift) which is a acyclic shifting that ...
aitzkora's user avatar
  • 339
1 vote
2 answers
162 views

The following code is trying to set the test array in the first for loop, but it can't be used in the second for loop. int main() { int *test[3]; /** Try to set the array value one by ...
stackbiz's user avatar
  • 1,916
0 votes
1 answer
47 views

I am using the cross-sectional engine and need to store multiple rows of fields as a single array vector. However, I have encountered several issues during the process: The scenarios I attempted are ...
xiao feng's user avatar
0 votes
3 answers
140 views

I am currently learning the new array functions in Excel. I've been learning them for a bit, but still learning. I am trying to create a dynamic YTD type report off some dummy data however I can't ...
Nathan_Sav's user avatar
  • 8,576
2 votes
2 answers
142 views

I'm trying to use an array formula in Google Sheets in order to get how many times so far in an array a value has appeared. Specifically, I'm using an "array" of single upper case letters (...
ah2190's user avatar
  • 25
7 votes
6 answers
2k views

I have some code in which an array of strings is defined in a conditional statement. The array is out of scope where I need it. So I defined another pointer in the outer scope. In the conditional ...
Johannes Linkels's user avatar
-4 votes
1 answer
116 views

Today I wanted to use the following command to subset a numpy high-dimensional array, but was surprised to find that the two methods were completely different. I'm very curious why numpy reorders the ...
samll fat's user avatar

1
2 3 4 5
8364