1,914,397 questions
Score of -4
0 answers
124 views
Is this Version(int number, Zoned timestamp) ported from Java to C++ operating enough modern C++ features? [closed]
I need a Version object to compare items coming from different countries. This, in many programming languages.
For that, I've created Version and VersionTest in Java.
Then I've ported them in C++ 23. ...
Score of 1
2 answers
143 views
Logic to check if Long Value is less then Long.MIN_VALUE
Having an issue where I have a condition that, as a negative value long grows in size, it tests to see if it is less then Long.MIN_VALUE. It's for a method that converts a string of numbers into a ...
Score of -6
0 answers
97 views
Job Assitance for landing job (Specially fresher ) [closed]
Which platform nowadays are the best for a 2023 grad having certification with full stack web development to land a good job ?
In which sites one should apply ?
What is the best way to approach to a ...
Score of 4
1 answer
114 views
Unwanted background artifacts around ContextMenu and Tooltip despite custom styling
I'm developing a desktop application using JavaFX 21, FXML, and CSS.
I'm trying to customize the appearance of JavaFX popups, particularly ContextMenu and Tooltip, but I'm experiencing an issue where ...
Score of -3
1 answer
180 views
Throwing exceptions in method for a class [closed]
I have an issue where when I throw a new exception in a method for a class I am building using Java, it shows a warning saying
Unhandled exception: java.lang.IllegalAccessException
Below is an ...
Score of 0
3 answers
149 views
How to style a JFileChooser [duplicate]
I made a code editor application with Java Swing.
I'm using a JFileChooser to let the user select files to open but by default it's in light mode.
I tried to override some methods:
private ...
Score of -1
0 answers
123 views
Encountering a compilation error in the generated hash() related to additionalProperties when using the OpenApi Generator Plugin with SpringBoot [closed]
We are encountering a compilation error in the generated hash() method related to additionalProperties when using the OpenAPI Maven Generator plugin with Spring Boot 4. Could you please help us ...
Score of -5
0 answers
85 views
Severin Java EndpointMapping [closed]
Is this a good way to memorize different mappings for endpoints? I am searching for different ways to implement it with CRUD operations.
@PostMapping
public ResponseEntity<ItemDto> create(
...
Score of 5
1 answer
148 views
How can I make a BigDecimal parallel reduction deterministic when a finite MathContext is required?
I’m investigating how to aggregate signed monetary adjustments using Java 8 streams. My requirements are:
Positive and negative adjustments can cancel each other.
Calculations use a finite ...
Score of -5
0 answers
51 views
Spring Data JPA Understanding and proxy class creation [duplicate]
I am confused about how the spring data JPA works under the hood. I do know that it creates a proxy class which implements our custom repository interface like OrderRepository (which in turn extends ...
Score of -1
0 answers
117 views
Spring Boot endpoint that returns 202 with a jobId and runs a long sync task in the background [closed]
I'm working on a university project for a water billing office. The office has a legacy system with a MySQL database that we are not allowed to modify. As part of a new feature, we created a separate ...
Score of 0
1 answer
107 views
Block model doesn't show it texture, and item icon doesn't show up too
I'm new to modding so help me please. There might be errors.
Casing texture is missing (it may be the model or block_state) and the item icon is missing too.
I tried to use AI but it didn't help. So ...
Score of -1
0 answers
118 views
RAG with Spring AI and Llama 3.2 answers some queries but refuses semantically similar ones [closed]
I'm building a RAG pipeline with Spring Boot 3.2, Spring AI 1.0.0, Ollama running Llama 3.2:3b, and pgvector as the vector store. The pipeline retrieves documents from pgvector and injects them into ...
Score of -2
0 answers
81 views
Connection refused when injecting ChatClient with Ollama and Llama 3.2 in Spring Boot
I'm building a RAG pipeline with Spring Boot 3.2, Spring AI 1.0.0, and a local Llama 3.2 model running on Ollama. When I start the application and try to use ChatClient, I get the following error: org....
Score of 0
3 answers
210 views
How do I take two points and find a new point that'd be R amount closer to the second point? [closed]
I've been trying to code a function that takes points A and B as inputs, and then figures out C by calculating where A would be if it was R units closer to B
My first solution was to have C be equal ...