1,720 questions
0
votes
1
answer
137
views
How to save a generator output (dict with nested list) to the json format?
I have a python generator that yields a sample (np.ndarray, size: batchsize x ndim) of a larger dataset (np.ndarray, size: ndata x ndim).
I coded a decorator that yields a processed output (dict) of ...
0
votes
2
answers
93
views
HTML canvas not drawing BMP image
I'm trying to crop a BMP image and draw it inside an HTML canvas then draw some lines on it. The problem is that the canvas does not draw the image but it draws the lines.
The image:
Let's take this ...
2
votes
1
answer
104
views
How to stream a large file on Kubernetes pod
I want to create a large file(>200GB) and store it in Min.IO store. I deploy my attempts in a web app on a Kubernetes pod.
One attempt was with a modified Redeable stream and csv-writter library ...
0
votes
0
answers
96
views
How to verify that two files are equal using Java AWS SDK
I am looking for the way how to compare two files (especially large files) in S3 within the same bucket using Java AWS SDK.
I do not need to verify whole bucket if there are duplicates. As I ...
0
votes
0
answers
58
views
In VSCode, how do I quickly refresh large log files after being modified by an external program?
I run software that outputs log files with several hundreds of thousands of lines, the files weigh 100MB+
Everytime I re-run the software, the log file opened in VSCode doesn't refresh unless I close ...
-1
votes
1
answer
131
views
Loading and processing large file (120Mb) in memory throws OOM when RAM is still available
I have a task to fix/improve a program that we have and constantly throws OOM exceptions when processing large files (60-90Mb) in memory. This program essentially an in house solution to move files ...
0
votes
0
answers
66
views
Git LFS Server Error when Uploading RTF File
I want to track a single .rtf file of 55 MB using this command:
git lfs track "folderA/folderB/file.rtf"
I've also tried adding in a --filename flag. After some time, the server errors out ...
0
votes
0
answers
97
views
Keep getting "Gcloud Pub/Sub: Total timeout of API google.pubsub.v1.Publisher exceeded 60000 milliseconds"
I am new to GCP and I've developed a simple Google Cloud Run service that reads a CSV file from a Google Cloud Storage bucket and pushes each row to Pub/Sub. The code functions well on the emulator ...
1
vote
0
answers
119
views
write syscall with mmaped buffer
I work with large files and as a result of development I had to copy large files (about 10 gigabytes) in C code.
In this regard, the question arose: how effective is the combination of map()+write() (...
0
votes
0
answers
58
views
django StreamingHttpResponse to return large files
I need to get pdf files from s3 and return the same file to the frontend.
def stream_pdf_from_s3(request, file_key):
s3_client = boto3.client('s3')
try:
response = s3_client....
0
votes
1
answer
58
views
Different Starting Indices for Iterating over Large Files
I want to begin by saying I have NOT programmed in many, many years, so sorry if this is a somewhat trivial question. My interest has been mathematics for the last couple of years
Here's my code:
...
-1
votes
1
answer
301
views
Stream Large CSV File Generated in SpringBoot API to browser throwing broken pipe exception
I'm working on an endpoint that queries a datasource and generates a large CSV file and streams it to the browser. I'm having an issue when the stream has sent ~2Gb through the stream this error is ...
0
votes
0
answers
8
views
Having Problem in pushing large files in git [duplicate]
There is an error coming everytime i push my file on github.
I tried changing the version of https from 2 to 1.1 ,
I have also tried to track files using git lf,
I have also added these files to the ....
0
votes
2
answers
270
views
How to parse multiple Large XML files with good performance and memory usage balance?
I'm implementing a program which should get files from the user in Angular, send them to the node.js backend, where there those will be read and parsed into an array of object.
I went with javascript ...
0
votes
0
answers
51
views
In PHP. 1GP file takes one-hour time to download from FTP connection. How to increase the download speed?
I PHP fpt connection, I am trying to download one large file minimum 1GP from client server to my server but the downloading time taking minimum one-hour. But the server configuration and bandwidth ...
2
votes
0
answers
81
views
Explain the benefit of streaming file data when savings to database in Microsoft example code?
I am looking for the best solution to upload large files to a MySQL database via an ASP.NET Core Web App using Entity Framework Core.
I am looking at the Microsoft documentation *here, but I am ...
0
votes
0
answers
66
views
Delete all the columns from a very large file which satisfy a specific condition
I have a very large file of size approx. 5-10 GB.
The file will have 2 types of lines:
Lines starting with "#define CHAR_DEF"
Lines starting with "% "
Format of "% " ...
2
votes
1
answer
117
views
how to filter huge csv file by pandas
I have a 10GB csv file data/history_{date_to_be_searched}.csv. it has more than 27000 zip codes. On the basis of zip code I have to filter the csv file then each filtered file I have to upload to ...
0
votes
0
answers
92
views
Issues with processing large Excel files from SFTP using Roo gem in Rails application
I'm encountering difficulties processing large Excel files fetched from an SFTP server in my Rails application. The application comprises a Rails server and a Karafka server, and the application ...
2
votes
1
answer
992
views
How do i open a file larger than available memory in visual studio?
In my pre-windows days, i recall using a hex editor that only loaded in the part of the file i was working on. I need to load a file that is larger than available memory into visual studio to search ...
1
vote
1
answer
327
views
Python error: "ValueError: cannot switch from manual field specification to automatic field numbering" and I don't know why
I have been working on making a multiplication table using a function, a for loop and string formatting. I tried a small-scale test table going up to twenty, which printed fine. then, I went all the ...
0
votes
0
answers
42
views
Waking large archived files to go OFF tape by trying to open them for 1 second
I have access to a tape archival system on my network. The files stored on this system are quite large, about 700-800MB each, and accessing the system from Windows shows them marked "Archive.&...
1
vote
0
answers
232
views
How to download a 30GB file through JavaScript
I have a URL which is a 30GB of file, I want to create a Javascript function which will download the file in user system through chuncks by chunck (1GB).
In simple term something like, 1GB of data ...
1
vote
1
answer
572
views
How to fix "Cannot allocate vector of size..." when using filter-function? [closed]
In an university class, I need to work with a pretty big longitudinal data set: .rds-file is around 300mb, in total 380,000 observations of 5160 variables. The data set goes back to 1984, however I ...
-4
votes
2
answers
114
views
apply sed only to the part of the file after last match in loop - shell / bash [closed]
I have a couple of large files (~1Gb) of such structure:
fooA iug9wa
fooA lauie
fooA nwgoieb
fooB wilgb
fooB rqgebepu
fooB ifbqeiu
...
fooN ibfiygb
fooN yvsiy
fooN aeviu
I would like to replace in ...