Tag: 码头为Windows

如何清除Windows Vista上的Visual Studiocaching?

我有一个问题,我的ASP.NET控件无法从代码背后的代码引用。 我发现堆栈溢出问题的解决schemeASP.NET控件无法在Visual Studio 2008中的代码隐藏中引用 。 但我似乎无法find我的Visual Studiocaching来清除它。 我在Windows Vista上使用Visual Studio 2005。

用于Windows的Ruby on Rails编辑器

我喜欢在家里的Mac上使用Textmate,但是在工作中很难find使用(windows)的东西。 什么是在Windows上使用Ruby on Rails的最佳编辑器,使您对Textmate的外观和感觉最亲密?

什么是node.js中的process.on('SIGINT')的Windows等价物?

我按照这里的指导(侦听SIGINT事件)正常closures我的Windows-8托pipe的node.js应用程序,以响应Ctrl-C或服务器closures。 但Windows没有SIGINT 。 我也尝试了process.on('exit') ,但是这似乎迟迟不能做任何事情。 在Windows上,这段代码给了我: 错误:没有这样的模块 process.on( 'SIGINT', function() { console.log( "\ngracefully shutting down from SIGINT (Crtl-C)" ) // wish this worked on Windows process.exit( ) }) 在Windows上,这个代码运行,但为时尚晚了, process.on( 'exit', function() { console.log( "never see this log message" ) }) Windows上有SIGINT等效事件吗?

Npm请尝试以root / administrator身份再次使用此命令

我一直拼命尝试使用node.js来安装模块,但是使用npm获取软件包总是失败。 我以pipe理员身份login,并使用“以pipe理员身份运行”的powershell / cmd。 我也有问题的registry,所以我用npm设置registryhttp://registry.npmjs.org/ 我尝试了所有的事情,这只是让我疯狂。 这里是错误: npm ERR! 请尝试以root / Administrator身份再次运行此命令。 npm ERR! System Windows_NT 6.2.9200 npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "generator-knockout" npm ERR! cwd D:\Sergiu\Knockout Test npm ERR! node -v v0.10.26 npm ERR! npm -v 1.4.3 npm ERR! path D:\Sergiu\Knockout Test\node_modules\generator-knockout\node_modules\yeoman-generator\node_modules\tar\node_modules\block-stream\block-stream.js npm ERR! fstream_path D:\Sergiu\Knockout Test\node_modules\generator-knockout\node_modules\yeoman-generator\node_modules\tar\node_modules\block-stream\block-stream.js npm ERR! fstream_type File […]

从http://mirrors.kernel.org安装cygwin:setup.ini

我试图在Windows 2008服务器上安装cygwin。 我设法得到了cygwin setup.exe版本2.721。 由于cygwin.com目前处于closures状态,因此我尝试了几个通过cygwin镜像的googlecaching发现的镜像。 我遇到了像这样的人一样的问题: 帮助需要安装cygwin:可能是ini文件的问题 就像他们build议的那样,我尝试了http://mirrors.kernel.org作为镜像。 它可以很好地下载一些setup.bz文件。 然后,我收到错误“无法从http://mirrors.kernel.org/获取setup.ini”。 任何build议如何安装cygwin现在?

使用Windows服务和c#检测USB驱动器插入和删除

考虑制作USB分布式应用程序的可能性 将自动启动插入USB棒和closures时删除棒 将使用.Net和C#。 寻找build议如何处理这个使用C#? 更新:两个可能的解决scheme实现这个服务。 – 重写WndProc 要么 – 使用ManagementEventWatcher的WMI查询

问题调用std :: max

我编译我的野牛生成的文件在Visual Studio中,并得到这些错误: … \ position.hh(83):error C2589:'(':'::'右侧的非法令牌 … \ position.hh(83):错误C2059:语法错误:'::' … \ position.hh(83):error C2589:'(':'::'右侧的非法令牌 … \ position.hh(83):错误C2059:语法错误:'::' 相应的代码是: inline void columns (int count = 1) { column = std::max (1u, column + count); } 我认为这个问题是与std :: max; 如果我将std :: max更改为等效代码,那么就没有问题了,但有没有更好的解决scheme而不是更改生成的代码? 这里是我写的野牛档案: // // bison.yy // %skeleton "lalr1.cc" %require "2.4.2" %defines %define parser_class_name "cmd_parser" %locations %debug %error-verbose […]

从batch file中redirect输出

我正在用一些简单的命令创build一个batch file,以从系统中收集信息,这个batch file包含获取时间的命令,IP信息,用户等等。我把所有的命令汇编在一个batch file中,运行,但我想batch file,当运行输出结果到一个文本文件(日志),是否有一个命令,我可以添加到批处理,这样做。 请记住,我不想从cmd运行批处理,然后redirect输出,我想redirect从批处理内输出,如果这是可能的。

将ERRORLEVEL重置为零的最简单方法是什么?

我有一个生成后事件,为ac#项目运行一些命令。 最后一个命令有时会导致ERRORLEVEL值不等于零,然后构build失败。 我想追加一个额外的命令行来始终将ERRORLEVEL值设置为零。 什么是最方便的方法呢?

Mysysgit“(END)”显示,我该如何处理?

在Windows下使用mysysgit时,我不知道如何在运行git log in Git Bash后重新获得控制台窗口的控制权。 这似乎很简单,但我找不到组合键或命令,所以我发现自己不得不closures控制台窗口并重新启动Git Bash的一个新实例来与git进行交互。 我需要退出日志查看器的关键组合和/或命令是什么?