14,121 questions
1
vote
1
answer
34
views
Windows.System.Profile.HardwareIdentification.GetPackageSpecificToken throws exception
I'm trying to get a hardware id with a .net console app (target framewotk is net8.0-windows10.0.17763.0).
The code is rather trivial, just
var token = Windows.System.Profile.HardwareIdentification....
0
votes
0
answers
18
views
How to debug service worker in phone-installed PWA?
I am having issues with fetch() statements in my service worker in a progressive web app installed on my Android phone (with Chrome). Ordinarily this would be easy to debug by sending messages to ...
0
votes
1
answer
94
views
Is there a better way to continually write strings to console while checking for user input at the same time?
I am programming a console based speed reader. I have an automatic mode, where the console prints all the words — one at a time — and shows each word for a period of time set by the user. While ...
-3
votes
1
answer
130
views
Console.ReadLine in a Task causing side effects [duplicate]
I want to loop and ask user if he wants to continue. If no answer for a while, loop anyway.
while (true)
{
Console.WriteLine("\nDo you want to continue? (Type 'no' or 'exit' to break, or wait ...
3
votes
2
answers
195
views
How to add Unicode emoji to python script in IntelliJ
I have a script which I have created couple of months ago with an older version of Intellij + Python plugin. I had to migrate to new windows and also new IntelliJ
Currently I am using :
IntelliJ IDEA ...
0
votes
1
answer
112
views
git commit message as variable in linux [duplicate]
I am trying in my linux (Xubuntu) console to make the git commit message in my chain of commands a variable so I can more easily execute my chain of commands.
Instead of this where I habe to edit ...
3
votes
1
answer
183
views
Pipes Aren't Working: C Programming in the Windows Console [closed]
I've written this small program in C, which intends to read stdin line-by-line and finally echo each line back to stdout. It is designed to stop reading input when either EOF is detected or a blank ...
1
vote
1
answer
95
views
Missing 'Server' tab in IntelliJ IDEA when running Tomcat application
I'm trying to run my Tomcat application, but I don't see the 'Server' tab in IntelliJ IDEA. In normal run mode, only "Tomcat Catalina Log" and "Tomcat Localhost Log" are visible, ...
1
vote
1
answer
108
views
Windows console: How to delete last character on screen using backspace?
i'm trying to program a simple shell in C as a windows console program.
I don't want the user to allow entering a command string which has more than 255 characters, therefore i'm using _getch() to ...
1
vote
1
answer
58
views
Can I tell if the previous line on a text console wrapped around?
In writing a C# console app's log output, I am sometimes overwriting the previous line for aesthetic purposes. I'm currently doing this by using the command:
Console.SetCursorPosition(0, Console....
1
vote
2
answers
97
views
Suppress messages in console from apps launched by PowerShell script
I have a ps1 script which runs some set of apps.
All are run with the commands like:
$this.apps.Add($(Start-Process "$($global:openTrackDir)\opentrack.exe" `
-WorkingDirectory "$($...
2
votes
1
answer
244
views
Why does my C program in CLion add an extra line after input?
I'm running a simple C program in CLion on Windows:
#include <stdio.h>
int main() {
char c;
scanf("%c", &c);
printf("%c", c);
return 0;
}
When I input a ...
1
vote
1
answer
99
views
How to display non-English text that the user inputs in the console correctly?
The console doesn't display the non-English text input into it correctly, when it's later outputting them. However the text displays correctly when the user inputs them.
Some of the non-English ...
0
votes
0
answers
73
views
How to Resolve Special Character Encoding Problems in R When Using Remote Desktop?
I need help on how to solve a problem encoding special characters in R.
I am working on a data warehouse project stored in slq server. The data is in French and when I do my calculations, I encounter ...
0
votes
4
answers
91
views
Preserving tab Characters on input with Console.Readline
I encoutnert a strange issue wie the methode Console.Readline()
when i paste one of these Lines into the vs studio editor it translates the spaces in between the entrys with \t Tab Characters what is ...
0
votes
1
answer
69
views
Java:Is there a way to print in the same line that you press enter to do an input?
In Java I want to print after press enter to do an input but in the same line, e.g: 'Username: // User input // Other print'.
Doesn't matter if I need to print in the loop or in the find method, if ...
0
votes
0
answers
69
views
Output of two PowerShell 5.1 cmdlets gets corrupt (messed up) [duplicate]
(TL;DR: I placed my questions below, at the bottom of my text)
A. I list optical drives this way:
PS C:\> Get-CimInstance Win32_LogicalDisk -Filter 'DriveType = 5'
DeviceID DriveType ProviderName ...
0
votes
1
answer
66
views
Output-console window does not seem to work in intellij on my mac
First I have only really been using intellij a few weeks mostly on my desktop mac.
I have intellij on two macs. On the desktop the sample program hello world prints “Hello World” in the output ...
1
vote
0
answers
29
views
.Net Console Application - Is it possible to set the Taskbar Icon or Overlay?
We have a number of automations at work built as console applications. For some reason it only recently came up that our admins would appreciate it if the status of a given automation was visible from ...
0
votes
0
answers
39
views
Disable console.log and all other console entries via Webpack?
Is it possible to prevent console.log and the like from being used at runtime by patching them using Webpack?
I know this could be done at runtime, and some obfuscators also seem to manage to do it ...
0
votes
0
answers
80
views
document.getElementById returns null in Netsuite client script and in developers tool
I am attaching client script to Nestuite iframe suitelet to hide div element.
Here's the strange part:
1.If I inspect the element in the browser's developer tools and then execute document....
0
votes
1
answer
90
views
configure Turbo Console Log to automatically wrap logged messages with JSON.stringify()
How can I configure Turbo Console Log to automatically wrap logged messages with JSON.stringify(), such as to achieve the following output format?
Default Output (Example):
console.log("messages:&...
-2
votes
1
answer
93
views
Is there any way to send a code to a batch file via Java?
I've been trying to run a batch file (run.bat for a minecraft server) via Java console.
while i did manage to figure out a way to run the batch script on java, it seems that i cannot send commands ...
0
votes
0
answers
28
views
When compiling with Visual Studio from the command-line using /subsystem:windows, how can I printf to the console?
I am using Visual Studio Community 2022. My program compiles and runs just fine except that stdout seems to not be directed to the console.
What would be the best way to change that? Keep in mind that ...
3
votes
2
answers
240
views
How can I programmatically launch my C console game in ConHost without requiring user configuration or admin privileges?
I’ve developed a console game using C, and one of the main features is that it runs in the ConHost console because it gives me much more control over the console's appearance (fonts, colors, window ...