windows-10

Value cannot be null. Parameter name: userContext in Visual Studio 2017

拟墨画扇 提交于 2020-01-03 08:52:13
问题 I am facing a strange issue that, getting a message as "Value can not be null. Parameter name is userContext" while clicking on Extensions and updates under tools menu. Please do let me know what is the workaround for this issue. Thank you. 回答1: I had the exact same issue. I uninstalled KB4022714 from Start > Windows Update > Advanced Options > View your Update History. The problem went away, but came back after the next Windows Update. I had to update Windows 10 to build 14393 to actually

VS 2017 and Docker: Operation aborted

天涯浪子 提交于 2020-01-03 07:25:18
问题 .Net Core 2 came out, so I updated Visual Studio 2017 (Community) to release 15.3.0 (and subsequently 15.3.2) which has support for Docker which I've installed on my machine (Windows 10), and I believe I've configured things correctly. I created a basic Web API project—on .NET Core 2.0 without Docker—and that works. Now I add Docker support and I can't get it to run! I get the following error: How do I debug this? The only other Q&A I found wasn't helpful. If you recognize the error, do you

How to get Mouse input inside a C console program on Windows-10?

丶灬走出姿态 提交于 2020-01-03 05:46:09
问题 I need to interact with user's mouse input in my simple C console program. I did some research and found a related Microsoft's docs on their page here. For a start, I copied all of their sample-code and pasted that into my editor. Upon compilation, it gets compiled well, with a nice little '.exe' which when run, tells/prints correctly all 'Key events' and 'resize events', But No Mouse event! How to successfully get mouse input inside C console program? My MCVE is the given sample-code here on

Trouble with Git on Windows 10

有些话、适合烂在心里 提交于 2020-01-03 03:39:05
问题 This problem is not related to any git configuration nor repository, it's related with the Program Gith Bash and the OS Windows 10 It began once I installed and customized Git Bash on my Windows profile, it never appeared the Git icon on the toolbar, which was bothering me. So I start to go after some ways to fix it. (reinstalling never worked) In an attempt to erase all customizations I made on Git Bash I deleted everything related to Git from the Windows Registry Editor, which at the time I

Windows 10 Developer Mode

こ雲淡風輕ζ 提交于 2020-01-02 19:29:29
问题 I have Windows 10 Pro (upgraded from Windows 8.1 Pro WMC) and I see that the option "Don't use developer features" is greyed out/disabled/cannot be selected and the option "Sideload apps" is selected. Why can't I select "Don't use developer features"? How can I enable it? 回答1: This is mainly due to group policy feature being enforced. You can go to group policy to enable it manually. Search for Group Policy Editor and navigate to Local Computer Policy > Computer Configuration > Administrative

How to add Windows Credentials to Credentials Manager on Windows programmatically?

巧了我就是萌 提交于 2020-01-02 08:04:34
问题 I have looked at this question's selected answer Retrieve Credentials from Windows Credentials Store using C# , which uses the CredentialManagement NuGet package to get and set credentials on Windows. Credential Management package is a wrapper for the Windows Credential Management API that supports both the old and the new style of UI I was able to set new credentials that way, however they were set as Generic Credentials . public static bool SetCredentials( string target, string username,

Confusion about multiprocessing and workers in Keras fit_generator() with windows 10 in spyder

谁说胖子不能爱 提交于 2020-01-02 03:30:10
问题 In the documentation for fit_generator() (docs: https://keras.io/models/sequential/#fit_generator) it says that the parameter use_multiprocessing accepts a bool that if set to True allows process-based threading. It also says that the parameter workers is an integer that designates how many process to spin up if using process-based threading. Apparently it defaults to 1 (a single process based thread) and if set to 0 it will execute the generator on the main thread. What I thought this meant

How can I use 100% of VRAM on a secondary GPU from a single process on windows 10?

▼魔方 西西 提交于 2020-01-02 01:03:28
问题 This is on windows 10 computer with no monitor attached to the Nvidia card. I've included output from nvida-smi showing > 5.04G was available. Here is the tensorflow code asking it to allocate just slightly more than I had seen previously: (I want this to be as close as possible to memory fraction=1.0) config = tf.ConfigProto() #config.gpu_options.allow_growth=True config.gpu_options.per_process_gpu_memory_fraction=0.84 config.log_device_placement=True sess = tf.Session(config=config) Just

How to get list of installed applications on Windows 10?

北城以北 提交于 2020-01-01 16:58:08
问题 In Windows 7 and older, installed applications were listed under this registry key in HKEY_USER: Software(/Wow6432Node)/Microsoft/Windows/CurrentVersion/Uninstall I've tried to find installation date and the exe path in the Windows 10 registry, but I'm not sure which key to use (including apps from windows store). I found following keys, but are they reliable? Is there an easier way to collect such data? Installation time: HKEY_CLASSES_ROOT\Local Settings\Microsoft\Windows\CurrentVersion

C# Detect Accent Colour Changes WinRT XAML

孤人 提交于 2020-01-01 16:39:14
问题 I am trying to detect changes in the Application.Resources Resource dictionary, so I can automatically change the Titlebar to the Accent Colour when it updates. All of the XAML controls and elements change automatically, and when setting a solid colour brush to the address of the DSDFS brush, its internal value changes. This is the code I have tried to use to detect the change: public static DependencyProperty accent = DependencyProperty.Register("DictChange", typeof(ResourceDictionary),