Skip to main content

All Questions

Tagged with or
-1 votes
1 answer
27 views

Deleting an object in an array within JSON based on a name-value pair condition

I have a need to manipulate an incoming JSON file, removing an object in an array, based on a pair condition. If ("color": != 2) delete the object. On Windows env, no Python installed at ...
Tom S's user avatar
  • 75
-1 votes
1 answer
34 views

How to display 3 elements by 3 of an array in HTML using array.sclice() method in javascript

I have found a way to display a portion of an array using arrayName.slice(start, end), i made a funtion to feed the start and end to the slice method so i can use it with onClick button to click next ...
elbannhawy's user avatar
1 vote
2 answers
64 views

The passing of 2-dimensional arrays to functions in C by only stating the size of the second dimension

When passing a 2-dimensional array to a function in C, I normally just pass it by using a single pointer. Example : void process_array(int* arr, int rows, int cols) I see 2-dimensional arrays also ...
Engineer999's user avatar
  • 4,059
2 votes
3 answers
73 views

Initialization of class array in a template class

I have a class which uses a fixed number of member classes (mInpA, mInpA in my case) class csAndGate : public csLogicCell { public: csAndGate() : mInpA(this), mInpB(this) {} ...
jokn's user avatar
  • 120
1 vote
1 answer
50 views

How to expand range with default operator ${foo:-10} [duplicate]

I am looking for a way to expand this iterator before execution at the moment it sets $i to {0..255} and it should set $i to 0 to start with and iterate. Tried this can you see an example? What about ...
Willtech's user avatar
  • 131
1 vote
1 answer
20 views

How do you return a more complex data type in PHP / nusoap?

I am using PHP / nusoap to build an API and have seen a number of ways to return complex data types. These generally refer to either a mixed data type or an array. An example is returning: $aInvoice = ...
Paul Russell's user avatar
0 votes
2 answers
67 views

How do optimise Array.sort or what is the best way to sort large size JSON

i am using default array.sort method inside my application here is my sample code const jsonArray = Array.from({ length: 100000 }, (_, i) => ({ id: i, principle: Math.random() * 1000, ...
New User's user avatar
2 votes
2 answers
62 views

Pandas: Fill in missing values with an empty numpy array

I have a Pandas Dataframe that I derive from a process like this: df1 = pd.DataFrame({'c1':['A','B','C','D','E'],'c2':[1,2,3,4,5]}) df2 = pd.DataFrame({'c1':['A','B','C'],'c2':[1,2,3],'c3': [np.array((...
cbw's user avatar
  • 289
0 votes
0 answers
12 views

Compare data in jqxgrid array to an array of data selected in a map

I have modified this jsfiddle with the code I am using located here Gets the index of a row in the array I am wanting grab the row indexes that match the const intersection values. Is there any way to ...
MrKirkwood's user avatar
0 votes
1 answer
56 views

understanding a part of recursion for a binary search tree

Hello I basically need to implement a recursive function for insertion of a binary tree. I already implemented the chunk of insertion function (wether it's largest or smaller than root) but there's an ...
Cool Dude's user avatar
1 vote
1 answer
37 views

Drag and Drop Swap in cards is not working

here is my code, and i am trying to Drag a .card (which includes an image),Drop it onto another .card and swap their content so they switch places visually. But it is not happening and also not ...
user15895653's user avatar
0 votes
1 answer
51 views

Power Automate Expression to select value from JSON array when creating new row in Spreadsheet Table

Context: In my flow I have a for each loop to loop through a JSON array. The output of each loop is another JSON array, which I want to use to to add a new row to a spreadsheet (the first action in ...
Steve's user avatar
  • 101
0 votes
1 answer
33 views

stripe integration not working in testflight builds

I’ve integrated Stripe’s PaymentSheet class into my code. Payments work perfectly when I run the app using the Debug scheme in Xcode. However, the integration fails on TestFlight builds. In the ...
Robby's user avatar
  • 93
-2 votes
0 answers
42 views

I keep getting a NullPointerException and I don’t know why [duplicate]

I’m trying to create a simple program where I have an array of Person objects. Each person has a name and age, and I’m trying to print out their names. But I keep getting a NullPointerException and I ...
Sa ra's user avatar
  • 15
0 votes
0 answers
39 views

Returning an array from server-side to client-side in Svelte 5

I am using Svelte5. When I send an array from +page.server.js to +page.svelte it always works server-side and the array is sent as expected. However when +page.svelte is running on the client side ...
k4mars's user avatar
  • 11

15 30 50 per page
1
2 3 4 5
27870