Questions tagged [output]

0

votes
1

answer
12

Views

How to print sklearn confusion_matrix output from within a function?

confusion_matrix works properly from the command line on my notebook, but I can't seem to make it print its output when found inside a function. It is applied on the same arrays in both cases. Am I missing something?
Helen
1

votes
1

answer
38

Views

dbms_output in function from package does not showed

I need to know what employee_ids has been updated in a function from a package for the HR Oracle Schema. For this I tried to execute a dbms_output function inside another function in this package but the output only shows the return value fron the function, not the output. What is the right form to...
reymagnus
1

votes
1

answer
42

Views

How to fix print output when integers are input

If I input '0', '1', '2', or '3' (in that specific order) the program's output is perfect. If I input the integers in a different order, the code does not work correctly. For example, if I select '2' first, my code expects me to input the integer a total of three times for it to give me the correct...
darkrabb1t
1

votes
3

answer
62

Views

For some reason loop doesn't print out correct array values

I'm having some trouble getting the correct output when printing an array. Essentially what I'm trying to do is set up an array in the main method, then send that array to another method that would print out something like this: 89 12 33 7 72 42 76 49 69 85 61 23 With it being 3...
Confused Student
1

votes
1

answer
55

Views

One-line output operator for a binary tree

I wrote a simple binary tree class in C++ and want to add an output operator to it. My first attempt was: ostream& operator
Erel Segal-Halevi
1

votes
3

answer
60

Views

Confusing Output of C Program

Why compiler shows the value of x as 0 if I define int x; inside of for loop. But when removing int x from for loop gives the value of x as 10. #include int main() { int x = 0, i; for(i = 1; i
Âftãb Bãlôçh
1

votes
2

answer
69

Views

C++: Not receiving expected output

I'm trying to examine a C++ code from my tutorial book. I've written this using CodeBlocks IDE: #include #include #include #include #include /*...*/ using namespace std; /*...*/ int main (void){ cout > _sInput >> _intInput; cout
Vynylyn
1

votes
1

answer
48

Views

Scala: Printing the ouput in proper data format using scala

I would like to display the data in proper format, I have the below code val maplist=List(Map('id' -> '1', 'Name' -> 'divya'), Map('id' -> '2', 'Name' -> 'gaya') ) val header=maplist.flatMap(_.keys).distinct val data=maplist.map(_.values) println(header.mkString(' ')) data.foreach(x => println(x.mk...
lak
1

votes
0

answer
79

Views

How to get the same hash output in Webpack

Is it possible to generate the exact same outputs in local and server? I am using the same Webpack version, I have removed node_modules and reinstalled all the packages with the exact same versions. But still, the outputs for both are different. Local: Hash: de5e3b914a5511a29229 Version: webpack 3.4...
EnZo
1

votes
2

answer
40

Views

Value Stored in Var as Percent but outputs it as pixels

I want to animate a div by mouse-over to change it's width. When mouse-leave, I want the div's width to be as it was before the animation. Since I want this snippet to work with different div's (with different widths), I cant just write the width values but have to store the initial width inside a v...
Moritz Schottm
1

votes
1

answer
18

Views

Adding an additional parameter to a powershell command changes output from a delimited matrix to a long list

Why when i run: Get-Service | select-object Status, Name, DisplayName, @{Name='ComputerName';Expression={$env:COMPUTERNAME}} do i get a delimited matrix output like: Status Name DisplayName ComputerName ------ ----...
linux_driver
1

votes
1

answer
1.4k

Views

How to implement a custom layer wit multiple outputs in Keras?

Like stated in the title, I was wondering as to how to have the custom layer returning multiple tensors: out1, out2,...outn? I tried keras.backend.concatenate([out1, out2], axis = 1) But this does only work for tensors having the same length, and it has to be another solution rather than concatenat...
Tassou
1

votes
1

answer
241

Views

Node - GraphQL - Ad.user field type must be Output Type but got: undefined

I seem to be having circular dependency problems with using UserType inside AdType. This is my UserType file: UserType This is my AdType file: AdType If I try to use the code below I get the error 'Ad.user field type must be Output Type but got: undefined' even tho I imported the UserType properly....
Miloš Tomšik
1

votes
1

answer
392

Views

How to write/append PING results to output file

Fairly new to Python so forgive the basic question and my repetitive coding. I'm trying to write a script that PINGs a network segment then writes the results to a couple of TXT files. I have the PING scan part working just fine with some code I found online, just cant get the results to save in th...
Ryan
1

votes
0

answer
24

Views

Is it possible to connect the stdout of a child process to the stdout of the parent in c#?

So, I have the following code: var process = Process.Start(new ProcessStartInfo { RedirectStandardOutput = true, RedirectStandardError = true, CreateNoWindow = true, UseShellExecute = false, WorkingDirectory = Directory.GetCurrentDirectory(), FileName = ToolPath }); var stdOutputString = process.Sta...
mark
1

votes
1

answer
29

Views

Linear regression output “Call Formula” can't be exported to csv file

I'm working on a for function that uses the input data to generate several linear regression models, a~c. This data generate works perfectly fine, but, I need to export the data resulting to a csv file. I'm using the tydy() and glance () functions to obtain p values, intercepts, r2 etc. That part of...
jose m mora b
1

votes
1

answer
33

Views

JavaScript console input/output output trouble

Code output should be: 515 30 However, when I add variables a, b, c my output is 51530. I've added a + b just to test it, and the output was 515. I just can't figure out how to return the c so that it won't combine with the 515. function Init_sta() { //Start by initializing an input function var a =...
Hannah
1

votes
1

answer
113

Views

Django cmd color output with colorama

colorama allows colored text output in cmd for python. And it's working. import colorama colorama.init() print('[31mThis outputs red text![39m') And we can set color output for django runserver by setting environment var in cmd with set DJANGO_COLORS=light. I added import colorama and colorama.init(...
Stas Shepelev
1

votes
1

answer
62

Views

Perl generating hash of complex records

The big problem that I can't seem to figure out. I need to input into this complex hash (array?): my $raterequest = { Shipment => { Shipper => { (static data here) }, ShipTo => { (static data here too) }, Package => [ { PackagingType => { Code => '02', Description => 'Package' }, PackageWeight =>...
Alith7
1

votes
2

answer
86

Views

Java Runtime.getRuntime().exec different output format

I have a simple python program (hw1.py) as follows: x = int(input('Enter x value: ')) y = int(input('Enter y value: ')) print('x is ' + str(x)) print('y is ' + str(y)) print('Output is ' + str(x+y)) When I run it from terminal, I get following output as expected: Enter x value: 10 Enter y value: 20...
Inanc Arin
1

votes
0

answer
2k

Views

How we can get console output in jenkins job 'createhosts' log output instead of showing build number in jenkins build pipeline project?

I wrote a pipeline script and in console output i need createhosts log output also instead of showing build number. Script: pipeline { agent none stages { stage('create hosts') { steps { echo 'Hello! , This build for create VMs ' build job: 'createhosts', parameters: [ ********* ********* some param...
srinivas
1

votes
0

answer
49

Views

Powershell outputting hash comparison results

I'm working on a Powershell script that compares the hash of two different file paths and returns a result back on whether the match or not. Here is the script so far: $Source = Get-ChildItem –Path \\Server1\D$\path | foreach {Get-FileHash –Path $_.FullName} $Target = Get-ChildItem –Path \\Se...
Jeremiah Williams
1

votes
1

answer
782

Views

How to get FFMPEG conversion progress to progressbar in a C# WPF application?

So I'm using the code below to convert a specified file, by running ffmpeg, and I need the progress to be visible in a progressbar, so I#d need to get it to display the cmd output to my textbox in realtime and from there get it to being displayed by the progressbar, any help? private void convertbut...
adrifcastr
1

votes
0

answer
31

Views

Troubles using ob, checking PHP connection lost

First of all, sorry for my probably bad english... I'm trying to make a script that works only until an event occur or the connection is stopped. I have to work with output buffers (for logging and debugging reasons) but I noticed that after the connection is lost, everything I try to put in the buf...
1

votes
0

answer
91

Views

Espresso Test Output Truncated in Console, How to Get Full Results?

When outputting test failures with multiple lines, I've found that Gradle and the Android Plugin truncate results. For example, if an exception message has 12 lines, only 3 will display in the console. The other 12 lines, along with the stack trace, end up in the generated HTML and XML results files...
Danielle
1

votes
5

answer
71

Views

Printing out a text file (Python)

I am making a Quiz. When I try to print the results which are stored in a file, this is the output: Instead of actually creating new lines when there is a '\n' it prints the '\n' instead. ['\n', 'Username:\n', 'Tes123\n', 'Subject:\n', 'Computer Science\n', 'Difficulty:\n', 'Hard\n', 'Score:\n', '5\...
Jamie Wilson
1

votes
0

answer
287

Views

Jupyter notebook (on remote server) to run in background and keep printoutput

I am running a Jupyter notebook on a remote server (AWS). Some of the task take quite a while, so I want to do the following: Whenever I start the Jupyter notebook, the printoutput from each code line is gone, or even as if I start a complete new session and have to run each code again to get the re...
eternity1
1

votes
1

answer
708

Views

Display live console output in tkinter label

I'm trying to figure out how to do that for a couple of days without success. As tolded in the tittle, is there any way to display the console output( specifically the prints in the code below) in some kind of textbox or label using tkinter? I have a program that reads a .txt file and uses his data...
xhenrique
1

votes
1

answer
27

Views

Batch: enforce language

Is there any command that says 'Now in english, please' to the computer? I don't want to change the system locale like here, all I need is to change the language temporarily within the code execution. Backstory: I am writing a script to automatically report system informations to feed them into a da...
Crowley
1

votes
2

answer
110

Views

Formatting my output results from a hashtable in powershell

So here is my issue and I sure that you have seen this a thousand times when it comes to formatting your output with PowerShell and hashtables. So I wrote a script that will gather all the essentials from a remote server like HD, MEM, CPU etc. First off I want to say the script works fine, with that...
user2176024
1

votes
0

answer
60

Views

how to output into a tree like structure via Tree::DAG_Node?

I'm trying to write a program that can read from a file then put into a heap sort then output in a tree along with the sorted list. But I got stuck, instead of having the put be the numbers used in the heap sort, it just post 1-10 on one line then 1-9 on the next line. I'm really confused and I bare...
Dom
1

votes
0

answer
520

Views

nohup jupyter notebook on remote server - closed browser, is the output still there?

I am running a jupyter noteboook on AWS EC2 via nohup jupyter notebook Unfortunately my notebook went off, but when I reopen it, the notebook says: kernel connected I have a few print() commands in the script to see how the program is progressing. However th se has stopped (is by design of the jupyt...
eternity1
1

votes
2

answer
36

Views

Printing on the several lines repeatedly in Python

I'm working on a project for class that revolves around astronomy and telescope position using Python 3.6. My project involves printing the telescope's position to the console and updating repeatedly. I want to have the info printed to the console and overwritten every timestep to keep the user up...
575scott
1

votes
0

answer
40

Views

Using Tree::DAG_Node to print list heap into tree-format

To make it simple, I am trying to get this heap to print in a tree like format. It's close but I know I am missing stuff, but I just can't wrap my head around this module. I know there is tree::simple and I think just Tree? But I can't really find any tutorials on how to actually use with a list or...
Dom
1

votes
0

answer
76

Views

subprocess.Popen() doesn't redirect output to file

Check.cpp int main(int argc, char** argv) { string file = ''; ifstream inFile; int x; file = argv[1]; inFile.open(file.c_str()); while (inFile >> x) cout
kumar_123
1

votes
0

answer
51

Views

Truncated warning or error massages

When I try to build a model using PKSFC, I get this message: [... truncated] R lists three mistakes and a half (the equations end with *_EC). I guess I can correct the mistake, but I would like to correct them all in one pass. I guess there are many more (maybe 15?). The full message: 5: In sfc.chec...
1

votes
2

answer
463

Views

PHP + generate .html file for download

I'm not sure what to even be searching for here, so I'll explain what I am attempting to do. I current have a form (several dropdowns, input fields..etc) When the form is submitted, I am currently generating an 'output page' for print that has all user entered data on the initial form state.. with a...
whispers
1

votes
1

answer
58

Views

How to print the key values of a B tree in a tree fashion in simplest way?

public void print ( BNode n ) { for ( int k = temp ; k>=0 ; k=k-30 ) // temp = 300 { System.out.print(' '); } for ( int i = 0 ; i < n.count ; i++ ) { System.out.print ( n.getValue(i) + ' ' ) ; } if ( !n.leaf ) { System.out.println ('')...
shikhar
1

votes
2

answer
40

Views

Python: Indenting Output Text

I'm writing a script and one of the things it can do is retrieve dictionary definitions from online resources such as: en.wiktionary.org. I'm using the tab character to prepend each string with an indent, so as to separate the dictionary definitions from the rest of the output, much like this quote...
tjt263
1

votes
2

answer
32

Views

Arrange column values in one line using R

I have a df like below. df: Year max_T min_T Prcp 1990 25.00 2.50 525.25 1991 30.00 1.50 1001.25 . . 2010 22.25 5.25 1025.25 I need to obtain or convert the above data table the following output. output: 1990 25.00 2.50 525.25, 1991 30.00 1.50 1001.25,..., 2010 22.25 5.25...
DinuJ

View additional questions