windows-10

docker php container and local composer issue

无人久伴 提交于 2019-12-25 01:29:45
问题 well I was using wamp-server on windows 10 for a long time and that was fine but now I want to go for docker and use its benefits. problem is I want to use my docker PHP interpreter on my local machine so according to this question: set PHP path from host to docker container I've found a solution to use something like this: docker exec -i php73_fpm php %* in a php.bat file, place it in a directory and add it to environment variables and that looks fine. when i hit php -v it shows me the

Why does web-component-tester time out in flight mode?

烈酒焚心 提交于 2019-12-24 22:13:57
问题 I've got a basic web-component-tester project which works fine when I'm online. If I switch to flight mode, it seems to fail to connect to Selenium, and instead gives a largely useless error message after about 60s delay: "Error: Unable to connect to selenium". Edit 2 : I've narrowed the problem down in the following question, but I'd still like to know how to avoid it with web-component-tester: Why does NodeJS request() fail on localhost in flight mode, but not 127.0.0.1? (Windows 10) Edit :

fatal error C1083: Cannot open include file: 'magic.h': No such file or directory

前提是你 提交于 2019-12-24 21:15:37
问题 trying to run a django server on my windows 10 computer. When I execute python manage.py runserver, I get the following error: fatal error C1083: Cannot open include file: 'magic.h': No such file or directory I'm running 64 bit python 3.5, on Windows 10. Here is the picture of the error: 回答1: This issue was discussed in GitHub: https://github.com/ahupp/python-magic/issues/154 It seems that solution is to reinstall libmagic "pip install libmagic" and/or "pip install python-magic" (the

Could not load file or assembly '…' or one of its dependencies. The file or directory is corrupted and unreadable From VS15 Comunity to Professional

最后都变了- 提交于 2019-12-24 21:00:26
问题 I'm working on a webforms project (3-tier) in Visual Studio Community 2015. I've moved my project from one laptop to another and now the project is not running. Note: Another Laptop has Visual Studio Professional 2015. Showing blue underline under the first line of all pages as like this: And this error: I'm using Windows 10 Professional. Any help will be appreciated! 回答1: This error has nothing to do with your project. The file Microsoft.VisualStudio.Web.PageInspector.Loader is part of

WriteableBitmap inside Windows 10 IBackgroundTask

痴心易碎 提交于 2019-12-24 20:33:14
问题 I am trying to crop an image from a Run method from Windows 10 app (UWP) IBackgroundTask. To achive that I'm using the WriteableBitmapEx but at the moment that I try to instantiate a new object, I got the exception: The application called an interface that was marshalled for a different thread. (Exception from HRESULT: 0x8001010E (RPC_E_WRONG_THREAD)) I have tried to use some Dispatchers but other exception ocurred. Any idea? 回答1: WriteableBitmap is a UI object, and requires UI thread, which

'Provider load failure' during installation process

别来无恙 提交于 2019-12-24 19:18:56
问题 I execute two Powershell scripts during a installation process from a desktop application under Windows 10 IoT Enterprise. %WINDIR%\System32\WindowsPowerShell\v1.0\PowerShell.exe -ExecutionPolicy Bypass -File ".\KeyboardFilter.ps1" %WINDIR%\System32\WindowsPowerShell\v1.0\PowerShell.exe -ExecutionPolicy Bypass -File ".\ShellLauncher.ps1" But the execution of the Powershell scripts is not successful. I get the following errors: Get-WMIObject : Provider load failure At C:\Program Files

Windows batch os version check with if support

旧巷老猫 提交于 2019-12-24 18:50:16
问题 I'm making "BatchGameHub" for windows 10, and right now I'm making installer in .batch, but I don't know how to check windows version (10, 8, 7) and with support with if command. Example what I mean: (Command to check version) if %winversion%== 10 goto start goto win_not_compatible :win_not_compatible echo. echo Your windows version cannot run gamehub! echo [ Press any key to cancel installer... ] echo. pause>null exit 回答1: Check the windows build numbers - https://msdn.microsoft.com/en-us

Write to a .txt file using data from TextBox when UWP app is closed

耗尽温柔 提交于 2019-12-24 18:26:16
问题 When user closes the app, I believe the OnSuspending method in App.xaml.cs is called first before termination. So, I put my code in there in order to automatically save what the user wrote in the TextBox to a .txt file called TextFile1.txt. The program runs without errors but it doesn't save the user's data to the .txt file when app is closed. Code in App.xaml.cs : private MainPage mainFrame; private async void OnSuspending(object sender, SuspendingEventArgs e) { var deferral = e

PrintWindow and Microsoft Edge

半腔热情 提交于 2019-12-24 17:24:24
问题 we have a problem with the PrintWindow function on Windows 10 (build 10166). When we call PrintWindow (https://msdn.microsoft.com/ru-ru/library/windows/desktop/dd162869(v=vs.85).aspx) to capture a image of the Microsoft Edge (Project Spartan) browser window we get a black image. Does anyone know the reason of this and how could it be fixed/avoided? Or maybe some other way to capture image of a window, that can be in background and hided behind another windows? UPDATE : We've tried sending WM

How to programmatically select a bound `NavigationViewItem` of `NavigationView` after binding is updated

痞子三分冷 提交于 2019-12-24 17:10:08
问题 My setup is basically as follows: NavigationView 's MenuItemsSource is bound to viewModel.NavItems . NavItems is a computed property of viewModel . The view model class implements INotifyPropertyChanged for binding purpose Books of view model is loaded asynchronously . What works The NavigationViewItem s show up after the page is reached. The Problem I need to set a specified NavigationViewItem as the SelectedItem of the NavigationView . But there's no NavigationViewItem (from viewModel ) to