小编sha*_*n98的帖子

权限被拒绝(公钥)/致命:远程端意外挂断?

所以我使用以下命令开始制作Jekyll网站,

$ git clone https://github.com/plusjade/jekyll-bootstrap.git USERNAME.github.com
$ cd USERNAME.github.com
$ git remote set-url origin git@github.com:USERNAME/USERNAME.github.com.git
Run Code Online (Sandbox Code Playgroud)

获得本地和github repo设置后,我尝试将更改发送到github,

$ git push origin master
Run Code Online (Sandbox Code Playgroud)

找到这个,

Warning: Permanently added the RSA host key for IP address '192.30.252.129' to the list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)

我做错了什么?我该怎么做才能解决此错误?

git ssh github

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

致命错误:i2c/smbus.h:没有这样的文件或目录?

我尝试编译一些代码,并在尝试编译时收到此响应:

\n
\n

./smbus.c:26:23:致命错误:i2c/smbus.h:没有这样的文件或目录

\n

编译终止。./altitude_ai.c:在函数中

\n

\xe2\x80\x98bmp085_Altitude\xe2\x80\x99:./altitude_ai.c:207:4:警告:隐式

\n

函数声明 \xe2\x80\x98pow\xe2\x80\x99 [-Wimplicit-function-declaration]

\n

./altitude_ai.c:207:14:警告:不兼容的隐式声明

\n

内置函数 \xe2\x80\x98pow\xe2\x80\x99 [默认启用]

\n
\n

这是我尝试编译的所有代码:

\n

smbus.c

\n
/*\n    smbus.c - SMBus level access helper functions\n\n    Copyright (C) 1995-97 Simon G. Vogl\n    Copyright (C) 1998-99 Frodo Looijaard <frodol@dds.nl>\n    Copyright (C) 2012    Jean Delvare <khali@linux-fr.org>\n    Copyright (C) 2012-2013 Donovan Roudabush <sharksfan98@gmail.com>\n\n    This program is free software; you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n …
Run Code Online (Sandbox Code Playgroud)

c include raspberry-pi

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

在Raspberry Pi上为C设置i2c?

我正在为用C编写的应用程序设置i2c,但我无法找到任何方法.我正在使用LXDE在Debian 6上运行模型-b Raspberry Pi.任何人都可以告诉我如何设置i2c,以便我可以在C应用程序中使用它吗?

在此先感谢您的帮助

c i2c raspberry-pi

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

如何按字母顺序搜索带有字母的六个字母的单词

我最近创建了一个Perl脚本,用以下代码搜索以D和E开头的单词:

$infile = 'words.txt';
open(IN, $infile);
$count = 0;
while ($word = <IN>) {
chomp($word);
if ($word =~ /^d\w*e$/i) {
    print "$word\n";
    $count++;
  }
}
print "$count\n";
Run Code Online (Sandbox Code Playgroud)

我最近决定分叉代码并创建一个脚本,搜索一个单词,这个单词是六个字母,单词中的字母是按字母顺序排列的(A到Z).我打算使用位于usr/share/dict/words的Unix标准字典,而不是使用words.txt.如何通过修改此代码来实现此目的?

regex perl

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

包中的类型' - '无效?

注意:顺便说一句,我正在使用Perl 5上的Perl/Tk编写GUI.

我试图执行我的代码,但要找到此错误消息:

COUNT 0
Invalid type '-' in pack at pack2.pl line 62.
Run Code Online (Sandbox Code Playgroud)

这是我的应用程序中的第62行:

my $be = $f1->BrowseEntry(-label => "Widget $count:",
        -choices => ["right", "left", "top", "bottom"],
        -variable => \$packdirs[$count], -browsecmd => \&repack)
        -pack(-ipady => 5, -side => 'left');
Run Code Online (Sandbox Code Playgroud)

我的代码中没有任何问题,有人可以帮助我吗?

perl user-interface arguments tk-toolkit

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

在Raspberry Pi上添加时间?

我正在我的Raspberry Pi上运行一个应用程序,它在shell脚本中包含以下行,

sleep 1800 
Run Code Online (Sandbox Code Playgroud)

然后我发现Raspberry Pi没有办法保留时间.如何添加驱动程序和/或应用程序以获取时间?

bash time clock raspberry-pi

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

标签 统计

raspberry-pi ×3

c ×2

perl ×2

arguments ×1

bash ×1

clock ×1

git ×1

github ×1

i2c ×1

include ×1

regex ×1

ssh ×1

time ×1

tk-toolkit ×1

user-interface ×1