windows-10

Sharing target Universal Apps Template10 approach in Windows 10

寵の児 提交于 2019-12-06 03:36:57
My app is a target app for sharing and am facing issues when the app is running and the user wants to share content. I can't use a frame from the running application because then i get a "marshalling thread" exception. The application called an interface that was marshalled for a different thread.\r\n\r\nFailed to initialize the application's root visual My OnStartAsync method in App.xaml.cs looks like this. public override async Task OnStartAsync(StartKind startKind, IActivatedEventArgs args) { switch (DetermineStartCause(args)) { // other cases case AdditionalKinds.Other: if (args is

Docker for Windows 10 //./pipe/docker_engine: access is denied

守給你的承諾、 提交于 2019-12-06 03:31:03
问题 I have installed docker for Windows 10 (Anniversary) as per MSDN I can execute docker.exe commands in an elevated powershell environment, but not in a regular powershell . I have updated the docker configuration file to contain: { "group": "Power Users" } And have obviously added the user to power users, the user is also in the administrators group . Is there any way to execute docker commands such as docker search * without using run as administrator Warning: failed to get default registry

Running R / RStudio on Windows 10

我与影子孤独终老i 提交于 2019-12-06 03:27:05
I've been using R / RStudio for several months on Windows 7 & 8. Now I've received the upgrade invitation from Microsoft but at the same time, I've heard that there were serious compatibility issues between ancient versions of Windows and Windows 10. I would need to know if it's possible to run R / RStudio on Windows 10 without major issues. I have personally tried to run R and Rstudio with Windows with no problems (at the moment). Needless to say, I am on a split setup where my work machine is a windows 10 OS and my home is a Windows 7 OS. However, I find myself using my Windows 7 OS due to

Python and OpenCV - Cannot write readable avi video files

限于喜欢 提交于 2019-12-06 02:47:18
问题 I have a code like this: import numpy as np import cv2 cap = cv2.VideoCapture('C:/Users/Hilman/haatsu/drive_recorder/sample/3.mov') # Define the codec and create VideoWriter object fourcc = cv2.VideoWriter_fourcc(*'XVID') out = cv2.VideoWriter('output.avi', fourcc, 20.0, (640,480)) while(cap.isOpened()): ret, frame = cap.read() if ret==True: frame = cv2.flip(frame,0) # write the flipped frame out.write(frame) cv2.imshow('frame',frame) if cv2.waitKey(1) & 0xFF == ord('q'): break else: break #

ContentDialog not aligning to center on UWP

橙三吉。 提交于 2019-12-06 02:41:16
From what I know, ContentDialog 's default behavior should be to have it centered on PC and aligned to top on mobile, but in my case I have it aligned to top even on PC and I don't understand what's going on. I'm creating it using code-behind, and this is a snippet of the code that I'm using: // Creates the password box var passwordBox = new PasswordBox {IsPasswordRevealButtonEnabled = true, Margin = new Thickness(5)}; // Creates the StackPanel with the content var contentPanel = new StackPanel(); contentPanel.Children.Add(new TextBlock { Text = "Insert your password to access the application"

JNLP files won't launch from IE11 on Windows 10

坚强是说给别人听的谎言 提交于 2019-12-06 02:12:49
问题 Since May 9, after a windows 10 update, on IE11 11.0.40, JNLP files wont launch from IE, but in a computer with IE version 11.0.34 it work perfectly. Any ideas? Thanks in advance 回答1: The problem is solved in Java 8 u162. Now you can have Java RE x86 and x64 installed and jnlp will open as it should in Internet Explorer. We are using sitelist / Enterprise Mode to redirect jnlp urls from Edge to Internet Explorer. 回答2: I had a problem opening a jnlp file, no matter what, trying to associate it

WiFi Direct in Windows 10 says “UnsupportedHardware” althought it should be supported

夙愿已清 提交于 2019-12-06 01:59:06
问题 I'll try to keep it short. I've been running in Windows 10 (10130) Microsoft's WiFi Direct Services example available on GitHub , the C# one in Visual Studio 2015 RC. Now, in their Build conference they said you can run in CMD a command to know if your WiFi adapter is compatible with WiFi Direct netsh wlan show wirelesscap Which gives me a big YES, your wireless adapter is compatible . Wi-Fi Direct Device : Supported Wi-Fi Direct GO : Supported Wi-Fi Direct Client : Supported But when I run

XAML Designer is not loading

荒凉一梦 提交于 2019-12-06 01:54:09
问题 I am trying to develop a Universal application for Windows 10 but the XAML designer fails to load. I have tried reinstalling Visual Studio but nothing has seemed to work. Error : System.Runtime.InteropServices.COMException The app didn't start. (Exception from HRESULT: 0x8027025B) Stacktrace : at Microsoft.VisualStudio.DesignTools.HostUtility.AppPackage.AppPackageNativeMethods.IApplicationActivationManager.ActivateApplication(String appUserModelId, String activationContext, ActivateOptions

How to set up Windows 10 Mobile Hotspot programmatically?

徘徊边缘 提交于 2019-12-06 01:33:00
问题 Windows 10 introduced the Mobile Hotspot service: How to enable it, set the SSID and password programmatically, using PowerShell or Windows API? Note: I am not talking about the Hosted Network service (i.e. netsh wlan set hostednetwork mode=allow ssid=Name key=Passphrase ). The Mobile Hotspot service works even if a network card does not support Hosted Network. 回答1: What I have found so far using Process Monitor is that Mobile Hotspot is managed by the icssvc service and SSID and password are

Attempting to resolve blurred tkinter text + scaling on Windows 10 high DPI displays, but concerned my approach is not Pythonic or is unsafe

拈花ヽ惹草 提交于 2019-12-06 01:20:44
问题 After hours of tweaking I have settled on this code which allows me to get round the familiar problem of blurry / fuzzy text in Windows 10 on high DPI displays when using Tkinter interfaces in Python 3. I didn't want to have to set the compatibility flag or expect others to do it and I discovered that by flagging DPI awareness 'on' through a DLL call and then retrieving the DPI setting I could then scale up the GUI window and frames within. Before passing this to others, however, I wanted to