Skip to main content

All Questions

Tagged with
0 votes
1 answer
35 views

Send data to all sockets at exact time [closed]

Say we have array or list of sockets named (A,B,C) and we want to send data to all of them at the same exact time due to that the application is really time critical, then is there a away to send to ...
Akkad's user avatar
  • 641
-1 votes
2 answers
34 views

Convert this to an array to output specific positions in the array

I'm looking for converting this list to an array so I can output specific strings from there. How could I do this? Here is the code: public override void Select() { StringBuilder sb = new ...
Legois's user avatar
  • 1
-3 votes
0 answers
28 views

Repeated indexes in list - Python [duplicate]

I have a long list, that is read from .csv file and it goes like this: frequency = [..., 398, 399, 398.8, 400, ...] and so on... I need to find index for each value, but if the frequency value ...
TeshE's user avatar
  • 5
0 votes
0 answers
33 views

How to pass Array with Dropzone Form Data

I am using DropZone and trying to pass Array with the formData.append() for on("sending") method. I couldnt find any example where we are passing additional data of List objects(except ...
Jordan's user avatar
  • 197
1 vote
0 answers
55 views

Why is an array variable not getting updated unless assigning to [:]? [duplicate]

I was solving this leetcode problem of rotating the array right by k places and this is the function I wrote in Python: class Solution: def rotate(self, nums: List[int], k: int) -> None: ...
Aditya Raj's user avatar
0 votes
1 answer
67 views

Spread operator to append List to List or Lists in Dart?

I'm trying to figure out how to use the spread operator to append a List<int> to the end of a List<List<int>>. I know that I can use the .addAll method, however that doesn't seem to ...
kdesroch1's user avatar
0 votes
0 answers
27 views

Unity Can a variable, changing array be assigned for one spot in an array

So I might already have an answer for this but if I have a 2d array is there anyway to have a spot be in array that can change sizes and content? If not, how could I go about this? Can lists do this? ...
NovaBlade's user avatar
1 vote
0 answers
42 views

Batch scripting- check if key exists in list/array

I am making a batch script where I'm copying around some directories. At one point the user has to make a decision which file he wants to copy from a certain directory. When the selection is made by ...
Jelmer's user avatar
  • 2,683
0 votes
1 answer
23 views

Build list of widgets from asynchronous call [duplicate]

I need to make a dynamic list of Widgets Then I created a function that returns a list of widgets @override Widget build(BuildContext context) { return Container( child: SingleChildScrollView( ...
Mateus's user avatar
  • 1
1 vote
1 answer
42 views

How to I remove or update data (not objects) in a class list?

I created the following class: class myAIS(): def __init__(self, mmsi, Alat, Alon, Aspeed, Acourse, shipname): self.mmsi=mmsi #integer self.lat=Alat #float ...
Eddie Hughes's user avatar
0 votes
0 answers
23 views

How to sync two similar lists/waveforms with differently populated data in python?

I have two lists of sizes L1 - 22400(865*26) and L2 - 79000 with measurements of some environmental data. Data of both the lists are measured simultaneously. The L2 is a continuous measurement for ...
Krithin Kishor's user avatar
0 votes
0 answers
32 views

How to see if object is in a list [duplicate]

How do I in Node.JS check if a object like {idx: X, idy: y} in is in a list? I've tried with .index and other things, but I think because it is a object with multiple values it fail. My list has the ...
Henrik's user avatar
  • 13
1 vote
3 answers
122 views

Which List implementation does Kotlin use when calling listOf()

As known, in Java List is not a class, but an interface, so you can't get an instance of a List, you have to specify the implementation, like ArrayList, LinkedList, etc. So here is the question: which ...
Andrey Voeyko's user avatar
4 votes
2 answers
61 views

Failed to convert a list returned by tapply into a data.frame

I'm doing some data operation with tapply(), and it returns a list-like object. For example: x <- 1:10 y <- rep(c('A', 'B'), each = 5) lst.1 <- tapply(x, y, function(vec) return(vec), ...
user18894435's user avatar
0 votes
2 answers
83 views

How do I reduce amount of memory used here?

So, I wrote a code, for this problem. Code : import copy class SnapshotArray: def __init__(self, length: int): self.lst = [0] * length self.snap_id = -1 self.hash = [] ...
AlwaysneedsHelp's user avatar

15 30 50 per page
1
2 3 4 5
551