Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

All Questions

Filter by
Sorted by
Tagged with
Advice
0 votes
2 replies
60 views

I want to map a DB-table into a Java collection object. Important for me is a numerical index IDX and some other data, e.g. a STR. IDX STR 1 Max 2 Sam 4 Tom 7 ...
chris01's user avatar
  • 12.7k
1 vote
1 answer
47 views

In my Avalonia app I have a user control (UC) that has some databound controls and a StackPanel that has controls added to it dynamically from code-behind. This UC is then dynamically added to an ...
Eric Eggers's user avatar
0 votes
2 answers
175 views

I have been trying to sort a collection of objects. While I have seen many promising solutions, my compiler simply won’t accept them (error message in procedure GenReorderSpeciesList). I am using ...
Bennie Coetzer's user avatar
0 votes
0 answers
44 views

Is it a good practice to make Talkback read all the items in a lazy row automatically? For example, user focuses in the first item of the lazy row, talkback reads the whole item, and the move on to ...
KotlinBeliever's user avatar
1 vote
3 answers
145 views

I have a For Each loop that I'm trying to use with a For Each objs In Sheets("Categories").ListObjects Blah blah blah Next This works fine. The problem is that there is an outlier ...
wallybanger's user avatar
-3 votes
2 answers
69 views

I'm getting a filtered record set from a SharePoint list to a collection, and then I'm getting that collection data to a gallery. In the gallery, I have added a text input. If we think, for example, ...
Thushara Chinthaka's user avatar
0 votes
2 answers
172 views

I'm trying to convert a List of Products to a Map<Long, String> using Java streams. My goal is to collect the DTOs into a map where the key is getId() and the value is getLogoPath(). The ...
Preet Bista's user avatar
1 vote
2 answers
60 views

I created two types as follows: CREATE OR REPLACE TYPE t_emp AS OBJECT (id NUMBER, name VARCHAR2(100)); CREATE OR REPLACE TYPE t_emps AS TABLE OF t_emp; Then I have the following PL/SQL block: ...
tahzibi.jafar's user avatar
0 votes
2 answers
80 views

I have a map which lays down prices of commodities in different currencies val commpricemap: Map[String , Map[String, Double]] = ??? AN example of an entry for gold is as below: ("AU" -> ...
IUnknown's user avatar
  • 9,997
0 votes
1 answer
111 views

My teammate asked if we can traverse stack in FIFO (First In First Out) order. I say stack itself maintain LIFO order in it but we can traverse it in FIFO manner by using another stack or list. Then ...
Vishal Goel's user avatar
1 vote
1 answer
113 views

class Person( id:String , age:Option[Double]) val rows: Seq[Person] = List(Person("a",None),Person("c",None),Person("e",50)) val ages = rows.foreach( r => r.age ...
IUnknown's user avatar
  • 9,997
1 vote
3 answers
120 views

I implemented a following algorithm: val acceptedTopics: Set[String] = ... val arr: List[JValue] = ... // JValue is an algebraic trait extended by JString, JInt, and other types. val topics = arr....
Trismegistos's user avatar
  • 3,903
1 vote
2 answers
93 views

I have a Option sequence of dates - from which I need to SAFELY extract the first date after a given date( or else return the given date). The below seems to be a lot of code for such a simple used ...
IUnknown's user avatar
  • 9,997
8 votes
1 answer
212 views

I'm working with a list of rectangles and need to validate whether each one is in the correct position based on a fixed pattern and a set of geometric constraints. In the input list there can be any ...
h_bjergen's user avatar
  • 149
0 votes
2 answers
132 views

I have two lists of the same object type with the columns: CustomerID ProductID 33, 120A 33, 240B 33, 14CD 33, 984A 34, 120A 34, 240B 35, 14CD 35, 984A 39, 120A 39, 240B 39, 14CD 39, 984A How can I ...
Deleted_User's user avatar
4 votes
1 answer
127 views

I’m using Jetpack Compose with StateFlow in a ViewModel. I have a Map<String, List<Int>> and I want to sort it by the size of each list, then display the sorted result in the UI. Inside my ...
Ahmad Njres's user avatar
2 votes
1 answer
71 views

I have a standalone Milvus running in docker. It is recording vectors into volumes folder. I accidentally ran recreate_collection command and now it show there is no data in collection. Though, the ...
Темирлан Биджиев's user avatar
1 vote
1 answer
60 views

class Employee(id: String , name: String, dept: Option[String]) Given a collection of employees , I need to return the collection of depts - given a set of id. employees.filter( if ( ids.contains( _....
IUnknown's user avatar
  • 9,997
0 votes
0 answers
20 views

I Came to know the loadfactor for Identity Hashmap is 2/3 in jdk8 , but in jdk 9 to current version the loadfactor and resizing changed in put method . Can any one explain this exactly Jdk 8 : https://...
Muthukarthick T's user avatar
0 votes
1 answer
88 views

import json from flask import Flask, jsonify, request from kafka_producer import send_user_query_to_kafka, send_business_rules_to_kafka from kafka_consumer import consume_and_process from pymongo ...
Niima folla's user avatar
0 votes
1 answer
100 views

I have result set data coming back from DB as follows: Input looks like this. Its an arrayList id year name rank Subj Marks 1 2025 name1 A Science 90 1 2025 ...
JPSD's user avatar
  • 1
0 votes
1 answer
76 views

Input I have these PageAndData object as Targetmapstruct public class PageAndData { Page page; List<Data> data; } public class Page { private int size; private int totalPages; } ...
sudarshan.spectrum's user avatar
1 vote
1 answer
84 views

I have a sequence of strings which may or may not contain a delimiter val words = Seq("1 $ cake", "2biscuit", "3brownie", "4 $ honey") I would need to create a ...
IUnknown's user avatar
  • 9,997
3 votes
1 answer
158 views

The "Sequenced Collections" feature in Java 21+, introduced in JEP 431, provides a uniform way to handle collections with a defined encounter order. How can I leverage this feature to ...
Arvind Kumar Avinash's user avatar
0 votes
1 answer
147 views

I'm working on a Java problem where I need to group words that are anagrams of each other. For instance, given the input array: ["eat", "tea", "tan", "ate", &...
Pabitra's user avatar
0 votes
1 answer
47 views

I had made a list of Parent Class (as Employee) having a parameter of child class (as Department) class Employee { Integer empId; String empName; Long salary; String email; ...
Ankit's user avatar
  • 2,276
1 vote
2 answers
79 views

I have a sequence of Students val students = Seq(Student("Roy"),Student("James"),Student("Rita")) Have a map of student to marks val myMap = Map(Student("Roy") ...
IUnknown's user avatar
  • 9,997
0 votes
1 answer
266 views

I am new to laravel collections. How can i iterate to retrieve all the elements from the itens index ? If i var_dump the $result i see the output below : var_dump($result); object(Illuminate\Support\...
Ângelo Rigo's user avatar
  • 2,195
0 votes
0 answers
106 views

For PineScript V6 Goal: To loop through all of the inputs assigned to a specified group, then perform specific actions based on the value of each input in that group. I know I can build a custom array ...
Pete Hahn's user avatar
0 votes
1 answer
76 views

I have two tables with 1..* relation: Table 'Product' Id Name 1 Product 1 2 Product 2 Table 'ProductVersion' Id ProductId Published 10 1 1 11 1 0 Now I want to merge these data sources in Azure Search ...
Tungviktarn's user avatar
0 votes
0 answers
57 views

I have a jsonString which is a list of key value pairs. [ {"id": "123", "url": "ghi"} : 2, {"id": "456", "url": "def"} ...
Tanya Bhandari's user avatar
2 votes
1 answer
91 views

In our code, we use JWKset from the nimbus-jose-jwt library in a method that creates a map that we use for stuff. As you can see in the return, we use a stream that calls map on a list of RSAkey, and ...
Mattias Gradin's user avatar
4 votes
1 answer
131 views

I am using collections in my VBA code to store objects (which also contain collections inside), and I am having issues with the time it takes to clear the collection (there are around 10,000 records, ...
Tarugo's user avatar
  • 51
0 votes
1 answer
81 views

Everything looks good in the watch window until the Remove instruction is executed. No help to reverse the loop to step -1 from the end. ' --------------------------------------------------------- ' ...
gssi's user avatar
  • 5,087
0 votes
0 answers
35 views

' --------------------------------------------------------- ' Remove non-ComboBox controls from the controls collection ' --------------------------------------------------------- Public ...
gssi's user avatar
  • 5,087
1 vote
1 answer
63 views

Assuming I have a python class A, is there a way to make a class A_Collection such that any attribute of or function applied on A can be apply to A_Collection which pass down to its individual ...
Tokisaki963's user avatar
0 votes
1 answer
111 views

The pattern [] only matches empty lists, while [_] only matches lists with exactly one element ([_,_] for exactly two elements and so on). So far it is logical for me. But it seems the patterns [..] ...
codymanix's user avatar
  • 29.6k
2 votes
3 answers
273 views

In some code from my company, I've read a list initialization: List<SomeClass> someClassList = new ArrayList<>(Collections.emptyList()) What does it mean? A list with 0 size ...
Corporativo's user avatar
-2 votes
4 answers
212 views

I have: HashMap<Long, MYChainInformation> CHAIN_INFORMATION = new HashMap<>(); When I use this pattern to get element at index 0: MYChainInformation MyData = CHAIN_INFORMATION.get(0); ...
DanialAbdi's user avatar
1 vote
0 answers
148 views

JSON or JS file in the eleventy _data folder of the form { ID: 149, Year: '1901', Last: 'Thompson', First: 'Will', Middle: '' } etc ... creates a large eleventy collection I am able to ...
Eddie's user avatar
  • 11
0 votes
1 answer
90 views

Scenario I am making a prototype TCG project in Unity3D. I have a list of custom type CardDetails. List<CardDetails> cards; CardDetails.cs includes attributes of card like following. public ...
Digvijaysinh Gohil's user avatar
-7 votes
1 answer
73 views

We are getting list of AssetValue from database, After getting the list I need to group by id and sort by year and month. Based on the grouping I need to print on reports. Public Class AssestValue{ ...
Michael Prabhu's user avatar
-1 votes
1 answer
50 views

There is ia part of the document of the collection Collection1 in MongoDb. "array1": [ "060030909", "200", "32004" ], "array2": [ "aaa&...
McSim's user avatar
  • 1
0 votes
0 answers
34 views

I am having issues trying to sortBy on a collection which contains a custom mapped field when transforming a collection. public function getCentres(Request $request, string $id) { $...
Lowtiercoder's user avatar
0 votes
0 answers
36 views

In memgrap LAB, I lose all my saved requests in collections when I log out. What should I do? I have tried exporting all my queries through the export collection feature. However, the import cannot be ...
Pascal de Beauvoir's user avatar
1 vote
3 answers
127 views

I looked at this answer, and it appears the response may be "you can't get there, from here," but I have to try... I am building a dynamic SwiftUI Charts generator, and need to figure out ...
Chris Marshall's user avatar
2 votes
3 answers
168 views

I am representing a collection of turtles, each with a moment when hatched. I want to randomly choose any mature turtle. I pretend that minutes are years, in this aquarium simulation. record Turtle( ...
Basil Bourque's user avatar
1 vote
3 answers
138 views

here is what I've been working on: I have a list of numbers for example [1,2,3,4] At each step I can add or substract x to a number of the list A particular case is if the element becomes 0, then you ...
user avatar
0 votes
3 answers
84 views

My application modifies certain DataTable from multiple threads. I have already implemented exclusive locking mechanism for adding rows and committing to DB (2 different threads were handling it). Now,...
misiek8v's user avatar
0 votes
2 answers
42 views

I have this Group object class Group { final String dateFormatted; final List<Event> events; Group({required this.dateFormatted, required this.events}); } I need to ...
user237462's user avatar

1
2 3 4 5
484