Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …
Tag: java
Excel file gets corrupted after launching an executable jar
I have an Eclipse project with the following code that uses Apache POI. When I launch it from Eclipse, it works properly. Since I created the executable jar, when I use it, the Excel input file passes from 9 to 1 kB and it won’t open anymore. [EDIT: since I was asked: the file is only read, I never writ…
How to save data from RecyclerView EditText
I have RecyclerView with multiple EditText. I want to save data that user provided to the EditText, store it and retrieve it after opening an app again. I have an app where user tracks how many repetitions of certain exercise they did and obviously I want it to be saved somehow and to be retrieved later, but …
2D grid is not fitting in JFrame for pathing visualizer
I am trying to create a 2D grid with node sizes depending on the size of the height/width of the frame but whenever I run the program, the bottom row and right columns are somewhat cut off. Here is my execution code: Here is the Grid class: And here is the GridFrame class: I have also been messing around with
ConcurrentModificationException with map of lists
The code above is buggy in that it produces the wrong result; the “zeros” list is aliased everywhere (I think; I’m learning Java) Test input Exception thrown Answer The problem is a misconception around this line: You’re not “fixing the aliasing bug”. The method subList doe…
How to buffer and group elements in Reactor Flux in Java
Given an infinite flux of objects, where each object has an ID, how can I use flux to create a buffered list of updates grouped by ID property (keeping the last emitted value)? Thanks Example Something like the following would be perfect but it seems to wait the end of the flux in my tests instead of bufferin…
Connect to MSSQL using python jaydebeapi from inside a Docker Image
I have a Python code that’s running properly on my system (Mac OS Catalina) but is failing when I am using it in my docker image. I am open to having a completely new dockerfile as well if that can work. I have the jar file next to my code so it can be picked up properly. Here is my
Internet Explorer 11 support on windows 8.1
I’ve read that IE won’t be supported on Windows 10 anymore. Official page: Microsoft We have a Java applet application what we can run in Edge, but for certain types of Operating Systems (Windows 8.1), there is only Internet Explorer installed on the machines. What is not clear for me that will Wi…
Couldn’t retrieve job because a required class was not found, even though previous triggers fired successfully
I have a CRON trigger defined with Quartz, which successfully fires several times and ends up in error state after some cycles, with the following message (class names and package names have been redacted): Once this error happens, the trigger updates itself to ERROR state and won’t fire anymore. The st…
Is there any new way to open fb url directly in fb not browser?
I used this code and it was working but now it does not. I need any intent to open a url in Facebook directly. This post helped me, Open Facebook page from Android app? Answer Open facebook url Add query in manifest