我正在使用z Shell(zsh)而不是默认的bash,并且发生了错误,以至于不再识别以前工作的所有命令:
ls
zsh: command not found: ls
open -e .zshrc
zsh: correct 'open' to '_open' [nyae]?
Run Code Online (Sandbox Code Playgroud)
我不知道如何重置zsh或如何解决这个问题.这是$PATH变量的内容:
echo $PATH
/Users/Malloc/bin/Sencha/Cmd/3.1.2.342:/usr/local/bin/mate
Run Code Online (Sandbox Code Playgroud)
我无法打开.bash_profile文件或.zshrc文件,似乎唯一的解决方法是重置zsh.有任何想法吗?
编辑:
我甚至试图zsh按照此线程中的指示进行重置,但总是command not found出错:
exec zsh
zsh: command not found: zsh
Run Code Online (Sandbox Code Playgroud)
发生什么了?为什么所有命令都丢失了?
当试图用jQuery显示div元素时,我收到此错误:
[23:50:35.971] TypeError: p.easing[this.easing] is not a function @ file:///D:/html5%20puzzle/jquery.js:2
Run Code Online (Sandbox Code Playgroud)
相关功能是这样的:
function showWithAnimation(){
console.log('animation called');
$('#popup').show();
$("#popup").css({"top": "30%", "left": "30%"})
.animate({top:(($(window).height()/2)-($('#popup')
.outerHeight()/2))-70}, 1000, 'easeOutBounce')
.show();
}
Run Code Online (Sandbox Code Playgroud)
该函数负责显示带有反弹动画的div,但是,div显示但没有反弹效果.
编辑:
我从这样的CDN中包含jQuery和jQueryUI库(按顺序):
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'></script>
<script src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/jquery-ui.min.js'>
</script>
Run Code Online (Sandbox Code Playgroud) 当我尝试将我的分支与远程分支合并时:
git merge feature/remote_branch
Run Code Online (Sandbox Code Playgroud)
我收到了这条消息:
E325: ATTENTION
Found a swap file by the name ".git/.MERGE_MSG.swp"
owned by: xxxxxx dated: Mon Nov 12 23:17:40 2012
file name: ~xxxxxx/Desktop/My-ios-App/.git/MERGE_MSG
modified: YES
user name: xxxxxx host name: unknown-b8-8d-12-22-27-72.lan
process ID: 1639
While opening file ".git/MERGE_MSG"
dated: Tue Nov 13 14:06:48 2012
NEWER than swap file!
(1) Another program may be editing the same file.
If this is the case, be careful not to end up with two
different instances of the same file …Run Code Online (Sandbox Code Playgroud) 我正在运行一个从txt文件读取流的项目,因此在CLI中,我写道:
cat texte.txt|php index.php
Run Code Online (Sandbox Code Playgroud)
在我的index.php文件中,我读了流:
$handle = fopen ("php://stdin","r");
Run Code Online (Sandbox Code Playgroud)
现在我有一个$result包含我的处理文件的结果,我想输出它STDOUT,我看了手册,但我不知道如何使用它,你能不能请我使用一个例子.
我在viewDidLoad方法中设置页脚视图:
UIView *fView = [[UIView alloc] initWithFrame:CGRectMake(0, 718, 239, 50)];
fView.backgroundColor =[UIColor yellowColor];
self.table.tableFooterView = fView;
Run Code Online (Sandbox Code Playgroud)
不幸的是,页脚没有在(x,y)上面指定的指定中绘制,但是它坚持使用单元格,因此如果表格视图有4个单元格,则页脚将在第5个单元格中绘制.
我甚至尝试过协议方法, tableView:viewForFooterInSection
- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section{
UIView *fView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 239, 50)];
fView.backgroundColor =[UIColor yellowColor];
return fView;
}
Run Code Online (Sandbox Code Playgroud)
问题没有解决,我确定tableFooterView属性应该在表视图底部的页脚视图但我不确定我可能在这里缺少什么?Thanx提前.
我一直在分支机构工作.我承诺并将其推送到远程存储库.现在,该分支上的一些文件丢失了.希望他们仍然可以在远程分支上使用,所以我试着这样做git pull:
git pull origin feature/my_branch
Run Code Online (Sandbox Code Playgroud)
但是,git说所有都与远程同步:
* branch feature/my_branch -> FETCH_HEAD
Already up-to-date.
Run Code Online (Sandbox Code Playgroud)
这怎么可能是最新的?我在本地找不到我丢失的文件,因为那些丢失的文件,我的项目没有编译.同样,我可以在bitbucket上的远程分支的提交历史中看到这些文件.
我试图在Windows上克隆一个远程存储库,所以当我这样做时:
git clone git@github.com:organization/xxx.git
Run Code Online (Sandbox Code Playgroud)
我收到了这个错误:
error: cannot run ssh: No such file or directory
fatal: unable to fork
Run Code Online (Sandbox Code Playgroud)
我错过了什么吗?Thanx提前.
我正在使用AFJSONRequestOperation请求服务器并解析返回的JSON响应,但在解析时,我收到此错误:
NSDebugDescription = "JSON text did not start with array or object and option to allow fragments not set.";
Run Code Online (Sandbox Code Playgroud)
我检查了API,它返回了JSON数据:
header('Content-type: text/json');
$arr[] = array("Message" => "update succeeded");
echo '{"Result":'.json_encode($arr).'}';
Run Code Online (Sandbox Code Playgroud)
知道怎么解决这个问题吗?
编辑
我试图从浏览器调用API并在URL中包含请求,因此我得到了一个有效的JSON响应:
{"Result":[{"Message":"update succeeded"}]}
Run Code Online (Sandbox Code Playgroud) 当我尝试向导航栏添加按钮时,我收到了此警告:
unsupported configuration plain style unsupported in a navigation item
Run Code Online (Sandbox Code Playgroud)
关于Plain样式,我在界面构建器中找不到它,因为我转移到了Xcode4.2.
编辑:@Michael:这是Xcode对我来说的样子:

我左边没有箭头,那里有没有遗漏的东西?
以下线程(以及许多类似的)都没有帮助我:
在尝试通过cocoapods在我的iOS项目中安装Facebook SDK时,我遇到了这个错误:
里面的FBSDKCoreKit.h标题:
Include of non-modular header inside framework module 'FBSDKCoreKit.FBSDKCoreKit'
Run Code Online (Sandbox Code Playgroud)
正如我所说,我尝试了上述答案中提出的解决方案,但没有取得任何成功.
重要的是要提到这种用法在Xcode 7上正常工作.
git ×3
ios ×2
php ×2
afnetworking ×1
command-line ×1
git-flow ×1
github ×1
html ×1
javascript ×1
jquery ×1
osx-lion ×1
shell ×1
uitableview ×1
windows ×1
xcode4.2 ×1
xcode8 ×1
zsh ×1