tag:blogger.com,1999:blog-90710099237510553622024-03-14T01:12:55.715+09:00トマト農家のロボット創り Robot creation by tomato farmerロボット使ってトマト作れば楽だなぁ...やってみっか!<br>
農業ロボット開発記録<br>
日本中で100台以上動かしちゃった(^^)/<br>
I'm developing robots that do tomato harvesting, settled planting ,,,,and many tasks.<br>The goal of production cost of robot is $2,000 per unit.<br>
Because it is necessary a lot of robots, in order to innovate the farming. <br>I use Raspberry Pi as robot controller to develop low cost robots.<br>
<a href="http://www.tomato-farm.com"> TOMATO FARM website -> CLICK! </a><br>naohttp://www.blogger.com/profile/03033662515342408623noreply@blogger.comBlogger536125tag:blogger.com,1999:blog-9071009923751055362.post-11836626123777596762023-11-15T11:03:00.002+09:002023-11-15T11:03:30.099+09:002年ぶりで再開<p>とっても、忙しくて更新する事ができませんでした。</p><p>開発している事、日々思う事を、また書いていきます。</p><p>よかった、読んでください。</p>naohttp://www.blogger.com/profile/03033662515342408623noreply@blogger.com0tag:blogger.com,1999:blog-9071009923751055362.post-85027201622630161212021-12-16T22:19:00.005+09:002021-12-16T23:15:22.913+09:00Android studio updateしたらエラーに苦しんだ<p> なんと、、、</p><p>絶望的になりながら、、、這いつくばって解決のメモ</p><p>このバージョンのお話</p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEh2ux21U3UukPNvAvOsDvrIit5Nw0emNOgRxJ7gAt--fw1mLALFx2iM7FLbGwkPos4bXxo4QacK4_oGoXam4FH00d9ijjiZoNARZjQgHO52vHS7keJm2rQ-4b5vUV73CAqZIkAkPetHHq8wso9hpYAYJZRNIPpGWFq1gfPlve4cQYp6DIeVVSTYY-6r=s1262" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="768" data-original-width="1262" height="237" src="https://blogger.googleusercontent.com/img/a/AVvXsEh2ux21U3UukPNvAvOsDvrIit5Nw0emNOgRxJ7gAt--fw1mLALFx2iM7FLbGwkPos4bXxo4QacK4_oGoXam4FH00d9ijjiZoNARZjQgHO52vHS7keJm2rQ-4b5vUV73CAqZIkAkPetHHq8wso9hpYAYJZRNIPpGWFq1gfPlve4cQYp6DIeVVSTYY-6r=w389-h237" width="389" /></a></div><p><br /></p><h2 style="text-align: left;">エラー1</h2><p>implementation 'com.google.firebase:firebase-ml-vision</p><p>結局、build.gradleの</p><pre style="background-color: #2b2b2b; color: #a9b7c6; font-family: "JetBrains Mono", monospace; font-size: 9.8pt;"><span style="color: grey;">// ML Kit dependencies<br /></span>implementation <span style="color: #6a8759;">'com.google.firebase:firebase-ml-vision:'<br /></span><span style="color: grey;">// Image Labeling model.<br /></span>implementation <span style="color: #6a8759;">'com.google.firebase:firebase-ml-vision-image-label-model:20.0.2'<br /></span><span style="color: grey;">// Face model<br /></span>implementation <span style="color: #6a8759;">'com.google.firebase:firebase-ml-vision-face-model:20.0.2'<br /></span><span style="color: grey;">// Custom model<br /></span>implementation <span style="color: #6a8759;">'com.google.firebase:firebase-ml-model-interpreter:'<br /></span><span style="color: grey;">// Object model<br /></span>implementation <span style="color: #6a8759;">'com.google.firebase:firebase-ml-vision-object-detection-model:19.0.6'<br /></span><span style="color: grey;">// AutoML model<br /></span>implementation <span style="color: #6a8759;">'com.google.firebase:firebase-ml-vision-automl:18.0.6'<br /></span>implementation <span style="color: #6a8759;">'com.google.firebase:firebase-ml-common:22.1.2'<br /></span>implementation <span style="color: #6a8759;">'com.google.android.gms:play-services-vision-common:19.1.3'<br /></span>implementation <span style="color: #6a8759;">'com.google.firebase:firebase-core:20.0.1'</span></pre><p>を、変更して</p><pre style="background-color: #2b2b2b; color: #a9b7c6; font-family: "JetBrains Mono", monospace; font-size: 9.8pt;"><span style="color: grey;">// ML Kit dependencies<br /></span><span style="color: grey;">//implementation 'com.google.firebase:firebase-ml-vision:'<br /></span><span style="color: grey;">// Image Labeling model.<br /></span>implementation <span style="color: #6a8759;">'com.google.firebase:firebase-ml-vision-image-label-model:20.0.2'<br /></span><span style="color: grey;">// Face model<br /></span>implementation <span style="color: #6a8759;">'com.google.firebase:firebase-ml-vision-face-model:20.0.2'<br /></span><span style="color: grey;">// Custom model<br /></span><span style="color: grey;">//implementation 'com.google.firebase:firebase-ml-model-interpreter:'<br /></span><span style="color: grey;">// Object model<br /></span>implementation <span style="color: #6a8759;">'com.google.firebase:firebase-ml-vision-object-detection-model:19.0.6'<br /></span><span style="color: grey;">// AutoML model<br /></span>implementation <span style="color: #6a8759;">'com.google.firebase:firebase-ml-vision-automl:18.0.6'<br /></span>implementation <span style="color: #6a8759;">'com.google.firebase:firebase-ml-common:22.1.2'<br /></span>implementation <span style="color: #6a8759;">'com.google.android.gms:play-services-vision-common:19.1.3'<br /></span>implementation <span style="color: #6a8759;">'com.google.firebase:firebase-core:20.0.1'</span></pre><p>OKになりました。つまり、、、</p><p>https://firebase.google.com/docs/android/setup?hl=ja</p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEgMUORBtWdQF1VAAuoCLXmC-95HTGVBwmFHDYEFv8mlYYrG_UlNGNAM3bkfeTIkLRyl0XrB-cN_37SveQxMvilysfEI9zs_QzbOC2PQHIQGKWdmU9FjfNhseMTLp3-vnGHYjGFz4H-dC3nCL4gSV6K1IYIgoLoJ1XUSBF1CXCTNb-7wjkKCpr_5QCpx=s1474" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1258" data-original-width="1474" height="273" src="https://blogger.googleusercontent.com/img/a/AVvXsEgMUORBtWdQF1VAAuoCLXmC-95HTGVBwmFHDYEFv8mlYYrG_UlNGNAM3bkfeTIkLRyl0XrB-cN_37SveQxMvilysfEI9zs_QzbOC2PQHIQGKWdmU9FjfNhseMTLp3-vnGHYjGFz4H-dC3nCL4gSV6K1IYIgoLoJ1XUSBF1CXCTNb-7wjkKCpr_5QCpx=s320" width="320" /></a></div><br /><p>自動的にアップデートして非推奨ライブラリーが残っており、かつ完全な構文でなかったので、エラー</p><p>で、も、、、、上部のエラーがなくなっただけ</p><p>実はこのファイルの、エラーが発生しても、値を設定して、依存関係を定義する</p><p><span style="font-family: arial; font-size: x-small;"> // ML Kit dependencies<br /> implementation 'com.google.firebase:firebase-ml-vision:24.1.0'</span></p><p><span style="font-family: arial; font-size: x-small;"> // Custom model<br /><span> </span>implementation 'com.google.firebase:firebase-ml-model-interpreter:22.0.4'</span></p><pre style="background-color: #2b2b2b; color: #a9b7c6; font-family: 'JetBrains Mono',monospace; font-size: 9.8pt;"><span style="color: grey;">// ML Kit dependencies<br /></span>implementation <span style="color: #6a8759;">'com.google.firebase:firebase-ml-vision:24.1.0'<br /></span><span style="color: grey;">// Image Labeling model.<br /></span>implementation <span style="color: #6a8759;">'com.google.firebase:firebase-ml-vision-image-label-model:20.0.2'<br /></span><span style="color: grey;">// Face model<br /></span>implementation <span style="color: #6a8759;">'com.google.firebase:firebase-ml-vision-face-model:20.0.2'<br /></span><span style="color: grey;">// Custom model<br /></span>implementation <span style="color: #6a8759;">'com.google.firebase:firebase-ml-model-interpreter:22.0.4'<br /></span><span style="color: grey;">// Object model<br /></span>implementation <span style="color: #6a8759;">'com.google.firebase:firebase-ml-vision-object-detection-model:19.0.6'<br /></span><span style="color: grey;">// AutoML model<br /></span>implementation <span style="color: #6a8759;">'com.google.firebase:firebase-ml-vision-automl:18.0.6'<br /></span>implementation <span style="color: #6a8759;">'com.google.firebase:firebase-ml-common:22.1.2'<br /></span>implementation <span style="color: #6a8759;">'com.google.android.gms:play-services-vision-common:19.1.3'<br /></span>implementation <span style="color: #6a8759;">'com.google.firebase:firebase-core:20.0.1'</span></pre><p>これで、sync はOK!</p><p>でも、、、</p><h2 style="text-align: left;">エラー2</h2><p>Unsupported class file major version 61</p><div>これは、gradleがjavaのバージョンをサポートしていないというエラー</div><div>従って、Preferences > </div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEgi14P8U-bSABnlVECnzwm2xMCtAEmZJ95AUNN9sKkxHzRfl3E2B3eev14VSUCAVEcbtenkwE3RWhi-65e2RTO7Y8wjBWeAGxNCZPVs8TEZa52_5m87AzQV8fh-hoH3KrG6XowZ9J3B-hCR17iWVkXVTRmhel00mdUTEa5-51kBBu4yBCLkuCEPvGre=s1960" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1454" data-original-width="1960" height="237" src="https://blogger.googleusercontent.com/img/a/AVvXsEgi14P8U-bSABnlVECnzwm2xMCtAEmZJ95AUNN9sKkxHzRfl3E2B3eev14VSUCAVEcbtenkwE3RWhi-65e2RTO7Y8wjBWeAGxNCZPVs8TEZa52_5m87AzQV8fh-hoH3KrG6XowZ9J3B-hCR17iWVkXVTRmhel00mdUTEa5-51kBBu4yBCLkuCEPvGre=s320" width="320" /></a></div><br /><div>javaのバージョンを下げた。</div><div>Macの </div><div><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;">% java --version</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;">openjdk 17.0.1 2021-10-19</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;">OpenJDK Runtime Environment (build 17.0.1+12-39)</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;">OpenJDK 64-Bit Server VM (build 17.0.1+12-39, mixed mode, sharing)</span></p></div><div><br /></div><div>17ではダメみたいで、16に下げたら</div><div><br /></div><div><div><span style="font-family: arial; font-size: x-small;">Starting Gradle Daemon...</span></div><div><span style="font-family: arial; font-size: x-small;">Gradle Daemon started in 796 ms</span></div><div><span style="font-family: arial; font-size: x-small;"><br /></span></div><div><span style="font-family: arial; font-size: x-small;">Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.</span></div><div><span style="font-family: arial; font-size: x-small;">Use '--warning-mode all' to show the individual deprecation warnings.</span></div><div><span style="font-family: arial; font-size: x-small;">See https://docs.gradle.org/7.0.2/userguide/command_line_interface.html#sec:command_line_warnings</span></div><div><span style="font-family: arial; font-size: x-small;"><br /></span></div><div><span style="font-family: arial; font-size: x-small;">BUILD SUCCESSFUL in 1m 7s</span></div></div><div><br /></div><div>という事で、OK</div><h4 style="text-align: left;"><span style="font-family: arial;"><i style="font-weight: normal;">Peace!!</i></span></h4>naohttp://www.blogger.com/profile/03033662515342408623noreply@blogger.com0tag:blogger.com,1999:blog-9071009923751055362.post-62793937109864346432021-12-05T22:31:00.001+09:002021-12-05T22:31:44.312+09:00mariadb C言語 アクセスサンプル<p>とりあえず、確認のためにに、下記のコードでテスト</p><p>build は、こんな感じ</p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>gcc -Wall -o tst tst.c -lmysqlclient -L/usr/lib64/mysql/</span></p><p>サンプルは以下、、、</p><p>#include <stdio.h><br />#include <stdlib.h><br />#include <string.h><br />#include <mysql/mysql.h><br />int main(void){<br /> MYSQL *conn = NULL;<br /> MYSQL_RES *resp = NULL;<br /> MYSQL_ROW row;<br /> char sql_str[255];<br /> char *sql_serv = "localhost";<br /> char *user = "xxxxx";<br /> char *passwd = "yyyyyy";<br /> char *db_name = "dddd";</p><p> memset( &sql_str[0] , 0x00 , sizeof(sql_str) );</p><p> // mysql接続<br /> conn = mysql_init(NULL);<br /> if( !mysql_real_connect(conn,sql_serv,user,passwd,db_name,0,NULL,0) ){<br /> // error<br /> printf(" connect error\n");<br /> exit(-1);<br /> }</p><p> // クエリ実行</p><p> snprintf( &sql_str[0] , sizeof(sql_str)-1 , "select * from test" );<br /> if( mysql_query( conn , &sql_str[0] ) ){<br /><span> </span><span> </span>// error<br /><span> </span><span> </span>mysql_close(conn);<br /><span> </span><span> </span>exit(-1);<br /><span> </span>}</p><p> // レスポンス<br /> resp = mysql_use_result(conn);<br /> while((row = mysql_fetch_row(resp)) != NULL ){<br /> printf( "%d : %s\n" , atoi(row[0]) , row[1] );<br /> }</p><p> // 後片づけ<br /><span> </span>mysql_free_result(resp);<br /><span> </span>mysql_close(conn);<br /><span> </span>return 0;<br />}</p><h4 style="text-align: left;"><span style="font-family: arial; font-weight: normal;"><i>Peace!!</i></span></h4><div><br /></div>naohttp://www.blogger.com/profile/03033662515342408623noreply@blogger.com0tag:blogger.com,1999:blog-9071009923751055362.post-49153397030939632272021-12-05T22:13:00.003+09:002021-12-05T22:13:34.268+09:00そりゃないだろ、、、"MariaDB-devel" だって、、、<p>開発環境をつくりたいので、、、</p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>sudo dnf install mariadb-devel</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;">Last metadata expiration check: 2:57:12 ago on Sun Dec<span class="Apple-converted-space"> </span>5 19:09:59 2021.</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;">Error:<span class="Apple-converted-space"> </span></span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>Problem: package mariadb-devel-3:10.3.28-1.module+el8.4.0+427+adf35707.x86_64 requires mariadb-connector-c-devel >= 3.1.11, but none of the providers can be installed</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>- package mariadb-connector-c-devel-3.1.11-2.el8_3.i686 requires libmariadb.so.3, but none of the providers can be installed</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>- package mariadb-connector-c-devel-3.1.11-2.el8_3.x86_64 requires mariadb-connector-c = 3.1.11-2.el8_3, but none of the providers can be installed</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>- package MariaDB-shared-10.6.3-1.el8.x86_64 obsoletes mariadb-connector-c provided by mariadb-connector-c-3.1.11-2.el8_3.i686</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>- package MariaDB-shared-10.6.3-1.el8.x86_64 obsoletes mariadb-connector-c provided by mariadb-connector-c-3.1.11-2.el8_3.x86_64</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>- problem with installed package MariaDB-shared-10.6.5-1.el8.x86_64</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>- package MariaDB-shared-10.6.4-1.el8.x86_64 obsoletes mariadb-connector-c provided by mariadb-connector-c-3.1.11-2.el8_3.i686</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>- package MariaDB-shared-10.6.4-1.el8.x86_64 obsoletes mariadb-connector-c provided by mariadb-connector-c-3.1.11-2.el8_3.x86_64</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>- package mariadb-devel-3:10.3.28-1.module+el8.4.0+427+adf35707.x86_64 conflicts with mysql-devel provided by MariaDB-devel-10.6.5-1.el8.x86_64</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>- conflicting requests</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>- package MariaDB-shared-10.6.5-1.el8.x86_64 obsoletes mariadb-connector-c provided by mariadb-connector-c-3.1.11-2.el8_3.i686</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>- package MariaDB-shared-10.6.5-1.el8.x86_64 obsoletes mariadb-connector-c provided by mariadb-connector-c-3.1.11-2.el8_3.x86_64</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>- installed package MariaDB-shared-10.6.5-1.el8.x86_64 obsoletes mariadb-connector-c provided by mariadb-connector-c-3.1.11-2.el8_3.i686</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>- installed package MariaDB-shared-10.6.5-1.el8.x86_64 obsoletes mariadb-connector-c provided by mariadb-connector-c-3.1.11-2.el8_3.x86_64</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;">(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)</span></p><p> エラー、、、、</p><p>いろいろ探して、、、</p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="color: #400bd9; font-variant-ligatures: no-common-ligatures;">$</span><span class="s2" style="font-variant-ligatures: no-common-ligatures;"> sudo dnf -y install MariaDB-devel ;</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s2" style="font-variant-ligatures: no-common-ligatures;">Last metadata expiration check: 2:57:42 ago on Sun Dec<span class="Apple-converted-space"> </span>5 19:09:59 2021.</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s2" style="font-variant-ligatures: no-common-ligatures;">Dependencies resolved.</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s2" style="font-variant-ligatures: no-common-ligatures;">================================================================================</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s2" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>Package<span class="Apple-converted-space"> </span>Architecture<span class="Apple-converted-space"> </span>Version<span class="Apple-converted-space"> </span>Repository<span class="Apple-converted-space"> </span>Size</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s2" style="font-variant-ligatures: no-common-ligatures;">================================================================================</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s2" style="font-variant-ligatures: no-common-ligatures;">Installing:</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s2" style="font-variant-ligatures: no-common-ligatures;"> </span><span class="s3" style="color: #2fb41d; font-variant-ligatures: no-common-ligatures;">MariaDB-devel<span class="Apple-converted-space"> </span></span><span class="s2" style="font-variant-ligatures: no-common-ligatures;"> x86_64<span class="Apple-converted-space"> </span>10.6.5-1.el8 <span class="Apple-converted-space"> </span>mariadb<span class="Apple-converted-space"> </span>7.9 M</span></p><p class="p2" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; min-height: 19px;"><span class="s2" style="font-variant-ligatures: no-common-ligatures;"></span><br /></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s2" style="font-variant-ligatures: no-common-ligatures;">Transaction Summary</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s2" style="font-variant-ligatures: no-common-ligatures;">================================================================================</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s2" style="font-variant-ligatures: no-common-ligatures;">Install<span class="Apple-converted-space"> </span>1 Package</span></p><p class="p2" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; min-height: 19px;"><span class="s2" style="font-variant-ligatures: no-common-ligatures;"></span><br /></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s2" style="font-variant-ligatures: no-common-ligatures;">Total download size: 7.9 M</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s2" style="font-variant-ligatures: no-common-ligatures;">Installed size: 49 M</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s2" style="font-variant-ligatures: no-common-ligatures;">Downloading Packages:</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s2" style="font-variant-ligatures: no-common-ligatures;">MariaDB-devel-10.6.5-1.el8.x86_64.rpm <span class="Apple-converted-space"> </span>2.8 MB/s | 7.9 MB <span class="Apple-converted-space"> </span>00:02 <span class="Apple-converted-space"> </span></span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s2" style="font-variant-ligatures: no-common-ligatures;">--------------------------------------------------------------------------------</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s2" style="font-variant-ligatures: no-common-ligatures;">Total <span class="Apple-converted-space"> </span>2.8 MB/s | 7.9 MB <span class="Apple-converted-space"> </span>00:02<span class="Apple-converted-space"> </span></span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s2" style="font-variant-ligatures: no-common-ligatures;">Running transaction check</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s2" style="font-variant-ligatures: no-common-ligatures;">Transaction check succeeded.</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s2" style="font-variant-ligatures: no-common-ligatures;">Running transaction test</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s2" style="font-variant-ligatures: no-common-ligatures;">Transaction test succeeded.</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s2" style="font-variant-ligatures: no-common-ligatures;">Running transaction</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s2" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>Preparing<span class="Apple-converted-space"> </span>:<span class="Apple-converted-space"> </span>1/1<span class="Apple-converted-space"> </span></span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s2" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>Running scriptlet: MariaDB-devel-10.6.5-1.el8.x86_64<span class="Apple-converted-space"> </span>1/1<span class="Apple-converted-space"> </span></span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s2" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>Installing <span class="Apple-converted-space"> </span>: MariaDB-devel-10.6.5-1.el8.x86_64<span class="Apple-converted-space"> </span>1/1<span class="Apple-converted-space"> </span></span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s2" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>Running scriptlet: MariaDB-devel-10.6.5-1.el8.x86_64<span class="Apple-converted-space"> </span>1/1<span class="Apple-converted-space"> </span></span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s2" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>Verifying<span class="Apple-converted-space"> </span>: MariaDB-devel-10.6.5-1.el8.x86_64<span class="Apple-converted-space"> </span>1/1<span class="Apple-converted-space"> </span></span></p><p class="p2" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; min-height: 19px;"><span class="s2" style="font-variant-ligatures: no-common-ligatures;"></span><br /></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s2" style="font-variant-ligatures: no-common-ligatures;">Installed:</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s2" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>MariaDB-devel-10.6.5-1.el8.x86_64<span class="Apple-converted-space"> </span></span></p><p class="p2" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; min-height: 19px;"><span class="s2" style="font-variant-ligatures: no-common-ligatures;"></span><br /></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s2" style="font-variant-ligatures: no-common-ligatures;">Complete!</span></p><div><span style="background-color: transparent;"><br /></span></div><div>で、OKってなんなんだぁ</div><h4 style="text-align: left;"><span style="font-family: arial;"><i>Peace!!</i></span></h4>naohttp://www.blogger.com/profile/03033662515342408623noreply@blogger.com0tag:blogger.com,1999:blog-9071009923751055362.post-1931586171931041662021-12-05T18:49:00.010+09:002021-12-29T03:43:27.695+09:00CentOS 8 からRocky Linux への移行とMariaDBのインストール<p> 僕は、日本中で動いているロボットを統合的にシステム管理している。これをRDCS Serverと呼んでいる。実体は某社のVPS上に構築している。</p><p>ところが、、、</p><p>CentOS 8 のサポートが、12月31日に終了という事で、移行の必要性があった。いろいろ調査した結果、Rocky Linuxに移行することにした。というか、、、Google、Microsoft、Amazonが支持をしているからが大きい。安易だなぁ、、、</p><p>また、これまで、自作DBで管理していたけど、思ったより管理データが多くなってきたので使い慣れているMariaDBに移行する事も決めた。</p><h2 style="text-align: left;">1. Cent OS 8からRocky Linux への移行</h2><p>これは簡単で、Rocky Linuxが提供しているツールで10分程度で終了。</p><p><a href="https://docs.rockylinux.org/guides/migrate2rocky/?fbclid=IwAR2F7IldKFk16Lt8q8pR2f4J1rOgkPT6Y0KH1FDLHqUutKCc3E_VAoJd1gg" target="_blank">How to Migrate to Rocky Linux from CentOS Stream, CentOS, Alma Linux, RHEL, or Oracle Linux</a></p><h2 style="text-align: left;">2. MariaDB インストール</h2><p>MariDBは、下記のページの通りにする。</p><p><a href="https://linoxide.com/how-to-install-mariadb-on-rocky-linux-8/" target="_blank">How to Install MariaDB on Rocky Linux 8</a></p><p>ここに書いてあるように、defaultのままでインストールすると10.3がインストールされる。現在の最新版は10.6なので記述してあるようにインストールする。<br />この説明は、丁寧な説明なのでこの通りにすれば良い。</p><p>すんなりすんで、よかったです。</p><p><br /></p><h2 style="text-align: left;">3. 文字コード設定</h2><p>インストール直後は、設定が行われていない。</p><p>文字コードを、utf8mb4 に設定する。 詳しくは<a href="https://tadtadya.com/mariadb-things-to-do-right-after-installation/" target="_blank">こちら</a></p><p>手順の抜粋</p><p><span><span style="font-family: inherit;">「mysql -u root -p」でMariaDBにログインします。</span></span></p><div style="text-align: left;"><span style="font-family: inherit;">show variables like 'char%';<br />show variables like 'coll%';<br />show charset like "%utf8mb4%";<br />show collation like "%utf8mb4%";</span></div><div style="text-align: left;"><span style="font-family: inherit;"><br /></span></div><div style="text-align: left;"><span style="font-family: inherit;">確認後<br />sudo vi /etc/my.cnf.d/mysql-clients.cnf</span></div><div style="text-align: left;"><br /></div><div style="text-align: left;"><div>[mysql]</div><div>default-character-set=utf8mb4 # <--- 追加</div><div><br /></div><div>sudo vi /etc/my.cnf.d/server.cnf</div><div><br /></div><div>[mysqld]</div><div>character-set-server = utf8mb4 # <--- 追加</div><div><br /></div><div>sudo systemctl restart mariadb</div><div><br /></div><div>確認をすると、、、、</div><div><br /></div></div><div style="text-align: left;"><div>MariaDB [(none)]> show variables like "%char%";</div><div>+--------------------------+----------------------------+</div><div>| Variable_name | Value |</div><div>+--------------------------+----------------------------+</div><div>| character_set_client | utf8mb4 |</div><div>| character_set_connection | utf8mb4 |</div><div>| character_set_database | utf8mb4 |</div><div>| character_set_filesystem | binary |</div><div>| character_set_results | utf8mb4 |</div><div>| character_set_server | utf8mb4 |</div><div>| character_set_system | utf8mb3 |</div><div>| character_sets_dir | /usr/share/mysql/charsets/ |</div><div>+--------------------------+----------------------------+</div><div>8 rows in set (0.002 sec)</div><div><br /></div><div>MariaDB [(none)]> show variables like "%coll%";</div><div>+----------------------+--------------------+</div><div>| Variable_name | Value |</div><div>+----------------------+--------------------+</div><div>| collation_connection | utf8mb4_general_ci |</div><div>| collation_database | utf8mb4_general_ci |</div><div>| collation_server | utf8mb4_general_ci |</div><div>+----------------------+--------------------+</div><div>3 rows in set (0.001 sec)</div><div><br /></div><div>因みに、設定前は、、、</div><div><div>MariaDB [(none)]> show variables like "%char%";</div><div>+--------------------------+----------------------------+</div><div>| Variable_name | Value |</div><div>+--------------------------+----------------------------+</div><div>| character_set_client | latin1 |</div><div>| character_set_connection | latin1 |</div><div>| character_set_database | latin1 |</div><div>| character_set_filesystem | binary |</div><div>| character_set_results | latin1 |</div><div>| character_set_server | latin1 |</div><div>| character_set_system | utf8mb3 |</div><div>| character_sets_dir | /usr/share/mysql/charsets/ |</div><div>+--------------------------+----------------------------+</div><div>8 rows in set (0.003 sec)</div><div><br /></div><div>MariaDB [(none)]> show variables like "%coll%";</div><div>+----------------------+-------------------+</div><div>| Variable_name | Value |</div><div>+----------------------+-------------------+</div><div>| collation_connection | latin1_swedish_ci |</div><div>| collation_database | latin1_swedish_ci |</div><div>| collation_server | latin1_swedish_ci |</div><div>+----------------------+-------------------+</div><div>3 rows in set (0.003 sec)</div></div><div><br /></div></div><div style="text-align: left;"><span style="font-family: arial;"><i><br /></i></span><i style="font-family: arial;">Peace!!</i></div>naohttp://www.blogger.com/profile/03033662515342408623noreply@blogger.com0tag:blogger.com,1999:blog-9071009923751055362.post-17971269669667106592021-12-01T20:15:00.003+09:002021-12-01T20:15:27.837+09:00初めての、Raspberry PiからのTwitter<p> 定期的にロボットの状態を把握したいので、遅ればせながらTwitterで確認できるようにした。その時の忘備録</p><p>既にある、または新しいアカウントで行う。今回は公開したく無いので新しいアカウントを作成した。</p><p>ネットの情報の通りに、<a href="https://apps.twitter.com/">https://apps.twitter.com/</a> にアクセスして開発者登録する。</p><p>その後、Developer Portalで、追加情報を入力した。実は、この部分がネットの情報と違った。</p><p>でも作業は同じなので、後から同じことをできるようにメモしておく。</p><h1 style="text-align: left;"><span style="font-size: large;">1. twitter の設定</span></h1><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZpFuz85FyshLKpkWlt09tb4b1MVN_2jI5D67t94pnlVXfzq0xLXriWtPstgaHAB4BxlB5In2i6XxpDzYPspTV0RPKSe9QYXq_bm8dKKFzl3DcTCoy_V1K_6gg6GhaEXLMNkh3fvZWrQs/s2048/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2021-12-01+18.01.03.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1661" data-original-width="2048" height="260" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZpFuz85FyshLKpkWlt09tb4b1MVN_2jI5D67t94pnlVXfzq0xLXriWtPstgaHAB4BxlB5In2i6XxpDzYPspTV0RPKSe9QYXq_bm8dKKFzl3DcTCoy_V1K_6gg6GhaEXLMNkh3fvZWrQs/s320/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2021-12-01+18.01.03.png" width="320" /></a></div><div>「Project1」を押下する</div><div><br /></div><div><br /></div><br /><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_esJC9gvsfIkku3B2EfAwD7-PwiAAfeR81_r50lYXPZmBmgDdiDE2YIwLf25GhOfqYbbhIIoh9FY-1f4kdEzAlK8Lyv6dnT-OI7AbBxR3e_7gwDfYwktXk3HqsZrJQ2mmHD4i9YgRfj8/s2048/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2021-12-01+18.01.26.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1620" data-original-width="2048" height="253" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_esJC9gvsfIkku3B2EfAwD7-PwiAAfeR81_r50lYXPZmBmgDdiDE2YIwLf25GhOfqYbbhIIoh9FY-1f4kdEzAlK8Lyv6dnT-OI7AbBxR3e_7gwDfYwktXk3HqsZrJQ2mmHD4i9YgRfj8/s320/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2021-12-01+18.01.26.png" width="320" /></a></div><div>「Apply for Elevated」を押下</div><br /><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmC_S5337WC85D_8WT6rFx6V4MgurVSDE4MGVgm-tuTyra-JCGgkUkcM8RxBUSgZWRpiT3q1Pema8A06OKERY8YyT3HghNDtQ8pglmumJeIWdn9ebPqGQ7zr3MjYOd96NUqJmhCAXJTS4/s2048/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2021-12-01+18.01.52.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1624" data-original-width="2048" height="254" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmC_S5337WC85D_8WT6rFx6V4MgurVSDE4MGVgm-tuTyra-JCGgkUkcM8RxBUSgZWRpiT3q1Pema8A06OKERY8YyT3HghNDtQ8pglmumJeIWdn9ebPqGQ7zr3MjYOd96NUqJmhCAXJTS4/s320/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2021-12-01+18.01.52.png" width="320" /></a></div>この後の画面で、いろいろ入力する<div>以下は、項目の説明</div><div><br /></div><div><p class="index__subheader--3-joD" style="box-sizing: border-box; color: #0f1419; font-family: TwitterChirp, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: var(--font-size-body-primary); font-weight: bold; line-height: var(--line-height-body-primary); margin-bottom: 1.2rem;">In your words</p><p class="index__secondaryText--3XcUn" style="box-sizing: border-box; color: var(--color-darkest-gray); font-family: TwitterChirp, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 15px; line-height: var(--line-height-secondary-text); margin: 0 0 var(--feather-space-8-experimental);">In English, please describe how you plan to use Twitter data and/or APIs. The more detailed the response, the easier it is to review and approve.</p><p class="index__secondaryText--3XcUn" style="box-sizing: border-box; color: var(--color-darkest-gray); font-family: TwitterChirp, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 15px; line-height: var(--line-height-secondary-text); margin: 0 0 var(--feather-space-8-experimental);"><br /></p><p class="index__secondaryText--3XcUn" style="box-sizing: border-box; color: var(--color-darkest-gray); font-family: TwitterChirp, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 15px; line-height: var(--line-height-secondary-text); margin: 0 0 var(--feather-space-8-experimental);">ここには英語で何をするのかを記述する。最低でも200文字が必要</p><p class="index__secondaryText--3XcUn" style="box-sizing: border-box; color: var(--color-darkest-gray); font-family: TwitterChirp, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 15px; line-height: var(--line-height-secondary-text); margin: 0 0 var(--feather-space-8-experimental);"><br /></p><p class="index__secondaryText--3XcUn" style="box-sizing: border-box; color: var(--color-darkest-gray); font-family: TwitterChirp, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 15px; line-height: var(--line-height-secondary-text); margin: 0 0 var(--feather-space-8-experimental);">僕は、複数種類の<span style="color: var(--color-darkest-gray);">ロボットの開発をしている。それらのロボットの状態を統合的に管理する必要がある。ロボットを統合管理するサーバーが、自動的に15分毎にロボット達の状態を集約して、ツイートする。そのツイートにより効率的に全体が把握できる</span></p><p class="index__secondaryText--3XcUn" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0 0 var(--feather-space-8-experimental);"><span style="font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;"><span style="font-size: 15px;">I am developing multiple types of robots. It is necessary to manage the state of those robots in an integrated manner. The server that manages the robots in an integrated manner automatically aggregates the states of the robots every 15 minutes and tweets them. You can grasp the whole efficiently by the tweet.</span></span></p><p class="index__secondaryText--3XcUn" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0 0 var(--feather-space-8-experimental);"><span style="font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;"><span style="font-size: 15px;"><br /></span></span></p><div class="pure-u-12-12 pure-u-lg-8-12" style="box-sizing: border-box; color: #0f1419; display: inline-block; font-family: TwitterChirp, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 15px; text-rendering: auto; vertical-align: top; width: 486.656px; zoom: 1;"><div class="pure-u-12-12 pure-u-lg-8-12" style="box-sizing: border-box; display: inline-block; text-rendering: auto; vertical-align: top; width: 486.656px; zoom: 1;"><p style="box-sizing: border-box; font-size: var(--font-size-body-primary); line-height: var(--line-height-body-primary); margin: 0 0 var(--feather-space-8-experimental);">Are you planning to analyze Twitter data?</p></div><div class="pure-u-12-12 pure-u-lg-4-12" style="box-sizing: border-box; display: inline-block; text-rendering: auto; vertical-align: top; width: 243.328px; zoom: 1;"><div class="index__switchContainer--3bXs5" style="box-sizing: border-box; padding: 0px; text-align: right;"><div aria-checked="false" class="Switch Switch--blue" role="switch" style="align-items: center; box-sizing: border-box; cursor: pointer; display: inline-flex; outline: none;" tabindex="0"><span class="Switch-control" style="background-color: #b9cad3; border-radius: 0.5rem; box-sizing: border-box; height: 1rem; position: relative; user-select: none; width: 2rem;"><span class="Switch-thumb" style="background-color: white; border-color: rgb(185, 202, 211); border-radius: 0.5rem; border-style: solid; border-width: 1px; box-sizing: border-box; content: ""; display: block; height: 1rem; left: 0px; position: absolute; transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s, left 0.125s ease 0s, right 0.125s ease 0s; width: 1rem;"></span><span aria-hidden="true" class="Switch-iconOn" style="align-items: center; box-sizing: border-box; color: white; display: flex; font-size: 0.6rem; height: 1rem; justify-content: flex-start; left: 0.333333rem; position: absolute; width: 1rem;"><span class="Icon Icon--check" style="background: transparent; box-sizing: border-box; display: inline-block; position: relative; vertical-align: baseline;"></span></span><span aria-hidden="true" class="Switch-iconOff" style="align-items: center; box-sizing: border-box; color: white; display: flex; font-size: 0.6rem; height: 1rem; justify-content: flex-end; left: 0.666667rem; position: absolute; width: 1rem;"><span class="Icon Icon--close" style="background: transparent; box-sizing: border-box; display: inline-block; position: relative; vertical-align: baseline;"></span></span></span><span class="Switch-text" style="box-sizing: border-box; margin-left: 0.4rem;">No</span><span class="Switch-text" style="box-sizing: border-box; margin-left: 0.4rem;"><br /></span></div></div></div></div><p class="index__secondaryText--3XcUn" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0 0 var(--feather-space-8-experimental);"><span style="font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;"><span style="font-size: 15px;"><br /></span></span></p></div><div><div class="pure-u-12-12 pure-u-lg-8-12" style="box-sizing: border-box; color: #0f1419; display: inline-block; font-family: TwitterChirp, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 15px; text-rendering: auto; vertical-align: top; width: 486.656px; zoom: 1;"><p style="box-sizing: border-box; font-size: var(--font-size-body-primary); line-height: var(--line-height-body-primary); margin: 0 0 var(--feather-space-8-experimental);"><br /></p><p style="box-sizing: border-box; font-size: var(--font-size-body-primary); line-height: var(--line-height-body-primary); margin: 0 0 var(--feather-space-8-experimental);">Will your app use Tweet, Retweet, Like, Follow, or Direct Message functionality?</p></div><div class="pure-u-12-12 pure-u-lg-4-12" style="box-sizing: border-box; color: #0f1419; display: inline-block; font-family: TwitterChirp, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 15px; text-rendering: auto; vertical-align: top; width: 243.328px; zoom: 1;"><div class="index__switchContainer--3bXs5" style="box-sizing: border-box; padding: 0px; text-align: right;"><div aria-checked="true" class="Switch Switch--blue is-checked" role="switch" style="align-items: center; box-sizing: border-box; cursor: pointer; display: inline-flex; outline: none;" tabindex="0"><span class="Switch-control" style="background-color: #1d9bf0; border-radius: 0.5rem; box-sizing: border-box; height: 1rem; position: relative; user-select: none; width: 2rem;"><span class="Switch-thumb" style="background-color: white; border-color: rgb(29, 155, 240); border-radius: 0.5rem; border-style: solid; border-width: 1px; box-sizing: border-box; content: ""; display: block; height: 1rem; left: 1rem; position: absolute; transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s, left 0.125s ease 0s, right 0.125s ease 0s; width: 1rem;"></span><span aria-hidden="true" class="Switch-iconOn" style="align-items: center; box-sizing: border-box; color: white; display: flex; font-size: 0.6rem; height: 1rem; justify-content: flex-start; left: 0.333333rem; position: absolute; width: 1rem;"><span class="Icon Icon--check" style="background: transparent; box-sizing: border-box; display: inline-block; position: relative; vertical-align: baseline;"></span></span><span aria-hidden="true" class="Switch-iconOff" style="align-items: center; box-sizing: border-box; color: white; display: flex; font-size: 0.6rem; height: 1rem; justify-content: flex-end; left: 0.666667rem; position: absolute; width: 1rem;"><span class="Icon Icon--close" style="background: transparent; box-sizing: border-box; display: inline-block; position: relative; vertical-align: baseline;"></span></span></span><span class="Switch-text" style="box-sizing: border-box; margin-left: 0.4rem;">Yes</span></div></div></div><div class="pure-u-12-12 pure-u-lg-8-12" style="box-sizing: border-box; display: inline-block; text-rendering: auto; vertical-align: top; width: 486.656px; zoom: 1;"><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; color: #0f1419; font-family: TwitterChirp, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: var(--font-size-secondary-text); line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><b>Please describe your planned use of these features.</b></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;"><span style="font-size: 15px;">The application uses the tweet function. The robot management system aggregates and tweets every 15 minutes.</span></span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 16px;">Do you plan to display Tweets or aggregate data about Twitter content outside Twitter?</span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 16px;">これはNo</span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 16px;">Will your product, service, or analysis make Twitter content or derived information available to a government entity?</span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 16px;">これも、No</span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 16px;">NEXTボタンを押下する。すると下の画面</span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9TYLKeyG1lTl7rNoMLbl4vz6eZhfQQyPJkMjsuu9MzYkOcb99w8lM5UrzjxKapyU2SWfZYd5V8bMf6678PdLYw4ljI2eNFXTrpYgkTG-LhhTxHqotrJAyB94Oy_iaKr4wZGHLU2t7Rzo/s2048/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2021-12-01+19.45.41.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1584" data-original-width="2048" height="248" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9TYLKeyG1lTl7rNoMLbl4vz6eZhfQQyPJkMjsuu9MzYkOcb99w8lM5UrzjxKapyU2SWfZYd5V8bMf6678PdLYw4ljI2eNFXTrpYgkTG-LhhTxHqotrJAyB94Oy_iaKr4wZGHLU2t7Rzo/s320/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2021-12-01+19.45.41.png" width="320" /></a></div><br /><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 16px;">Nextボタンを押下する</span><p></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 16px;"><br /></span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrNHKXItpNvxgKN_PpEg8LD7h8MNeF9_0-YuDNf5M1ItcHH2TN6S6USwTLMR4rrG4amdxs3gSyZY9iSCOUOltcjf2EIXEa35beGAFLO91y2ese2L52EhCVICYYyUfIU6M3Zce6VKSWzkM/s2048/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2021-12-01+19.47.14.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1516" data-original-width="2048" height="237" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrNHKXItpNvxgKN_PpEg8LD7h8MNeF9_0-YuDNf5M1ItcHH2TN6S6USwTLMR4rrG4amdxs3gSyZY9iSCOUOltcjf2EIXEa35beGAFLO91y2ese2L52EhCVICYYyUfIU6M3Zce6VKSWzkM/s320/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2021-12-01+19.47.14.png" width="320" /></a></div><br /><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 16px;">チェックして、 Submitボタン</span><p></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 16px;"><br /></span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 16px;">次に、Keyデータを取得する。</span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVawcVFo56D6ZlI3vNAn1cPKFRyYkH68HLx2yc7w2KdDFoGf6rF8sBTIV5Lm123-U1CJIYftxN1r1UVW0reIIk_7ktftZ-PBDSMKOLbhOgu0Gatw2SbSVuLpgtb2hTufHrwm-h5-RfUXc/s2048/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2021-12-01+19.50.27.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1540" data-original-width="2048" height="241" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVawcVFo56D6ZlI3vNAn1cPKFRyYkH68HLx2yc7w2KdDFoGf6rF8sBTIV5Lm123-U1CJIYftxN1r1UVW0reIIk_7ktftZ-PBDSMKOLbhOgu0Gatw2SbSVuLpgtb2hTufHrwm-h5-RfUXc/s320/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2021-12-01+19.50.27.png" width="320" /></a></div><p></p><div class="index__credentialLabelFullWidth--1sJ-C" style="box-sizing: border-box; display: flex; flex-direction: column; orphans: 2; overflow-wrap: break-word; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; widows: 2; width: 286.578px;"><div class="index__tokenType--2IFoe" style="box-sizing: border-box; display: flex; flex-wrap: wrap; justify-content: space-between; margin-right: 0.8rem;"><div style="box-sizing: border-box;"><p class="index__pleaseDescribeText--16EBi" style="-webkit-text-stroke-width: 0px; box-sizing: border-box; color: black; font-family: "Hiragino Kaku Gothic ProN"; font-size: medium; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 15px;">API Key and Secret Regenerateボタンを押下</span></p><p class="index__pleaseDescribeText--16EBi" style="-webkit-text-stroke-width: 0px; box-sizing: border-box; color: black; font-family: "Hiragino Kaku Gothic ProN"; font-size: medium; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem; text-transform: none; white-space: normal; word-spacing: 0px;"></p><div class="separator" style="-webkit-text-stroke-width: 0px; clear: both; color: #0f1419; font-family: TwitterChirp, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 15px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: center; text-transform: none; white-space: normal; word-spacing: 0px;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmbuz-HRuhn9gusbP8w4m8AdWSupSt_w2syRghjW4WxqYktGcCFSLCBCgx0zLb4zfI9ulF7vpKlOc6S7SNvJfHHEk8LyaHi1VgYWbwuJ_AsyjMNzHn0p4UecJzOIwK_UkLqMjNw4eDLPk/s1334/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2021-12-01+19.55.01.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1334" data-original-width="1114" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmbuz-HRuhn9gusbP8w4m8AdWSupSt_w2syRghjW4WxqYktGcCFSLCBCgx0zLb4zfI9ulF7vpKlOc6S7SNvJfHHEk8LyaHi1VgYWbwuJ_AsyjMNzHn0p4UecJzOIwK_UkLqMjNw4eDLPk/s320/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2021-12-01+19.55.01.png" width="267" /></a></div><br /><span style="-webkit-text-stroke-width: 0px; color: #0f1419; font-family: TwitterChirp, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 15px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px;"><br /></span><span style="-webkit-text-stroke-width: 0px; background-color: #f7f9f9; color: #0f1419; font-family: TwitterChirp, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 15px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px;">Access Token and Secret </span><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;"><span style="font-size: 15px;">Regenerateボタンを押下</span></span><p class="index__pleaseDescribeText--16EBi" style="-webkit-text-stroke-width: 0px; box-sizing: border-box; color: black; font-family: "Hiragino Kaku Gothic ProN"; font-size: medium; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem; text-transform: none; white-space: normal; word-spacing: 0px;"></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPnsUpGSs8QX2iOymA-orb_La9kptHkxjMBbazS-XNopkEoS93IUq3Ez05Qf7IGqBZvRLB0ffILu9VlxhMSyI4ptEXqTFO7kS9aiQ63jO936DgC5j48sLsi_FzSs5OSW7H_3nc-2ECQ4U/s1332/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2021-12-01+20.00.33.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1332" data-original-width="1120" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPnsUpGSs8QX2iOymA-orb_La9kptHkxjMBbazS-XNopkEoS93IUq3Ez05Qf7IGqBZvRLB0ffILu9VlxhMSyI4ptEXqTFO7kS9aiQ63jO936DgC5j48sLsi_FzSs5OSW7H_3nc-2ECQ4U/s320/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2021-12-01+20.00.33.png" width="269" /></a></div><br /><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 15px;"><br /></span><p></p><p class="index__pleaseDescribeText--16EBi" style="-webkit-text-stroke-width: 0px; box-sizing: border-box; color: black; font-family: "Hiragino Kaku Gothic ProN"; font-size: medium; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 15px;">これで準備OK</span></p><h1 style="-webkit-text-stroke-width: 0px; box-sizing: border-box; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; letter-spacing: normal; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem; text-align: left; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif; font-size: large;">2. Raspberry Pi の設定</span></h1><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;">sudo pip3 install twython</span></p><div class="separator" style="clear: both; text-align: left;"></div><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;">確認は、、、</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;">python3 -c "import twython"</span></p><p class="index__pleaseDescribeText--16EBi" style="-webkit-text-stroke-width: 0px; box-sizing: border-box; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;"><span style="font-size: 15px;">vi auth.py</span></span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;"><span style="font-size: 15px;">consumer_key = 'API Key'</span></span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;"><span style="font-size: 15px;">consumer_secret = 'API Key Secret'</span></span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;"><span style="font-size: 15px;">access_token = 'Access Token'</span></span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;"><span style="font-size: 15px;">access_token_secret = 'Access Token Secret'</span></span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;"><span style="font-size: 15px;"><br /></span></span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;"><span style="font-size: 15px;">vi tst.py</span></span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;"><span style="font-size: 15px;">from twython import Twython</span></span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;"><span style="font-size: 15px;">from auth import (</span></span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;"><span style="font-size: 15px;"> consumer_key,</span></span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;"><span style="font-size: 15px;"> consumer_secret,</span></span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;"><span style="font-size: 15px;"> access_token,</span></span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;"><span style="font-size: 15px;"> access_token_secret</span></span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;"><span style="font-size: 15px;">)</span></span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;"><span style="font-size: 15px;">twitter = Twython (</span></span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;"><span style="font-size: 15px;"> consumer_key,</span></span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;"><span style="font-size: 15px;"> consumer_secret,</span></span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;"><span style="font-size: 15px;"> access_token,</span></span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;"><span style="font-size: 15px;"> access_token_secret</span></span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;"><span style="font-size: 15px;">)</span></span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;"><span style="font-size: 15px;">message = "100-100-101"</span></span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;"><span style="font-size: 15px;">twitter.update_status(status=message)</span></span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;"><span style="font-size: 15px;">print("Tweeted: " + message)</span></span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;"><span style="font-size: 15px;">これで実行したらOKです。</span></span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;"><span style="font-size: 15px;">ちなみに同じメッセージを繰り返すとエラーになる。</span></span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;"><span style="font-size: 15px;"></span></span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;"><span style="font-size: 15px;">twython.exceptions.TwythonError: Twitter API returned a 403 (Forbidden), Status is a duplicate.</span></span></p><div><br /></div><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: arial;"><span style="font-size: 15px;"><i><b>Peace!! </b></i></span></span></p><p class="index__pleaseDescribeText--16EBi" style="box-sizing: border-box; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, system-ui, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;"><span style="font-size: 15px;"><br /></span></span></p><p class="index__pleaseDescribeText--16EBi" style="-webkit-text-stroke-width: 0px; box-sizing: border-box; color: black; font-family: "Hiragino Kaku Gothic ProN"; font-size: medium; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 15px;"><br /></span></p><div style="-webkit-text-stroke-width: 0px; color: #0f1419; font-family: TwitterChirp, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 15px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="color: #0f1419; font-family: TwitterChirp, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 16px;"><br /></span></div><p class="index__pleaseDescribeText--16EBi" style="-webkit-text-stroke-width: 0px; box-sizing: border-box; color: black; font-family: "Hiragino Kaku Gothic ProN"; font-size: medium; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; line-height: var(--line-height-secondary-text); margin: 0.9rem 0px 1.2rem; text-transform: none; white-space: normal; word-spacing: 0px;"></p></div></div></div></div></div>naohttp://www.blogger.com/profile/03033662515342408623noreply@blogger.com0tag:blogger.com,1999:blog-9071009923751055362.post-76296136037343515512021-11-29T02:07:00.006+09:002021-12-01T18:07:45.467+09:00資本を輸出して利息で稼ぐ国日本、故に二極化し貧しい人が増える<p> これは良いコラムで、これを読むと表題の事がわかる</p><p>https://jp.reuters.com/article/column-daisaku-ueno-idJPKBN2HV31K</p><h4 style="text-align: left;"><span style="font-family: arial;"><i>Peace!!</i></span></h4>naohttp://www.blogger.com/profile/03033662515342408623noreply@blogger.com0tag:blogger.com,1999:blog-9071009923751055362.post-91989241592325190812021-11-29T02:03:00.004+09:002021-11-29T02:03:29.021+09:00Mac(Monterey) で、頻発。client_loop: send disconnect: Broken pipe<p>MacからRaspberry Piにsshで入ると、接続状態が悪くなり、じきにこのメッセージが表示され接続途絶える。</p><p>がネット探すと、この問題の解決策がいろいろでている。</p><p>多くは、~/.ssh/config に</p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;">Host *</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;">ServerAliveInterval 60</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;">TCPKeepAlive yes</span></p><p>このおまじないを加える。</p><p>でも、足りないみたいで、結局行き着いた先は、</p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;">Host *</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;">ServerAliveInterval 60</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;">TCPKeepAlive yes</span></p><p class="p1" style="background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 14px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;">IPQoS=lowdelay</span></p><p>こんな感じ。</p><p>これで、Macのターミナルからのssh, AtomのFtp-Remote-Editもストレスフリーになった。</p><p>でも、このおまじないをしなくても、FileZillaで接続した時は問題なかった。</p><p>という事は、MacとAtom(package)の実装の問題。</p><h4 style="text-align: left;"><span style="font-family: arial;"><i style="font-weight: normal;">Peace!!</i></span></h4>naohttp://www.blogger.com/profile/03033662515342408623noreply@blogger.com0tag:blogger.com,1999:blog-9071009923751055362.post-38212590387219217982021-10-31T02:06:00.001+09:002021-10-31T02:06:38.371+09:00Raspberry Pi のSDカードを複製する<p> 忘備録</p><p><br /></p><p>(1) 一枚複製</p><p>Raspberry Pi desktop のSDカードコピーツールを使って行なう</p><p><br /></p><p>(2) 複数枚作成</p><p>今まで使っていたWin32diskImager が何故か? 起動しなくなったのでMacで、、、</p><p>・元になるSDカードのimageをMacのdisk のコピーする</p><p>diskutil list</p><p>diskutil umountDisk /dev/disk2</p><p>sudo dd if=/dev/rdisk2 of=dev11080_YYYYMMDD.img bs=1m</p><p>・複製</p><p>mac にRaspberry Piの 'Raspberry Pi imager'をRaspberry Piの本家よりダウンロード</p><p>このツールで複数枚のSDカードを作成する</p><p><i><span style="font-family: arial;">Peace!!</span></i></p>naohttp://www.blogger.com/profile/03033662515342408623noreply@blogger.com0tag:blogger.com,1999:blog-9071009923751055362.post-10662740299876653652021-10-30T11:43:00.008+09:002021-10-30T22:31:19.442+09:00僕が村上春樹を読まなくなった理由<p> あくまでも、僕の場合</p><p>風の歌を聞け</p><p>1973年のピンボール</p><p>羊をめぐる冒険</p><p>初期の3部作。特に上の2作を読んだ時は、自分の中の「本当はこうしたいんだ」と思っている、もう1人の自分と出会った様で吸い込まれる様に、その本の空間に入り混んだ</p><p>羊をめぐる冒険は、ピンクの羊が大学時代に付き合っていた、新宿の文化服装学院でデザイナーを目指していた、とんがったちょっと変わった彼女と重なり、もう1人の自分ではなく、その彼女と本の空間の中でデートしているようだった。</p><p>その後の作品も、ノルウェーの森までは、作品の空間を共有できた。村上春樹の作品の空間で、現実社会で生きざるおえない自分の中から、本当らしい’僕’が羽を伸ばせる解放感を楽しんでいた。</p><p>村上春樹に興味を持ち、彼が好きだという作家の本も読んだ</p><p>トルーマン・カポーティ</p><p>スコット・フィッツジェラルド</p><p>カポーティ、フィッツジェラルドの作品もそれぞれの空間が好きになり、特に彼の空間にある狂気が、自分の隠れていた’僕’の狂気のようで、のめり込んでしまった。</p><p>そして、サリンジャー</p><p>もちろん、「ライ麦畑でつかまえて」は、読んでいたし、俗世と離れて生活している事も知っていた。</p><p>そして</p><p>Franny and Zooey</p><p>知ってしまった。</p><p>バナナボートで、俗世から離れたしまったサリンジャーを、</p><p>Frannyのように追う彼の姿を。。。</p><p><br /></p><p>あとは、少しづつ、続けます。。。</p>naohttp://www.blogger.com/profile/03033662515342408623noreply@blogger.com0tag:blogger.com,1999:blog-9071009923751055362.post-80674380077235127332021-10-30T10:54:00.001+09:002021-12-03T01:20:59.332+09:00Macを使ったRaspberry Pi開発には、Atomが最高<p> Raspberry Pi上で、自律走行システムの研究開発するのが僕の仕事</p><p>通常は、MacからRaspberry Piにssh接続し、FileZIllaの機能でRaspberry Pi内をツリー表示してコードの修正やファイルの転送を行っていた。まぁ、それなりに便利で、特に問題もなく開発をしていた。</p><p><br /></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuihwewuMazCtKs4wovzpZpEbX_MO-gnH4Mv-YI3z3Cju8yjPvrL1sz0IHCxPyWLUOqSysn6FdUXXoMLoDDD8oMOTnXtXAV5xrZ5BeK3iGR5dvJfzl7FfOmQ-WnjMHXtgbxSrY9Nlj0p0/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="1396" data-original-width="1582" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuihwewuMazCtKs4wovzpZpEbX_MO-gnH4Mv-YI3z3Cju8yjPvrL1sz0IHCxPyWLUOqSysn6FdUXXoMLoDDD8oMOTnXtXAV5xrZ5BeK3iGR5dvJfzl7FfOmQ-WnjMHXtgbxSrY9Nlj0p0/" width="272" /></a></div><br /><p></p><p>FileZillaに登録するeditorはatomを使っていた。ただ、その使い方は単なるeditorでpackageも入れすに、ただeditorとして使っていた。</p><p>ネットで「atomのpackage」使うと便利になるというので試しにftp系のpackageをいくつか試してみた。atomにpackageをインストールする時に、"ftp"で検索すると複数のpackageがあり、最もインストールが多かったのは、remote-ftp。正直にいって使いにくい。</p><p>次に確かめたのが、ftp-remote-edit</p><p>これが僕には、ドンピシャ!!</p><p>・登録したserverを階層構造で見れる<br />・ディレクトリー内のイメージデータも表示できる<br />・Macから、drag&dropでファイル転送ができる<br />・Raspberry Piのコマンド画面操作ができる<br /></p><p>つまり、以下の2つのアプリケーションでやっていた事が、Atomの画面の中で完結する<br />・Macターミナル -> ssh<br />・FileZilla<br /></p><p>これは、通常Mac Proで開発してうる僕にはとっても重要で、画面の中に複数のアプリケーションを表示する必要がなく、画面がスッキリし頻繁な画面操作も回避できる。</p><p>知ろうとしない事、これはとっても恐ろしい事だ<br />この歳になって、改めて気づいた。</p><p>追加</p><p>編集した内容をプリンターに出力する時に使うpackage</p><p>print-code</p><p>いろいろ出力系のpackage試したけど、他と違ってプリンターのドライバーをきちんと制御しているので現状ではNo1</p><p><span style="font-family: arial;"><i>Peace!!</i></span></p>naohttp://www.blogger.com/profile/03033662515342408623noreply@blogger.com0tag:blogger.com,1999:blog-9071009923751055362.post-11851640336011071722021-10-27T14:46:00.004+09:002021-10-27T14:46:50.883+09:00wifi中継機は便利<p> 会社での搬送ロボットのテストは、wifi の電波距離の関係でテストの準備が大変でした。</p><p>あっ、単純に中継機で伸ばせばいいじゃん</p><p>会社のルータを、中継機にしてもよいけど、搬送ロボットの距離を伸ばしたのでモバイル電源で稼働する中継機を探しました。</p><p><br /></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsnKeTDcj-KfwGKKpHroPGPZ1-EoJJTTdOrCBjCZx5GiTltL5GgVCrOOkjVnZZMduHU60DyfWT7NMqWtjL806HByyq_7ceJ70e3noDvXurJhPnWG22hIaqpe78RFxRCVCF_kQ_SBxKM1g/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="960" data-original-width="768" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsnKeTDcj-KfwGKKpHroPGPZ1-EoJJTTdOrCBjCZx5GiTltL5GgVCrOOkjVnZZMduHU60DyfWT7NMqWtjL806HByyq_7ceJ70e3noDvXurJhPnWG22hIaqpe78RFxRCVCF_kQ_SBxKM1g/" width="192" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: left;">購入したのが、ELECOM WTC-1167USです。</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">もう、なんで早く買わなかったのかと、、、後悔しきり</div><div class="separator" style="clear: both; text-align: left;">メインのルータと、WPSで接続して、あっという間に稼働状態</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">それに、使わない時は、家の奥まった所にある僕の部屋で使う。今まで、wifiアンテナが1本しか立たなかったけど、これを間に入れてもうビンビン</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><span style="font-family: arial;"><i>Peace!!</i></span></div><p></p>naohttp://www.blogger.com/profile/03033662515342408623noreply@blogger.com1tag:blogger.com,1999:blog-9071009923751055362.post-88102392166870450802021-10-20T13:26:00.002+09:002021-10-30T22:48:45.476+09:00CB400SF ユーザ車検<p> 車検をオートバイ屋さんに頼むと高いので、ユーザ車検をしました。</p><p>初めてなので、いろいろ情報を集めましたが、やはりドキドキでした。</p><p>振り返ると、、、</p><p>・検査は、意外とアッサリ終わるなぁ<br />・書類作成は、事務所の例示が理解しやすく、職員の方々も親切</p><p>プロしかできないと思っていた、車検のイメージが大きく変わりました。</p><p></p><h3 style="text-align: left;">1. 書類系</h3>元の車検書、自賠責(新・旧)、納税証明、点検記録、申請書(印紙貼済み)3枚の合計8枚<br />あると便利なのは、書類を挟むバインダー。<br />理由は、検査場で検査員さんに全部渡すので、その時にバラバラより、スタンプ押してもらったり、走行距離を書いてもらう時に親切だと思うから<p></p><p>・申請書類<br />印紙を購入する所で、書類もあり、かつ印紙も貼って頂けた。<br />検査場の申請場所では、手続き書類の書き方などの例が分かりやすく、その通りに書けば良い。3枚記述するけど、車検書の内容で、ナンバー、車体番号、氏名、住所を繰り返す</p><p>・点検整備記録<br />インターネットでダウンロードして、自己整備をして記述した。<br />タイヤの溝、ブレークパッドの厚さなどは計測して記述した。排ガスの濃度などは計測できないので、空欄のままにした。<br />ポイントは、光軸調整。自分なりにやってみたけど、不安があったので検査場の近くのテスト屋さんで再確認。なるほど、、、と思い、自分のやり方でOKだと思った。<br /><br /></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTrDl8GMgl7SeffLvProD5Ujhysi1RpXaIeZH7PP-HPIcol73OaZyuDMZesUzSs54vyv2XJsVDrARj1YbpezMIYpv-zYXJSuWHSu5Vr5GiootSEHwdkoAh6ApT6DrhBu_-BkqZMwiAJAc/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="1024" data-original-width="768" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTrDl8GMgl7SeffLvProD5Ujhysi1RpXaIeZH7PP-HPIcol73OaZyuDMZesUzSs54vyv2XJsVDrARj1YbpezMIYpv-zYXJSuWHSu5Vr5GiootSEHwdkoAh6ApT6DrhBu_-BkqZMwiAJAc/" width="180" /></a></div><br />「後点検」と申請しても良いそうだけど、自分のバイクなのでこの機会に自分で点検整備するのが良いと思います。そもそも、基本的な点検整備できない人がバイク乗るは危ないと思う。<br /><p></p><p>・自賠責保険<br />印紙購入する所で場所を聞いて、同じ構内にあるその場所に行って購入した。</p><h3 style="text-align: left;">2. 検査</h3><p>申請書を渡した後に、指定された場所にバイクに行く。</p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVzYYeBOKRzw95_uo_sZCvFojJ-bdTk2vQUaWOzCbn7cmX2nGEBEoePDV-iUXm-yNuQgx-wvlwRYn4NczfZoYzGjxKIYlRwd0dG_Ep4yCWl_QO1pLyvrRDgJC0NWwj2oe3Ph1f-AswbcM/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="1024" data-original-width="768" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVzYYeBOKRzw95_uo_sZCvFojJ-bdTk2vQUaWOzCbn7cmX2nGEBEoePDV-iUXm-yNuQgx-wvlwRYn4NczfZoYzGjxKIYlRwd0dG_Ep4yCWl_QO1pLyvrRDgJC0NWwj2oe3Ph1f-AswbcM/" width="180" /></a></div><br />検査場の入り口に「はじめての人は、伝えて下さい」と書いてあった。<br />自分の番に来た時に、検査員さんに、それを伝えると「横につきますね。」<br />「ラインに入ると、バランス崩す人が多いので、十分注意してくだい。」<br />「掲示板の指示通りに、進めて下さい。」<br />「スピードメータは、後輪ですか?前輪ですか?」<br />「あ、、、わかりません」<br />「多分、後輪ですね」<br />ちょっと緊張していたので、掲示板の文言に迷うと、<br />横から「xxxして下さい」とアドバイス<br />ブレーキと、スピードメータチェックは、OK<br /><br />問題の光軸検査<br />ちょっと不安だったけど掲示板に「◯」<br />排ガス検査も「◯」<br />これで終わり、、、10分もかからなかったかも、、、<br /><br /><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGQtUQICUs-xxwvCGSq00DHhjHOSClvS5_GyqJU8EgJgW4FRUEuprZlI1gzVdgsN3HxE3et-GWalX2T4c8BcpbZh0gyv8FVG_AgWfntPd2Y3yFNOek0__bQdhzI7tlNZsp6xFFxEEFIag/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="1558" data-original-width="1170" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGQtUQICUs-xxwvCGSq00DHhjHOSClvS5_GyqJU8EgJgW4FRUEuprZlI1gzVdgsN3HxE3et-GWalX2T4c8BcpbZh0gyv8FVG_AgWfntPd2Y3yFNOek0__bQdhzI7tlNZsp6xFFxEEFIag/" width="180" /></a></div><br /><br /></div>合格のハンコを頂いてOK<br />書類を、指定された窓口に持っていき、箱にいれて、、、<p></p><p>5分程度待って、新しい車検書、ステッカー、点検整備記録を返してもらい</p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSSrEExaUQEPfuGKlUaK_x-KTmCYhuedpZ37KRG7LHUSaC9Q72UKdg9A1VddHrHNAZ2EJLq1VtLHAZoM3vq4_cwnE2nb2qDbZI6tnEyT6VPewuR91ynT1do-LJNgUreh74DRNo4xF56Cs/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="1024" data-original-width="768" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSSrEExaUQEPfuGKlUaK_x-KTmCYhuedpZ37KRG7LHUSaC9Q72UKdg9A1VddHrHNAZ2EJLq1VtLHAZoM3vq4_cwnE2nb2qDbZI6tnEyT6VPewuR91ynT1do-LJNgUreh74DRNo4xF56Cs/" width="180" /></a></div><br /><br /><p></p><p><span style="font-size: large;">終了!</span></p><p>受付開始から、40-50分でした。</p><p><i><span style="font-family: arial;">Peace!!</span></i></p>naohttp://www.blogger.com/profile/03033662515342408623noreply@blogger.com0tag:blogger.com,1999:blog-9071009923751055362.post-5553889924966964762021-10-17T10:54:00.001+09:002021-10-17T10:54:22.184+09:00自律走行コントローラ<p> たくさんの企業さんに、導入頂きブラッシュアップを続けてきました。</p><p>貧乏企業なので、型を作ることもできず、レーザーカッターで木製のケース作って何とかまとめています。写真は、僕が開発で使っているモノです。<br /></p><p>前面には、ステレオカメラ、背面にはタッチパネルが付いて、とりあえずまとまった感じです。</p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibHlX7ZvcqvbEnWvnR80uGqxtcdUG571UoIiFzskoj57bWFEQcGs1r0eKYfW3SvZQmwvtj_e7z3THnJgfrflTTkeafzmO8zmgcC-r-9WWBYm-k1NVskLXh9ZqO62GCYnl79JHazCR6ycM/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="4032" data-original-width="3024" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibHlX7ZvcqvbEnWvnR80uGqxtcdUG571UoIiFzskoj57bWFEQcGs1r0eKYfW3SvZQmwvtj_e7z3THnJgfrflTTkeafzmO8zmgcC-r-9WWBYm-k1NVskLXh9ZqO62GCYnl79JHazCR6ycM/" width="180" /></a></div><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0q_6wml_CjZtEvYoxwq5a2UHkpLEyAFwCZBaRtON6GIlyXjeaTJvWj8fCuGgJBtDhhJl7cxi5bRbqA54Mz3dXnKm7GsNHUSI9XMxB_rCspuxu38efGcGSuo0g8O_WuluhINEBeXHE3pg/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="4032" data-original-width="3024" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0q_6wml_CjZtEvYoxwq5a2UHkpLEyAFwCZBaRtON6GIlyXjeaTJvWj8fCuGgJBtDhhJl7cxi5bRbqA54Mz3dXnKm7GsNHUSI9XMxB_rCspuxu38efGcGSuo0g8O_WuluhINEBeXHE3pg/" width="180" /></a></div><br /><br /></div>内部には、フェイルセーフと性能を考えてRaspberry Pi4が2つ入って、さらにAIのエッジデバイス、センサー、LED等々、、、<p></p><p>これにモータドライバーをつけて、モータを接続すれば自律走行するわけだけど、、、</p><p>まぁ、のちのち詳しく</p><p>Peace!!</p><p><br /></p><p><br /></p>naohttp://www.blogger.com/profile/03033662515342408623noreply@blogger.com0tag:blogger.com,1999:blog-9071009923751055362.post-61865883713770203662021-10-17T09:59:00.004+09:002021-10-17T09:59:44.505+09:00ホットサンド、OIGEN 南部鉄のクッカーがおすすめ<p> 朝食は、ホットサンドが好きです。</p><p>特に、これからは寒くのなでホカホカの食べ物がが欲しくなります。</p><p>いつも使っているのは、OIGENの鉄器クッカー</p><p>アルミ製のクッカーが最近多いけど、出来上がりの美味しさがまったく違う</p><p>鉄に蓄えられ熱が、徐々に食材に伝わるので、食材の持つ味がゆっくり引き出されていく。</p><p>中身は、キャベツやチーズ、または昨日の残りのおかずなんかを入れても良いです。</p><p>1日の始まりが元気に楽しくなります。</p><p>Peace!!</p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjX0d6jLUf_4EmKjke74cxNJObcae_76qcdUQ8KzAsYv-B_OBE8EFuivSmJ460-HIVSWX81piuAsBg1UpVdP27isuWlBNNklUYSV1xJqkSPDpG1FxCTKGHFTBHGS7yeAg3Q9uNu4yruazg/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="960" data-original-width="960" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjX0d6jLUf_4EmKjke74cxNJObcae_76qcdUQ8KzAsYv-B_OBE8EFuivSmJ460-HIVSWX81piuAsBg1UpVdP27isuWlBNNklUYSV1xJqkSPDpG1FxCTKGHFTBHGS7yeAg3Q9uNu4yruazg/" width="240" /></a></div><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9o4uvc2Bk1DDrmxwfBGqoasMOOK0f_-rkn0PP93JOwr4lgLZFY81HO6B4b0xgZr6J_yRWEvVdwaDQC8db7J3_ng_m_wwLxytYe79luHli3fWEGLI7k-yPeVV263vT2H47C6hCWRRA7X0/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="960" data-original-width="960" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9o4uvc2Bk1DDrmxwfBGqoasMOOK0f_-rkn0PP93JOwr4lgLZFY81HO6B4b0xgZr6J_yRWEvVdwaDQC8db7J3_ng_m_wwLxytYe79luHli3fWEGLI7k-yPeVV263vT2H47C6hCWRRA7X0/" width="240" /></a></div><br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDIJYL_5BX4zBmJaWmyeO7LeuFatt-avTPn4oLngQbgXItGrO1EnnT_3gonOUGwm0466XfsAsADtojdLR6tPXXv8DPZTFekTZv9MfMXSv4wvpIFKXMJRCt4bvTAe-ZPsjmxjHsjSA8Zq0/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="960" data-original-width="960" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDIJYL_5BX4zBmJaWmyeO7LeuFatt-avTPn4oLngQbgXItGrO1EnnT_3gonOUGwm0466XfsAsADtojdLR6tPXXv8DPZTFekTZv9MfMXSv4wvpIFKXMJRCt4bvTAe-ZPsjmxjHsjSA8Zq0/" width="240" /></a></div><br /><br /></div><br /><br /><p></p>naohttp://www.blogger.com/profile/03033662515342408623noreply@blogger.com0tag:blogger.com,1999:blog-9071009923751055362.post-9016887485708903782021-10-17T09:49:00.002+09:002021-10-17T09:49:20.994+09:00ブログ再開、最初はAtomのprint packageで良いモノ見つけた!<p> いろいろ、いろいろ重なりブログを止めてました。</p><p>気持ち的に落ち着いたので、再開します。</p><p>内容は日々の出来事と、開発のトピックスです。</p><p>editor のAtomは、本当に使い安いのだけど、ちょっとプリントする時のpackageに良いのものがなかったので、ほぼ諦めていただのだけど、、、</p><p>時間があったので、package検索してたら、ネットで話題になっていないpackageがあって試したたら、何と秀逸で、、、</p><p>print-code</p><p>印刷ニーズがある人には、おすすめです。</p><p>Peace!!</p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7v9naJzf1f7HsB5-D-JRairckgKwMFKMUfq3IQ-A0PJdwDqD3byfaKtgEbu5boJGr36L42XP3Fsh1T5wvKUL8H_cPM8Emq-RrUTRSurxvLJyzhvAkF4IwS-RZPEdI7glz64Vfeo_QxVw/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="2006" data-original-width="1890" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7v9naJzf1f7HsB5-D-JRairckgKwMFKMUfq3IQ-A0PJdwDqD3byfaKtgEbu5boJGr36L42XP3Fsh1T5wvKUL8H_cPM8Emq-RrUTRSurxvLJyzhvAkF4IwS-RZPEdI7glz64Vfeo_QxVw/" width="226" /></a></div><br /><br /><p></p>naohttp://www.blogger.com/profile/03033662515342408623noreply@blogger.com0tag:blogger.com,1999:blog-9071009923751055362.post-74778442572068501902020-09-13T19:50:00.006+09:002020-09-13T20:02:14.444+09:00コロナへの対応は本当に大変でした<p> コロナに罹患はしないけど、、、</p><p>中国から部品が入ってこなくなったり、そのたいろいろでこの半年は本当に大変だった。これは僕だけではなく、世界中大変だったわけで、、、</p><p>ロボットも国産部品に切り替えたけど、、、</p><p>その過程で、沢山の企業さんと交渉したけど、、、、</p><p>日本のモノづくりは根本的に、アジアのガラパゴスって強く思った。日本人は今のままで本当にいいんですかね?</p><p>グローバルグローバルと言っても、部長全員が英語話せる会社ってどれだけあるんでしょうか?</p><p>英語を話すことは、単に言語の問題ではなくて地域の人々の事を知る事なわけで、知らないのに日本の本社がこうだから、、、、</p><p>そんなことは成り立たない訳で、、、</p><p>あれ、話がそれている。</p><p>まぁ、本当に大変だった。</p><p>今も大変だけど、10月中には50台の搬送ロボットの協調実証を立ち上げないとならない訳で、、、</p><p>どうするんでしょうか?</p><p>自分の事なのに、、、、</p><p>努力を尽くさないと、、、仲間たちの為にも、、、</p><h4 style="text-align: left;"><i>Peace!!</i></h4>naohttp://www.blogger.com/profile/03033662515342408623noreply@blogger.com0tag:blogger.com,1999:blog-9071009923751055362.post-67912151571682969682020-04-02T00:45:00.002+09:002020-04-02T00:45:32.522+09:00最近,,,最近、またオートバイに乗り始めました。<div>
<br /></div>
<div>
早く、遠くにキャンプしながら旅をしたいです。</div>
<div>
<br /></div>
<div>
でも、当面は自粛ですが、、、</div>
<div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4imrnBlcjS8BYmavK2m78Ww-lS-XfuSzjRalvCZEHQCEX3LwZwuICPwhLF5IDvk-vfHKeSXoeFjgRxCN5agdpCgk7Eg_skOM7LIrKhcvMp0BGuzxIajKQeShGAGCdGk0eQiZHgf6Tkjo/s1600/91516313_1932528900211751_710781885936041984_o.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1422" data-original-width="1422" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4imrnBlcjS8BYmavK2m78Ww-lS-XfuSzjRalvCZEHQCEX3LwZwuICPwhLF5IDvk-vfHKeSXoeFjgRxCN5agdpCgk7Eg_skOM7LIrKhcvMp0BGuzxIajKQeShGAGCdGk0eQiZHgf6Tkjo/s320/91516313_1932528900211751_710781885936041984_o.jpg" width="320" /></a></div>
<div>
<br /></div>
</div>
<h4>
<i>Peace!!</i></h4>
naohttp://www.blogger.com/profile/03033662515342408623noreply@blogger.com0tag:blogger.com,1999:blog-9071009923751055362.post-11499105186807082382020-01-03T11:56:00.001+09:002020-01-03T11:56:30.586+09:00国際ロボット展に出展しました2019年12月18日~ 東京ビックサイトで開催された国際ロボット展に出展しました。<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjW6tmRlSqXXFay8bpkVxnd9Pb8_SBjPgGL6IbOrJRNsj_VvkB6z82mClZ4Za7Dsm4HpNGcPLSrdqqIzV10JudZrHGwZaB8yiW7ORXZCJ8DTktfSVEbzR1x0cNBgPWgq7_80KmLnPxXFIM/s1600/DSC_0047.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="939" data-original-width="939" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjW6tmRlSqXXFay8bpkVxnd9Pb8_SBjPgGL6IbOrJRNsj_VvkB6z82mClZ4Za7Dsm4HpNGcPLSrdqqIzV10JudZrHGwZaB8yiW7ORXZCJ8DTktfSVEbzR1x0cNBgPWgq7_80KmLnPxXFIM/s320/DSC_0047.JPG" width="320" /></a></div>
<br />
サービスロボットゾーンの奥の角に2ブース<br />
展示したのは、<br />
低速度自律走行コントローラ<br />
19.8万円のATVキット<br />
AGVキットの応用例<br />
等々<br />
<br />
で、、、、、<br />
大変なことに、<br />
<br />
で、、、、、<br />
AGVキットやりきろう!!!と決心しました。<br />
<br />
「人が運ぶ」を無くす<br />
<br />
この目標を掲げて邁進します。<br />
<br />
どうぞよろしくお願い致します。<br />
<br />
蒲谷直樹@フューチャアグリ株式会社<br />
<br />
<br /><br />
<br />
<br />
<br />naohttp://www.blogger.com/profile/03033662515342408623noreply@blogger.com0tag:blogger.com,1999:blog-9071009923751055362.post-51283973982443505222019-10-05T22:27:00.002+09:002019-10-05T22:27:12.568+09:00Raspberry Pi 開発をVMwareで行う標題のまんまですが、、、<br />
Raspberry Piを同じ環境を作れるので、大変便利です。<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcL42F-ZfftNaMNSst_Q3uajA4f3-HtRocf_vi-lBU4LzAxfS1bzaL2oCFBA2K4ROtVKKTArQXh2ZtHIFCEU62YY2GyY6HxHAEwlUagZFK90I3E5EUWkQ-l4UgwJ1-tH8s4sq60xFLYnY/s1600/%25E7%2584%25A1%25E9%25A1%258C.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="844" data-original-width="1363" height="247" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcL42F-ZfftNaMNSst_Q3uajA4f3-HtRocf_vi-lBU4LzAxfS1bzaL2oCFBA2K4ROtVKKTArQXh2ZtHIFCEU62YY2GyY6HxHAEwlUagZFK90I3E5EUWkQ-l4UgwJ1-tH8s4sq60xFLYnY/s400/%25E7%2584%25A1%25E9%25A1%258C.png" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
Desktopの表示サイズの設定は、下記のツールで行う。<br />
デフォルトのままは、800 x 600<br />
Raspberry Pi > Preferences > Screen Configuration<br />
<br />
ネットワーク設定は、NATで構築<br />
Windowsのアダプターは、VMnet8<br />
VMware側の設定は、このツールでおなう。<br />
編集 > 仮想ネットワークエディター<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbXEx4FznL-qFEC_dx_-WJq3tFQ9AtIViG7dYOQGxkR751Ftrw2OUq2UFKromUTqwyWOTPK2leAQdm5XUobdpHemDEdTHsxwtscwEqLXa5zaiJ7tbVdVAiqy71eBAb4kiqXilDE3zE98M/s1600/%25E7%2584%25A1%25E9%25A1%258C.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="529" data-original-width="638" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbXEx4FznL-qFEC_dx_-WJq3tFQ9AtIViG7dYOQGxkR751Ftrw2OUq2UFKromUTqwyWOTPK2leAQdm5XUobdpHemDEdTHsxwtscwEqLXa5zaiJ7tbVdVAiqy71eBAb4kiqXilDE3zE98M/s1600/%25E7%2584%25A1%25E9%25A1%258C.png" /></a></div>
<br />
こんな感じ<br />
<br />
ホストオンリーに印がついているのは、既にNAT接続しているので、NAT一つ制限の為にこのような表示になっている。<br />
最初の設定の時はNATを指定している。<br />
<br />
<h4>
<i><span style="font-family: Arial, Helvetica, sans-serif;">Peace!!</span></i></h4>
naohttp://www.blogger.com/profile/03033662515342408623noreply@blogger.com0tag:blogger.com,1999:blog-9071009923751055362.post-8237624466982114522019-10-05T19:33:00.002+09:002019-10-05T19:33:36.644+09:002019 国際ロボット展に出展します僕、国際ロボット展に出展します。12 月 18日(水)~21日(土)<br />
<br />
サービスロボットゾーンです。<br />
<br />
僕でなくて、フューチャアグリ株式会社です。(笑)<br />
<br />
内容は、<br />
<br />
低速度自律走行UNIT<br />
<br />
低コスト自律走行AGV<br />
<br />
不整地自律走行ロボット<br />
<br />
その他、いろいろ<br />
<br />
是非、お越しください。<br />
<br />
Peace!!<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizFeMUYcqyxWjJrsqBLih_109wsG_wnVKtiyuENe_muBLi5ZplNDGTeAYoHFZ_ypgBOfVkFNtx3-ZEjiW3VfuXPJervIHu3GlCB2ByR12QfMUj3mL0G_FMdb3_MErfCkSkEaDtBnFMeMk/s1600/%25E7%2584%25A1%25E9%25A1%258C.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="691" data-original-width="1165" height="377" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizFeMUYcqyxWjJrsqBLih_109wsG_wnVKtiyuENe_muBLi5ZplNDGTeAYoHFZ_ypgBOfVkFNtx3-ZEjiW3VfuXPJervIHu3GlCB2ByR12QfMUj3mL0G_FMdb3_MErfCkSkEaDtBnFMeMk/s640/%25E7%2584%25A1%25E9%25A1%258C.png" width="640" /></a></div>
<br />
<br />naohttp://www.blogger.com/profile/03033662515342408623noreply@blogger.com0tag:blogger.com,1999:blog-9071009923751055362.post-10485194145590540932019-09-09T03:27:00.002+09:002019-09-09T08:52:23.088+09:00Build TensorFlow Lite on Raspberry Pi 4TesorFlow Lite Raspberry Pi 用の libtensorflow-lite.a を作る<br />
TensorFlowの当該のページ通りにすればよい。<br />
他のページは見ない方が良い<br />
About 40 minutes.<br />
<br />
<a href="https://www.tensorflow.org/lite/guide/build_rpi?hl=ja" target="_blank">Build TensorFlow Lite for Raspberry Pi</a><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7TD2sTOOeQl-82lP1AryYvywmNIwT3kDI7fe9HbKHzsApRxhsbPV1TgT34A6CRyhWn-ZFKF79oKpXbaYq3kezoW6byLj7PfiohJrE59MMpPoa11n9aGrbXFpNJZ0XZJIrzuRpD2igf90/s1600/%25E7%2584%25A1%25E9%25A1%258C.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1005" data-original-width="1293" height="310" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7TD2sTOOeQl-82lP1AryYvywmNIwT3kDI7fe9HbKHzsApRxhsbPV1TgT34A6CRyhWn-ZFKF79oKpXbaYq3kezoW6byLj7PfiohJrE59MMpPoa11n9aGrbXFpNJZ0XZJIrzuRpD2igf90/s400/%25E7%2584%25A1%25E9%25A1%258C.png" width="400" /></a></div>
<br />
<span style="font-family: "arial" , "helvetica" , sans-serif;">cd ~/prj</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;">git clone https://github.com/tensorflow/tensorflow.git</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;">cd tensorflow</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;">./tensorflow/lite/tools/make/download_dependencies.sh</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;">./tensorflow/lite/tools/make/build_rpi_lib.sh</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;">ls -al tensorflow/lite/tools/make/gen/rpi_armv7l/lib</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"> drwxr-xr-x 2 root root 4096 Sep 9 02:32 .</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"> drwxr-xr-x 5 root root 4096 Sep 9 02:32 ..</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"> -rw-r--r-- 1 root root 12164884 Sep 9 02:32 benchmark-lib.a</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"> -rw-r--r-- 1 root root 5796642 Sep 9 02:32 libtensorflow-lite.a</span><br />
<br />
<div>
上記のページでは<br />
<span style="font-family: "arial" , "helvetica" , sans-serif;">tensorflow/lite/tools/make/gen/lib/rpi_armv7/libtensorflow-lite.a</span><br />
ちょっと違う(笑)<br />
<br />
<h4>
<i>Peace!!</i></h4>
</div>
naohttp://www.blogger.com/profile/03033662515342408623noreply@blogger.com0tag:blogger.com,1999:blog-9071009923751055362.post-2972229696656744012019-09-09T01:56:00.001+09:002019-09-11T03:08:39.968+09:00Build Bazel(0.29.0) on Raspberry Pi 4Bazel 0.26.0, 0.29.0のbuildです。<br />
<br />
<h4>
1.準備</h4>
<span style="font-family: "arial" , "helvetica" , sans-serif;">sudo apt install openjdk-8-jdk</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span>
jdk は下記では8がサポート対象となっている<br />
8にしないとエラーが発生する。このような対応不能なエラーが発生した。<br />
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: xx-small;">#</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: xx-small;"># A fatal error has been detected by the Java Runtime Environment:</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: xx-small;">#</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: xx-small;"># Internal Error (g1ConcurrentMark.cpp:1666), pid=5210, tid=5234</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: xx-small;"># fatal error: Overflow during reference processing, can not continue. Please increase MarkStackSizeMax (current value: 2097152) and restart.</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: xx-small;">#</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: xx-small;"># JRE version: OpenJDK Runtime Environment (11.0.3+7) (build 11.0.3+7-post-Raspbian-5)</span><br />
<br />
<a href="https://docs.bazel.build/versions/master/install-compile-source.html">https://docs.bazel.build/versions/master/install-compile-source.html</a><br />
<br />
もし違う場合には、確認して変更またはインストールする<br />
下の例は0だったので、2に変更した後に、再度確認した画面<br />
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;">sudo update-alternatives --config javac</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;"></span><br />
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;">There are 2 choices for the alternative javac (providing /usr/bin/javac).</span></div>
<span style="font-family: "arial" , "helvetica" , sans-serif;"></span><br />
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span></div>
<span style="font-family: "arial" , "helvetica" , sans-serif;">
</span>
<br />
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;"> Selection Path Priority Status</span></div>
<span style="font-family: "arial" , "helvetica" , sans-serif;">
</span>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;">------------------------------------------------------------</span></div>
<span style="font-family: "arial" , "helvetica" , sans-serif;">
<div>
0 /usr/lib/jvm/java-11-openjdk-armhf/bin/javac 1111 auto mode</div>
<div>
1 /usr/lib/jvm/java-11-openjdk-armhf/bin/javac 1111 manual mode</div>
<div>
* 2 /usr/lib/jvm/java-8-openjdk-armhf/bin/javac 1081 manual mode</div>
<div>
<br /></div>
<div>
Press <enter> to keep the current choice[*], or type selection number:</div>
</span></div>
<br />
<h4>
<span style="font-family: "arial" , "helvetica" , sans-serif;">2. ソースのダウンロード</span></h4>
<span style="font-family: "arial" , "helvetica" , sans-serif;">mkdir ~/prj/bazel;cd ~/prj/bazel</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;">$ wget https://github.com/bazelbuild/bazel/releases/download/0.29.0/bazel-0.29.1-dist.zip</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;">$ unzip bazel-0.29.0-dist.zip</span><br />
<br />
<h4>
3. build前の設定と変更</h4>
<b>環境変数追加</b><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;">$ EXTRA_BAZEL_ARGS="--host_javabase=@local_jdk//:jdk"</span><br />
<br />
<b>2つのファイルを変更</b><br />
compile.sh<br />
before<br />
<span style="font-family: "arial" , "helvetica" , sans-serif;">bazel_build "src:bazel_nojdk${EXE_EXT}" \</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"> --action_env=PATH \</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"> --host_platform=@bazel_tools//platforms:host_platform \</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"> --platforms=@bazel_tools//platforms:target_platform \</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"> || fail "Could not build Bazel"</span><br />
<br />
after<br />
<span style="font-family: "arial" , "helvetica" , sans-serif;">bazel_build "src:bazel_nojdk${EXE_EXT}" \</span><br />
<b><span style="font-family: "arial" , "helvetica" , sans-serif;"> --host_javabase=@local_jdk//:jdk \</span></b><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"> --action_env=PATH \</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"> --host_platform=@bazel_tools//platforms:host_platform \</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"> --platforms=@bazel_tools//platforms:target_platform \</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"> || fail "Could not build Bazel"</span><br />
<br />
scripts/bootstrap/compile.sh<br />
before<br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"> run "${JAVAC}" -classpath "${classpath}" -sourcepath "${sourcepath}" \</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"> -d "${output}/classes" -source "$JAVA_VERSION" -target "$JAVA_VERSION" \</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"> -encoding UTF-8 ${BAZEL_JAVAC_OPTS} "@${paramfile}"</span><br />
<br />
after<br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"> run "${JAVAC}" -classpath "${classpath}" -sourcepath "${sourcepath}" \</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"> -d "${output}/classes" -source "$JAVA_VERSION" -target "$JAVA_VERSION" \</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"> -encoding UTF-8 ${BAZEL_JAVAC_OPTS} "@${paramfile}" <b>-J-Xmx1024M</b></span><br />
<br />
で、Go!!!<br />
<span style="font-family: "arial" , "helvetica" , sans-serif;">time comple.sh</span><br />
<br />
<span style="font-family: inherit;">この文字列が出ればOK</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;">Build successful! Binary is here: /home/pi/tmp/output/bazel</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: inherit;">次にコピーして完了</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;">sudo cp output/bazel /usr/local/bin</span><br />
<br />
tころで、こんなエラーがでた。<br />
これは、上記の一番目の変更をしなかったから。。。<br />
ERROR: /tmp/bazel_SwJ5aUhR/out/external/bazel_tools/tools/jdk/BUILD:492:14: Configurable attribute "actual" doesn't match this configuration: Could not find a JDK for host execution environment, please explicitly provide one using `--host_javabase.`<br />
<h4>
<i>Peace!!</i></h4>
naohttp://www.blogger.com/profile/03033662515342408623noreply@blogger.com0tag:blogger.com,1999:blog-9071009923751055362.post-44511969238219821812019-08-31T19:00:00.005+09:002019-09-14T18:32:00.719+09:00OpenCV4 Stereo matchingStereo matchingは古くからある重要な手法。<br />
僕も、いろいろな場面で使っている。<br />
OpenCV4をセットアップしたあと、cpp ディレクトリーに移動<br />
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"><br /></span>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">g++ `pkg-config opencv4 --cflags --libs` stereo_match.cpp -o stereo_match -std=c++11 -latomic</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"><br /></span>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">stereo_match ../data/aloeL.jpg ../data/aloeR.jpg --algorithm=sgbm --blocksize=3 --max-disparity=128</span><br />
<br />
こんな感じでbuild とコンパイル<br />
<br />
で、いろいろパラメータ変えるとこんな感じ<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0gSJIaZsVw3L3nK6D8w7jmVFrNlukZnI4eGn2N1Hj-P3hEJ42xDyIj4izRKD39He-Qc-MIsTOLQLVQfOWQYtQVZHVrd2cRPeT5q1SILAWuMx7F9NV6BYGZ5XZF8uCiAGSy4-0u6zyeqs/s1600/%25E7%2584%25A1%25E9%25A1%258C.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="519" data-original-width="864" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0gSJIaZsVw3L3nK6D8w7jmVFrNlukZnI4eGn2N1Hj-P3hEJ42xDyIj4izRKD39He-Qc-MIsTOLQLVQfOWQYtQVZHVrd2cRPeT5q1SILAWuMx7F9NV6BYGZ5XZF8uCiAGSy4-0u6zyeqs/s400/%25E7%2584%25A1%25E9%25A1%258C.png" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
更にフィルターをかけて、、</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHyGboCJYDBKTa0u2w2UOygGECkeHLdwAcircMaMuEcoFkV9yBwJpr6fY7hkNdY1A-04gVuI-lPqc1XWNNcorBJCOSfpSf7CMMqP6sshccBHCMRSjAjOCAC8saCrErj2ZZ15P024hbgoA/s1600/%25E7%2584%25A1%25E9%25A1%258C.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="555" data-original-width="560" height="317" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHyGboCJYDBKTa0u2w2UOygGECkeHLdwAcircMaMuEcoFkV9yBwJpr6fY7hkNdY1A-04gVuI-lPqc1XWNNcorBJCOSfpSf7CMMqP6sshccBHCMRSjAjOCAC8saCrErj2ZZ15P024hbgoA/s320/%25E7%2584%25A1%25E9%25A1%258C.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> pip3 install scikit-learn</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> sudo apt install python3-sklearn</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"><br /></span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">import numpy as np</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">from sklearn.preprocessing import normalize</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">import cv2</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"><br /></span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">print('loading images...')</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">imgL = cv2.imread('../data/aloeLs.jpg') # downscale images for faster processing if you like</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">imgR = cv2.imread('../data/aloeRs.jpg')</span></div>
<div class="separator" style="clear: both;">
<br /></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"># SGBM Parameters -----------------</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">window_size = 3</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">left_matcher = cv2.StereoSGBM_create(</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> minDisparity=0,</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> numDisparities=80,</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> blockSize=1,</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> P1=8 * 3 * window_size ** 2,</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> P2=32 * 3 * window_size ** 2,</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> disp12MaxDiff=1,</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> uniquenessRatio=15,</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> speckleWindowSize=0,</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> speckleRange=2,</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> preFilterCap=63,</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> mode=cv2.STEREO_SGBM_MODE_SGBM_3WAY</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">)</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">right_matcher = cv2.ximgproc.createRightMatcher(left_matcher)</span></div>
<div class="separator" style="clear: both;">
<br /></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"># FILTER Parameters</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">lmbda = 80000</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">sigma = 1.2</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">visual_multiplier = 1.0</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">wls_filter = cv2.ximgproc.createDisparityWLSFilter(matcher_left=left_matcher)</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">wls_filter.setLambda(lmbda)</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">wls_filter.setSigmaColor(sigma)</span></div>
<div class="separator" style="clear: both;">
<br /></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">print('computing disparity...')</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">displ = left_matcher.compute(imgL, imgR) # .astype(np.float32)/16</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">dispr = right_matcher.compute(imgR, imgL) # .astype(np.float32)/16</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">displ = np.int16(displ)</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">dispr = np.int16(dispr)</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">filteredImg = wls_filter.filter(displ, imgL, None, dispr) # important to put "imgL" here!!!</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"><br /></span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">filteredImg = cv2.normalize(src=filteredImg, dst=filteredImg, beta=0, alpha=255, norm_type=cv2.NORM_MINMAX);</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">filteredImg = np.uint8(filteredImg)</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">cv2.imshow('Disparity Map', filteredImg)</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">cv2.waitKey()</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"></span></div>
<div class="separator" style="clear: both;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">cv2.destroyAllWindows()</span></div>
<h4>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-style: italic;">Peace!!</span><div class="separator" style="clear: both; font-family: arial, helvetica, sans-serif; font-style: italic; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbpVP44lHDcjBeiFlfktAXiq-OPz2EJrPv8IglrTaDydMUUMoHCgsG_jWCQC4RhE3kBfGcmrltxb8jWuNqDS78nZAGD3ewHs5kfqy8bntbUB89c3xgqQhDxHveqprdTqM3O4cnTYCpQW4/s1600/%25E7%2584%25A1%25E9%25A1%258C.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="555" data-original-width="560" height="317" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbpVP44lHDcjBeiFlfktAXiq-OPz2EJrPv8IglrTaDydMUUMoHCgsG_jWCQC4RhE3kBfGcmrltxb8jWuNqDS78nZAGD3ewHs5kfqy8bntbUB89c3xgqQhDxHveqprdTqM3O4cnTYCpQW4/s320/%25E7%2584%25A1%25E9%25A1%258C.png" width="320" /></a></div>
<div class="separator" style="clear: both; font-family: arial, helvetica, sans-serif; font-style: italic; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; font-family: arial, helvetica, sans-serif; font-style: italic; text-align: center;">
<br /></div>
</h4>
<h4>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small; font-weight: normal;">stm1 imgKittyl.bmp imgKitty.bmp --algorithm=sgbm --blocksize=1 --max-disparity=64</span><br /><div style="font-family: arial, helvetica, sans-serif; font-style: italic;">
</div>
</h4>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgZTTeR2cmjf68lhNT8728lqCEKDK1sT2q50G2_iYseRTIDOr6mX1mb9E0j_6NSoB1ZVmi17oRsoFX_Tveb_0wSlc_EOr77NZB02HoIboCDySrNZLCFTNPWmFNRQ7VaNy-PjiL0_VlRAA/s1600/01-064-sgbm3way.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="373" data-original-width="1240" height="192" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgZTTeR2cmjf68lhNT8728lqCEKDK1sT2q50G2_iYseRTIDOr6mX1mb9E0j_6NSoB1ZVmi17oRsoFX_Tveb_0wSlc_EOr77NZB02HoIboCDySrNZLCFTNPWmFNRQ7VaNy-PjiL0_VlRAA/s640/01-064-sgbm3way.png" width="640" /></a></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small; font-weight: normal;"><br /></span></div>
<h4>
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small; font-weight: normal;">stm1 imgKittyl.bmp imgKitty.bmp --algorithm=sgbm --blocksize=1 --max-disparity=80</span><div style="font-style: italic;">
</div>
</h4>
<h4>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKiOQ9uEO9IUSHonXQCABmb2KIIpQLcLuj91E7w8LEKYCK04C8s3HYry8FsAm4MVY8rbJfaguVC-fWFz0-SY6ayf4MOFCPkqG5BlAotyQ4UBhp_H7MxMn-mgczsbemfFQyBJXs7jifsGI/s1600/01-080-sgbm3way.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="371" data-original-width="1241" height="190" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKiOQ9uEO9IUSHonXQCABmb2KIIpQLcLuj91E7w8LEKYCK04C8s3HYry8FsAm4MVY8rbJfaguVC-fWFz0-SY6ayf4MOFCPkqG5BlAotyQ4UBhp_H7MxMn-mgczsbemfFQyBJXs7jifsGI/s640/01-080-sgbm3way.png" width="640" /></a><span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small; font-weight: normal;">stm1 imgKittyl.bmp imgKitty.bmp --algorithm=sgbm --blocksize=9 --max-disparity=64</span><br /><div style="font-family: arial, helvetica, sans-serif; font-style: italic;">
</div>
</h4>
<h4>
<div style="font-family: arial, helvetica, sans-serif; font-style: italic;">
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"></span></div>
<div class="separator" style="clear: both; font-family: arial, helvetica, sans-serif; font-style: italic; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhX4BrtVqBjV27Lkmp3QDk4xvOcyfBag73uIii8rKwkhNaJpZqY79CZ0AEZMVLRCgRsJWGKYFt6kTgJlIUroti5EqnE1aKizvaJnSjeDlS2qPgdtgYzeH7zHHTdC7uZieNGxoP0OPulae0/s1600/09-064-sgbm3way.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="373" data-original-width="1245" height="188" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhX4BrtVqBjV27Lkmp3QDk4xvOcyfBag73uIii8rKwkhNaJpZqY79CZ0AEZMVLRCgRsJWGKYFt6kTgJlIUroti5EqnE1aKizvaJnSjeDlS2qPgdtgYzeH7zHHTdC7uZieNGxoP0OPulae0/s640/09-064-sgbm3way.png" width="640" /></a></div>
<div style="font-family: arial, helvetica, sans-serif; font-style: italic;">
<br style="font-family: Meiryo; font-style: normal; font-weight: 400;" /></div>
</h4>
naohttp://www.blogger.com/profile/03033662515342408623noreply@blogger.com0tag:blogger.com,1999:blog-9071009923751055362.post-87881115548758043532019-08-21T17:39:00.000+09:002019-08-27T23:08:40.771+09:00Oracle SQL*Plus。MinGW32は癖がある (笑)Oracle SQL*Plusを使うなんて20年ぶり<br />
Windows環境で実行させて、結果をLinux環境に送り別の処理をする。<br />
<br />
例えば、前日に新規登録されたデータだけを、翌日に抽出する場合。<br />
Linux環境では、localtime_rで比較的簡単に日付指定の文字列を作れる。<br />
ところが、Windows環境のMinGWは基本的にWindowsに依存しているので、<br />
同じgccを使っても、localtime*は使用できない。<br />
gccでも、違うんだぁ<br />
<br />
Msys MinGWは、その環境で作った実行モジュールをWindowsのコマンドプロンプトで実行できない。<br />
それをするなら、MinGWだけをインストールする必要がある。<br />
<a href="http://www.mingw.org/" target="_blank">MinGW | Minimalist GNU for Windows</a><br />
<div>
<br /></div>
<div>
でも、MinGWはWindowsに依存しているのでLinuxとの違いが発生する。</div>
<div>
多分、今回のlocaltime*だけだと思うけど、、、</div>
<div>
<br /></div>
<div>
まぁ、やるといろいろ起こります。勉強勉強</div>
<div>
<br /></div>
<div>
で、今回のソースをドーンと</div>
<div>
<br /></div>
<h4>
Peace!!</h4>
<div>
<br /></div>
<h4>
SQL*Plusを起動するバッチ</h4>
<div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">@ECHO OFF</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">:START</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">ECHO ---------------------------------------------------</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">ECHO 前日新規に登録された品目情報を出力します。</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">ECHO ---------------------------------------------------</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">CD %~dp0</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">DEL hinsabun.csv</span></div>
<div>
<span style="color: red; font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">hinsabun.exe > hinsabun.sql</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">@ECHO SQLを実行中です。しばらくお待ち下さい..</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">@ECHO -------------------------------</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">sqlplus /nolog @"hinsabun.sql" USER PASSWORD 192.168.XXX.XXX/ORCL</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">@ECHO -------------------------------</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">@ECHO 完了しました。</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">EXIT</span></div>
</div>
<div>
<br /></div>
<h4>
localtime_r を使わない処理</h4>
<div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">#include <stdio.h></span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">#include <string.h></span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">#include <time.h></span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"><br /></span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">#define PRS(A) printf("%s\n", A)</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">char *mn[]= {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"><br /></span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">int main(int argc, char* argv[]){</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> char szTime[15];</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> char szBuf[256], szBuf1[64];</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> char szMn[4], szDmy[10];</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> int n = 1, iDay, i, iMn, iYr;</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> struct tm tm;</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> time_t t;</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> </span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> time(&t);</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> t -= (86400 * n);</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> strcpy(szBuf1, ctime(&t));</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> strcpy(szDmy, strtok(szBuf1, " "));</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> strcpy(szMn, strtok(NULL, " "));</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> iDay = atoi(strtok(NULL, " "));</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> strcpy(szDmy, strtok(NULL, " "));</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> iYr = atoi(strtok(NULL, " "));</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> for (i = 0; i < 12; i++) {</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> if (strcmp(szMn, mn[i]) == 0){</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> iMn = i + 1;</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> break;</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> }</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> }</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> sprintf(szTime, "%04d%02d%02d", iYr, iMn, iDay);</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"><br /></span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> //localtime_r(&t, &tm);</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> //sprintf(szTime, "%04d%02d%02d%02d%02d%02d",</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> // tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday,</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> // tm.tm_hour, tm.tm_min, tm.tm_sec);</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> //sprintf(szTime, "%04d%02d%02d",</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> // tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday);</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> </span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> PRS("connect &&1/&&2@&&3");</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> PRS("spool off");</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> PRS("set echo off");</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> PRS("set heading off");</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> PRS("set termout off");</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> PRS("set pause off");</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> PRS("set pagesize 0");</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> PRS("set linesize 10000");</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> PRS("--set trimout on");</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> PRS("set trimspool on");</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> PRS("set feedback off");</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> PRS("set verify off");</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> PRS("set colsep '|'");</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> PRS("spool hinsabun.csv");</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> sprintf(szBuf, "SELECT ITEM_CD, ITEM_DIV, ITEM_NAME1, ITEM_NAME2, STD_UNIT, STD_UNITPRICE, UNIT2, UNIT_CONV_RATE,ITEM_NAME4,REGIST_DATE, UPDATE_DATE from DFW_M040M where REGIST_DATE >= to_date('%s', 'yyyymmdd');", szTime);</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> PRS(szBuf);</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> PRS("spool off");</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> PRS("exit");</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> </span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"> return 0;</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;">}</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"><br /></span>
<h4>
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><i>Peace!!</i></span></h4>
</div>
</div>
naohttp://www.blogger.com/profile/03033662515342408623noreply@blogger.com0