windows-10

Starting ssh-agent on Windows 10 fails: “unable to start ssh-agent service, error :1058”

半腔热情 提交于 2019-12-04 07:42:56
问题 When I try to start the ssh-agent on Windows 10 via PowerShell (with elevated right or without) by entering Start-Service ssh-agent I get the error unable to start ssh-agent service, error :1058 When I check of the service is running via Get-Service ssh-agent is returns that the service is stopped. How can I get the ssh-agent running? 回答1: Yeah, as others have suggested, this error seems to mean that ssh-agent is installed but its service (on windows) hasn't been started. You can check this

How to get `python` to run Python 3 in WSL bash?

▼魔方 西西 提交于 2019-12-04 07:41:18
When I type python into my bash shell (Windows Subsystem for Linux) in Windows 10 Home, I get the following error message: The program 'python' can be found in the following packages: * python-minimal * python3 Try: sudo apt install <selected package> I've tried installing python3 but am told it's already installed and up to date. I've tried uninstalling python-minimal but am told it's not installed (!) Why am I seeing two "competing" packages for Python? How can I fix the conflict and configure my WSL bash to run Python 3 from python ? python in linux world as a CLI command almost always

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

喜欢而已 提交于 2019-12-04 07:35:21
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 endpoint from daemon (error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.25/info : open

Python and OpenCV - Cannot write readable avi video files

谁说我不能喝 提交于 2019-12-04 07:29:00
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 # Release everything if job is finished cap.release() out.release() cv2.destroyAllWindows() But the

Bridged networking not working in Virtualbox under Windows 10

浪尽此生 提交于 2019-12-04 07:28:23
问题 I just upgraded my laptop from Windows 7 to Windows 10 and found that I am unable to start Virtualbox VMs configured with a bridged adapter. See the configuration below: 回答1: First of all you have to create a VirtualBox Host-Only Ethernet adapter In Virtualbox : Go to File > Preferences On the Network tab select Host only Networks click on "add a Host-only adapter" give it a name by default it is "VirtualBox Host-Only Ethernet adapter" In Windows : go to Network connections on Windows and

Vagrant with VirtualBox on Windows10: “Rsync” could not be found on your PATH

▼魔方 西西 提交于 2019-12-04 07:25:27
问题 I've used Vagrant for a while on a windows 7 system. Now I've a new PC with windows 10. I installed Oracle Virtual Box and Vagrant and I try to start a machine with the command vagrant up. The Vagrantfile is the same file that I used on my windows 7 system. This is the content of the Vagrantfile: Vagrant.configure(2) do |config| config.vm.box = "debian/jessie64" config.vm.provider "virtualbox" do |v| v.customize ["modifyvm", :id, "--memory", "768"] end config.vm.provision :shell, path:

c++ empty std::vector begin not equals to end

时光总嘲笑我的痴心妄想 提交于 2019-12-04 07:17:10
问题 Hi I have situation on windows 10, that declared empty class member variable vector, but this vector's begin()(first iterator) and end()(last iterator) differ, as I know in empty vector those 2 should be same. Any ideas? :))) struct B { std::string a; std::string b; }; class A { A(); std::vector<B> vec_; }; A::A() { } Here in costructor A vec_.begin().base() not equals vec_.end().base() Which as I know should be equal 回答1: The standard only requires that the iterators are equal, not that

Creation of the virtual directory failed with error: cannot write configuration file applicationhost.config

别等时光非礼了梦想. 提交于 2019-12-04 06:19:41
I'm just simply trying to open up a VS 2017 project. When I open the solution, I get the following error message: Creation of the virtual directory http://localhost:58051/failed with the error: Filename: \?\C:\Users\Visual Studio 2017\Projects\Testing\Version 2.0.vs\config\applicationhost.config Error: Cannot write configuration file I've checked the folders along the file path and they are not encrypted. All the folders along the file path have a black box for the Read Only attribute. When I go to the config folder and clear out the black box for the Read Only attribute and Apply the setting,

How to resolve “ 'IAsyncActionWithProgress<>' is defined in an assembly that is not referenced” in Windows UAP app

二次信任 提交于 2019-12-04 06:18:40
I am developing a Windows UAP app in Visual Studio Ultimate CTP 2015 (latest one available in site). I am facing issues while using await on Functions returning IAsyncActionWithProgress<>, IAsyncAction<> , IAsyncOperation<> and IAsyncOperationWithProgress<>. I am getting the following error Error CS0012 The type 'IAsyncActionWithProgress<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'Windows, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime'. I tried adding reference to the assembly mentioned (Windows). Even

How to set up Windows 10 Mobile Hotspot programmatically?

时光总嘲笑我的痴心妄想 提交于 2019-12-04 05:20:42
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. What I have found so far using Process Monitor is that Mobile Hotspot is managed by the icssvc service and SSID and password are stored as binary data under registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\icssvc