所以我使用以下命令开始制作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)
我做错了什么?我该怎么做才能解决此错误?
我尝试编译一些代码,并在尝试编译时收到此响应:
\n\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
这是我尝试编译的所有代码:
\nsmbus.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编写的应用程序设置i2c,但我无法找到任何方法.我正在使用LXDE在Debian 6上运行模型-b Raspberry Pi.任何人都可以告诉我如何设置i2c,以便我可以在C应用程序中使用它吗?
在此先感谢您的帮助
我最近创建了一个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.如何通过修改此代码来实现此目的?
注意:顺便说一句,我正在使用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)
我的代码中没有任何问题,有人可以帮助我吗?
我正在我的Raspberry Pi上运行一个应用程序,它在shell脚本中包含以下行,
sleep 1800
Run Code Online (Sandbox Code Playgroud)
然后我发现Raspberry Pi没有办法保留时间.如何添加驱动程序和/或应用程序以获取时间?