问题列表 - 第44713页

如何让Visual Studio开发服务器与PHP一起使用?

我是一名.NET专家,与PHP/Flash程序员合作,通过IIS提供应用程序.在一场可怕的战斗中跳过了17次篝火并击败了石像鬼,我设法让我的IIS 7.5服务器与PHP合作,现在如果你浏览我的公共网站,你可以愉快地看到Flash对象无论可能是什么,用PHP做他们的幕后工作.

但是......当我使用VS开发服务器调试我的应用程序时,显然仍然不知道如何应对PHP:我得到了与IIS相同的HTTP 405(方法不允许)错误在前面提到的gargoyle呼吸它的最后一个("用于访问路径的HTTP动词POST'/php/blah.php'是不允许的.").

那么,你需要做些什么来让VS Dev服务器与PHP一起玩呢?

php asp.net iis visual-studio-2010

5
推荐指数
2
解决办法
3867
查看次数

.NET 4.0 Excel Interop与动态集合有关

在Excel中,您可以System.Object[*]使用系列对象返回动态数组XValues.在.NET 3.5中,您可以通过将其转换为数组来访问此对象中的元素,即:

var values = (Array)series.XValues;
Run Code Online (Sandbox Code Playgroud)

在.NET 4.0中,这不再起作用,而且消息也是如此

"无法将'System.Object [*]'类型的对象强制转换为'System.Object []'"

给出.

有任何想法吗?以下不起作用:

  • 把它变成动态的.
  • 把它投到一个System.Object[*].
  • 只需将对象放入for循环中.
  • 尝试直接使用该值values[1],而不是在转换为动态时.

但是,数组中的值确实显示在调试器中.

.net excel .net-4.0 excel-interop

5
推荐指数
2
解决办法
1641
查看次数

Perforce无法正确同步文件

我正在使用Perforce P4V(图形工具)在工作时与我的Perforce服务器进行交互.我有一个项目,我添加到仓库,我不小心从我的本地计算机上的工作区删除它,问题是当我使用Get Revision Action(GUI等效的同步),文件没有得到更新,即我可以查看我想要的服务器上的文件,但它们无法与我的本地PC正确同步.令我感到沮丧的是,文件没有从服务器中取出.我假设应该发生的事情是,如果文件在我的本地PC上被改变,我应该能够从服务器获取修订版,然后将数据拉到我的本地PC并在我的PC上本地覆盖更改,但那并没有发生.有什么我想念的吗?

perforce revision

29
推荐指数
5
解决办法
3万
查看次数

WPF错误消息:部分声明不能指定不同的基类

为什么我有UserControl的此错误消息:

MyNamespace.MyUserControl的部分声明不能指定不同的基类

仅仅因为我从另一个名称空间继承而来自我在另一个名称空间中创建,而另一个名称空间在XAML中被引用为

xmlns:my="clr-namespace:ReferedNamespace;assembly=ReferedNamespace"
Run Code Online (Sandbox Code Playgroud)

wpf wpf-controls

15
推荐指数
2
解决办法
3万
查看次数

在Objective-c中将NSString转换为Integer

我有一个数组,将电话号码的每个数字存储为字符串.然后我传递电话号码数字字符串作为参数objectAtIndex:这样的方法NSArray:[myArray objectAtIndex: [myString intValue]];编译器说我需要转换字符串,但我已经这样做了.怎么了?

更新:

这是我的实际代码行:

NSMutableArray *tmp = [[NSMutableArray alloc] initWithArray:[charHolder objectAtIndex:[[phoneNumDigits objectAtIndex:i]intValue]]];
Run Code Online (Sandbox Code Playgroud)

这是错误的位置,phoneNumDigits是电话号码的每个数字charHolder的数组,是包含与每个数字相关联的字母数组的数组.

arrays iphone objective-c

4
推荐指数
1
解决办法
1万
查看次数

Microsoft.Practices.Unity.ResolutionFailedException

安装我的WPF应用程序后,我尝试运行该应用程序,它崩溃并在事件查看器中记录下面的错误.有人有想法吗?

'----------------------------------------------------------------------

Application: MyApp.Windows.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: Microsoft.Practices.Unity.ResolutionFailedException
Stack:
   at Microsoft.Practices.Unity.UnityContainer.DoBuildUp(System.Type, System.Object, System.String, System.Collections.Generic.IEnumerable`1<Microsoft.Practices.Unity.ResolverOverride>)
   at Microsoft.Practices.Unity.UnityContainer.Resolve(System.Type, System.String, Microsoft.Practices.Unity.ResolverOverride[])
   at Microsoft.Practices.Unity.UnityContainerExtensions.Resolve[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](Microsoft.Practices.Unity.IUnityContainer, Microsoft.Practices.Unity.ResolverOverride[])
   at MyApp.Windows.IoC.Resolve[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]()
   at MyApp.Windows.Navigation.NavigationController.Navigate(System.String, System.Windows.Controls.UserControl)
   at MyApp.Windows.LoginWindow..ctor()
   at MyApp.Windows.App.OnStartup(System.Windows.StartupEventArgs)
   at System.Windows.Application.<.ctor>b__1(System.Object)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
   at System.Threading.ExecutionContext.runTryCode(System.Object)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode, CleanupCode, System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, …
Run Code Online (Sandbox Code Playgroud)

unity-container

4
推荐指数
1
解决办法
7837
查看次数

jQuery选择器:独占OR

我正在使用一组jQuery选择器在一些不同的页面上插入一些内容; 但是有些页面具有多个选择器,因此内容会在页面上多次插入.例如:

$('div.rColInnerL:first, div.box300.bdr.search:first, h2.blt13:first').before('<div>Hello World!</div>');
Run Code Online (Sandbox Code Playgroud)

是否可以在jQuery选择器中使用一种异或,说只应使用其中一个?非常感谢.

jquery jquery-selectors

2
推荐指数
1
解决办法
1982
查看次数

webgrind在wamp上

我刚刚安装了wamp,最新版本附带了webgrind,但我无法弄清楚它是如何工作的.它说

Select a cachegrind file above
Run Code Online (Sandbox Code Playgroud)

就这样.

php profiling wamp xdebug

15
推荐指数
2
解决办法
2万
查看次数

Slow SQL query: using the same table in two different joins causes query to become 10x slower!

Really hoping that some kind of performance whiz can explain to me why a single join is causing the query to become 10x slower. (Also, please don't laugh about the size of this query! I wanted to get out the whole catalog in my database to output with one query. I'm not sure if it would be faster to break it into smaller queries but that doesn't seem right.)

SELECT `c`.`categoryID`,
       `cl`.`name` AS `category_name`,
       `v`.*,
       TRUE AS `categoried`,
       GROUP_CONCAT(DISTINCT t_v.iso_3166_1_alpha_2) …
Run Code Online (Sandbox Code Playgroud)

mysql sql performance join

3
推荐指数
1
解决办法
3822
查看次数

输出中的Sweave语法高亮显示

有没有人设法在Sweave文档的输出中使用颜色语法突出显示?我已经能够通过在Sweave.sty文件中添加框等来自定义输出样式,如下所示:

\DefineVerbatimEnvironment{Sinput}{Verbatim}{fontseries=bc,frame=single}
\DefineVerbatimEnvironment{Soutput}{Verbatim}{frame=leftline}
\DefineVerbatimEnvironment{Scode}{Verbatim}{fontseries=bc}
Run Code Online (Sandbox Code Playgroud)

我可以让minted包在我的文档中对逐字代码块进行语法高亮,如下所示:

\begin{minted}{perl}
use Foo::Bar;
...
\end{minted}
Run Code Online (Sandbox Code Playgroud)

但我不知道如何将两者结合起来用于R输入部分.我尝试了以下方法:

\DefineVerbatimEnvironment{Sinput}{minted}{r}
\DefineVerbatimEnvironment{Scode}{minted}{r}
Run Code Online (Sandbox Code Playgroud)

有什么建议?

r syntax-highlighting sweave

5
推荐指数
3
解决办法
2559
查看次数