!太陽電池 金曜日に神保町でのミーティングのついでに購入した太陽電池. 今日は久しぶりに太陽がみえたので,満を持してFPGAを駆動させてみた. ...コンフィグはできたのかな. 負荷かけると(ペリフェラルつなぐと)厳しそう. MPPTというか効率よい使い方を考える必要がありそうだ,とのこと. !gitへ しばらくgit-svnでhowmデータを管理していたけど, AndroidのTerminal IDEのgitでhowmデータを使えるよう本格的にgitに移行. svnroot丸ごと,は大変なので,サーバー側は,こんな感じで. % cd /data/project/tmp % git svn clone svn+ssh://localhost/data/project/svn/svnroot/howm \ --authors-file=../users.txt --no-metadata howm.git % git clone --bare howm.git howm.git.bare % mv howm.git.bare ../git/howm.git で,クライアント,というか,実際に作業するPCで, % git clone ssh://miyo@localhost:2222/data/project/git/howm.git と. あわせて,更新スクリプトを *** check.rb 2014-06-26 21:06:05.000000000 +0900 --- ../howm.old/check.rb 2013-12-03 19:11:09.000000000 +0900 *************** *** 22,28 **** Dir::chdir(HOWM) connect_flag = connected?() ! system("git pull --rebase") if connect_flag new_files = [] mod_files = [] --- 22,28 ---- Dir::chdir(HOWM) connect_flag = connected?() ! system("git svn rebase") if connect_flag new_files = [] mod_files = [] *************** *** 53,57 **** #system("ruby howm2html.rb") system("git commit -a -m \"howm updated\"") ! system("git push") if connect_flag system("ssh -l hanatare hanatare.sakura.ne.jp \"sh /home/hanatare/data/wikidata/bin/clear-cache.sh\"") if connect_flag --- 53,57 ---- #system("ruby howm2html.rb") system("git commit -a -m \"howm updated\"") ! system("git svn dcommit") if connect_flag system("ssh -l hanatare hanatare.sakura.ne.jp \"sh /home/hanatare/data/wikidata/bin/clear-cache.sh\"") if connect_flag と変更. !TerminalIDEでgit 公開鍵認証なので,鍵が必要.dropbearkeyで作る. で, ssh -i ~/.ssh/id_rsa ほげほげ とかするのだけど,gitのときには,これができない. と,↓に専用スクリプトを用意する方法が. http://tinyrobot.co.uk/blog/ssh-and-git-on-android-with-terminal-ide/ /bin/shじゃなくて,/system/bin/shなので,それだけ修正.