Questions tagged [output]

The externally observable consequences of calling a program on some input

The output of a program is the set of externally observable consequences of running a program on the given input.

A program's output can be manifested in several forms:

  1. What is printed to and/or
  2. What is written to an external file
  3. What changes are made to the inputs, which are then used in other functions or programs
9797 questions
11
votes
2 answers

How to increase the ipython qtconsole scrollback buffer limit

When I load ipython with any one of: ipython qtconsole ipython qtconsole --pylab ipython qtconsole --pylab inline The output buffer only holds the last 500 lines. To see this run: for x in range(0, 501): ...: print x Is there a…
Philip
  • 253
  • 3
  • 10
11
votes
1 answer

SQLite define output field separator on a single line command

I need to use a single command line to fetch a set of records from a database. If I do this: $ sqlite3 con.db "SELECT name,cell,email FROM contacts" I get output with a separator "|", where the output looks like…
Sazzy
  • 1,924
  • 3
  • 19
  • 27
11
votes
1 answer

Corrupted output with C++, cin, cout, threads and sync_with_stdio

I am trying to make a program in C++ to process a lot of packets in the fastest way possible. All the packets come from the standard should be read as fast as possible, sent to one thread from a pool to do the processing and then handled to an…
imrivera
  • 381
  • 3
  • 11
11
votes
2 answers

Capture output from git command?

I am writing a script to automate setting up new projects for me. this includes pulling down a github repository. What I want to do is have some output from my script, then call git clone $repo I want to show the output from that command while it is…
Hailwood
  • 89,623
  • 107
  • 270
  • 423
11
votes
3 answers

Weka Predictions to CSV

I've trained a classifier in Weka, and I'm able to use it on test data. Additionally, I can opt to display the classifier's predictions in the log window for this test data. However, for my current project, it would be convenient for me to be able…
elliottbolzan
  • 1,057
  • 1
  • 15
  • 30
11
votes
1 answer

Function calling variable output number

I've found myself trying to interface a custom class with builtin functions, and I've encoutered a situation I could only solve with eval, I'd like a "cleaner" way. Basically, the builtin function is defined as varargout=blabla(varargin) I defined…
rienafairefr
  • 364
  • 4
  • 14
10
votes
1 answer

Suppress messages from underlying C-function in R

In a script I often call the function Rcplex(), which prints "CPLEX environment opened" and "Closed CPLEX environment" to the console. Since the function is called rather frequently, it prints this very often, which is quite annoying. Is there a way…
YukiJ
  • 175
  • 2
  • 12
10
votes
1 answer

tcsetattr(): what are the differences between TCSANOW, TCSADRAIN, TCSAFLUSH and TCSASOFT

I've read the GNU manual for tcsetattr() and it states that the function has three arguments: a file descriptor, a value that explains how to deal with queued I/O and a pointer to a struct termios. However, I don't understand what the differences…
Areg Sarvazyan
  • 199
  • 2
  • 13
10
votes
2 answers

What is the return_state output using Keras' RNN Layer

I check the Keras documentation for LSTM layer, the information about the RNN argument is as bellow: keras.layers.LSTM(units, return_state=True) Arguments: return_state: Boolean. Whether to return the last state in addition to the output. Output…
Jason
  • 3,166
  • 3
  • 20
  • 37
10
votes
1 answer

Elm: How does Debug.log work?

I'm logging the a and b values of a foldl. words = ["mate", "bro", "bruv"] sum2 = List.foldl (\a b -> Debug.log(toString <| a) Debug.log(toString <| b) a ) "guv" words It works as expected, but I can't understand…
Rich
  • 5,603
  • 9
  • 39
  • 61
10
votes
3 answers

Python - how do I display an updating value on one line and not scroll down the screen

I have a python script which receives values in real-time. My script prints the values as they are received and currently, each update is printed to the screen and the output scrolls down e.g. Update 1 Update 2 Update 3 ... Is it possible to have…
Mark Smith
  • 757
  • 2
  • 16
  • 27
10
votes
6 answers

Concatenating values in a print statement

I have the string "Bob" stored in a variable called name. I want to print this: Hello Bob How do I get that? Let's say I have the code name = "Bob" print ("Hello", name) This gives ('Hello', 'Bob') Which I don't want. If I put in the code name =…
Auden Young
  • 1,147
  • 2
  • 18
  • 39
10
votes
3 answers

How to interpret matchtemplate output? (openCV, Python)

After reading the docs and searching all over the internet I still do not understand how to interpret the output of the matchTemplate function from openCV. What I understand: result = cv2.matchTemplate(img, template, cv2.TM_CCOEFF_NORMED) I…
DonDonald
  • 101
  • 1
  • 5
10
votes
4 answers

Protractor test reports

I've established a considerable set of protractor test suites and I'm looking to implement it into jenkins to run these tests with each new build. To handle the output, simply outputting it to a text file doesn't suffice anymore e.g. protractor…
Tom Nijs
  • 3,835
  • 3
  • 22
  • 40
10
votes
2 answers

Parsing Python subprocess.check_output()

I am trying to use and manipulate output from subprocess.check_output() in python but since it is returned byte-by-byte for line in output: # Do stuff Does not work. Is there a way that I can reconstruct the output to the line formatting that…
DJMcCarthy12
  • 3,819
  • 8
  • 28
  • 34