オプション
-r, --recursive: Recursively compare any subdirectories found.-x, --exclude: Exclude files that match PAT.
コマンド例
|
1 |
$ diff -r --exclude=".DS_Store" --exclude=".git" ./foo/ ./bar/ |
-r, --recursive : Recursively compare any subdirectories found.-x, --exclude : Exclude files that match PAT.
|
1 |
$ diff -r --exclude=".DS_Store" --exclude=".git" ./foo/ ./bar/ |
MySQL 5.6以降では(シェルスクリプトなどにおいて)コマンドラインから直接パスワードを指定する(--password)と警告が出る。
|
1 2 3 |
$ mysqldump -h localhost -u dbuser --password=xxxx dbname mysqldump: [Warning] Using a password on the command line interface can be insecure. |
環境変数 MYSQL_PWD を介してパスワードを指定する
|
1 |
$ MYSQL_PWD=xxxx mysqldump -h localhost -u dbuser dbname |
MySQLにおいて異なるバージョン間(たとえば、MySQL server 5.6.34 から 5.7.20)へ移行した(≈ sqldump結果をリストアした)結果、移行先のDBにおいて以下のようなエラーが発生する。
|
1 2 3 |
[ERROR] Column count of performance_schema.events_waits_current is wrong. Expected 19, found 16. Created with MySQL 50558, now running 50720. Please use mysql_upgrade to fix this error. |
mysql_upgradeを実行し、sqldを再起動する。
|
1 |
$ mysql_upgrade -u root -p |
|
1 |
$ service mysqld restart |
|
1 |
$ sudo yum install mysql57-server |
|
1 |
$ sudo chkconfig mysqld on |
|
1 |
$ sudo service mysqld start |
|
1 2 3 4 5 6 7 |
$ mysql -u root Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 4 Server version: 5.7.20 MySQL Community Server (GPL) Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. ... 後略 |
AWS S3(Simple Storage Service)のファイルをCLIで一括削除する。
|
1 |
$ aws s3 rm s3://mybucket/ --recursive |
--recursive--dryrun
|
1 |
$ aws s3 rm s3://bucket.chihayafuru.jp/imgs/2017 --recursive |
RSTピンをグランドに落とす。
OpenMV Cam M7にはハードウェアリセットボタン(たとえばタクトスイッチ)はない。
本日12月18日発売のコンピュータ雑誌『I/O』 2018年1月号に「カムプログラム・ロボット改造 Arduino化」というタイトルで執筆させていただきました。
「Arduino UNO」と「モーターシールド」を使い、初心者でも簡単にマイコンロボット化に挑戦できるような内容になっています。次号(2月号)は「OpenMV Cam」をつかったカメラ制御ロボットに挑戦する内容で予定しいます。
Mac版 OpenMV IDEにおいて、大きなサイズのMicroPythonスクリプトの起動が失敗する。
10年前(2007年)に購入したUSB接続タイプのオシロスコープ(DSO) "SDS 200A"
もともとWindows XP向けドライバーが付属していたのですが、その後、Windows 2000 / Widows 7向けドライバーの公開を最後にメーカーのサポートが終わっていました。
その後、Windows 10は『電子署名のない(野良)ドライバー』のインストールをデフォルト設定で完全に禁止してしまったため、電子署名のないSDS 200Aのドライバーもインストールができなくなってしまいました。ネットの情報を探し回り苦心惨憺して、なんとか最新の"Windows 10 Fall Creators Update"へSDS 200Aの(電子署名なし)ドライバーをインストールすることに成功しました。
|
1 2 3 4 |
<video controls> <source src='sample.mov' type='video/quicktime'> 動画を再生するには、videoタグをサポートしたブラウザが必要です。 </video> |
(註) controls属性で再生ボタンを表示