2018-01-01から1年間の記事一覧
2018 Jul. 07.2018 Apr. 28.〈tailコマンドに渡す例〉if [ -p /dev/stdin ]; then tail -else tail $1fi〈readコマンドに渡す例〉 function outputLine() { while read Line do echo $Line done < /dev/stdin }if [ -p /dev/stdin ]; then cat -else cat $1f…
2018 Apr. 12.起動しない時 Volume Down と Power Switchを同時に10秒ほど押し続け、指を離すと、 Droid君が現れるでもなく、起動した。
google AIY voice kit 組立・インストール・設定2018 Mar. 18.google id (gmail address) を決める。hotword・日本語・LED点滅設定解説: https://kureuetan.com/web/raspberrypi/4998/#Voice_Kit(google-assistant実行)${HOME}/AIY-projects-python/src/exa…
2019 Dec. 07. 2018 Feb. 18. googleドキュメント、googleスプレッドシート等の限られたファイルのみ移動できる。 https://support.google.com/drive/answer/2494892?co=GENIE.Platform%3DDesktop&hl=ja (1)移動元アカウントにて ア.当該ファイルをアカ…
android開発 Messenger bindServiceの実行ポイント2018 Feb. 11.bindServiceはActivityのonCreateコールバックの中で実行する。例えば、ButtonのonClickコールバックの中でbindService()してMessenger#send()するとバインドに失敗する。
android AlertDialog内にinflateしたLayout内のViewへのアクセス2018 Jan. 21.Viewへのアスセスにはそれが所属するLayoutを指定する。LayoutInflater inflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);View myLayout = inflater.infl…
android inflate先レイアウトのないinflate2018 Jan. 21.サンプル1LayoutInflater inflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);View myView = inflater.inflate(R.layout.my_view, null);setContentView(myView);サンプル2pub…
android Contextの取得2018 Jan. 21.HogeActivityのContextの取得 AlertDialog.Builder(Context)でのContextの取得 new AlertDialog.Builder(HogeActivity.this); getApplicationContext()ではエラーとなる。
2018 Sep. 01. 2018 Jan. 20.$ ssh-keygen -R SERVER-ADDRESSを実行する。SERVER-ADDRESSはホスト名ではなくIPアドレスを指定する。-R hostname Removes all keys belonging to hostname from a known_hosts file. This option is useful to delete hashed h…
ルーター baffalo WHR-AMPG2018 Jan. 20.ブリッジモード 初期状態 本体アドレス 192.168.11.100 あるいは 192.168.11.2 サブネットマスク:255.255.255.0 DNS:192.168.11.100 LAN設定でLAN側IPアドレスを「DHCPサーバからIPアドレスを自動取得」にすると …
androidプログラミング2018 Jan. 06.2018 Jan. 04.2018 Jan. 03.2017 Nov. 23.2017 Aug. 16.android, プログラミング, emulator, context, 1行, 読み込み,SD, ファイル読み込み, AlertDialogpreferenceで配列を扱うhttps://qiita.com/ueno-yuhei/items/d51c…