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
23
votes
3 answers

How can I force a compile error in C++?

I would like to create a compile-time error in my C++ code with a custom error message. I want to do this for a couple of reasons: to force compilation to fail while I'm working on new features which haven't been implemented yet. (compile time !…
Dominic Birmingham
  • 325
  • 1
  • 3
  • 11
22
votes
3 answers

Webpack console.log output?

Can anyone direct me in the right direction? So i've setup the webpack-dev-server with the truffle suite demo, just to get a basis on the foundation of my app. So my config file includes index.html & app.js, yet it try to display a console.log…
22
votes
1 answer

How to understand the output of command 'gradle dependencies'?

There is part of the output: output of gradle dependencies What does the symbols ('+','\','->','()','(*)') exactly mean?
Jerry.L
  • 223
  • 1
  • 3
  • 6
22
votes
4 answers

System.out.println where does it write to in Intellij Idea?

I can't find the terminal where the message is supposed to show. How is it called? I'm guessing it should be in View->Tool Windows but nothing from there seems to work. It's a Maven project and all I can see is GlassFish log.
Greyshack
  • 1,901
  • 7
  • 29
  • 48
22
votes
1 answer

What's the difference between write, print, pprint, princ, and prin1?

I'm getting into some Lisp, and I've come across various different functions that to me appear to be doing the same thing... Namely printing to console... So what exactly is the difference between all those different functions?
Electric Coffee
  • 11,733
  • 9
  • 70
  • 131
21
votes
2 answers

Suppressing a function's command window output

A function I'm using has display() in it (or other things that display messages on command window), so it outputs a lot of things (x 1200) on command line when I run my code, which makes things hard to track and observe. Is there a way to suppress…
Ali
  • 251
  • 1
  • 2
  • 5
21
votes
3 answers

Outputting a Dataframe in R to a .csv

So I'm trying to write a .csv file based on a data frame in R, but for some reason I keep getting the following error: Error in .External2(C_writetable, x, file, nrow(x), p, rnames, sep, eol, : unimplemented type 'list' in 'EncodeElement This…
riders994
  • 1,246
  • 5
  • 13
  • 33
20
votes
3 answers

How to use R's sprintf to create fixed width strings with fill whitespace at the END?

I have vector of strings and want to create a fixed with string out of that. Shorter strings should be filled up with white spaces. E.g.: c("fjdlksa01dada","rau","sjklf") sprintf("%8s") # returns [1] "fjdlksa01dada" " rau" " sjklf" But…
Matt Bannert
  • 27,631
  • 38
  • 141
  • 207
20
votes
6 answers

Retain feature names after Scikit Feature Selection

After running a Variance Threshold from Scikit-Learn on a set of data, it removes a couple of features. I feel I'm doing something simple yet stupid, but I'd like to retain the names of the remaining features. The following code: def…
20
votes
3 answers

std::cerr doesn't wait for std::cout (when running CTest)

The context I wrote a logger printing messages for the user. Messages with level "debug", "info" or "warning" are printed in std::cout and messages with level "error" or "system_error" are printed in std::cerr. My program is not multi-threaded. I…
Caduchon
  • 4,574
  • 4
  • 26
  • 67
20
votes
1 answer

How to determine if an output of a function-call is unused?

Say I have a function foo that can return three values given an input: function [a,b,c] = foo(input) The calculations of variables b and c take a long time, so sometimes I may wish to ignore their calculation within foo. If I want to ignore both…
st_theory
  • 253
  • 1
  • 8
20
votes
2 answers

Save cURL Display Output String in Variable PHP

is their an option to save the outpout of a curl request in a php variable? Because if i only save the $result i get a 1 or nothing
The Masta
  • 837
  • 3
  • 9
  • 17
19
votes
3 answers

Suppress automatic output to console in R

The function callmultmoments computes moments of the normal distribution. The function automatically prints "Sum of powers is odd. Moment is 0." if the sume of the powers is odd. Is there any way to supress that under the condition that the original…
Manuel R
  • 3,976
  • 4
  • 28
  • 41
18
votes
5 answers

How to disable line wrapping in Jupyter notebook output cells?

By default longer lines of text in the output cells of a Jupyter notebook will be wrapped. How to stop this behaviour?
SomJura
  • 336
  • 1
  • 3
  • 13
18
votes
4 answers

Remove blank lines in powershell output

I'm trying to remove blank lines before and after output but it's just not working. I tried Adding -NoNewLine after the very first Write-Host, but that only removes one blank line so far. Code: $tag1 = "c91638" Write-Host "Operating System…
Aaron
  • 3,135
  • 20
  • 51
  • 78