草庐IT

an_array

全部标签

windows - Xiki on Windows : 'xiki' not recognized as an internal or external command, 可运行程序或批处理文件

被所有美好和有前途的事物所激动screencasts,我按照指南安装了Xiki,总结为:下载/安装Ruby下载DevKit将DevKit提取到没有空格的(永久)目录,例如C:\Ruby200\devkit在该目录中打开命令窗口(shift-left-click,在此处打开命令窗口)并执行:rubydk.rb初始化rubydk.rb安装cd..gitclonegit://github.com/trogdoro/xiki.gitcdxikigem安装bundlerbundlerubyetc/command/copy_xiki_command_to.rbC:/Ruby200/bin/xiki

windows - Powershell 检索作业给出 "cannot index into null array error"

我正在尝试使用以下脚本测试两台PC是否已连接$array='PC1','PC2'for($i=0;$i-lt$array.length;$i++){Start-Job–NameTestConnection$i–Scriptblock{if(test-connection$array[$i]-count1-quiet){write-hostSuccess}else{write-hostNoconnection}}}当我尝试为任何一个执行Receive-Job时,我得到“无法索引到空数组”。我做错了什么? 最佳答案 您需要传入PC名称作

c# - Windows 服务错误 : "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

我有一个简单的Windows服务应用程序,我试图在VS2008IDE中调试,但每次运行代码时,我都会收到错误“尝试读取或写入protected内存。这通常表明其他内存已损坏。”.此错误发生在下面的service.Stop()行:staticclassProgram{//////Themainentrypointfortheapplication.///staticvoidMain(string[]args){ServiceBase[]servicesToRun;servicesToRun=newServiceBase[]{newService1()};if(Environment.Us

python - 焦糖 : 'pyrouge_set_rouge_path' is not recognized as an internal or external command

我有Windows7并使用Python2.7。我最近安装了ROUGE(用于Gisting评估的面向记忆的Understudy)以评估我的摘要。不幸的是,我的摘要是.txt格式,不适用于ROUGE。因此,我从pypi安装了pyrouge.在上面的同一个网站上,他们有安装步骤。我遵循了第一步,即使用pipinstall。下一步说:"AssumingaworkingROUGE-1.5.5.installation,tellpyrougetheROUGEpathwiththiscommand:pyrouge_set_rouge_path/absolute/path/to/ROUGE-1.5.5

windows - 在我的 for/f 循环中运行时所有命令出错 "not recognised as an internal or external command"

我有一个奇怪的问题,我希望有人能帮助我。我有一个批处理脚本,它使用FOR/F循环来读取文件并相应地设置变量。命令写法如下:FOR/F"skip=1tokens=1-3delims=,"%%Ain('type"C:\ReconfigureSettingsFile.csv"')do(commands)错误是:'type"C:\ReconfigureSettingsFile.csv"'isnotrecognizedasaninternalorexternalcommand,operableprogramorbatchfile.即使我运行这个也会发生:for/f"usebackqdelims=

java - Dockererized Kong 在 Windows 上给出 "An invalid response was received from the upstream server"

请帮助我,因为我在使用DockerizedKong从REST端点获取数据时收到“从上游服务器收到无效响应”错误。我尝试使用Kong访问的REST服务正在我的本地主机上运行。Kong请求添加API:curl-i-XPOST\--urlhttp://localhost:8001/apis/\--data'name=ping'\--data'upstream_url=http://localhost:8080/v1/employee/ping'\--data'hosts=localhost'通过Kong转发请求:curl-i-XGET\--urlhttp://localhost:8000/\

windows - 为什么运行 npm test 结果是 : '.' is not recognized as an internal or external command, 可运行程序或批处理文件。?

我安装了以下内容:Windows10Git庆典(mingw64)Node.jsv8.7.0npm版本5.4.2包:柴4.4.1Mocha3.5.0我有一个示例mocha测试,它在实际运行时总是会通过。我在shell中运行的命令:npmtest输出:./node_modules/mocha/bin/_mocha'.'isnotrecognizedasaninternalorexternalcommand,operableprogramorbatchfile.npmERR!Testfailed.Seeaboveformoredetails.出于某种原因,我能够直接运行此命令:./node_

c - DLL 函数未导出 : Unable to find an entry point named TestFunc

我正忙于了解一点点C/C++,并与C#互操作。我已经检查了几个创建简单的Win32DLL并从C#使用它的示例,但是当我尝试调用我的DLL时,我收到运行时错误:“无法找到名为TestFunc的入口点”。我的DLL看起来像这样,我从一个Win32DLL项目创建它,带有空项目选项:标题:__declspec(dllexport)intTestFunc(char*,char*,char*);代码文件:#include"stdafx.h"#include"TestLib.h"__declspec(dllexport)intTestFunc(char*arg1,char*arg2,char*arg

c++ - 跨进程 COM 编码(marshal)拆收器 : reduce number of copies for large arrays

作为简化的案例:我需要通过现有的COM接口(interface)将VARIANT传输到另一个进程。我目前使用MIDL生成的编码器。实际传输是针对许多值的,是时间关键过程的一部分,并且可能涉及大字符串或safearray(几MB),因此复制的数量似乎是相关的。由于接收方需要“保留”函数调用之外的数据,因此编码(marshal)拆收器至少需要制作一份拷贝。然而,我能想到的所有签名都包括两份:SetValue([in]VARIANT)GetValue([out]VARIANT*)//calledbyreceiver在这两种情况下,根据我的理解,编码器制作了一个跨进程拷贝,但确实被编码器销毁了

c# - 系统.UnauthorizedAccessException : Creating an instance of the COM component fails with error 80070005 (C#)

我在使用C#.NET命令行应用程序时遇到问题,其主要思想是使用COM对象从其他程序获取数据。当手动执行或作为Node.js服务器中的子进程运行时,它工作正常,但是当整个项目作为Windows服务安装时,C#应用程序响应以下错误:System.UnauthorizedAccessException:CreatinganinstanceoftheCOMcomponentwithCLSID{D64DB4A9-3B26-4D2B-B556-9DA433C54175}fromtheIClassFactoryfailedduetothefollowingerror:80070005Accessis