108 questions
4
votes
2
answers
108
views
How can I format a CMake error message with single newlines?
Using CMake 3.25, I want to print an error message which has the following structure:
Error message. Possible reasons:
- reason 1
- reason 2
I tried a simple message command with a multi-line ...
0
votes
1
answer
71
views
Flask debug info
after running Flask I saw this output on the console. How do I disable it and what is it? I have no idea how it appeared and I use it. Thx for any ideas
* Serving Flask app 'app'
* Debug mode: on
...
-2
votes
1
answer
145
views
Is it possible to read the standard output of a console app, before the console app exits? I mean without using Process.WaitForExit()? [duplicate]
I have C# app1 that starts the C# console app2 and reads the console standard output values of it. Normally I am reading the outputs with code below (app1)
public void read_values_from_app2
{ ...
1
vote
0
answers
16
views
Why does output order change when code run as script vs console [duplicate]
I have a question about the order of output from a Powershell script. The order changes if I run the code from a script compared to just running it line for line in the console. I'd like to ...
-2
votes
1
answer
318
views
Creating a hierarchical file structure in Python with file names and sizes
How to create file tree from list of (str, int)?
I already tried to find ways to solve this problem, but I managed to find code for working with files, not a list of strings.
Example of input:
[
('...
0
votes
1
answer
218
views
I want to use dotnet restore command in "Execute Windows batch command" in my jenkins job but i am getting error
This is what i have put in "executr windows batch command" -
"dotnet restore
"C:\Users\nraut.SIPL.jenkins\workspace\WebNetAgentSln\WCFServiceGX.sln"
dotnet build "C:\...
1
vote
1
answer
430
views
Capture Unicode command line output
I have a procedure to capture a hidden Command Prompt window and display the output in a TMemo. This is the same/similar code that is posted all over the internet and Stack Overflow:
var
Form1: ...
2
votes
0
answers
263
views
Delay in loading console output
My Jenkins job has around 25000 lines of console output
If I open the job and choose the option as 'Show in Plain Text', complete output is displayed within seconds.
But, if I choose the option ...
1
vote
2
answers
4k
views
Where I can find the Console.WriteLine output from the Blazor Server App?
I have the Blazor component library, I need to debug it. The library can be used in Blazor WASM and Blazor Server-Side Apps. For debug purposes I do some console output:
Console.WriteLine("Hello!&...
0
votes
1
answer
74
views
disable zarr.open() output in console
I have unwanted outputs in the console from zarr.open() method. It does not have 'verbose-like' parameter. How can I get rid of those input console ?
I'm currently trying to open .ims files (Imaris ...
0
votes
0
answers
288
views
How to capture console output from xarray.open_dataset
When accessing remote datasets with xarray.open_dataset, warnings or errors sometimes show up in my console.
Capturing messages written to sys.stderr or sys.stdout is certainly possible (or one can ...
1
vote
1
answer
196
views
.speak() method is giving unnecesary output [duplicate]
Recently, I found out about the spvoice interface. Therefore, I wanted to make a small program that makes Powershell say something I type into it. So, I made this:
$Voice = New-Object -ComObject Sapi....
1
vote
1
answer
807
views
Redirecting command prompt process output to WPF TextBox
I am attempting to redirect a process running a command prompt to output to a WPF textbox. I found some very helpful code in a previous question here that got me most of the way. The redirect works, ...
1
vote
0
answers
43
views
Why can't I redirect error output from cscript to a text file when I'm calling it from another VBScript? [duplicate]
Alright, so I'm pulling my hair out over this one. I have a VBScript that calls other VBScripts, and I need it to output the errors to text files, since the scripts should be running non-interactively....
1
vote
2
answers
2k
views
Using UTF-16 for I/O with Visual Studio instead of code pages
I have this working on Visual Studio 2019 using code pages:
#include <windows.h>
#include <iostream>
int main()
{
UINT oldcp = GetConsoleOutputCP();
SetConsoleOutputCP(932); ...