Brew在我的终端上放了一个小啤酒的照片?!?!
它是如何做到的?我甚至没有.但我需要知道,因为我未来的所有命令行应用程序也必须在其输出中放入微小的图片.
oc login使用OpenShift PaaS时,我为工具中的服务器URL提供了什么?
我正在尝试将我的OpenShift Online v2应用程序迁移到v3,遵循从OpenShift迁移中心链接到的PHP应用程序的说明.那个页面说要按照模式运行一些东西oc new-app https://github.com/<github-id>/<repo-name>.git --name=<app-name> -e <ENV_VAR_NAME>=<env_var_value>.在追踪到oc的下载(这不容易)后,我尝试用我的repo URL*运行该命令; 这导致:
$ oc new-app https://USERNAME@bitbucket.org/USERNAME/PROJECTNAME.git --name=PROJECTNAME
error: Missing or incomplete configuration info. Please login or point to an existing, complete config file:
1. Via the command-line flag --config
2. Via the KUBECONFIG environment variable
3. In your home directory as ~/.kube/config
To view or setup config directly use the 'config' command.
Run Code Online (Sandbox Code Playgroud)
不知道什么样的子命令oc config使用,我搜查,发现获得有关CLI开始,这表示使用oc login启动配置过程.但当我运行时,我得到:
Server [https://localhost:8443]:
Run Code Online (Sandbox Code Playgroud)
在使用OpenShift …
当我尝试使用以下方法在Snow Leopard上安装Ruby 1.9.2时:
rvm install 1.9.2
Run Code Online (Sandbox Code Playgroud)
我得到以下内容:
ERROR: Error running 'make ', please read /Users/mary/.rvm/log/ruby-1.9.2-p180/make.log
ERROR: There has been an error while running make. Halting the installation.
Run Code Online (Sandbox Code Playgroud)
所以,我查看make.log.它的结尾是:
readline.c: In function ‘username_completion_proc_call’:
readline.c:1386: error: ‘username_completion_function’ undeclared (first use in this
function)
readline.c:1386: error: (Each undeclared identifier is reported only once
readline.c:1386: error: for each function it appears in.)
make[1]: *** [readline.o] Error 1
make: *** [mkmain.sh] Error 1
Run Code Online (Sandbox Code Playgroud)
我已经咨询了这个问题的其他答案,并做了一切建议:
我的.bash_profile的结尾添加了以下行:
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
Run Code Online (Sandbox Code Playgroud)我尝试更新readline,但无论如何,我继续收到有关运行'make'的错误消息.
rvm …
在Emacs中,我正在处理一个混合了两种语言的文件.
问题1:是否有一种简单的方法来编写一个结合了两种主要模式的主模式文件?
细节:
该语言称为"brew"(不是"Binary Runtime Environment for Wireless"的"BREW").
brew由R和Latex语言组成,其模式为R模式和乳胶模式.
R代码出现在标签<%和%>之间.其他一切都是乳胶.
如何编写brew-mode.el文件?(或者已经有一个?)
我从这篇文章中得到的一个想法是使用Latex模式,并将表单<%...%>的代码视为注释.
我正在尝试使用Capybara和CSS选择器定义测试图像替代文本值的步骤.
我根据自述文件示例为输入值写了一个:
Then /^I should see a value of "([^\"]*)" within the "([^\"]*)" input$/ do |input_value, input_id|
element_value = locate("input##{input_id}").value
element_value.should == input_value
end
Run Code Online (Sandbox Code Playgroud)
但是我无法想出这一个...类似于:
Then /^I should see the alttext "([^\"]*)"$/ do | alt_text |
element_value = locate("img[alt]").value
end
Run Code Online (Sandbox Code Playgroud)
任何人都知道如何找到alt文本值?
我正在尝试在 Ubuntu 上用 Objective C 编译程序,我已经安装了 GNUstep,设置了所有GNUSTEP_*环境变量,并安装了 clang,因为我读到 gcc 无法编译带有块的 Objective-C 代码(Objective-C 'anonymous ' 函数,只是要清楚:) ^ { }。
当我运行这个命令时我得到了什么:
clang hello.m -o hello
是:
hello.m:1:9: fatal error: 'Foundation/Foundation.h' file not found
#import <Foundation/Foundation.h>
^
1 error generated.
Run Code Online (Sandbox Code Playgroud)
我也试过这个:
clang -L '/usr/include/GNUstep/Foundation/Foundation.h' hello.m -o hello
/usr/include/...我的系统上Foundation.h文件的路径在哪里;但我仍然得到相同的结果。
如何自动链接这些头文件并编译 Objective-C?
谢谢!
我正在尝试在64位PC上使用64位版本的Windows,Ruby 2.0.0和DevKit在Windows 7上使用Nokogiri.我刚安装从XML2/XSLT /的iconv/zlib的库ftp://ftp.zlatkovic.com/libxml/64bit/和感动include/libxml2/libxml到include/libxml; 我想我可以调整一下--with-xml2-include),然后安装Nokogiri.它似乎构建了本机扩展很好.
当我试图要求Nokogiri时,我得到:
C:/Users/echristopherson/Development/Ruby/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
`require':LoadError: 126: The specified module could not be found. -
C:/Users/echristopherson/Development/Ruby/lib/ruby/gems/2.0.0/gems/nokogiri-1.5.9/lib/nokogiri/nokogiri.so
Run Code Online (Sandbox Code Playgroud)
当我检查文件类型时:
file C:/Users/echristopherson/Development/Ruby/lib/ruby/gems/2.0.0/gems/nokogiri-1.5.9/lib/nokogiri/nokogiri.so
Run Code Online (Sandbox Code Playgroud)
它输出:
PE32+ executable for MS Windows (DLL) (console) Mono /.Net assembly.
Run Code Online (Sandbox Code Playgroud)
我究竟做错了什么?我得到了相同的结果gem install --pre nokogiri ....
我用来检查项目差异的命令是
git diff | vimdiff -
Run Code Online (Sandbox Code Playgroud)
有没有办法可以在没有现有Vim的情况下刷新diff文件并重复上一个命令?
我最近package-list-packages在Emacs中更新了SLIME .但是,当我尝试使用它时M-x slime,我得到这个:
(progn (load "/home/koz/.emacs.d/elpa/slime-20140913.730/swank-loader.lisp" :verbose t) (funcall (read-from-string "swank-loader:init")) (funcall (read-from-string "swank:start-server") "/tmp/slime.3081"))
*
; loading #P"/home/koz/.emacs.d/elpa/slime-20140913.730/swank-loader.lisp"
;;
;; Error while compiling /home/koz/.emacs.d/elpa/slime-20140913.730/swank/backend.lisp:
;; Failed to find the TRUENAME of /home/koz/.emacs.d/elpa/slime-20140913.730/swank/backend.lisp:
;; No such file or directory
;; Aborting.
;; *
Run Code Online (Sandbox Code Playgroud)
之后我仍然有一个REPL,但我认为这很奇怪,我想知道发生了什么以及为什么.
我试图用Commodore BASIC中的"."填充A $(X,X).
这就是我到目前为止所拥有的......但我不确定如何处理ASCII值等等.任何评论?
INPUT A$
FOR I = 0 TO X = DIM A$(X,X)
A$(".",x)
Run Code Online (Sandbox Code Playgroud)
我仍然对PET BASIC的API感到非常困惑......任何建议都会非常感激.
在vbscript中,通常使用浏览器(IE)作为GUI.请参阅下面的示例,它要求输入名称并将其返回给脚本.在Ruby中你有一些像Tcl和Shoes这样的GUI,但我想知道如何在浏览器中这样做.什么是最简单的Ruby解决方案?所以没有exta gems或package,没有已经运行的服务器..如果需要gem,最好是在Windows中运行而没有问题.
这里是vbscript示例
Set web = CreateObject("InternetExplorer.Application")
If web Is Nothing Then
msgbox("Error while loading Internet Explorer")
Wscript.Quit
Else
with web
.Width = 300
.Height = 175
.Offline = True
.AddressBar = False
.MenuBar = False
.StatusBar = False
.Silent = True
.ToolBar = False
.Navigate "about:blank"
.Visible = True
end with
End If
'Wait for the browser to navigate to nowhere
Do While web.Busy
Wscript.Sleep 100
Loop
'Wait for a good reference to the browser document
Set doc = …Run Code Online (Sandbox Code Playgroud) 这里有时间复杂性问题:
for i = 1 to n
if something
p = p*c
c = c*c
Run Code Online (Sandbox Code Playgroud)
对于第1行,时间复杂度应为n,但第3行和第4行呢?是n ^ 2?还是n ^ n?
ruby ×3
emacs ×2
algorithm ×1
arrays ×1
basic ×1
big-o ×1
capybara ×1
clang ×1
commodore ×1
common-lisp ×1
compilation ×1
console ×1
cucumber ×1
diff ×1
dot-emacs ×1
fonts ×1
git ×1
git-diff ×1
gnustep ×1
homebrew ×1
latex ×1
nokogiri ×1
objective-c ×1
openshift ×1
printing ×1
r ×1
rvm ×1
sbcl ×1
slime ×1
testing ×1
vbscript ×1
vim ×1
webrat ×1