mixiユーザー(id:7593622)

日記一覧

rubyのエラーを見て、macOSの DiagnosticReports を知る。 -- Crash Report log information --------------------------------------------  See Crash Report log file under the one of following:  * ~/Library/Logs/DiagnosticReports  *

続きを読む

あるDBから別のDBへ特定のデータを持っていきたい。DB1で select * from table1 where 〜 の結果を insert 文にして、DB2 の table1 へ入れ込みたいです、という内容。mysqldump の オプション --where= または -w と --no-create-info または -t でできます

続きを読む

%x("ls -ltr")とか`ls -ltr`で実行できます、とあり、実際に実行できたけれども、やりたかったのは%x("ls -ltr &")という感じでのバックグランド実行。(ls じゃすぐ終わっちゃうけど)%x や `` では、「&」付けてもそのプロセスが終了するまで、応答が返って

続きを読む

最大値は hairetsu.maxで、ある値のインデックスは hairetsu.index(値)で取得できます、と。で、最大値のインデックスは、というと hairetsu.index(hairetsu.max)で取得できます、と。ほ〜。

続きを読む