当我开始使用rails时:
$ rails s
Run Code Online (Sandbox Code Playgroud)
我明白了:
/Users/snowcrash/.rvm/gems/ruby-2.1.5@global/gems/bundler-1.3.5/lib/bundler/spec_set.rb:92:in `block in materialize': Could not find rake-10.4.2 in any of the sources (Bundler::GemNotFound)
Run Code Online (Sandbox Code Playgroud)
所以,我跑了bundle install:
$ bundle install
Using rake 10.4.2
Run Code Online (Sandbox Code Playgroud)
但gem list rake给出:
*** LOCAL GEMS ***
rake (10.1.0, 10.0.4)
Run Code Online (Sandbox Code Playgroud)
怎么没有rake 10.4.2安装?
此外,当我运行bundle check它给我:
The Gemfile's dependencies are satisfied
Run Code Online (Sandbox Code Playgroud)
这似乎不正确.为什么?
====更新
我通过以下方式修复了问题rake:
gem install rake
Run Code Online (Sandbox Code Playgroud)
但为什么我必须手动安装它?我以为那是Bundler的工作.
并尝试再次启动rails给了我另一个问题:
Could not find multi_json-1.10.1 in any of the sources (Bundler::GemNotFound)
Run Code Online (Sandbox Code Playgroud)
显然,这里存在一些潜在的问题.有什么建议?
我在Jenkins中为bitbucket设置了一些凭据,并仔细检查了Credentials设置(例如手动登录)但是当我在Jenkins中尝试它时,它只是旋转永远给出这个输出:
> git config remote.origin.url <bitbucket url> # timeout=10
Fetching upstream changes from <bitbucket url>
> git --version # timeout=10
using GIT_ASKPASS to set credentials <bitbucket account email> Bitbucket
> git fetch --tags --progress <bitbucket url> +refs/heads/*:refs/remotes/origin/*
> git fetch --tags --progress <bitbucket url> +refs/heads/*:refs/remotes/origin/*
Run Code Online (Sandbox Code Playgroud)
请注意,公开时URL很好.但是当设置为Private时,它只是失败而没有输出.
反正有没有更详细的调试呢?
为什么git log不简单地记录所有最新的提交?
这意味着什么?
--all
Pretend as if all the refs in refs/ are listed on the command line as <commit>.
Run Code Online (Sandbox Code Playgroud)
我假设,一旦翻译成简单的英语,它意味着显示所有最新的提交.
有人可以澄清一下.
查看avconv网站,似乎有大量的视频转换选项.
但是,我迷失在所有技术细节中.
有没有一种简单的方法将.mov转换为.mp4(或h264)?
如果它有点有损,我很高兴.
如果它有助于我使用Ubuntu 12.04.2 LTS.
我只是试图检查我的主分支并遇到:
error: Untracked working tree file 'app.xcodeproj/project.xcworkspace/xcuserdata/u.xcuserdatad/UserInterfaceState.xcuserstate' would be overwritten by merge.
Run Code Online (Sandbox Code Playgroud)
所以,我试图从git中删除这个文件(我已经在.gitignore中添加了一个表达式来捕获它):
git rm --cached app.xcodeproj/project.xcworkspace/xcuserdata/u.xcuserdatad/UserInterfaceState.xcuserstate
Run Code Online (Sandbox Code Playgroud)
得到了:
fatal: pathspec 'app.xcodeproj/project.xcworkspace/xcuserdata/u.xcuserdatad/UserInterfaceState.xcuserstate' did not match any files
Run Code Online (Sandbox Code Playgroud)
所以,有点亏.根据我的理解,工作文件不是问题.但是,为了完整性,确实存在工作文件.例如
ls -l app.xcodeproj/project.xcworkspace/xcuserdata/u.xcuserdatad/UserInterfaceState.xcuserstate
-rw-r--r-- 1 u u 56061 24 Sep 12:42 app.xcodeproj/project.xcworkspace/xcuserdata/u.xcuserdatad/UserInterfaceState.xcuserstate
Run Code Online (Sandbox Code Playgroud) 这个AWS角色究竟做了什么?
最相关的比特似乎是:
"Action": "sts:AssumeRole",和
"Service": "ec2.amazonaws.com"
完整的角色在这里:
resource "aws_iam_role" "test_role" {
name = "test_role"
assume_role_policy = <<EOF
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "sts:AssumeRole",
"Principal": {
"Service": "ec2.amazonaws.com"
},
"Effect": "Allow",
"Sid": ""
}
]
}
EOF
}
Run Code Online (Sandbox Code Playgroud)
来自:https://www.terraform.io/docs/providers/aws/r/iam_role.html
我的 Ansible 剧本中有一个 Ansible Collections,如下所示:
- name: Create a profile for the user
community.windows.win_user_profile:
username: test
name: test
state: present
Run Code Online (Sandbox Code Playgroud)
该集合是通过安装的
ansible-galaxy collection install ansible.windows
Run Code Online (Sandbox Code Playgroud)
所以我可以在 ~/.ansible/collections 中看到它。
然而我不断得到:
ERROR! couldn't resolve module/action 'community.windows.win_user_profile'. This often indicates a misspelling, missing collection, or incorrect module path.
Run Code Online (Sandbox Code Playgroud)
我还将它与剧本一起复制,以防万一,但仍然收到相同的错误消息。
有什么建议么?
为什么proc和lambda为arity返回不同的值?
例如
proc { |x = 0| }.arity #=> 0
lambda { |a = 0| }.arity #=> -1
proc { |x=0, y| }.arity #=> 1
lambda { |x=0, y| }.arity #=> -2
Run Code Online (Sandbox Code Playgroud)
我跑的时候
$ gem install cocoapods
Run Code Online (Sandbox Code Playgroud)
我明白了
Fetching: i18n-0.7.0.gem (100%)
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
Run Code Online (Sandbox Code Playgroud)
我已经阅读了这篇文章cocoaPods pod安装权限被拒绝
但是答案没有说明是否正确运行sudo你gem install(尽管在问题中被问到 - 即sudo安装cocoaPods是错误的方式还是正常方式?).
我正在尝试以安全模式启动MySQL,但日志文件只是继续吐出:
[ERROR] InnoDB: Unable to lock ./ibdata1 error: 35
[Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
Run Code Online (Sandbox Code Playgroud)
笔记:
我已经停止了所有mysql进程并使用该ps命令进行了检查