Questions tagged [rewind]
32 questions
0
votes
0 answers
pg_rewind succeed but postgresql showing error when trying to make standby with common ancestor
Have 3 node setup: node1(50.2), node2(50.3) and node3(50.4). node1(50.2) is primary and node2(50.3) and node3(50.4) are standby. I promoted node2 and node3 to make them independent. When i try to make the node3 slave of node2, using pg_rewind, it…

Niraj Nandane
- 1,318
- 1
- 13
- 24
0
votes
1 answer
Select always returns 0 in an input file
Select always returns 0 in an input file
I wrote a function function that receives FILE* and checks if it is ready.
The function:
int ioManager_nextReady(FILE *IFILE) {
// Setting input ifle
int inDescrp = fileno(IFILE ? IFILE : stdin);
//…

Learner
- 7
- 4
0
votes
0 answers
Using VS Code, Git-Lens, or another method, how do I explore (and possibly run) versions from my commit history to find/fix a problem?
Given the following:
I have a piece of code - one fairly complex file - that I am actively working on and I save/commit/sync often. Maybe even too often, but that's another story.
Assume my commit versions are represented by the letters "A"…

Jim JR Harris
- 413
- 1
- 6
- 15
0
votes
0 answers
N*N augmented tic tac toe rewind problems (in C)
I had an assignment to do an N by N tic tac toe where you win by losing, and it has a rewind mechanism (goes back an odd number of turns.) I've tried implementing the rewind mechanism, by using a 2 by N squared matrix but it didn't work - it erases…

kal_elk122
- 143
- 6
0
votes
1 answer
Why rewind() followed by fscanf() do not reflect changes made on disk?
I am repeatedly reading a previously-opened file using fscanf and rewind:
#include
#include
#include
void read_opened_file(FILE *file, int *value)
{
errno = 0;
fscanf(file, "%d", value);
if (errno != 0)…

Sparkler
- 2,581
- 1
- 22
- 41
0
votes
1 answer
How read few times a linked list in while context in C
I try to write a code to read few times a linked list without call a specific function like void print(t_list *list), see the code below. I can figure why my code cannot be read a second time my linked list in the while context, because at the end…

Knupel
- 323
- 2
- 14
0
votes
1 answer
segmentation fault when rewinding my file pointer
When my file pointer hits it's second rewind, it causes a seg fault. I have no clue why. I'll include the main that is problematic at the top and all the code below it.
int main(void){
// creating the file pointer
FILE *fptr =…

Adam Menker
- 49
- 5
0
votes
1 answer
HTML5 - Video rewind without acceleration or delay
What I need
I need a script (Javascript, jQuery, etc.) to rewind a video after clicking. We used a script that we found in some forums, but it is rewound in video with acceleration, which causes an action of your search to become full / strange. It…

Guilherme Xavier
- 11
- 4
0
votes
1 answer
JWPlayer with fast-forward and rewind buttons in android
I am using jwplayer in android project.Now the requirement states that the player should have "Fast-FORWARD" and "REWIND" button .
I have looked at the documentation but did not find anything in android sdk.

lara
- 1
- 4
0
votes
1 answer
After rewind mysql query results, not working to re-use query
I'm relatively new to mysql/php rewind. I am execuring a query, and after I mark the current data set and re-wind it, I need to run the same set to run shell scripts that take a really long time. I'm going to run the same script as a cron in a few…

Michele
- 3,617
- 12
- 47
- 81
0
votes
0 answers
C - File buffer rewind() writing blank file cannot read
This program uses the rewind () function, why in the following case, the rewind () function makes true the condition for which the buffer must be flushed?
#include
#include
int main(int argc, char * argv[])
{
FILE *…

AlexQualcosa
- 467
- 6
- 11
0
votes
3 answers
Explanation about def rewind(f): f.seek(0)
i was reading a book and there was a code which had a this line in it
def rewind(f):
f.seek(0)
and this is a line that i can't understand
can you please explain me what is going on ?
from sys import argv
script, input_file = argv
def…

Amirreza Yegane
- 315
- 1
- 5
- 14
0
votes
0 answers
Nodejs AggregationCursour.each() and rewind() bug
I need to perform complicated aggregation on Mongo DB collection. I also need to go through the results twice. After first pass, I execute rewind() on a cursor. Then I try to perform second pass. This is where I get the error. What is strange that…

Aleksander Gralak
- 1,509
- 10
- 26
0
votes
3 answers
Python -- How to split headers/chapters into separate files automatically
I'm converting text directly to epub and I'm having a problem automatically splitting the HTML book file into separate header/chapter files. At the moment, the code below partially works but only creates every other chapter file. So half the…

Bill Thompson
- 9
- 2
- 4
0
votes
0 answers
FORTRAN: Reading large segmented files, REWIND and BACKSPACE
I am working on a complicated code and have made a few changes.
The main purpose of the code is to open two files and perform calculations by taking data from each file a record at a time. These files are very large and are unformatted.
My first…