草庐IT

coffee-script-source

全部标签

windows - 在 Windows : Entrypoint script "no such file or directory" 上构建 Docker 镜像

我在这上面浪费了两天,直到我终于弄清楚我的问题,所以我想我应该分享一下。我将概述我在这里遇到的问题,然后在答案中概述解决方案。我的Dockerfile看起来像这样,FROMphp:7.2-fpmCOPYcustom-docker-php-entrypoint/usr/local/bin/ENTRYPOINT["custom-docker-php-entrypoint"]我在同一目录中有一个文件custom-docker-php-entrypont。#!/bin/shset-e#firstargis`-f`or`--some-option`if["${1#-}"!="$1"];thens

ruby-on-rails - Windows : 'script' is not recognized as an internal or external command 上的脚本/生成

每当我尝试使用Railsscript/generate或script/install命令时,我都会遇到这种错误:C:\workspace>script/generatebigcommand'script'isnotrecognizedasaninternalorexternalcommand,operableprogramorbatchfile.知道为什么吗? 最佳答案 在Windows上,您可能需要像这样调用它:“rubyscript\generate...” 关于ruby-on-ra

c# - "The description for Event ID X in Source Y cannot be found."

我正在尝试将我的Web应用程序中的自定义事件写入Windows事件日志。我一直没有让消息字符串正常工作,我不断收到“找不到源Y中事件IDX的描述。”为了缩小范围,我决定将一个事件写到我的机器上已经存在的源中。我刚刚查看了其中一个已写出的事件,特别是SceCli事件1704。我执行以下代码:varlog=newEventLog("Application");log.Source="SceCli";varev=newEventInstance(1704,0,EventLogEntryType.Information);log.WriteEvent(ev);但是,这仍然在事件查看器中为我提供

python - 测量命令 : measure python script execution time

我发现我可以用这个命令测量Windows上的执行时间:Measure-Command{start-processpython.\script.py-Wait}而且效果很好。不幸的是,当我尝试运行一个带有一些(位置和可选)参数的脚本时,我收到一条错误消息,带有Measure-Command{start-processpython.\script.pyfile.txt100-Wait}我得到错误:Start-Process:Apositionalparametercannotbefoundthatacceptsargument'file.txt'.没有Measure-Command一切正常

windows - 这个 "Can' t open perl script : No such file or directory"是什么原因

如果我在cygwin(在windowsxp平台上)中运行此命令perl/cygdrive/c/Sagar/New_ISP/isp_fw_11_24_Test_V1/Scripts/windows_test_report_tool/testdbmerge.pl我收到这个错误:Can'topenperlscript"/cygdrive/c/Sagar/New_ISP/isp_fw_11_24_Test_V1/Scripts/windows_test_report_tool/testdbmerge.pl":Nosuchfileordirectory.这是为什么?

node.js - Windows 上的 Node 错误 : "Source Path Too Long"

解释:node_modules中大约有15个子文件夹目录。当要执行任何操作(删除、移动或重命名)时,它会在消息下方弹出。错误信息:Thesourcefilename(s)arelargerthanissupportedbythefilesystem.Trymovingtoalocationwhichhasashorterpathname,ortryrenamingtoshortername(s)beforeattemptingthisoperation.截图:内的子文件夹npm_modules目录。node_modules\gulp-connect\node_modules\gulp-

php - Apache mod_rewrite : RewriteMap directive using PHP script on Windows machine

这让我抓狂。我似乎无法让RewriteMap指令在Windows上为php脚本工作。这是我的httpd.conf文件中的相关片段:RewriteEngineonRewriteMaprouter"prg:C:/dev/web/www/routing.php"RewriteRule(.*)${router:$1}我的简单php脚本如下所示:#!C:\ProgramFiles\PHP5.3.2\php-win.exe当我尝试启动Apache时,我在错误日志中收到以下行:[error](OS193)%1isnotavalidWin32application.:mod_rewrite:could

windows - 通过 Windows Script Host 使用 UTF-8 编码运行 JScript 或 VBScript 文件时出现问题

我不确定我是否做错了什么,但如果我将它保存在.js中,我似乎无法通过WindowsScriptHost运行以下JScript使用UTF-8编码的文件:varname="Helloworld!";WScript.echo(name);当我运行它时,它给我这个错误:请注意,如果我使用ANSI编码保存脚本,脚本运行良好。WindowsScriptHost引擎是否与UTF-8编码不兼容? 最佳答案 VBScript和JScript的可能源文件编码是ANSI或UTF-16(LE)。不能使用UTF-8。

windows - 电源外壳 : ftp directory listing (help on a script)

我正在尝试创建ftp目录的ListView。到目前为止,查看部分还可以,但我无法操作我返回的数据。这是我使用的脚本;[System.Net.FtpWebRequest]$ftp=[System.Net.WebRequest]::Create("ftp://ftp.microsoft.com/ResKit/y2kfix/alpha/")$ftp.Method=[System.Net.WebRequestMethods+FTP]::ListDirectory#Details$response=$ftp.getresponse()$stream=$response.getresponsest

android - "Your APP_BUILD_SCRIPT points to an unknown file: ./jni/Android.mk"

我搜索了整个网络(我认为)。和它说的我试过但仍然没有运气不工作。我在cygwin和windows下测试它这是我的项目文件/目录:D:\Java_2\workspace_indigo\JniTest\.classpathD:\Java_2\workspace_indigo\JniTest\.projectD:\Java_2\workspace_indigo\JniTest\AndroidManifest.xmlD:\Java_2\workspace_indigo\JniTest\assetsD:\Java_2\workspace_indigo\JniTest\binD:\Java_2\w