windows

'sh' is not recognized as an internal or external command

我的未来我决定 提交于 2021-02-11 15:08:32
问题 Creating a new React app in E:\rn-starter\my-app. Installing packages. This might take a couple of minutes. Installing react, react-dom, and react-scripts with cra-template... 'sh' is not recognized as an internal or external command, operable program or batch file. Aborting installation. npm install --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed. Deleting generated file... package.json Deleting my-app/ from E:\rn-starter Done. This error pops-up

Facing error when python exe service is started after nssm

对着背影说爱祢 提交于 2021-02-11 15:07:57
问题 I have a situation where i have to run a python.exe as a service in NSSM. To test, I have created .exe file which has only import pandas as pd in it. I created the service in NSSM successfully. But when I start the service I get error windows could not start the service on local computer the service did not return an error . What else can I do to tackle this problem? Trust me I have tried all solutions in stack overflow. I closed cmd when starting service. Gave all control to network service

Run Jupyter notebook in an anaconda environment on Windows 10

十年热恋 提交于 2021-02-11 14:40:42
问题 I recently create a anaconda env by: conda create -n tensorflow_env python=3.6 conda activate tensorflow_env conda install -c conda-forge tensorflow Then I install jupyter notebook in the tensorflow_env, conda install jupyter Then I run it with jupyter notebook I got a blank website: Anyone knows what's going on here? I use windows 10. And the jupyter notebook works fine if I don't run it with in the tensorflow_env environment. But if I don't run the jupyter in that environment, I can't

How to fix error requiring 'ibm_db' gem on Windows

痞子三分冷 提交于 2021-02-11 14:35:39
问题 I'm running Ruby 2.6.3p62 32-bit on Windows 10 64-bit. I installed it using the Ruby Installer. I successfully installed the gem 'ibm_db' without any errors. I downloaded the DB2-clidriver from http://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/nt32_odbc_cli.zip, unzipped it an set the environment variable IBM_DB_HOME to its location. In addition, I added IBM_DB_HOME\bin to the PATH variable. When requiring the ibm_db I get the following error: C:\Users\myuser

How to make Cmake find tesseract library in Windows (Findtesseract.cmake)?

微笑、不失礼 提交于 2021-02-11 14:31:22
问题 I installed, in Windows, Tesseract, using "Windows Installer made with MinGW-w64 from UB Mannheim" from here, and added to my CMakeLists.txt: find_package(Tesseract REQUIRED) but I get CMake Error at CMakeLists.txt:14 (find_package): By not providing "FindTesseract.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Tesseract", but CMake did not find one. Could not find a package configuration file provided by "Tesseract" (requested

how to use jenkins to build 32 bit and 64 bit program and sealed in one package

南楼画角 提交于 2021-02-11 14:27:54
问题 it is another time to seek help from stack overflow . I am trying to use jenkins , My aim is to build a windows install package that contains 32bit and 64bit version. My prior manual routine is : built the 32bit and 64bit separately , and use innoSetup to build the package containing 2 versions. if use jenkins ,the procedure will be : a linux jenkins server(master) send a build request to windowns jenkins server(agent) agent checkout code from svn built the package with 2 versions I guess the

Borderless Window Covers Taskbar

浪尽此生 提交于 2021-02-11 14:19:29
问题 I have a custom-made borderless window. When maximized, it covers the taskbar. This is not what I want. I have played with the WM_GETMINMAXINFO message. But, I have found that Windows 10 will then leave an extra 8-pixel gap along both the bottom and right side. It is an all-or-nothing proposition. Here is the first code that I tried: case WM_GETMINMAXINFO: PMINMAXINFO pmm; pmm = (PMINMAXINFO)lParam; pmm->ptMaxSize.x = GetSystemMetrics(SM_CXSCREEN); pmm->ptMaxSize.y = GetSystemMetrics(SM

Error with suppressing icon in Windows tray area on Notification message via wxWidgets

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-11 13:54:58
问题 I have a C++ wxWidgets application wherein I am trying suppress the additional icon that pops up in the tray area when I need to display a notification (toast) message to the user. To do this, I need to call wxNotificationMessage::MSWUseToasts which under Windows 10 will suppress that icon. The parameters to that function call are a shortcut file path and the application user model id. Looking at the implementation of how wxWidgets does Toast Notification, the shortcut will have the lnk

Determining if the running executable has IMAGE_FILE_LARGE_ADDRESS_AWARE?

狂风中的少年 提交于 2021-02-11 13:54:30
问题 Is there some sort of Windows API or other reasonably straightforward way to determine whether or not the currently running program has IMAGE_FILE_LARGE_ADDRESS_AWARE enabled? I know that I can open up the process's exe as a file, read its header information, and parse it somewhere out of there, but if there's some cleaner way to do it, I'd like to know. To be clear: I am talking about the currently executing process - i.e. I want to write code that detects this flag (or lack thereof) for its

Running (Generate PDF) soffice LibreOffice on Windows PHP exec() doesn't work

风流意气都作罢 提交于 2021-02-11 13:44:01
问题 I'm trying to generate a pdf from docx using soffice so i try it on apache linux and its works, but im trying in windows server 2012 and IIS 6.2. If i run this command on CMD its works: soffice --headless --convert-to pdf:writer_pdf_Export --outdir ../../storage/app/ACTIVO/2019-03/3404/docx/ ../../storage/app/ACTIVO/2019-03/3404/docx/documento_word.docx So in PHP I try this: $comando = 'soffice --headless --convert-to pdf:writer_pdf_Export --outdir ../../storage/app/ACTIVO/2019-03/3404/docx/