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
5
votes
2 answers

Output weka results to text file

I am new to Weka GUI and i want to output a list of correlations on different fields to a .txt file. My arff file is correct. Can anyone help ? I have already managed it using the art writer with the api, but i can't seem to find from where using…
user4251864
  • 107
  • 1
  • 8
5
votes
1 answer

MSBuild task silent execution

I have msbuild script that perfectly working. But when it runs when build task executed I'm seeing all output of building progress. Is there a way to just write : Building project ... OK. instead of 1000 rows of text?
5
votes
5 answers

How to write the result of a calculation to a file in python?

I'm doing some calculations after reading a file, and want to store the result (a single number) to another file. I want to be able to do things with this file later. I'm having problems storing the result into the text file. I tried this: c =…
Rafat
  • 137
  • 1
  • 3
  • 12
5
votes
3 answers

How to get all outputs (MatLab)?

Suppose I have a function that gives out unknown number of output arguments (it depends on input,thus change through the loops). How to get all of them? nargout doesn't help as the function uses varargout (the result is -1) And of course I can't…
Noxobar
  • 141
  • 5
5
votes
1 answer

Output Caching .PHP files with IIS8 - Time To First Byte

I have a VPS with 4 cores and 5 GB of RAM with Windows Server 2012 and IIS8. I am running a WordPress site on it with MySQL as an InnoDB database, MySQL has been given roughly 70% of my available RAM to cache/buffer which works wonderful. I have…
njs
  • 330
  • 3
  • 11
5
votes
3 answers

check if string exceeds limited characters then show '...'

I want list some items in the list but upto some few characters, if the characters limit reaches then just show .... I have this echo(substr($sentence,0,29)); but how put it condition ?
SagarPPanchal
  • 9,839
  • 6
  • 34
  • 62
5
votes
1 answer

Haskell send keyboard signals to OS

I would like to echo keyboard input to the operating system (ubuntu) from haskell. More specifically, I"m parsing a binary signal and I would like to turn it into keyboard input. I am not trying to capture keyboard input into the program. Is there a…
Peter Klipfel
  • 4,958
  • 5
  • 29
  • 44
5
votes
6 answers

Can't change headers if there is an output?

From what I have studied, headers cannot be changed after there is an output from a script. Why is it then that in this code sample that I wrote, the script has several outputs before it creates a new header, and yet everything works…
user3021621
  • 341
  • 1
  • 4
  • 14
5
votes
4 answers

How to print on screen 2^20 lines of integers in c++ quickly (under 1 second)?

I have to print on screen 2^20 lines of integers under 1 second printf is not quick enough for there , are there any other easy to use alternatives for fast output? Each line contains only 1 integer. I require it for a competitive programming…
Anmol Sood
  • 73
  • 1
  • 8
5
votes
1 answer

What is Under the Hood in a Stream in Programming?

In several languages we have the capabilities of using an input/output stream for something such as reading to or writing from a socket, but, what exactly is that physical stream and how is it connected to a socket or file if using a file…
polymorph
  • 79
  • 9
5
votes
5 answers

The output of intel XDK (.apk) is too large ! (android)

i wanna build a web base android application with intel XDK! i tried but the output apk file is too large, My files are totaly 2.4MB but the output is 15.6Mb ! What should I do ?
Hosein
  • 179
  • 1
  • 2
  • 10
5
votes
5 answers

C++ - Weird thing, input got reversed

I found something weird, I tested this code: #include using namespace std; int main() { int i=0, a[5]; cin>>a[i++]>>a[i++]>>a[i++]; for(int j=0; j
stenlytw
  • 938
  • 13
  • 18
5
votes
2 answers

Can anyone explain this array declaration in PHP -> $a{0} = "value"

Hi i am using PHP for couple of years , these are the ways in PHP that i know to declare an array $arr = array(); $arr = array(1,2); $arr[0] = 1; $arr[] = 1; In an example I saw this syntax and I ran the code and it was valid: $a{0} =…
Kanishka Panamaldeniya
  • 17,302
  • 31
  • 123
  • 193
5
votes
1 answer

Standardized output of test statistics with \Sexpr

I try to get Latex and knitr to do a standardized \Sexpr{} output of statistics. Example: I computed a correlation with mycor<-cor.test(a,b) Let's say the result would be: Pearson's product-moment correlation data: a and b t = 2.9413, df = 54,…
5
votes
5 answers

C concepts on arrays

int main(){ int arr[2]={30,40}; printf("%dn",i[arr]); return 0; } I found this question in an examination and the given solution is 40 But I think it should give an error since i is undefined. Or, may be I am missing something. Please…
Utkal Sinha
  • 1,021
  • 1
  • 6
  • 24