windows

Get text and caret from a textbox in another application

人走茶凉 提交于 2021-02-08 08:34:12
问题 Background information I am working on a Windows Speech-To-Text application. When speech has been recognized, the text should be inserted into the textbox that currently has keyboard focus (Think Word/Firefox/other applications). To insert the text I am currently using InputSimulatorPlus. When inserting the text, it is important the recognized text is formatted to fit the surrounding text, like: uppercase letter after punctuation lowercase first letter when it is NOT after punctuation

Window closes immediately after running program

末鹿安然 提交于 2021-02-08 08:25:22
问题 I am new to all programming and I just started to get interested in learning how to program. So to do so I started with what most people consider the easiest language: Python. The problem I am having right now though is that if I say to Python print("Hello!") , save it in a file, and then run it, a black window opens up and closes right away. I just do not understand why it is doing this. 回答1: It is normal for the window to close as soon as your program runs to completion. If you want it to

SQL Server 2014 SP2 does not start on Windows Docker

自作多情 提交于 2021-02-08 08:22:29
问题 I want to install and use SQL Server 2014 SP2 on Windows Docker. But the SQL Server service does not start. Steps to reproduce: Download "Microsoft SQL Server 2014 Service Pack 2 (SP2) Express" English version from https://www.microsoft.com/en-US/download/details.aspx?id=53167. Execute the "SQLEXPR_x64_ENU.exe", extract to "SQLEXPR_x64_ENU" folder, and cancel the installer. Write Dockerfile as below. Execute "docker build -t sample .". Execute "docker run --name sample -i --rm sample".

SQL Server 2014 SP2 does not start on Windows Docker

微笑、不失礼 提交于 2021-02-08 08:21:05
问题 I want to install and use SQL Server 2014 SP2 on Windows Docker. But the SQL Server service does not start. Steps to reproduce: Download "Microsoft SQL Server 2014 Service Pack 2 (SP2) Express" English version from https://www.microsoft.com/en-US/download/details.aspx?id=53167. Execute the "SQLEXPR_x64_ENU.exe", extract to "SQLEXPR_x64_ENU" folder, and cancel the installer. Write Dockerfile as below. Execute "docker build -t sample .". Execute "docker run --name sample -i --rm sample".

Unable to change encoding of text files in Windows

旧巷老猫 提交于 2021-02-08 08:19:10
问题 I have some text files with different encodings. Some of them are UTF-8 and some others are windows-1251 encoded. I tried to execute following recursive script to encode it all to UTF-8 . Get-ChildItem *.nfo -Recurse | ForEach-Object { $content = $_ | Get-Content Set-Content -PassThru $_.Fullname $content -Encoding UTF8 -Force} After that I am unable to use files in my Java program, because UTF-8 encoded has also wrong encoding, I couldn't get back original text. In case of windows-1251

To build the program with a static lib, libcurl.lib

心已入冬 提交于 2021-02-08 08:17:05
问题 I tried to build a stanalone program with a static lib , libcurl.lib . But I got bunch of errors. I ever refered to the related posts on stackoverflow and libcurl homepage, unfortunately it is in vain so far. The following is my building procedure and the error message I got. Please comments. Thank you a lot, 1. Build curl from source code nmake /f Makefile.vc mode=static VC=14 ENABLE_SSPI=no ENABLE_IPV6=no ENABLE_IDN=no GEN_PDB=no DEBUG=no MACHINE=x64 2. Build main.obj CimXml.obj CimCurl.obj

Git untracked/unstaged files right after clone

元气小坏坏 提交于 2021-02-08 08:14:13
问题 I make clone of a git repository, and right after it I get untracked and unstaged (modified/deleted) files in git status . Then I set fileMode=false for Mac, and several files go away from unstaged. But I cannot understand what to do with the others. I've tried a bunch of things from stackoverflow and other places, but nothing helps. So my question is why I get all these untracked / unstaged files right after cloning the repo, and how to fix it. I use Mac for development, but I've tried to

To build the program with a static lib, libcurl.lib

北战南征 提交于 2021-02-08 08:14:11
问题 I tried to build a stanalone program with a static lib , libcurl.lib . But I got bunch of errors. I ever refered to the related posts on stackoverflow and libcurl homepage, unfortunately it is in vain so far. The following is my building procedure and the error message I got. Please comments. Thank you a lot, 1. Build curl from source code nmake /f Makefile.vc mode=static VC=14 ENABLE_SSPI=no ENABLE_IPV6=no ENABLE_IDN=no GEN_PDB=no DEBUG=no MACHINE=x64 2. Build main.obj CimXml.obj CimCurl.obj

Installing GDCM on Windows — ImportError

情到浓时终转凉″ 提交于 2021-02-08 08:12:50
问题 I am trying to install GDCM on Windows (10, x64) so I can use the GDCM package with Python 3.6.5, and am finding it completely impossible. I have tried every combination of: Installing GDCM-2.8.7-Windows-x86_64, GDCM-2.8.7-Windows-x86.exe, GDCM-2.8.4-Windows-x86.exe (separately, of course) Adding To PYTHONPATH: C:\Program Files\Python36; C:\Program Files\Python36\Lib; C:\Program Files\Python36\DLLs; C:\Program Files\Python36\Scripts; C:\Program Files\GDCM 2.8; C:\Program Files\GDCM 2.8\lib; C

DLL load failed when importing TensorFlow with GPU support

你离开我真会死。 提交于 2021-02-08 08:11:20
问题 I am trying to install TensorFlow with GPU support on Windows 10, but I get an error (shown below) when importing it. The CPU version works fine. I have installed tensorflow-gpu through pip updated the NVidia drivers for my GTX 1050 with GeForce Experience installed CUDA 10.1 with NVidia's network installer installed cuDNN 7.5.0.56, taking care of copying every file in the right CUDA folder installed TensorRT 5.1.2.2 via the zip method and copied the relevant DLLs in CUDA again This is the