windows-10

Pip install of shapely giving “python setup.py egg_info” failed with error code 1 error

冷暖自知 提交于 2021-02-09 04:14:58
问题 I am trying to install shapely 1.5.6 in Windows 10 (python 3). I am getting this strange error. python setup.py egg_info" failed with error code 1 in c:\users\user1\appdata\local\temp\pip-build-g1iztcx1\shapely I have tried updating pip but no luck. What could be the problem? 回答1: Error code 1 means the "Operation is not permitted". Usually when that happens in Linux, you can just use sudo to resolve it. But on windows, you probably have to right-click on cmd and run as administrator to

Is it possible to shut down a D3D device?

旧时模样 提交于 2021-02-08 10:20:29
问题 I have a test that shows memory leak in my app: RAM usage increases 30-40MB per iteration, the profiler shows it’s in external code. Between the iterations, I shut down & then recreate D3D device. When I stopped doing that and just kept the device alive, it became good: The only difference is 2 interface pointers: ID3D11Device , and IMFDXGIDeviceManager . Is there a way to shutdown a D3D device so it releases the memory instead of leaking? As far as I understand, if I would have leaked a

Is it possible to shut down a D3D device?

最后都变了- 提交于 2021-02-08 10:19:23
问题 I have a test that shows memory leak in my app: RAM usage increases 30-40MB per iteration, the profiler shows it’s in external code. Between the iterations, I shut down & then recreate D3D device. When I stopped doing that and just kept the device alive, it became good: The only difference is 2 interface pointers: ID3D11Device , and IMFDXGIDeviceManager . Is there a way to shutdown a D3D device so it releases the memory instead of leaking? As far as I understand, if I would have leaked a

Batch file using WMIC not working correctly with TaskScheduler (but working fine from command line!)

余生颓废 提交于 2021-02-08 09:21:36
问题 I decided to write a small batchfile to make daily copies of a folder and its contents. I used WMIC to properly format the date in order to name the folders automatically. While it works perfectly on the command line, it seems that it dislikes being executed by the TaskScheduler - it does make a copy of the folder, but doesn't retrieving any date, and saves the files into a folder named -~-2-~-2 . It seems to skip the first part of the code altogether, and jump directly to the Pad digits part

How can I disable Tablet Mode programmatically?

元气小坏坏 提交于 2021-02-08 07:34:19
问题 I have a Surface Pro that I use for sketching with my stylus. I want to be able to quickly enable/disable tablet mode without going into Device Manager. I've been searching for ways to do this: by disabling drivers, disabling by HID but everything I've found seems overly complicated for what I need. I'm creating just a form with a CheckBox. What's the simplest way to achieve this? 回答1: You could try something like setting the Registry Key to 0 HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows

How to get Windows 10 Device ID in UWP application?

女生的网名这么多〃 提交于 2021-02-08 06:36:37
问题 I am developing a Windows 10 UWP client application which run in company's local network. The application needs to know Windows 10 Device ID to identify each PC that it's installed on. You can see value of Windows 10 Device ID in Settings-About page: I tried to use EasClientDeviceInformation.Id but its value is different. How do I do to get Windows 10 Device ID? 回答1: I think SystemIdentification class is what you are looking for. It doesnot provide device id in settings page. But it is used

Windows 10 and Docker container logs / Docker Logging driver

此生再无相见时 提交于 2021-02-08 06:32:06
问题 I'm using Windows 10 with native docker installation. I'm looking for the location where docker save the containers logs. In Linux, the Docker containers log files are in this location: /var/lib/docker/containers/container-id/container-id-json.log But where can I find it in windows 10 ? 回答1: Check first if those logs are in (as suggested here): C:\ProgramData\docker\containers\[container_ID]\[container_ID]-json.log The Docker C:\ProgramData\docker is the Root Dir reported by docker info .

Including SQLite DB file with data in the UWP application

冷暖自知 提交于 2021-02-08 05:23:11
问题 I'm trying to include a SQLite file with the UWP application. SQLite file has a number of tables in it populated with data. The database (for now, at least) is read-only and I'm planning to use EF Core to access the data. So i have two questions: What is the correct way to bundle this file with the application. How do I compose the file path to access that file from UWP applciation? Setting .sqlite file's "Copy to output directory" setting to "Copy always" seems to copy the file to bin folder

GetWindowText hangs on Windows 10

送分小仙女□ 提交于 2021-02-08 05:16:02
问题 TL;DR: Did GetWindowText win32 api change behavior on windows 10? I have some code that loops through all windows on the desktop to find a window where the title contains some text. When this code hits a window named "" with class "URL Moniker Notification Window" it hangs on GetWindowText. GetWindowText is trying to send a message, my guess is WM_GETTEXT. This window is part of the exe "SearchUI.exe", the process is suspended and can't process messages. When reading: https://blogs.msdn

GetWindowText hangs on Windows 10

喜夏-厌秋 提交于 2021-02-08 05:15:40
问题 TL;DR: Did GetWindowText win32 api change behavior on windows 10? I have some code that loops through all windows on the desktop to find a window where the title contains some text. When this code hits a window named "" with class "URL Moniker Notification Window" it hangs on GetWindowText. GetWindowText is trying to send a message, my guess is WM_GETTEXT. This window is part of the exe "SearchUI.exe", the process is suspended and can't process messages. When reading: https://blogs.msdn