418,174 questions
-1
votes
0
answers
26
views
usestate dose'nt update immidiatly [closed]
I am trying to delete a block from a list of blocks and then update the list block ids using the index.
function handleKeyDown(e, id) {
if (e.code === 'Backspace') {
let blocksCopy = [...blocks];...
1
vote
2
answers
67
views
how to get PowerShell to gracefully accept a multi line, array, system.object input to a `[string]` parameter?
ff
I have a function foo, it needs to accept a string, this string can be passed to it directly by typing at the terminal, from a variable or from the clipboard.
function foo{
[CmdletBinding()]
...
2
votes
2
answers
109
views
How to set int array pointer within for loop in c
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 ...
-1
votes
0
answers
73
views
JS Array .filter - editing a object of the filtered array does not reflect on the 'parent'? [closed]
I have a JS Array as follows:
const cars = [
{
make : "Toyota",
model : "Corolla",
year : 2022,
active : "false"
},
{
make : "Tesla&...
0
votes
0
answers
22
views
How Can I Use String of Coordinates Within a Mapbox Feature?
I am trying to fetch a comma separated list of coordinates from a database and then show them on a Mapbox GL JS map.
By using the following FeatureCollection, I am able to show a Line between ...
0
votes
1
answer
41
views
Why does the use of "enlist" in the cross-sectional engine sometimes result in errors and sometimes work normally?
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 ...
0
votes
0
answers
95
views
Upload stalling with particular binary content [closed]
I have a simple image editing web app that lets a user add an image, zoom and pan it inside a canvas and then send a dithered and indexed version to an ESP32 run screen. But the file is only saved at ...
3
votes
1
answer
114
views
How to convert a string in an array to variable using the array index in PHP [duplicate]
Let's say I have an array_1 containing a string which is a name of another array_2. And now I would like to convert the array index into a variable containing the array_2.
I have the following working ...
0
votes
3
answers
128
views
Array Functions
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 ...
0
votes
3
answers
114
views
Workaround for #spill! in Excel when creating random integer array of random size (with constraints)?
How to construct a random size, random integer array with (exact) target sum value with a single Excel function (or 'best' viable/working solution given the 'known' volatile issue with this sort of ...
2
votes
2
answers
110
views
How do you use an array formula to count the number of times SO FAR a value appears in the array up to where the value is in the array?
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 (...
5
votes
0
answers
365
views
+50
Why does a simple C++ const array loop break GCC 11.2 assembly output on Compiler Explorer, but not GCC 15 or MSVC/ICX?
I've been investigating the assembly output for a simple C++ loop involving a const array and const size, and I've encountered peculiar version-specific behavior with GCC on Compiler Explorer.
My ...
7
votes
6
answers
2k
views
C program: Use an array outside the scope it was defined in
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 ...
0
votes
0
answers
49
views
Vuetify v-autocomplete freezes with large dataset (~53k items) [closed]
I have a code like this:
<v-form ref="dataFormSegment" id="form-segment" @submit.prevent="submitHandlerSegment">
<v-container fluid>
<v-row justify=&...
2
votes
0
answers
163
views
How can I disable / warn on std::array::operator[] for some specializations of my type that can implicitly convert to a builtin integral type?
For background, I'm building a library (that is allowed to use C++23 in its interface and implementation), and as part of its underlying building blocks, I've defined a bounded integer abstraction ...