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
7
votes
1 answer

Is it possible to "rumble" a Xbox 360 controller with Python?

Is it possible to "rumble" my wireless Xbox 360 controller for PC with Python? I've only found solution for reading input but I cant find information about vibration/rumble. EDIT: Following the code provided by @AdamRosenfield I get the following…
Belohlavek
  • 167
  • 3
  • 13
7
votes
3 answers

Character in Switch-Statement C++

Please help! I can't produce the output of my program. This is the condition: Construct a program that gives a discount of 100 pesos if the shirt bought is XL and the the price is greater than 500; and a discount of 50 pesos if the shirt bought is L…
Jemar Villareal
  • 91
  • 2
  • 3
  • 11
7
votes
2 answers

how to render a view and save the content in a file in Laravel

I'm having a hard time trying something very trivial in my opinion. I want to make a view, get the string contents and save it to an xml file Here is an example code of what i try, but it outputs the xml view to the browser use…
Ernie
  • 972
  • 1
  • 10
  • 23
7
votes
5 answers

How to output elements in a JSON array with AngularJS

JSON array defined in scope: $scope.faq = [ {"Question 1": "Answer1"}, {"Question 2": "Answer2"} ]; HTML:
{{f}}
Output: {"Question 1": "Answer1"} {"Question 2": "Answer2"} What I want…
Robert Christian
  • 18,218
  • 20
  • 74
  • 89
7
votes
3 answers

redirect bash output and error for all commands

How to redirect all commands executed on the bash to /dev/null ? It's obvious that for a command we have to do: command > /dev/null 2>&1 How about all commands that will be executed further on ?
TheForbidden
  • 1,533
  • 4
  • 22
  • 30
7
votes
2 answers

Creating another output device in iOS application with different content

NOTE : Kindly Look into the Edit Section , This section is just a Reference purpose. I'm new to the IOS App Development architecture . Please, I just need a clarification that whether is it possible to make two outputs , one is continuously…
Kumar KL
  • 15,315
  • 9
  • 38
  • 60
7
votes
1 answer

How to easily write a multi-line file with variables (python 2.6)?

At the moment I'm writing a multi-line file from a python program by doing myfile = open('out.txt','w') myfile.write('1st header line\nSecond header line\n') myfile.write('There are {0:5.2f} people in {1}…
Tetsuo
  • 169
  • 1
  • 2
  • 9
7
votes
2 answers

Omit unneeded namespaces from the output

My XSLT is outputiung some tags with xmlns:x="http://something" attribute... How to avoid this redundant attribute? The output XML never use, neither in a the x:tag, nor in an x:attribute. EXAMPLE OF…
Peter Krauss
  • 13,174
  • 24
  • 167
  • 304
7
votes
2 answers

How to disable java mail trace on console when sending an email

Here is my code for sending email: public void sendMail() { try { // Propiedades de la conexión Properties props = new Properties(); props.put("mail.transport.protocol", "smtp"); …
user2086740
  • 71
  • 1
  • 2
  • 2
7
votes
3 answers

Reading output from another running application

I'm working on a custom IDE in C# for a scripting language, and I have a problem. I'm trying to start the compiler process (pawncc.exe) and pass arguments to it. I've done that, and now I have a problem. When I want to display the output from the…
Quin Schurman
  • 118
  • 1
  • 6
7
votes
5 answers

How to Display result with Console Application

I write a class in C# and I want to display in console. But i can't display it. My program doesn't have any errors, which means the program runs it but i can't see a result :( Please help me regarding this problem.
Hamid
  • 89
  • 1
  • 1
  • 5
7
votes
3 answers

Output disappeared Javascript simple innerHTML

I am new to javascript and on every simple thing i get some kind of problem but this seems un-solve-able to me. I googled and nothing simillar. After i input data into textbox and store it into variable, i print out variable in paragraph. Problem is…
Martin Markovic
  • 99
  • 2
  • 2
  • 8
7
votes
1 answer

How do I sort build output of Visual Studio by Build Order by default?

I know that I could sort the build output of my multicore builds in Visual Studio using the Build Order item in the Output window (as described here). But once I've done that and hit F7 again, the option switches back to Build and I have to switch…
eckes
  • 64,417
  • 29
  • 168
  • 201
7
votes
1 answer

Using dput() with large sample size in R

Specifically i am trying to create a reproducible example with a data.frame of [1376,6] dimensions using dput() but run out of space in the output window to copy and paste the results. Is there a way of increasing the buffer size of the output…
barryq
  • 185
  • 1
  • 1
  • 8
7
votes
6 answers

Code Blocks redirecting input output

I'm new to code blocks, and I can't seem to get it to work with command line arguments of < input > output. Does anyone know how to? I'm currently able to read a file passed from argv[1] but, the program doesnt automatically read the input from the…
d0pe
  • 573
  • 4
  • 9
  • 23