All Questions
22,856 questions with no answers
-1
votes
0
answers
103
views
Send empty array with array encoding
In my Swift iOS project, I need to send an empty array as parameter in my Alamofire API request. As encoding method, I have to use:
encoding: URLEncoding(arrayEncoding: .indexInBrackets)
When I check ...
1
vote
0
answers
168
views
Is it safe to remove elements from a Doctrine collection in a foreach loop?
With Doctrine ORM I see recommendations to call toArray() on a collection before iterating over it when removing elements. Is this really necessary and why?
I have a dossier entity with a One-to-Many ...
Best practices
1
vote
0
replies
51
views
How to deal with Array-Valued Features for Traditional Machine Learning Models
I am working with a dataset where I’ve extracted features from another set of datasets for a classification task. These features are numerical, but some of the features are represented as an array of ...
0
votes
0
answers
79
views
How can I fix error Notice: Trying to access array offset on value of type null in Prestashop 1.7.8.11
I'm configuring Prestashop 1.7.8.11 and when I click in the checkout for process to payment, I get this error:
in 5e15b4d1179cdfd15539bcc9dbefe763da3b3d2b_2.file.cart-summary-totals.tpl.php line 77
at ...
1
vote
0
answers
339
views
CSS - Display array results in GRID
I'm looking for a way to display my array results in a grid.
This the code I'm currently using to display my results:
<div class="container-fluid">
<% for(var i=0; i<path.length; ...
5
votes
0
answers
239
views
Why is my user-defined contiguous 2D array not dramatically faster than std::vector<std::vector<>>?
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!
#...
1
vote
0
answers
97
views
Pre-Selecting Values for a MultiDatePicker
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 ...
4
votes
0
answers
713
views
Indexing JSON arrays of integers using Mariadb?
I'm storing arrays of integers as json in a mariadb (10.3.23) table :
SELECT
tag_list
FROM
dw.final_document
LIMIT 1 ;
Result :
[903, 1258, 1261, 393]
To retrieve entries matching a ...
0
votes
0
answers
125
views
ClassCastException when comparing elements in custom ArrayOrderedList using Comparator
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 ...
0
votes
0
answers
27
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 ...
4
votes
0
answers
425
views
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 ...
0
votes
0
answers
78
views
Issues with int arrays
I'm trying to replicate a DFA/NFA machine with printing transitions.
And am reaching errors when attempting to access values from my preset array and assign them to the newState variable.
So far I've ...
2
votes
0
answers
168
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 ...
1
vote
0
answers
219
views
C# array[i] where i is IBinaryInteger<T>?
A BinaryInteger<T> is an integer of some bit-length. I'd like to use it to index an array.
Casting to an int isn't possible - I have to use int.CreateTruncating(i) (or similar) at run-time to ...
0
votes
0
answers
121
views
How to store variadic template function pointers in an array an then assign the functions to each pointer
Suppose I have the following functions:
static bool fun1(IOPin* obj) { }
static bool fun2(IOPin* obj, const bool& arg) { }
I want to be able to store pointers pointing to each of these functions ...