Skip to main content

New answers tagged

0 votes

How to get 'stdout' output from 'git gc 2>&1' on Windows PowerShell?

The linked post indeed provides the relevant background information: git gc sends it output to stderr, but - by design - only if said stream is directly connected to a terminal (console); otherwise, ...
mklement0's user avatar
  • 455k
0 votes

Disable Gestures through registry

As of Windows 11 25H2, you will have to use an undocumented COM interface IID_IImmersiveSettingsCache to inform the Explorer process that touchpad settings have been changed. This cache is also the ...
co_init_ex's user avatar
0 votes

WDAC not allowing self-signed .exe to run

Maybe this will help someone avoid frustration... it simply needed: <CiSigners> <CiSigner SignerId="ID_SIGNER_STUFF" /> </CiSigners>
SpaghettiWestern's user avatar
Best practices
0 votes
0 replies
0 views

How to(do I) write a network data consumption monitoring program that monitors all system processes and has control over them?

Thanks. I will fall in love with networking. Thanks.
Agaba Akuh's user avatar
Best practices
0 votes
0 replies
0 views

How to(do I) write a network data consumption monitoring program that monitors all system processes and has control over them?

You absolutely do have a router. Your wifi basepoint? It has a router in it. Your cable modem? Has a router in it. ALso it doesn't matter if you find networking boring- you need to understand it ...
Gabe Sechan's user avatar
  • 95.3k
0 votes

Visual Studio 2022 KMDF Driver Project "Build Succeeded" but No .sys File is Generated

Do not use SDK: Windows SDK - 10.0.19041.685 WDK: Windows Driver Kit - 10.0.19041.685 update to 10.0.26100.6584 It's works for me.
王杰章's user avatar
1 vote
Accepted

C# StretchBlt to copy between two Bitmaps draws nothing

So it seems there's lots of caveats about trying to use a GDI+ handle (e.g. from Graphics.GetHdc()) as if it were a true GDI handle and passing it to GDI functions - they're basically not guaranteed ...
mclayton's user avatar
  • 10.5k
0 votes

Run process as admin with subprocess.run in python

I've myself built a powershell wrapper to elevate a process and get it's stdout/stderr and exit code. From there, you can run whatever command you like from an elevated powershell script. I've put all ...
Orsiris de Jong's user avatar
0 votes

How to Runas App with another admin user in Windows

I've myself built a powershell wrapper to elevate a process and get it's stdout/stderr and exit code. From there, you can run whatever elevated command you want. I've put all of this into a Python ...
Orsiris de Jong's user avatar
0 votes

Win 11 and Python - Help launching a detached background process with "npx http-server" command

At the end, I've more or less managed. I leave the current solution but be free to add more solutions or improvements :) server_cmd = f"http-server {report_dir_abs} -p {port}" command = f'...
Meru's user avatar
  • 187
Best practices
0 votes
0 replies
0 views

How to(do I) write a network data consumption monitoring program that monitors all system processes and has control over them?

I have tried many software, but they are either too complex or they just don't do what i want! How do I write networking software that controls my data usage, blocks apps from connecting to other ...
grawity's user avatar
  • 20.5k
Best practices
0 votes
0 replies
0 views

How to(do I) write a network data consumption monitoring program that monitors all system processes and has control over them?

I don't have a router, and I don't really intend to get one. I am not targeting Routers, I am targeting the Operating System. I want to write something that will handle this issue on Windows and then ...
Agaba Akuh's user avatar
Best practices
1 vote
0 replies
0 views

How to(do I) write a network data consumption monitoring program that monitors all system processes and has control over them?

Typically using router level metering is your best bet practically for narrowing down on what is causing the most traffic. Something like a pi-hole setup for your DNS on the router level to apply to ...
shaunhusain's user avatar
  • 19.7k
0 votes

Git debugging - "error: could not delete references: cannot lock ref" "File exists"

If you have Windows and case insensetive branch names issue (2 branches with same name but in different case): refs/remotes/origin/SomeoneMessedBranchName refs/remotes/origin/someonemessedbranchname ...
Vladislav Kostenko's user avatar
0 votes

How to use GCC with Microsoft Visual Studio?

Install MSYS2. Install GCC by MSYS2 MSYS shell by running the following commands. pacman -Syu pacman -S --needed base-devel mingw-w64-x86_64-toolchain Add these directories to the system environment ...
Hysaam Riad's user avatar
3 votes

Infinite loop when opening a new terminal in VS Code

I resolved this issue in my case; the root cause was the Code Runner extension. Even though I initially tried: Disabling the extension Uninstalling the extension, the problem persisted. This was ...
sarthak arya's user avatar
0 votes

React localhost:3000 refused to connect despite "Compiled successfully" on Windows 11

Alot of things could be wrong here for real. First, try killing the ports you have tried: npx kill-port 3000 npx kill-port 4000 Then restart. If the same issue, kill the port again with the above and ...
Anayo Samson Oleru's user avatar
Advice
0 votes
0 replies
0 views

New installation vs "possible" upgrade from windows 10 to 11

I think I'm gonna try it. Just realized that in the boot options, the old windows is still there with everything. I feel it will be far easier to upgrade the old and remove the new one
Leow193's user avatar
  • 21
Advice
0 votes
0 replies
0 views

New installation vs "possible" upgrade from windows 10 to 11

This belongs on superuser - it isn't a programming question as such. You might get away with making the old computer's former C: drive the boot disk and then upgrading to Win11. It will be very much ...
Martin Brown's user avatar
  • 3,895
0 votes

How can I change keyboard backlight timeout on XPG Xenia 16 RX gaming laptop?

I have just had this issue on my 2023 PC Specialist Valeon laptop - as @user23716916 noted, it is caused by an expired certificate. The installer is an MSI file that unpacks a modern UWP/AppX app. ...
Charles Roper's user avatar
Advice
0 votes
0 replies
0 views

Why are native printer draft fonts (10cpi) missing in MS Word on Windows 7+ compared to Windows XP?

In which case, it's a problem with your driver, not Windows. Windows does support dot-matrix fonts and suitable fonts should have been supplied with your printer - or should at least be available from ...
macropod's user avatar
  • 14k
Tooling
0 votes
0 replies
0 views

is there a way to use 8-color terminals in windows11

You should be able to spin up a virtual machine running an OS with the terminal emulator of your choice in no time. If Windows can't be coerced to do 8 bit colors, try a lightweight Linux distro.
Friedrich's user avatar
  • 5,656
Tooling
1 vote
0 replies
0 views

is there a way to use 8-color terminals in windows11

The question is about terminal emulator like xterm, rxvt, MinTTY, etc…
phd's user avatar
  • 97.8k
Tooling
0 votes
0 replies
0 views

is there a way to use 8-color terminals in windows11

May I ask why? I never heard of such a terminal, even though I knew black-and-white and grayscale ones. And... do people still use any terminals (hardware, not computers connected as terminals)? I'm ...
Sergey A Kryukov's user avatar
Tooling
0 votes
0 replies
0 views

Running 32bit windows application inside docker (or Linux wine)

The Linux version of MetaTrader 4 (and 5) uses Wine. Presumably it has some tweaks compared to the Windows version to let it run reliably. You might need to use a container running a period ...
Ian Abbott's user avatar
  • 18.2k
0 votes

batch file to check 64bit or 32bit OS

It's strange, but I didn't found the complete answer here about PROCESSOR_* variables. Both variables are not enough to detect OS bitness (don't confuse it with cmd.exe executable bitness). The ...
Andry's user avatar
  • 2,847
0 votes

MSYS2: make command not showing anything and running for too long

I know this is old, but since I have caught myself more than once with the same issue, let me tell what I found out and how to fix. ---- MSYS2 has a few different "environments", some closer ...
j4x's user avatar
  • 3,746
0 votes

GetRawInputBuffer not returning data when called from outside WM_INPUT

You already found the key clue yourself: "If I use GetRawInputData inside case WM_INPUT, I am receiving data correctly." The problem is where you call GetRawInputBuffer. GetRawInputBuffer ...
DJm00n's user avatar
  • 1,585
0 votes

Why does Windows use CR LF?

Line ending standards developed decades ago alongside the development of hardware (e.g. printers), operating systems, communication protocols, languages like C, etc. From a modern perspective, it ...
AlainD's user avatar
  • 6,884
Advice
0 votes
0 replies
0 views

Link for Informix CSDK 3.70 for 32-bit Windows Server 2003

Since IBM Informix Client SDK 3.70 was released in October 2010, it is unlikely you will be able to find legitimate copies of it. Your best bet is to speak to IBM Informix Technical Support, assuming ...
Jonathan Leffler's user avatar
Best practices
0 votes
0 replies
0 views

How do I set a .txt's contents from another directory to a variable in batch?

It's just a joke program, im not actually hiding anything.
Recurser's user avatar
Advice
0 votes
0 replies
0 views

Why are native printer draft fonts (10cpi) missing in MS Word on Windows 7+ compared to Windows XP?

If you just want to print text have you considered using a different program than Word? Most likely not the Windows version but the Word version is the problem.
Robert's user avatar
  • 43.6k
Tooling
0 votes
0 replies
0 views

Running 32bit windows application inside docker (or Linux wine)

Technically you are correct when you say "containers only isolate processes", however they also automate things. Thus a docker image could set-up internally a virtualization system so that ...
Robert's user avatar
  • 43.6k
Tooling
0 votes
0 replies
0 views

Running 32bit windows application inside docker (or Linux wine)

Wrong question You're repeating the same question, not clarifying anything. Especially why you want to run a Windows app on Linux, when you already have a Linux version. Or what this question has to ...
Panagiotis Kanavos's user avatar
Tooling
0 votes
0 replies
0 views

Running 32bit windows application inside docker (or Linux wine)

You can look at ways to run multiple instances from a single Windows VM -- that still needs a full VM but it brings down the amortized weight per instance.
Ben Voigt's user avatar
  • 286k
Tooling
0 votes
0 replies
0 views

Running 32bit windows application inside docker (or Linux wine)

Thanks for the reply, my main problem is is there a way to run that 32bit windows application in a more lightweight enviroment instead of our current windows 10 virtual machine. i have tried running ...
Owen U's user avatar
  • 1
Tooling
0 votes
0 replies
0 views

Running 32bit windows application inside docker (or Linux wine)

What does "scalable" mean? And how is this related to software engineering? Isn't MetaTrader 4 the older version of a ready-made free application that already has a Linux version? . If you ...
Panagiotis Kanavos's user avatar
5 votes
Accepted

Why is Windows Security blocking my Visual Studio 2022 console application from running?

you can enable developer mode by opening settings > system > advanced > look down to find "For developers" category > switch Developer Mode to On or disable it here: open ...
huseyinsamsun's user avatar
1 vote
Accepted

Why would the comment shortcut (Ctrl + /) not work when editing cshtml files in JetBrains Rider 2025.3.3?

I have found the cause of the problem, which is due to the setting of the cshtml attribute. When the attribute-build operation is set to none, the comment shortcut key does not work. When it is set to ...
DaJiuGe's user avatar
  • 21
Advice
0 votes
0 replies
0 views

Why are native printer draft fonts (10cpi) missing in MS Word on Windows 7+ compared to Windows XP?

I see you posted in the SuperUser forum and your question was closed. Try one of the other links. They are not as picky. However, see this link first. For cross-posting etiquette, please read: A ...
Charles Kenyon's user avatar
Advice
0 votes
0 replies
0 views

How can I enable dark mode for the Windows Forms Designer in JetBrains Rider?

I still suspect Rider’s WinForms designer may trace back to SharpDevelop 3. If so, the lack of dark theme support is not that surprising — dark UI wasn’t really a concern when that code was first ...
Lex Li's user avatar
  • 64.1k
0 votes

Use openpyxl load_workbook in read_only mode to load workbook a that is opened in Excel on windows

You can't open a locked file, but there is an easy workaround in most cases. Use a temp file import shutil import tempfile #Automatically handles naming and other minutia of tmp files #create a temp ...
DanielST's user avatar
  • 14.2k
Best practices
0 votes
0 replies
0 views

Claude Code freezes on Windows when running bash commands — find, ls, grep hang indefinitely

If you have a concrete question with steps to reproduce, delete this post, and submit a Q&A - you can answer your own question.
Greg Burghardt's user avatar
0 votes

What is the `tr` command in Windows?

Alternatively, get the windows sed command and use that for replacement (also need dependency dlls in same folder). https://sourceforge.net/projects/gnuwin32/files/sed echo %PATH% | sed -e s#;#\n#g
5p0ng3b0b's user avatar
  • 597
Advice
0 votes
0 replies
0 views

Why are native printer draft fonts (10cpi) missing in MS Word on Windows 7+ compared to Windows XP?

i can't, it's the driver's default font and the font only appears when the dot matrix printer is connected, you can only install fonts with the type (true type), i can't install them
Muhammad irfan's user avatar
Best practices
1 vote
0 replies
0 views

How do I set a .txt's contents from another directory to a variable in batch?

You can use certutil /? to create a hashfile of the correct pasword (better than trying to hide a plain-text password inside irrelevant text). Later create a hashfile of the user-input and compare the ...
Stephan's user avatar
  • 56.9k
Advice
1 vote
0 replies
0 views

How can I enable dark mode for the Windows Forms Designer in JetBrains Rider?

This feature is not supported yet. It's tracked under RIDER-118677 Adapt WinForms designer appearance to dark theme. You can upvote and subscribe to receive further updates.
Tom Luo's user avatar
  • 692
Best practices
0 votes
0 replies
0 views

How do I set a .txt's contents from another directory to a variable in batch?

Nothing in batch is secure in any way (it's all plain text). Fine for jokes, but never use that in any security relevant context. That said: echo text > file.txt puts text<space> to the file. ...
Stephan's user avatar
  • 56.9k
Advice
0 votes
0 replies
0 views

Why are native printer draft fonts (10cpi) missing in MS Word on Windows 7+ compared to Windows XP?

So why don't you just download and install the fonts you want to use?
macropod's user avatar
  • 14k
0 votes

git add . fails with Gradle fileContent.lock failed to insert into database and permission denied

The problem was that my .gitignore did not exclude local Gradle cache and Android Studio metadata directories. Adding these rules fixed it: .gradle/ .gradle-user/ .gradle-user-2/ .android-home/ .idea/ ...
郭瀚澤's user avatar

Top 50 recent answers are included