小编Tra*_*vis的帖子

gitx如何将我的'Detached HEAD'提交回master

使用Git X并且必须在某些事情上做到失败.看起来就像几天前我创建了一个名为的分支detached HEAD并且一直致力于它.我的正常过程是承诺master,然后推动它origin.但我无法推动detached HEAD.

我的下一站让我搞砸了.我选择了git checkout master- 我的detached HEAD分支消失了.回到我的项目,过去几天我的所有变化都被抹去了.

无论如何我有可能得到这些改变吗?

git version-control

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

为什么Svn试图访问我的错误目录中的Format文件?

目前,我们拥有多个项目的存储库.我正在重组这个,所以我们每个项目都可以拥有一个SVN存储库.

我一直在关注http://www.yolinux.com/TUTORIALS/SubversionRepositoryDataTransfer.html,但是遇到了问题.

在新的存储库中,我添加了trunk,branches和tags目录.我尝试将文件从根目录移到trunk目录中.我能够成功添加这些文件夹.问题是当我尝试将文件移动到trunk目录时.特别是将文件添加到./trunk级别似乎最失败:

Commit failed (details follow):
Could not open the requested SVN filesystem
Could not open the requested SVN filesystem
Run Code Online (Sandbox Code Playgroud)

看看我的apache日志,我在错误文件中看到了这个:

[Fri Aug 10 18:30:00 2012] [error] [client 173.0.0.1] (20014)Internal error: Can't open file '/var/www/vhosts/site.com/subdomains/repo/error_docs/format': No such file or directory
[Fri Aug 10 18:30:00 2012] [error] [client 173.0.0.1] Could not fetch resource information.  [500, #0]
[Fri Aug 10 18:30:00 2012] [error] [client 173.0.0.1] Could not open the requested SVN filesystem  [500, #2]
[Fri Aug 10 18:30:00 2012] …
Run Code Online (Sandbox Code Playgroud)

svn

8
推荐指数
1
解决办法
6573
查看次数

KeyChain Security命令行工具使用find-internet-passwords但不能使用find-generic-passwords

研究如何使用KeyChain的命令行工具.我能够通过安全做很多事情; 列出我的多个钥匙串,转储它们并设置默认值.阅读教程和其他帖子我希望找到我的密码

security find-generic-password test

但我明白了

security:SecKeychainSearchCopyNext:在钥匙串中找不到指定的项目.

这不适用于我的默认钥匙串或login.keychain.但是,我可以使用find-internet-password命令找到列为"internet"的密码.谁能解释为什么或我做错了什么?我一直在阅读的网站是手册页和http://blog.macromates.com/2006/keychain-access-from-shell/,

macos command-line keychain

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

无法启动webbrick - TCPServer错误:地址已在使用中

我收到以下错误:

$rails server --binding=127.0.0.1
=> Booting WEBrick
=> Rails 3.1.1 application starting in development on http://127.0.0.1:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2012-04-04 13:02:35] INFO  WEBrick 1.3.1
[2012-04-04 13:02:35] INFO  ruby 1.9.2 (2011-07-09) [x86_64-darwin10.8.0]
[2012-04-04 13:02:35] WARN  TCPServer Error: Address already in use - bind(2)
Exiting
/Users/TravisKs/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/utils.rb:73:in `initialize': Address already in use - bind(2) (Errno::EADDRINUSE)
from /Users/TravisKs/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/utils.rb:73:in `new'
from /Users/TravisKs/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/utils.rb:73:in `block in create_listeners'
from /Users/TravisKs/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/utils.rb:70:in `each'
from /Users/TravisKs/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/utils.rb:70:in `create_listeners'
from /Users/TravisKs/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/server.rb:74:in `listen'
from /Users/TravisKs/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/server.rb:62:in `initialize' …
Run Code Online (Sandbox Code Playgroud)

ruby-on-rails-3

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

在使用JQuery加载JSON后,我得到一个而不是多个条目

我已经构建了一些JSON

{
    "News": {
         "Article": {"title": "test"},
         "Article": { "title": "test" },
         /*Snipped*/
         "Article": { "title": "test" },
         "Article": { "title": "test" }
    },
    "count": "20"
}
Run Code Online (Sandbox Code Playgroud)

它在JSON格式化程序中验证.但是当我尝试通过jQuery摄取这些数据时,我得不到预期的结果:

$.getJSON('php/json.php', function(data) {
  console.log(data);
});
Run Code Online (Sandbox Code Playgroud)

结果:

News: Object
Article: Object
title: "test"
__proto__: Object
__proto__: Object
count: "20"
Run Code Online (Sandbox Code Playgroud)

但是我的其他19篇文章对象在哪里?我是JSON和jQuery的新手getJSON.有什么我想念的吗?

jquery json getjson

0
推荐指数
1
解决办法
173
查看次数