windows-8

How to execute an Octave file using php

巧了我就是萌 提交于 2020-01-16 02:26:10
问题 I have an Octave file sr.m sqrt(3^2 + 4^2) I have to execute this file using PHP and display output in browser. The sr.m file is resides in octavepgm folder in Desktop . my php code is $cmd = "octave3.6.4 -qf C:\\Users\\deepu_000\\Desktop\\octavepgm\\sr.m"; $ex = passthru($cmd, $output); var_dump($output); This gives int 1 as output. How can I make this working..please help me.. The expected output is 5. 回答1: There's several issues which I explain further down but here's how you do it: $ php

Winapi CreateDC hangs on Win 8

天涯浪子 提交于 2020-01-16 02:08:06
问题 I have a program which uses winapi functions. When it runs on WinXP (32bit) or Win7 (64bit) everything is OK. But on Win8 (64bit) there is a bug: sometimes program hangs on this code line HDC hDisplay = CreateDC("DISPLAY", NULL, NULL, NULL); What might be the reason of it? p.s. It is built in MSVC 2005 on WinXP 32 bit for platform Win32. 回答1: Try: CreateDC(TEXT("DISPLAY"),NULL,NULL,NULL) 回答2: I have managed to rebuild program for 64bit platform, and it works now. 回答3: While this question is

svn: Symbolic links are not supported on this platform - Windows 8.1

廉价感情. 提交于 2020-01-16 00:53:26
问题 I have a folder with few images as Symbolic links now when i try to check in the folder it gives me the below error: Trying to use an unsupported feature svn: Commit failed (details follow): svn: Symbolic links are not supported on this platform I am using SVN - http://subclipse.tigris.org/update_1.8.x and i am on Windows 8.1 OS. I have looked into many posts related to the above query but i havent found any soultion or fix to this, as i have to check in the symlinks. And also can i check in

Cropping tool after file picker (like the one after you take a picture)

霸气de小男生 提交于 2020-01-15 09:25:41
问题 When you take a picture with the integrated camera, windows 8 automatically starts a cropping tool. You can enable it with this code: CameraCaptureUI cameraUI = new CameraCaptureUI(); cameraUI.PhotoSettings.AllowCropping = true; I need something similar for a picture which is chosen from the file picker. Is there any way to use the same Image-Cropper-Tool in the FilePicker as for the camera or do I have to implement it on my own? 回答1: You need to implement on your own. Check out this awesome

Get user information in Windows 8?

守給你的承諾、 提交于 2020-01-15 09:13:19
问题 I have created a sample in Windows 8 using C# and XAML to get user info of my system which includes Name, Email Id, Photo of my User Login. I am able to get Name and image but I am not able to get Email Id. My system is logged in by my hotmail id. Following is the code: how can I achieve to get email id? string displayName = await UserInformation.GetDisplayNameAsync(); string Emailid = await UserInformation.GetPrincipalNameAsync(); StorageFile image = UserInformation.GetAccountPicture

Microphone does not exist in current context

ぐ巨炮叔叔 提交于 2020-01-15 08:14:08
问题 In reference to this article on MSDN. The assembly, microsoft.xna.framework.dll , has been added to the references and I'm using the namespace Microsoft.Xna.Framework.Audio , however I receive an immediate error on the first step, shown below: Microphone [error 1] mic = Microphone.Default [error 2]; Error 1: The type or namespace name 'Microphone' could not be found (are you missing a using directive or an assembly reference?) Error 2: The name 'Microphone' does not exist in the current

Windows 8 App Local Storage

删除回忆录丶 提交于 2020-01-14 22:23:30
问题 I am trying to develop Windows 8 apps using C# and I need to store two list's (string and DateTime) in local settings List<string> names = new List<string>(); List<DateTime> dates = new List<DateTime>(); I used LocalSettings for that according to this page: http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh700361 Windows.Storage.ApplicationDataContainer localSettings = Windows.Storage.ApplicationData.Current.LocalSettings; But I have problems while I am storing Lists and getting

Blend For Visual Studio 11 get an error

隐身守侯 提交于 2020-01-14 18:47:30
问题 Installed Windows 8 Consumer Preview Installed Visual Studio 2010 Premium Installed Visual Studio 11 Ultimate Everything installed without any errors. I created a new Windows 8 Metro app using Visual Studio 11 and have no issues viewing xaml in VS 11 designer. If I view it in Blend For Visual Studio 11 a propup with error: The project 'TestApp.csproj' could not be opened. The imported project 'C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v11\Microsoft.Windows.UI.Xaml.CSharp.Targets'

Remote Debug Win8 Surface App from VS2012

。_饼干妹妹 提交于 2020-01-14 09:52:47
问题 I'm trying to debug a Windows Store app from within VS2012 on a Microsoft Surface RT tablet. Both the desktop development system and the Surface tablet are on the same subnet (191.168.1.x). I've installed the Remote Debugging Tools for ARM on the tablet, and can fire up the Remote Debugging Monitor on it. When I try to Find the tablet from within the VS2012 project's Debug property page, nothing is found (i.e., the find process can't locate the tablet). From running ipconfig on the tablet I

How do I use the DOM Explorer in Visual Studio Express 2012 RC for Windows 8

Deadly 提交于 2020-01-14 09:41:52
问题 Has anyone been able to use the DOM Explorer to debug their Win 8 apps? I do not see a DOM Explorer tab when debugging as described here: http://msdn.microsoft.com/en-us/library/windows/apps/hh696632.aspx 回答1: Use the Debug > Windows > DOM Explorer menu command to show the DOM Explorer tab. 来源: https://stackoverflow.com/questions/12692357/how-do-i-use-the-dom-explorer-in-visual-studio-express-2012-rc-for-windows-8