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

Delete User Input from the Terminal in C

I'm working on a program for Windows and Linux, coding it in C, and I want the program to get input from a user, show it until it finished (i.e. pressed 'enter'), then un-display what the user entered, finally re-displaying it with a time stamp. It…
Ido Nir
  • 33
  • 4
3
votes
2 answers

Nativescript debug console message after starting debug on ios

Im getting the following message when start debugging in VSC debugger. Error when trying to require webpack.config.js file from path '/Volumes/T7/Documents/1.Sources/app/webpack.config.js'. Error is: TypeError:…
3
votes
3 answers

Wait for optional promises and store values

I have a couple of async functions that get and store a value if it has not already been provided. if (!output.valueA) { output.valueA = await getValueA(); } if (!output.valueB) { output.valueB = await getValueB(); } I know I can use…
DBPaul
  • 500
  • 5
  • 16
3
votes
1 answer

Outputting huge number when using an array to print out even and odd numbers on C

I was asked to code a program that asks for an integer 'n', then scan for 'n' integers, and then sort and print those integers in even numbers, ascending, then the odd numbers, descending. So I began by having the even numbers in the first column of…
3
votes
1 answer

Python: Fastest way to write large integer to file

I want to write a really large integer from Python to a textfile, about 10 to 1000 Megabyte. The following options have the same speed, unfortunately both are really slow: import time import pickle num = 17**(10**7) t1=time.time() pickle.dump( num…
L. Milla
  • 131
  • 3
3
votes
1 answer

How can I add "#+ATTR_HTML" around "#+RESULTS" preview output of Source Block in Org-mode of Emacs?

I am using plantuml in org, and it works fine. However, I am trying to make some change by adding some HTML tag automatically, just before the #+RESULTS output tag, so that can get a beautiful HTML output effect. My example code as…
saga
  • 33
  • 4
3
votes
1 answer

Getting Minizinc output as .txt from IDE

Imagine I ran a .mzn with .dzn and got an output in IDE as…
suresh_chinthy
  • 377
  • 2
  • 12
3
votes
1 answer

PHP Outputting data from 2 tables with 3 joins

hope you can help, I have 3 tables articlearticle_keywords_linkkeywords They are joined together, and im wanting to achieve 1 article to display on the page, but show all related keywords which is linked to the article. I have not yet formatted…
Dean
  • 33
  • 2
3
votes
1 answer

Why is signed char not getting upcasted to unsigned int here?

#include int main() { unsigned int x =1; signed char y = -1; unsigned int sum = x + y; printf("%u", sum); } In the above program I expected signed char to be upcasted to unsigned int and hence sum to be x + y = 1 + 2^32…
Archer
  • 271
  • 5
  • 15
3
votes
0 answers

How to access immediate activations of custom model containing a pretrained-model?

I have a custom network of a Keras Xception base with added regression head: pretrained_model = tf.keras.applications.Xception(input_shape=[244, 244, 3], include_top=False, weights='imagenet') pretrained_model.trainable = True model =…
3
votes
1 answer

Can I minimize somehow the 7-zip output/log in C#?

I am using this code to compress folders: ProcessStartInfo p = new ProcessStartInfo(); p.FileName = @"C:\Program Files\7-Zip\7z.exe"; p.Arguments = "a -t7z \"" + targetName + "\" \"" + item.ToString()…
MTn
  • 93
  • 7
3
votes
0 answers

dialogflow returns "__system_counters__" context output

I have a 'help' intent with 3 or so training utterances that is not matching correctly to the phrase "I think I need some help" in one agent, but matching fine in another agent with an identical set of intents and training utts. In the first agent,…
I-L-G
  • 41
  • 1
  • 4
3
votes
2 answers

Why doesn't the octal sequence '\0101' equal 65 decimal?

Consider this C program: unsigned char c2 = '\0101'; printf("%c, %d\n", c2, c2); I believe that the output should be: A 65 but the actual output is 1 49. Reasoning: 0 as prefix in character constant declares it in octal format and octal value of…
Archer
  • 271
  • 5
  • 15
3
votes
0 answers

How do I interpret the results of an ARIMAX function from the PyFlux library?

I'm conducting an ARIMAX model of my data. The code is: model = pf.ARIMAX(data = meg_crude_merge_drop[:-12], formula='MEG~CrudeOil+1', ar=4, ma=3, integ = 2,family=pf.Normal()) ...and the output from this code: x =…
JamesAng
  • 344
  • 2
  • 9
3
votes
1 answer

Remove duplicate lines from Ansible variable

I need to achieve two things. Remove duplicate entries from ansible variable called install_loc Remove any empty blank lines from install_loc. Below is how install_loc variable is constructed. - set_fact: install_loc: "{{ install_loc…
Ashar
  • 2,942
  • 10
  • 58
  • 122