1,135 questions
0
votes
1
answer
76
views
Error in flush at downloading file with VB.Net
I'm trying to download files through a popup window. Most of files download correctly, but some one through this error:
Error in /Controladores/Descarga.ashx?guid=4b5050f6-2f69-41e1-8bd6-1113686e9575
...
0
votes
0
answers
45
views
Magento 2 cache tag varnish
I don't understand the way the handle my cache tag in magento 2.
I have implemented DataObject/IdentityInterface.php for my models wishlist and wishlistitem.
So when I create a wishlist for example I ...
1
vote
0
answers
606
views
nftables managing sets of ips
I'm building a new server, and thought, its 2025 and probably good time to migrate from iptables, ipset... to nftables. earlier or later it has to happen any way, right?
# uname -a
Linux starnet 6.12....
2
votes
1
answer
172
views
Why are log lines missing without a flush?
I have a simple class in C++20 that logs data to a file line by line for Windows platform. To ensure thread safety, I use a static std::mutex to serialize the write operations.
However, I encounter an ...
0
votes
0
answers
52
views
Need to Flush() before Seek() on a FileStream?
I'm writing a data storage library that writes records to specific positions in a binary file. For each written record, its byte position in the file is determined, the file stream is seeked to that ...
1
vote
1
answer
93
views
Why does printf flush or not flush depending on where the line is in a loop?
Why, in this program, does the printf function print or not print depending on where it is inside the loop?
#include <stdio.h>
#include <time.h>
int main()
{
char frames[] = {'-',...
1
vote
2
answers
326
views
How do loggers flush without adding an end of line to the log messages?
I have seen many loggers using operator<< to read log messages and write them on file:
template<typename T>
Logger& Logger::operator<<(Logger& l, const T& s) {
l....
1
vote
0
answers
40
views
How can I flush the total Page object which represents a HTML page in ASP .net
I am working on a prebuilt API in a .net server. So there I saw we use Page class and append some js external links as <link> tag and I want to flush them early so that the client can download ...
0
votes
1
answer
91
views
Force flush Python-part of Bash-script?
I have a simple Bash-script that spend more than 99 % of its time on executing a Python application (the script is just a wrapper that feeds this Python script files in a for-loop and renames the ...
0
votes
0
answers
31
views
Output buffer for terminal is getting flushed in case of both new line and endl. Why? [duplicate]
I know that new line character does not flush the output but endl does.
Flushing the buffer means that everything stored in the buffer will be sent to the file which in this case is terminal.
"it ...
0
votes
1
answer
82
views
How to restore the files in wal and execute flush when restarting fails in Apache IoTDB Version 0.13.0?
What should I do if the flush command fails to persist the files in wal, resulting in the failure to restart Apache IoTDB? I use Version 0.13.0 of IoTDB, and the error message is: 231 - WAL detected, ...
2
votes
2
answers
165
views
Do `fseek`, `fsetpos`, and `rewind` flush the buffer in C?
The C reference states that a FILE* opened in update mode ('+') needs to take the following two precautions:
Output cannot be followed by input without a call to one of fflush, fseek, fsetpos, or ...
0
votes
1
answer
69
views
Why is another thread used here to flush the data?
I am reading the code of pickdb.
In this function:
def dump(self):
'''Force dump memory db to file'''
json.dump(self.db, open(self.loco, 'wt'))
self.dthread = Thread(
target=json....
0
votes
1
answer
311
views
Is there a method to auto flush when data changes in h5py?
In h5py, the file in disk is not change when create group or dataset unless call file.flush(), how to implement auto flush when data changes?
I can wrap the h5py.File, but it does not work for ...
1
vote
1
answer
350
views
Does PHP's flush() do anything if running from terminal/cli?
I'm starting php directly from the terminal and passing it a .php script to run, I'm not using a web browser.
The documentation for flush() says
Flushes the system write buffers of PHP and whatever ...
0
votes
1
answer
130
views
Why does error message in Python is displayed earlier than the print method
I have visited a similar question in SO which was asked earlier.
In the answer its mentioned that :
When the buffer is "flushed", it will be displayed. Normally, if the
output is a terminal,...
0
votes
0
answers
412
views
Doctriny - Symfony Flush not adding to DataBase
The flush function does not add anything to the database even though it doesn't return any error.
Any idea of how can I solve that?
Thanks in advance for your help!
Here is my code:
Controller:
#[...
0
votes
1
answer
745
views
what is practical differences between flush, write() and fflush()?
In this post, the answer said
Flushing: To sync the temporary state of your application data with the permanent state of the data (in a database, or on disk).
I think that the flush is executed when ...
0
votes
1
answer
5k
views
Debezium for Postgress and WAL flush
I have Debezium in a container, capturing all changes of PostgeSQL database records. But i am unable to understand couple of things regarding how Debezium works. If Debezium starts for the first time ...
2
votes
1
answer
528
views
Does std::cout guarantee to print a string if it doesn't end with a newline?
I've heard that the following program isn't guaranteed to print the string on every platform and to actually do it you need to add \n to the end or flush the buffer by other means. Is that true or ...
1
vote
0
answers
52
views
Nohup command don't send the stdout ouput to an outputfile [duplicate]
I have a problem trying to send stdout in realtime to a log file with nohup by the command
nohup python3 -u {} --model_dir={} --pipeline_config_path={} --num_train_steps={} > /lab/FastAPI/logs/...
0
votes
0
answers
35
views
Why flushing output buffer before printing char array doesn't print garbage data? [duplicate]
When printing a char array directly I get garbage data printed out with it.
#include <iostream>
using namespace std;
int main(){
char x [5] {'H','E','L','L','O'};
cout << "...
1
vote
0
answers
104
views
Why do I see output if buffer is not full and program is not terminated?
As much as I know, we do not get output to the screen from cout, until:
1.Buffer is full
2.Buffer is flushed
3.Program is terminated
So i have written following Code:
for(;;)
{
cout << "a&...
0
votes
1
answer
1k
views
How does Flush error occur and how do I solve it?
I'm trying to make a login page I have been trying for weeks but this error keeps popping up:
sqlalchemy.orm.exc.FlushError: Instance <Users at 0x10bd8c580> has a NULL identity key.
The error ...
0
votes
0
answers
126
views
SerialPort data stacking and when ı send request executing previous request
Im using serial port for communication with device. But when ı cancel process and send new its executing previous process.
serialPort.BaudRate = baudrate;
serialPort.PortName = ...