81,403 questions
1
vote
1
answer
101
views
How to get the built jar file after the build task in the form of java.io.File object?
I am trying to extend the build task with the name buildAndPost, which after the build completes,
copies the file to the required destination and connects to the server triggering a reload mechanism ...
3
votes
2
answers
92
views
Safest way to incrementally append to a file?
I'm performing some calculations to generate chaotic solutions to a mathematical function. I have an infinite loop that looks something like this:
f = open('solutions.csv', 'a')
while True:
x = ...
1
vote
0
answers
41
views
FormData Not Appending Files in React
I'm working on a React component that allows users to upload files. The files are managed in a state array where each file has additional metadata such as a unique id (required for DataGrid) and a ...
2
votes
1
answer
173
views
filesystem error: cannot increment recursive directory iterator
Disk Partitions Information:
Drive: C:\ (Local Drive) - Total: 119 GB
Drive: D:\ (Local Drive) - Total: 341 GB
Drive: G:\ (Local Drive) - Total: 15 GB
Pick a path: C:\
"C:\\$Recycle.Bin"
&...
0
votes
1
answer
74
views
Java: GZIP file contains another GZIP file when saving logs in Windows
I'm working on a Spring Boot application where I need to download log files from a mock service and save them as GZIP files on a Windows system. However, I've encountered an issue where the saved .gz ...
1
vote
2
answers
178
views
Is it possible to read a file in parallel by extending this function?
I developed this function in C to read a file consisting of one word per line, like a standard wordlist.
The function has already been optimized to a reasonable extent, but I would like to know if ...
-1
votes
2
answers
129
views
Saving an Excel file using the data range as file name in C#
I have an export to a .xlsx spreadsheet in Excel which is generated when the user supplies a date range and the car name. This works at the moment and displays the data correctly. The file name must ...
0
votes
1
answer
101
views
New line added to file when writing from StringIO
I have a piece of code that writes a csv response to a StringIO() object. I return this object through and endpoint and also use this output to generate a csv file that will be stored on the server.
@...
0
votes
0
answers
49
views
How to Build a Structured AQL Query from an Image List with Python?
I am trying to build a script that generates Artifactory queries for an automation task.
An AQL query would look like the one below.
For each image block, there are 2 curly braces followed by a comma, ...
1
vote
1
answer
46
views
Searching for a file name inside a folder of jar files
I had a problem while modding minecraft. Something added a c:coal tag to minecraft:charcoal, causing issues for me. So instead of opening each of my 200 .jar files in my mods folder, I made a quick ...
0
votes
2
answers
74
views
How to parallelize NUnit tests that need to use FileParameter?
.NET 8.0
NUnit 4.1.0
I have a bunch of tests that are wrapped within a TestFixture attribute.
Each test case is currently opening a file as a FileParameter and passing that to a function:
string path ...
0
votes
1
answer
37
views
Spring reactive big image files giving nosuchfileexception and not sent using Webclient
I am writing a code to send multiple big images of size 10MB after receiving from the front end. The objective is to do the processing of the images in the background and send the response immediately ...
1
vote
0
answers
27
views
Reading a JSON file probably while it's being written, would that cause any issues? [duplicate]
I am working in Laravel and presenting you a simplified version of what I am trying to achieve.
Assume a JSON file called site.json containing the following:
{
usedDiscounts: 10
}
Every time a ...
1
vote
0
answers
30
views
pyspark --files no such file or Directory error
I am getting "No such file or directory" error while using --files option in cluster mode.
Can someone please help if I am missing something.
your_file_name.txt [Sample Input File]
abc
xyz
...
0
votes
2
answers
116
views
Python - Concurrent file seek and write
I'm making a concurrent file downloader, which downloads in segment files and merges them afterwards. I want to improve it by pre-creating a big file with the whole size, then each thread will seek ...
2
votes
1
answer
86
views
problems with fseek and fread in C
I'm having an issue with fseek and fread. For some reason, using fseek (f, 0, SEEK_END); will not give me the end of my file, and instead go 1000 bytes farther, giving me junk data and generally being ...
0
votes
2
answers
96
views
Extract parts from sql sentences with pyhton script
I have a .sql file with CREATE TABLE AND INSERTS TABLE sentences in it.
Example:
INSERT INTO `examle` (`myid`, `title`, `value`, `usefull`, `picture`, `short_description`, `description`, `wikipedia`, `...
0
votes
0
answers
9
views
Uploading a file from a managed app through Safari from a managed domain causes selected folder to disappear
I have the following MDM setup:
A browser is installed as managed (ex Firefox)
No managed domains
Managed app (Dropbox) with Files app integration.
This issue only occurs on iOS 18. iOS 17 works ...
1
vote
1
answer
45
views
How to reference batch files stored in project from code
I have a VB App that is calling .bat files externally, I figured out how to add the bat files to the project, but how do I reference their location in code vs externally referenced outside of the ...
0
votes
1
answer
77
views
Cut a file to be pasted in a file manager
I want to put a file in the OS clipboard. I am using Qt6. The windows code works, the Unix code is failing. The file is copied, and the original file is left.
auto clipboard = QApplication::...
2
votes
1
answer
321
views
How to export all output from certain Jupyter cell, say, using %%capture magic, and save output to a PDF file?
I would like to save/export all of the output, formatted in the manner captured using Jupyter notebook's %%capture magic - to a PDF file.
Similar to what this question is trying to answer - however, I ...
0
votes
1
answer
74
views
wxmaxima wxdraw , wxdraw2d, wxdraw3d. How to change output to a *.png file instead of terminal computer screen
I have successfully changed the output from default terminal screen to a *.png by for example.
[load(implicit_plot),
gnuplot_out_file[png,"gnu.png"],
implicit_plot(x^2+y^2-1,[x,-1,1],[y,...
0
votes
0
answers
80
views
Write to external removable SD Card since API 30
How to access and write files (PDF, DB, CSV) on an external SD Card since API 30.
I checked :
Storage Access Framework (SAF) => Didn't found any SD Card sample
Without MANAGE_EXTERNAL_STORAGE =>...
1
vote
1
answer
246
views
I can't move files through C++ (both MoveFile, MoveFileEx, filesystem::rename)
I was trying to write a simple program to move files from directory A to directory B, in the end the file moving part keeping giving ACCESS DENIED errors and what so. Here is the code
const char* src =...
0
votes
2
answers
125
views
How to avoid platform based NoSuchFileException when using java.nio.file.Paths?
Whenever I run this code locally, the relative path for the file is working just fine but the Kubernetes pod deployment in pre-prod throws NoSuchFileException.
MOCK_DATA_BASE_PATH = "/data/mocks&...