windows-10

How to detect is a camera is available using isTypePresent in a Windows 10 Universal Application

邮差的信 提交于 2019-11-29 07:40:45
When developing a Universal Application for Windows 10 you are encouraged to detect device specific hardware using IsTypePresent . (Microsoft refer to this feature as ' Light up '). An example from the documentation that checks for a device's back button is: if(Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.Phone.UI.Input.HardwareButtons")) Windows.Phone.UI.Input.HardwareButtons.BackPressed += HardwareButtons_BackPressed; It is clear here that the string "Windows.Phone.UI.Input.HardwareButtons" is passed as an argument to the IsTypePresent() method. I would like to know if

x:Bind image with null string

吃可爱长大的小学妹 提交于 2019-11-29 06:51:23
问题 In XAML I have the following line: <Image x:Name="MainImage" Source="{x:Bind ViewModel.MainPic,Mode=OneWay,TargetNullValue={x:Null}}" Stretch="UniformToFill"/> In ViewModel: public string MainPic { get { if (Data == null) return default(string); else return Data.Photos.ElementAtOrDefault(0).url; } } App compiles fine but during execution (since Data is populated after few seconds), the app crashes with the following exception: System.ArgumentException: The parameter is incorrect. Debugger

Protractor with IE on Windows 10 fails - error code 199

╄→гoц情女王★ 提交于 2019-11-29 05:22:23
I can't get protractor to work with IE 11 on Windows 10. It says Unable to create new service: InternetExplorerDriverService and exists with code 199 I have tried the age old reinstalled/upgraded node, npm, protractor, webdriver-manager & java; and it didn't seem to make any difference. Protractor works fine with Chrome; and having Chrome in the config does not affect IE. My config file : // protractor.conf.js exports.config = { framework: 'jasmine', specs: [ 'protractor/specs/**/*.js' ], multiCapabilities: [ { browserName: 'internet explorer', version: 11, 'ignoreProtectedModeSettings': true

Programmatically provide a filepath as input file for “Microsoft Print to PDF” printer

◇◆丶佛笑我妖孽 提交于 2019-11-29 05:08:04
Desired result I want to print a file to a new PDF using the Windows 10 printer "Microsoft Print to PDF" which is installed by default. When you select this printer as your default printer and use your context menu on a file and select Print , it only asks for a save directory and name. After that, it immediately converts to PDF and saves the file. As long as MS Office is installed, this works for Word, Excel, PowerPoint file types. But also for common image types and normal text files. I'd like to automate this by providing a default path. What I already tried Stackoverflow already has this

Is GPU pass-through possible with docker for Windows?

烈酒焚心 提交于 2019-11-29 04:48:18
I am trying to run an application inside a docker container in Windows 10. But I am not able to get the GPU working inside docker. I read that it needs "GPU Pass-through." How should I get around this? GPU access from within a Docker container currently isn't supported on Windows. You need nvidia-docker , but that is currently only supported on Linux platforms. GPU passthrough with Hyper-v would require Discrete Device Assignment (DDA), which is currently only in Windows Server, and ( at least in 2015 ) there was no plan to change that state of affairs. Hence, NVIDIA are not porting nvidia

How do I use Headless Chrome in Chrome 60 on Windows 10?

不问归期 提交于 2019-11-29 04:33:58
问题 I've been looking at the following article about Headless Chrome: https://developers.google.com/web/updates/2017/04/headless-chrome I just upgraded Chrome on Windows 10 to version 60, but when I run either of the following commands from the command line, nothing seems to happen: chrome --headless --disable-gpu --dump-dom https://www.google.com/ chrome --headless --disable-gpu --print-to-pdf https://www.google.com/ And I'm running all of these commands from the following path (the default

howto install pygraphviz on windows 10 64bit

为君一笑 提交于 2019-11-29 03:00:03
问题 Has anyone succeeded in installing pygraphviz on windows 10 64bit? I tried anaconda with python 3.5 64bit & 32bit with no success. Here is the error I am getting with python 3.5 32bit on win10 64bit python -m pip install pygraphviz --install-option="--include-path=C:\Program Files (x86)\Graphviz2.38\include" --install-option="--library-path=C:\Program Files (x86)\Graphviz2.38\lib" Error: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD "-IC

Retrieving Windows version “1511”

风流意气都作罢 提交于 2019-11-29 02:39:39
The latest release of Windows 10 (currently Insider Preview) is badged as: Version 1511 (OS Build 10586.3) when looking in "About Windows" ( Start > Run > winver ) Using an appropriately manifested console application, the Windows version returned from System.Environment.OSVersion.Version is 10.0.10586.0, which contains neither the "1511" or ".3" components of the version reported by winver. There do appear to be strings in the registry under HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion such as ReleaseId which would provide this information, however this would be relying on an

Visual Studio 2013 Install Fails: Program Compatibility Mode is on (Windows 10)

醉酒当歌 提交于 2019-11-29 02:01:37
问题 I want to install Visual Studio Ultimate 2013 on my Windows 10 but I have this error: I have done these two things (they have solved the problem on Windows 8) but still I cannot install it. 回答1: Answer that worked here. They recommend checking the installer file name. It needs to be the original name oddly enough for the setup to work. 回答2: Disabling the Program Compatibility Assistant is not the right way. A solution that works on Windows 10 is: Right-click the setup file Select Properties

How to make hovering over Minimize, Maximize, and Close buttons behave?

给你一囗甜甜゛ 提交于 2019-11-29 01:15:11
In a Delphi application, when you hover over a border icon, e.g.: Minimize Maximize Restore it doesn't behave correctly: Compare to an application that does behave correctly: Step to Reproduce Click File , New , VCL Forms Application - Delphi Click Run (F9) Hover over the Minimize, Maximize, or Close buttons. How to fix? Windows 10, 64-bit (running natively on desktop PC) Delphi XE6 Edit - It also fails with Delphi 7: and in Delphi 5: and in Delphi 4: I assumed (i.e. was afraid) that it was caused by the ThemeServices engine; where they might have thought it was cool to not honor the user's