Questions tagged [flush]

Flush means clearing all the buffers for a stream. This will cause any buffered data to be written to the underlying device.

Flush means clearing all the buffers for a stream. This will cause any buffered data to be written to the underlying device.

1132 questions
-1
votes
1 answer

playframework1.2.3 save data into database without transaction

I cannot save my entity data into database without transaction. I know PersistenceContextType.Extend, But I cannot success. @NoTransaction public class Application extends Controller { public static void create(String body) { //…
Glowd
  • 31
  • 4
-1
votes
3 answers

no int input from keyboard c

I can't seem to get my keyboard to accept input and I'm not sure why. I have flushed the buffer (or so I think I did) and all I'm getting is BCS. This is my menu function //Menu int menu() { int choice; do { …
kevorski
  • 816
  • 1
  • 11
  • 29
-1
votes
1 answer

In PHP - sleep(); & usleep(); doesn't work properly. Also, have trouble logging in with a loop

I have 2 problems. Heres my script..... "; echo "
user1419601
-2
votes
1 answer

Shuffle text while printing in python

I have write a simple python program import sys from time import sleep def main(): for i in range(11): sys.stdout.write("The value is %d"%int(i)) sleep(1) sys.stdout.flush() if __name__=="__main__": main() It give me…
-2
votes
1 answer

C program is randomly changing value of int

I'm really confused. I have a C server and it was working great, but then I added some code, and I thought it was working fine until my c program randomly started changing the value of an int to a negative value. Basically I'm having my server…
Vishnu Murale
  • 173
  • 14
-2
votes
1 answer

PHP Cron Job Flush/OB Flush Needed?

I have a lot of images or will. I am looking to periodically change the name of the images with a cron job. // mysql query -> select all images $i = 0; while($i < $num_images){ // update image file name // update image file…
JSG
  • 390
  • 1
  • 4
  • 13
-2
votes
2 answers

Typo on wikipedia input/output examples

I am reading the following example from wikipedia. #include int main() { std::cout << "Hello, world!\n"; return 0; } The article reads then as: This program would output "Hello, world!" followed by a newline and standard…
malat
  • 12,152
  • 13
  • 89
  • 158
1 2 3
75
76