Questions tagged [io]
In computing, input/output, or I/O, refers to the communication between an information processing system (such as a computer), and the outside world, possibly a human, or another information processing system.
17,626
questions
0
votes
0
answers
25
views
At what point in the interrupt-processing path does device-driver code execute?
I am new to interrupt handlers and device i/o and I have a few questions:
When you load a device-driver, i.e. kernel module, its assembly code is stored in the module-mapping region of the Kernel ...
-1
votes
1
answer
12
views
System.IO.Abstraction: Autofac.Core.DependencyResolutionException: 'An error occurred during the activation of a particular registration
Background
I started using the NuGet package System.IO.Abstractions to unit-test File methods (File.Exists(), File.OpenRead(), File.Move(), etc.). I installed the NuGet in both the unit test project ...
0
votes
0
answers
61
views
io.Copy on ssd costs too much time
Recently I developed a simple file upload server using the Go language. The key code is as follows:
func saveFile(r io.Reader, n int64) error {
objectID := "1cb700e18a864328a561641736af934c&...
-2
votes
0
answers
73
views
Why does my text based game display my options instead of attacking?
In my text-based Python game I handle random and scripted encounters:
import time
import os
import random
import sys
from termcolor import cprint
health = 75
player_turn_done = False
usr_inpt = 0
...
1
vote
0
answers
32
views
Digital Signal Processing with Gnuradio - output signals differs from input signal without any modification done
I am sorry for the probably pretty basic question (and not very specific title) - still new to DSP and I have no idea what causes my problem.
I am using gnu radio companion and trying to a rather ...
0
votes
0
answers
18
views
do the editor's write rewrite all the bytes on the disk or just the diff?
For example, i'm using neovim and have 200KB file size, when i hit :w to save it, do it gonna rewrite all the bytes in my nvme cells or it will compare the changes and "append" it? I think ...
0
votes
0
answers
24
views
iOS Message Filter Extension network action REST calls not authenticated when Shared Web Credentials set
I’ve created a Message Filter Extension using the ILMessageFilterExtension framework, relying on its network action workflow. However, I've encountered an issue where the stored web credentials are ...
0
votes
0
answers
26
views
Why does fstreams have 1 cursor for both read & write? (Logically and technically) [duplicate]
Consider the next code:
#include <iostream>
#include <fstream>
using std::fstream;
int main()
{
fstream file("text.txt", ios::out| ios::in |ios::trunc| ios::binary);
if (!file)
...
-1
votes
0
answers
52
views
Non blocking Processbuilder output
When using ProcessBuilder, is there a true non blocking reactive way to consume the output? By true non blocking i mean not creating a thread that is blocked waiting to read, but push-based like ...
0
votes
1
answer
54
views
How do I Exit a Process if a Child Fails?
The program I'm working with requires a secondary executable to run (for asset compression). For error handling reasons, I need the return value of the child process. According to the system man page,
...
0
votes
1
answer
34
views
How to save numpy Polynomial fit
Given a fitted polynomial using the numpy Polynomial convenience class (>1.14)
p = np.polynomial.Polynomial.fit(...)
what is the best way of saving and loading this fit?
There are three arguments ...
-3
votes
0
answers
41
views
Will this hog the IO(HDD)?
I have some code.
// files = (1000's of files in folder xxx);
for (string f in files){
string contents = File.ReadAllText(f);
// do some work with the contents which is <2kb, make results ...
1
vote
1
answer
89
views
How to read a raw disk without locking/dismounting the volume, using Win32 API?
This StackOverflow question has an answer that requires the volume to be locked/dismounted, but it seems this is not necessarily required. When I use the hex editor HxD (Tools > Open disk) to open ...
-2
votes
1
answer
58
views
Can't fetch the audio data from the sql database using python
I am trying to store a song in a database using Python and then retrieve it using Python as well. The song is in MP3 format. However, when I attempt to retrieve the song file, it does not play. ...
-5
votes
0
answers
124
views
Delphi loading RTF file gives me a I/O error 13
I'm writing code for a multi-device application in Delphi 11 that will read from a RTF text file.
When running it, I get an I/O error 13. This stumped me and I don't really know what to do to fix it.
...