81,403 questions
0
votes
1
answer
27
views
How to download files from an API in React Native (Expo SDK 54)?
I am building a React Native app with Expo SDK 54. I want to download a file (e.g., PDF or image) from my API and save it on my device. I am not sure how to handle the file download and save it using ...
1
vote
2
answers
60
views
XML in Oracle PL/SQL - How to read a big hexBinary node?
I have an XML file with a node containing a file that has been converted into hexbinary.
The ultimate goal is to read that node, convert it back to an actual file and store the path of that file in a ...
-6
votes
1
answer
87
views
Why doesn't it even show an error anymore? [closed]
So for class, I have to code something to open a file named grades.txt and just after getting it to recognize the file name, it has stopped showing me errors. I know it is not working as there are ...
Best practices
1
vote
4
replies
114
views
Fastest way to count lines in a .csv from a .bat file?
I have this .bat file that I use to open .csv files, which counts the lines in them and uses Excel to open if under a million records and a separate program to open if more than a million records. The ...
0
votes
0
answers
27
views
Why can I create file with reserved words in Windows 11? [migrated]
I read everywhere that reserved file names like CON or NUL can't be used to create files on Windows no matter if there is a file extension following or not.
Even the Windows docs say:
Do not use the ...
2
votes
1
answer
69
views
PyScript on Github pages doesn't see files with relative paths
I have a github repo that is hosted on GitHub Pages (project site). I’m migrating a small PyScript demo to GitHub Pages and hitting 404s when preloading files via <py-config>. This works locally ...
1
vote
0
answers
28
views
Is it possible to do offline upload using GCS Bucket Presigned URL resumable vs write
I have a Frontend Client which lets users uploads any number of files of any size (think up to 100 GB File).
Currently I am using GCS buckets presigned URL to upload the file. My current ...
1
vote
1
answer
58
views
What is the better way to use fyne dialogs synchronously in Go?
I am programming a little software in Go called GoFileEncoder. For the file dialog boxes, I would like to use fyne.io/fyne/v2/dialog. Only, the functions dialog.ShowFileOpen() and dialog.ShowFileSave()...
1
vote
0
answers
110
views
Writing and executing a file from within the Linux kernel
I need to write (modify) an executable file and then execute it from a Linux system call. I have attempted to create (open) the file, write to it, close it, and then execute it. The problem is that ...
1
vote
1
answer
67
views
Does reading one stream that is a copy of another stream affect the original stream position
I'm checking the file signature of an IFormFile and I'm curious if I can avoid resetting to the beginning of the stream after my check is done. I intend to dispose the copy of the original stream and ...
-3
votes
1
answer
97
views
How does Google Fonts browser optimize their font preview experience? [closed]
Analysis of Google Fonts
Here is me scrolling through the Greek fonts
As you scroll, you'll see it progressively calls the css2 url like:
https://fonts.googleapis.com/css2?family=STIX%20Two%20Text%...
2
votes
3
answers
166
views
How to properly replace long strings in Perl
Let's say I want to replace every occurrence of 12345 in file1 with the contents of file2. The following code works:
use strict;
use warnings;
local $/;
open my $fh, 'file1' or die "$!";
...
1
vote
0
answers
48
views
Unable to upload file using spark Java
I'm using Spark java with below dependency, and I'm trying to make one API endpoint to receive an file using multipart file, Below is the code attached, I've tried multiple ways to do that, but ...
0
votes
1
answer
83
views
fileInput error "net::ERR_CONNECTION_RESET" caused by "Run App" button
I'm working on a R shiny application. When I use the "Run App" button on the R interface my fileInput doesn't seem to be working (see image below).
My browser console shows this error:
:...
0
votes
0
answers
46
views
Use localised files in Flutter
I have an android app whose content is filled with localised files in raw folders (raw, raw-de, raw-fr...). Now I want to develop it in Flutter, but I don't find anything about internationalisation of ...
0
votes
1
answer
89
views
How can I index search a JSON file with different elements in Python [closed]
In this python script I am trying to randomly access one of the components in this JSON file, however I repeatedly receive a "Keyerror".
Here is the code:
import json
def genCard():
...
2
votes
2
answers
145
views
using fread function to get the list of students from file
I have to write into a file the records of students (id, name, percentage) and get the list of those students who have scored percentage equal to or more than 90. The output prints in infinite loop. ...
2
votes
1
answer
83
views
String format specifier works but prevents reading of others
I'm making a program that reads multiple structs in and out of different files. For one of them, I have a format for reading from the file, and one for writing to it.
#include <stdio.h>
int ...
3
votes
2
answers
201
views
In Linux, can I make a file unchangeable while the process creating it is running while removable if the process has been terminated?
My initiative here is to make a detection mechanism on process status by a "file lock".
Say I am developing a program in user mode. It will be inappropriate for some sources to be shared ...
0
votes
1
answer
56
views
Is there a threshold to consider a large file?
In Node.js we must use fs.createReadStream to deal with large files to avoid high memory usage. So when do we consider a file to be large ?
2
votes
2
answers
96
views
How to hide files from find-file in emacs?
What I need to do is simple: I have A-f bound to find-file in emacs, but want to hide specific files that I do not care about. I have them hidden in dired already using this config:
(setq dired-omit-...
0
votes
0
answers
33
views
Give Files to Custom GPT via API
So, I'm working on a CustomGPT that has access to my filebase and can search, open, create, and modify files. (It can also cache files, get them, save user prefs and get them.) So how it works is that ...
-2
votes
1
answer
196
views
How to create a file only once when it's needed?
I'm working on a Java utility. This utility should read some input files (one or several). Each input file contains three types of strings, representing an integer, a float, and a string. The utility ...
0
votes
1
answer
39
views
Group files whose names have embedded version numbers and process all but the latest versions
Preface:
This is a self-answered question, which is why there's no solution attempt in the question itself.
The task description is a focused reformulation of this now-deleted question.
I have a ...
0
votes
1
answer
79
views
How come I am seeing different files in my JavaVirtualMachines folder depending on how I navigate to the folder in Terminal? [closed]
I am using Terminal on my MacBook.
From the top directory if I do:
cd Library
cd Java
cd JavaVirtualMachines
ls
I see the following files:
corretto-21.0.5 corretto-22.0.2 openjdk-20.0.2 openjdk-23.0....