windows-8

Cannot use Python's pip on Windows 8. “specified executable is not a valid application for this os platform”

前提是你 提交于 2020-12-16 04:40:18
问题 I seem to be receiving a unique error in Python 2.7.6 on Windows 8 64bit. I was able to install Python perfectly, then was able to install pip using this guide. But when I got to step 3 and I tried to install virtualenv using pip it gave me this error: Program 'pip.exe' failed to run: The specified executable is not a valid application for this OS platform.At line:1 char:1 + pip.exe install virtualenv + ~~~~~~~~~~~~~~~~~~~~~~~~~~. At line:1 char:1 + pip.exe install virtualenv + ~~~~~~~~~~~~~~

How to convert byte array to InMemoryRandomAccessStream or IRandomAccessStream in windows 8

别来无恙 提交于 2020-07-05 00:05:00
问题 now I've had a problem that is how to convert byte array to InMemoryRandomAccessStream or IRandomAccessStream in windows 8? This is my code, but It did't work, refer the following code internal static async Task<InMemoryRandomAccessStream> ConvertTo(byte[] arr) { InMemoryRandomAccessStream randomAccessStream = new InMemoryRandomAccessStream(); Stream stream = randomAccessStream.AsStream(); await stream.WriteAsync(arr, 0, arr.Length); await stream.FlushAsync(); return randomAccessStream; } And

How to convert byte array to InMemoryRandomAccessStream or IRandomAccessStream in windows 8

这一生的挚爱 提交于 2020-07-05 00:01:16
问题 now I've had a problem that is how to convert byte array to InMemoryRandomAccessStream or IRandomAccessStream in windows 8? This is my code, but It did't work, refer the following code internal static async Task<InMemoryRandomAccessStream> ConvertTo(byte[] arr) { InMemoryRandomAccessStream randomAccessStream = new InMemoryRandomAccessStream(); Stream stream = randomAccessStream.AsStream(); await stream.WriteAsync(arr, 0, arr.Length); await stream.FlushAsync(); return randomAccessStream; } And

After Installing Win 8 Pro and IIS 8 - missing StaticFileModule

[亡魂溺海] 提交于 2020-06-28 01:19:06
问题 I've made new installation Win 8 Pro + IIS 8, but any static content (png and etc.) on my web site not working, because StaticFileModule in Modules IIS8 and static.dll are missing. What command enable StaticFileModule (static.dll) in IIS8 ? 回答1: Try installing the "Static content" feature using the "Turn Windows features on or off" menu: If for some reason the module is missing in ISS after installation, you can try to add it manually (use the "Configure Native Modules" option and copy the

Windows 8 WinRT KeyboardCapabilities.KeyboardPresent is always true

空扰寡人 提交于 2020-06-14 06:49:35
问题 We are using KeyboardCapabilities.KeyboardPresent to test if a keyboard is connected to a device: bool hasKeyboard = new KeyboardCapabilities().KeyboardPresent == 1; Unfortunately it's always TRUE regardless if a bluetooth keyboard is connected or not. We tried it with the following hardware: Dell Vostro 470 is a desktop PC with wireless Bluetooth keyboard which has power ON/OFF options. http://www.dell.com/in/business/p/vostro-470/pd Samsung 700T Notebook (Slate) http://www.samsung.com/uk

Xamarin.forms giving “invalid cross thread access” Exception in windows8 emulator

一笑奈何 提交于 2020-05-30 07:15:27
问题 Xamarin.forms is working fine in android phones but in window8 emulator it is not loading image and giving invalid cross thread access exception. I'm using Embedded Image Technique, I'm storing all images in common folder and accessing from shared project. snapshot of my project is as follows: Error is As follows : In window8 simulator images are not loading Any help will be much appreciated. 回答1: This is because you are updating a UI element on a non UI thread, you want to use Device

BackgroundTaskBuilder Register() issue

懵懂的女人 提交于 2020-03-23 18:21:56
问题 I was developing application with Geofencing, when stuck at issue: ArgumentException (Value does not fall within the expected range) when I am trying to register background task for geofencing. Sample from MSDN has the same problem. I will show code from sample for clarity (link to sample: http://code.msdn.microsoft.com/windowsapps/Geolocation-2483de66#content use scenario 5, http://msdn.microsoft.com/en-us/library/windows/apps/dn440583.aspx - instruction how to test). All what I have done:

XAML DataContext DesignInstance with nested types

你说的曾经没有我的故事 提交于 2020-03-15 06:29:28
问题 Is it possible to specify a nested type for d:DesignInstance in XAML? And if so, how? If I have the following class structure: namespace MyApp { public class OuterClass { public class InnerClass { public string SomeData {get;set;} } } } How can I use the InnerClass type as a DesignInstance? The following doesn't work: <phone:PhoneApplicationPage ... xmlns:local="clr-namespace:MyApp" ... d:DataContext="{d:DesignInstance Type=local:OuterClass.InnerClass}" > 回答1: Try changing . to + . Something

Constructor on type 'System.Data.Entity.Infrastructure.SqlConnectionFactory' not found

纵饮孤独 提交于 2020-03-01 05:39:25
问题 I "upgraded" my PC from Windows 7 to Windows 8 yesterday, so now I'm using Visual Studio 2012, and opening my Visual Studio 2010 project. This project always worked fine, but it doesn't work in Visual Studio 2012. I had some weird errors, but I fixed those. Now I'm left with one error that I just can't fix and can't find anything about on Google: I get this exception: Failed to set Database.DefaultConnectionFactory to an instance of the 'System.Data.Entity.Infrastructure.SqlConnectionFactory,