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
6
votes
4 answers

Redirect PHP page AFTER outputting user message

I am trying to redirect a page after successful execution. However, I want to display a message to the user (e.g. 'Changed made. Redirecting...') while the redirection is done. Changing header variables after output in the page causes errors in PHP…
mavili
  • 3,385
  • 4
  • 30
  • 46
6
votes
2 answers

XML and XSLT to write output to text file

I am trying to use increment in XSLT. and write the output to txt file. Here's my code: Xslt code:
Rizwana Khan
  • 101
  • 1
  • 1
  • 9
6
votes
5 answers

What is the difference between 15 and 015?

This might be appear to be a silly/trivial question at first, but when I do this: char f_gear = 15; I get the normal output "☼" but when I pad it with zeros when i declare it: char f_gear = 015; I get weird output makes text look garbled (in one…
ayane_m
  • 962
  • 2
  • 10
  • 26
6
votes
1 answer

Catalyst Template::Toolkit render output

I'm using Catalyst with Template::Toolkit as my templating system. I would like to be able to render specific parts of templates and then have them returned to me so I can store them in a variable. The Template::Toolkit documentation mentions that…
srchulo
  • 5,143
  • 4
  • 43
  • 72
6
votes
3 answers

Output stream as class member

I have a c++ library that provides an object with complicated logic. During data processing, this object outputs lots of things to std::cout (this is hardcoded now). I would like the processing output not to go to standard output but to a custm…
ducin
  • 25,621
  • 41
  • 157
  • 256
6
votes
1 answer

Visual Studio 2012 C++ Standard Output

Where does fprintf(stdout/stderr) print to in Visual Studio when compiling Win32 app? I keep hearing it goes to the output but I can't see it!. Whats the standard way of printing to the output log without having a console window in c++?
Josh Elias
  • 3,250
  • 7
  • 42
  • 73
5
votes
3 answers

T-SQL Delete Inserted Records

I know the title may seem strange but this is what I want to do: I have table with many records. I want to get some of this records and insert them in other table. Something like this: INSERT INTO TableNew SELECT * FROM TableOld WHERE ... The…
gotqn
  • 42,737
  • 46
  • 157
  • 243
5
votes
2 answers

How do you input and output text with Pyscript?

I’m learning py-script where you can use in an HTML5 file to write Python Code. As a python coder, I would like to try web development while still using python, so it would be helpful if we could output and input information…
RinUnderscore
  • 107
  • 2
  • 2
  • 5
5
votes
2 answers

Change audio output device with python

I want to capture computer output, run it through a neural network, then play back the audio in real time. So far I have found BlackHole: import sounddevice as sd sd.default.device = 'BlackHole 2ch' This works great for capturing output. The…
pattidegner
  • 107
  • 1
  • 10
5
votes
5 answers

How to use printf() and scanf() in C without going to the next line?

I want to get date of birth in one line: #include int main() { int BirthYear,BirthMonth,BirthDay; printf("Please enter your birth date: "); scanf("%d",&BirthYear); printf("/"); scanf("%d",&BirthMonth); …
Parsa Saberi
  • 105
  • 7
5
votes
4 answers

How to make an output function similar to Python's in C?

I am working on a custom programming language called BPML and I want to try and update the output function called say(). Recent version in C: void say(char *text) { printf("%s", text); } Recent version in Python: def say(text): print(text,…
BMPL
  • 35
  • 16
5
votes
1 answer

Why is this Haskell program making backslashes?

I'm new to Haskell, and wrote this program to practice functional programming. I have no idea if it is a good program, except for two things. It works (it shows me the path from 6 to 1 in a Collatz tree) It prints way too many…
Not me
  • 139
  • 10
5
votes
2 answers

Following the exec_run() output from docker-py in realtime

Python noob here, I'm trying to use the exec_run function from docker-py to send commands to a detached docker container and have the output hitting stdout in real time. Here's a MWE: import docker, sys client = docker.from_env() # start a detached…
drgibbon
  • 405
  • 1
  • 4
  • 11
5
votes
2 answers

Azure ML output from pipeline

I am trying to construct a pipeline in Microsoft Azure having (for now) a simple python script in input. The problem is that I cannot find my output. In my Notebooks section I have constructed the following two codes: 1) script called "test.ipynb" #…
5
votes
1 answer

is it possible to color java output in terminal using rgb or hex colors?

I'm trying to output colored output for my java game, which is only using terminal and I would like to output colorful things but using precise colors using RGB values or hex colors how can I do I already saw the coloring with things…
lolozen
  • 386
  • 1
  • 4
  • 19