windows-10

AWS EC2 Windows 10 can't access metadata

空扰寡人 提交于 2019-11-29 12:19:40
What could explain why an EC2 instance running Windows 10 does not consistently have access to its own metadata or userdata? I know the userdata is set correctly because the exact same script was used for about thirty launches of t2.nano and c4.xlarge instances: the t2.nano never encountered any issue reading the metadata, but out of three attempts with a c4.xlarge only one had access to it. The script only differed by the name of instance (as per git history at least). I followed the instructions below, and even from a Powershell, the Uri fails to load (cf. Figure 2). Any hint is appreciated.

Setting up Qt5 with Visual Studio 2015

[亡魂溺海] 提交于 2019-11-29 12:15:25
问题 Searching Google for 'Qt5 - Windows 10 - VS 2015' only brought up a blog post from April stating that support for VS 2015 is in the works (link). The Qt5 downloads page (OpenSource version) currently has no links for Visual Studio 2015. So, is it possible to use Qt5 in VS 2015, or do I just have until something new comes up? PS. I just want to avoid installing VS2013 on top of VS2015. I can build from source should it be needed. Thanks in advance 回答1: I just wrote a small article explaining

How to pin/unpin Microsoft Edge developer tools in Windows 10

≡放荡痞女 提交于 2019-11-29 11:32:56
问题 I have upgraded to Windows 10; had a great experience on installation process. But very strange thing is I am not finding a way to pin (ctrl+9 for IE) the Developer Tools to an existing window with the MS Edge browser app. Is it missing? 回答1: Correct, pinning/unpinning the F12 developers is not available in current builds of Microsoft Edge (10240). This is a known issue and we are planning to bring it back in a future update. 回答2: In my laptop , the Microsoft Edge has it pinned. And the icon

“A Setup Package is either missing or damaged” error while installing Visual Studio 2015 on Windows 10

淺唱寂寞╮ 提交于 2019-11-29 10:33:40
问题 During the installation of Visual Studio 2015 Community on Windows 10 the following error occurred for me: A Setup Package is either missing or damaged. Since vcredist_x86.exe and vcredist_x64.exe files correspond to Visual C++ Redistributable Packages for Visual Studio 2013, I provided a location to packages after downloading them ( third option on the screenshot). After that the installation went smoothly. So the question: are Visual C++ Redistributable Packages for Visual Studio 2013

Python multiprocessing on Windows 10

拈花ヽ惹草 提交于 2019-11-29 09:27:24
问题 I'm running some code on both a Windows 7 pc and a Windows 10 laptop: def project(filename): **Do Something Here** if __name__ == '__main__': pool = Pool(processes=4) results = [pool.apply_async(project, args=(filename,)) for filename in filenamelist] output = [p.get() for p in results] print output Both computers are dual core/4 threads, so they should both be fine running 4 processes. The problem I have is that when I run the code on Windows 10 I get 4 python processes running, but they use

Thread.Abort in ASP.NET app causes w3wp.exe to crash

非 Y 不嫁゛ 提交于 2019-11-29 09:23:50
问题 Please do not set duplicate flag on this qustion - it is not about "why ThreadAbortException occurs", it is about "why w3wp.exe process terminates after ThreadAbortException". Let's say we have simple web application with following code sample: protected void Page_Load(object sender, EventArgs e) { Response.Redirect("http://google.com"); } Which by fact means something like (see Is Response.End() considered harmful?): protected void Page_Load(object sender, EventArgs e) { ...response write

Enable cURL on PHP7 windows10 64 bit Apache 2.4

拈花ヽ惹草 提交于 2019-11-29 08:57:31
问题 I am using Windows10 64 bit Apache 2.4.25 (Win64) PHP 7.1.0-Win32-VC14-x64 when i try calling curl_init() function, i get an error saying "Call to undefined function curl_init()" tried following copying ssleay32.dll & libeay32.dll & php7ts.dll to apache/bin folder setting path properly to include above files "C:/PHP;" Any help much appreciated. 回答1: Here are the steps from obtaining PHP to enabling cURL: Download PHP (these steps tested with 7.1) Add PHP folder to PATH environment variable

How do I get around the verified bug in Windows 1903 and launch the VSCode integrated terminal?

非 Y 不嫁゛ 提交于 2019-11-29 08:45:36
问题 I just did a fresh install of Windows 10 Pro version 1903 build 18362.116 and Visual Studio Code. Now the integrated terminal only launches externally. Pressing Ctrl + ~ results in this. What am I missing? How do I get it to open integrated again? EDIT After working with VSCode team it is a verified bug. See the Github issue here. I posted the workaround as an answer here. 回答1: OK, worked through this one in VSCode repo issues. For now, until it's fixed, turn off ConPTY integration in the

How to create a main layout template in XAML

你说的曾经没有我的故事 提交于 2019-11-29 08:04:58
I'm new to windows development. I'm making a simple windows app which has a few pages and each page has a similar layout in XAML. Like this: Each page is separated into 3 sections. A will have a title, B is where the content will be inserted and C is for other stuff. My question is: what is the simplest way to build a general layout template so that I can reuse it for every page? And is it possible? For example, I have a MainTemplate.xaml file with this layout: <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <Grid.RowDefinitions> <RowDefinition/> <RowDefinition/>

Cannot select Target Framework 4.5 in Visual Studio 2015

天大地大妈咪最大 提交于 2019-11-29 07:48:51
I have uninstalled my localized(german) .net version to get english exception messages. Afterwards i've installed the latest .NET 4.6.2 framework on my windows 10 development pc. Then i've openend my solution which contains projects that target .NET Framework 4.5 and noticed that they couldn't be loaded anymore because this version is not installed. Then visual studio suggested to use a different version and change it later. When i've done it i couldn't change to the desired framework version as you can see here: I've tried to reinstall .NET 4.5 but it's not supported on windows 10 so the