小编Mav*_*ick的帖子

Visual Studio 2010/2012 Git插件

我正在寻找与VS 2010/2012集成的git的建议,允许开发人员使用基本操作(提交,推送,拉动,切换分支,标记)

git visual-studio-2010 visual-studio-2012

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

从inner_html中删除评论

我有一些使用Nokogiri的代码,我试图得到inner_html没有得到评论.

html = Nokogiri::HTML(open(@sql_scripts_url[1])) #using first value of the array
html.css('td[class="ms-formbody"]').each do |node|
  puts node.inner_html # prints comments
end
Run Code Online (Sandbox Code Playgroud)

ruby nokogiri

9
推荐指数
1
解决办法
3032
查看次数

是否可以使用windows .msi安装多个node.js实例?

我尝试使用.MSI安装程序安装多个版本的node.js,但似乎第二个版本卸载了前一个版本.

node.js

9
推荐指数
1
解决办法
4390
查看次数

Powershell服务帐户密码更改登录失败

我正在尝试使用powershell脚本,允许我更改运行特定服务的用户帐户和密码.

$account="domain\account"
$password="password"

$svc=gwmi win32_service -filter "name='MyService'"
$svc.change($null,$null,$null,$null,$null,$false,$account,$password,$null,$null,$null)
Run Code Online (Sandbox Code Playgroud)

我可以检查帐户是否已更改,但是当我尝试从Service.msc GUI运行该服务时,它会因登录失败而失败.

如果我用来从脚本本身启动服务,我会收到以下错误.

$svc.StartService()



__GENUS          : 2
__CLASS          : __PARAMETERS
__SUPERCLASS     :
__DYNASTY        : __PARAMETERS
__RELPATH        :
__PROPERTY_COUNT : 1
__DERIVATION     : {}
__SERVER         :
__NAMESPACE      :
__PATH           :
ReturnValue      : 0
PSComputerName   :

__GENUS          : 2
__CLASS          : __PARAMETERS
__SUPERCLASS     :
__DYNASTY        : __PARAMETERS
__RELPATH        :
__PROPERTY_COUNT : 1
__DERIVATION     : {}
__SERVER         :
__NAMESPACE      :
__PATH           :
ReturnValue      : 15
PSComputerName   :
Run Code Online (Sandbox Code Playgroud)

根据微软的说法,这是一个登录错误:返回值15.

http://msdn.microsoft.com/en-us/library/windows/desktop/aa384901%28v=vs.85%29.aspx

我已经验证了密码数百万次,当我使用GUI复制并粘贴密码时,它才能正常工作.

可能是我在脚本中遗漏了一些东西.(SecurityPolicy在此计算机上不受限制)

powershell powershell-2.0

7
推荐指数
1
解决办法
6017
查看次数

在Ruby 2.0.0p353(基于rvm的安装)下安装Nokogiri 1.6.1失败(OSX Mavericks)?

我试图在Ruby和RVM下安装Nokogiri 1.6.1,但是失败了以下错误:

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

/Users/lmo0/.rvm/rubies/ruby-2.0.0-p353/bin/ruby extconf.rb 
Extracting libxml2-2.8.0.tar.gz into tmp/x86_64-apple-darwin13.0.0/ports/libxml2/2.8.0... OK
Running 'configure' for libxml2 2.8.0... OK
Running 'compile' for libxml2 2.8.0... OK
Running 'install' for libxml2 2.8.0... OK
Activating libxml2 2.8.0 (from /Users/lmo0/.rvm/gems/ruby-2.0.0-p353/gems/nokogiri-1.6.1/ports/x86_64-apple-darwin13.0.0/libxml2/2.8.0)...
Extracting libxslt-1.1.26.tar.gz into tmp/x86_64-apple-darwin13.0.0/ports/libxslt/1.1.26... OK
Running 'configure' for libxslt 1.1.26... ERROR, review 'tmp/x86_64-apple-darwin13.0.0/ports/libxslt/1.1.26/configure.log' to see what happened.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file …
Run Code Online (Sandbox Code Playgroud)

ruby nokogiri osx-mavericks

7
推荐指数
1
解决办法
3317
查看次数

Puppet Nodes.pp包含模块执行顺序

我正在尝试为某些节点设置某些模块的顺序.

node basenode{
 include ps
 include netfx
 include hg
 include reportviewer2012
 include wdeploy30
 include sqlexpress2008
 include windowsrolesfeatures
 include tcbase
}

node 'myserver' inherits basenode  {
 include tcuiagent

 Class['tcuiagent'] -> Class['tcbase'] -> Class['windowsrolesfeatures'] -> Class['ps']
}
Run Code Online (Sandbox Code Playgroud)

当然,我不想在模块资源中设置依赖项,因为这会使它们相互依赖,而我不想这样做.在这种情况下,我想完成这个订单.

  1. ps(第一个)
  2. windowsrolesfeatures
  3. anyotherpackage {hg,netfx ...}(不关心配置顺序)n.tcbase
  4. tcuigant(最后一个)

provisioning puppet

5
推荐指数
1
解决办法
5206
查看次数

静默安装适用于 Windows 的 Mercurial 模块

我正在尝试以静默方式安装以下软件包Mercurial-2.2.1.win-amd64-py2.6.exe以将其添加到我的 Puppet 清单中。

我已经尝试过 /s /q 但没有结果。

python puppet

5
推荐指数
1
解决办法
890
查看次数

phonegap使用HelloWorld应用程序构建ios异常

我正在尝试使用PhoneGap构建一个helloWorld应用程序,但它似乎试图找到两次.xcodeproj文件.

phonegap版本:3.3.0-0.18.0

cordova版本:3.3.1-0.1.2

$ phonegap build ios
[phonegap] detecting iOS SDK environment...
[phonegap] using the local environment
[phonegap] compiling iOS...
   [error] An error occurred while building the ios project.xcodebuild: error: 'HelloWorld.xcodeproj.xcodeproj' does not exist.
xcodebuild: error: 'HelloWorld.xcodeproj.xcodeproj' does not exist.
xcodebuild: error: 'HelloWorld.xcodeproj.xcodeproj' does not exist.
Run Code Online (Sandbox Code Playgroud)

当我从XCode IDE构建和运行时,它工作正常.

cordova xcode5 cordova-3

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

Mercurial和Git的变更集总数

是否可以使用带参数的简单命令行计算Mercurial/Git更改集的数量?

git mercurial

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