<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-341817547867833834</id><updated>2026-04-07T20:09:33.941+09:00</updated><category term="develop"/><category term="howto"/><category term="android"/><category term="ios"/><category term="OSX"/><category term="python"/><category term="xcode"/><category term="andengine"/><category term="eclipse"/><category term="html5"/><category term="Android Market"/><category term="gdd2011jp"/><category term="php"/><category term="WWDC 2011"/><category term="apple"/><category term="objective-c"/><category term="Google I/O 2011"/><category term="adobe"/><category term="cocos2d-x"/><category term="code"/><category term="emacs"/><category term="firefoxos"/><category term="docker"/><category term="mac"/><category term="nvidia"/><category term="raspberrypi"/><category term="ubuntu"/><category term="JavaScript"/><category term="VSCode"/><category term="cakephp"/><category term="debian"/><category term="docomo"/><category term="git"/><category term="gvim"/><category term="kddi"/><category term="linux"/><category term="softbank"/><category term="titanium"/><category term="translation"/><category term="troubleshoot"/><category term="unity"/><category term="xampp"/><title type='text'>IT風雲児のブログ</title><subtitle type='html'>IT界の風雲児の破天荒なブログです。よかれとおもってやってます。</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.imho.jp/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://blog.imho.jp/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Hiroyuki Kurosawa</name><uri>http://www.blogger.com/profile/06788598705082022579</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>166</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-341817547867833834.post-918186908742616413</id><published>2025-11-24T12:20:00.004+09:00</published><updated>2025-11-24T12:20:37.259+09:00</updated><title type='text'>サイトを引っ越します</title><summary type="text">ドメインを変更してコンテンツも移設します&amp;nbsp;移設先：https://rawbytes.org/</summary><link rel='replies' type='application/atom+xml' href='http://blog.imho.jp/feeds/918186908742616413/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://blog.imho.jp/2025/11/blog-post.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/918186908742616413'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/918186908742616413'/><link rel='alternate' type='text/html' href='http://blog.imho.jp/2025/11/blog-post.html' title='サイトを引っ越します'/><author><name>Hiroyuki Kurosawa</name><uri>http://www.blogger.com/profile/06788598705082022579</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-341817547867833834.post-7775703780038437066</id><published>2025-08-10T07:31:00.009+09:00</published><updated>2025-08-11T08:54:11.041+09:00</updated><title type='text'>macの環境構築を初めからやってみるよ：anyenvとphpenv</title><summary type="text">&amp;nbsp;Macbook Airを買った。13インチのm4モデルだ。これまでは2016年のintel Macbook Proだったので 実に約9年ぶりである。さらにその前はたしかPowerBook G4、もっと前はPower Macだった気がするので毎回プロセッサが変わってるということになる（Power Macはさすがに処分した）。それはそうと、これまでは基本的に旧環境を引き継いでいたんだけどさすがにごちゃごちゃしてきたし、いまやほとんどのデータはクラウドに保存されているので、環境はイチから構築してみることにした。網羅的ではないが、いくつか環境構築メモを残していこうと思う。PHPが入ってなかった&amp;nbsp;そもそもとしてこのbloggerを自前のWordPressに移行しようと思っているのだけれど、どうやらbloggerのエクスポート形式が最近？RSS XMLからatomに変更されて</summary><link rel='replies' type='application/atom+xml' href='http://blog.imho.jp/feeds/7775703780038437066/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://blog.imho.jp/2025/08/mac.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/7775703780038437066'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/7775703780038437066'/><link rel='alternate' type='text/html' href='http://blog.imho.jp/2025/08/mac.html' title='macの環境構築を初めからやってみるよ：anyenvとphpenv'/><author><name>Hiroyuki Kurosawa</name><uri>http://www.blogger.com/profile/06788598705082022579</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-341817547867833834.post-6081339056615863717</id><published>2024-04-07T01:43:00.002+09:00</published><updated>2024-04-07T01:43:17.054+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="docker"/><category scheme="http://www.blogger.com/atom/ns#" term="nvidia"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>nvidiaのドライバーを更新したのでdocker環境も再インストールしたよ</title><summary type="text">&amp;nbsp;一つまえの記事でUbuntu(20.04）のnvidia関連パッケージを一度すべて削除してしまったので、docker関係の環境も再インストールしなければいけなかった。&amp;nbsp;下記に従って実行してみた。自分の記載はあやしいのと、当然下記のnvidiaのリンク先のほうが記載が新しくなってる可能性があるので、なにか変だと思ったらnvidia.comにあたったほうが良い。https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html １．パッケージのインストール $ sudo apt install nvidia-container-toolkit２．設定の変更$ sudo nvidia-ctk runtime configure --runtime=crio３</summary><link rel='replies' type='application/atom+xml' href='http://blog.imho.jp/feeds/6081339056615863717/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://blog.imho.jp/2024/04/nvidiadocker.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/6081339056615863717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/6081339056615863717'/><link rel='alternate' type='text/html' href='http://blog.imho.jp/2024/04/nvidiadocker.html' title='nvidiaのドライバーを更新したのでdocker環境も再インストールしたよ'/><author><name>Hiroyuki Kurosawa</name><uri>http://www.blogger.com/profile/06788598705082022579</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-341817547867833834.post-77494838412694866</id><published>2024-04-07T01:29:00.002+09:00</published><updated>2024-04-07T01:29:22.980+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="nvidia"/><category scheme="http://www.blogger.com/atom/ns#" term="troubleshoot"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Ubuntuをアップデートしたら起動しなくなったけど色々やったら起動するようになった（nvidiaドライバー）</title><summary type="text">&amp;nbsp;久しぶりにUbuntu（20.04）を起動したのでパッケージのアップデートをしようとおもった。&amp;nbsp;「ソフトウェアの更新」を実行すると、「部分的にしかアップデートできない」旨の表示が出た。が、特に気にせず、依存関係か何かで何回かに分けてアップデートしないといけないのかなとおもいってそのまま実行、再起動を行った。起動メニュでUbuntuを実行すると、黒いコンソールの 画面までは進むが、たぶんデスクトップに切り替わるタイミングで画面がフリーズして起動しないという現象に遭遇した。理由はわからないが、はじめにUbuntu環境をインストールしたときのGPUがGTX1070で、そのままRTX3060に換装して使い続けていたので、なにか不整合が起きてしまっていたのかもしれない（表面上は動いていた、と思う）。 困った。ということでいろいろ調べながらやって復旧した（たぶん）なのでやった</summary><link rel='replies' type='application/atom+xml' href='http://blog.imho.jp/feeds/77494838412694866/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://blog.imho.jp/2024/04/ubuntunvidia.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/77494838412694866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/77494838412694866'/><link rel='alternate' type='text/html' href='http://blog.imho.jp/2024/04/ubuntunvidia.html' title='Ubuntuをアップデートしたら起動しなくなったけど色々やったら起動するようになった（nvidiaドライバー）'/><author><name>Hiroyuki Kurosawa</name><uri>http://www.blogger.com/profile/06788598705082022579</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-341817547867833834.post-4084556890340905308</id><published>2023-04-02T06:42:00.005+09:00</published><updated>2023-04-02T06:57:54.997+09:00</updated><title type='text'>NVidia Container Toolkitでgpu-enabledなdocker imageで作業したときの作業メモ</title><summary type="text">GPUを利用する機械学習系の環境を構築する際に 、CUDAとフレームワーク等のバージョンの整合性で困ることがある。必ずしも最新版にしておけばいいというわけではないことが結構ある（気がする）dockerコンテナ内でgpuが利用できるようになるNvidia Container TookitをNvidiaが提供してくれているので、これを利用すると任意のCUDAバージョンの環境が構築できるようになりますという作業メモ。１．Nvidia Container ToolkitをインストールホストOS側に、Nvidia Linux DriverとNvidia Container Toolkitをインストールして、docker runtimeにnvidiaランタイムを認識してもらうまで下記のマニュアルに沿って設定。ホスト側にはNvidia Linux DriverおよびNVidia Container </summary><link rel='replies' type='application/atom+xml' href='http://blog.imho.jp/feeds/4084556890340905308/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://blog.imho.jp/2023/04/nvidia-container-toolkitgpu.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/4084556890340905308'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/4084556890340905308'/><link rel='alternate' type='text/html' href='http://blog.imho.jp/2023/04/nvidia-container-toolkitgpu.html' title='NVidia Container Toolkitでgpu-enabledなdocker imageで作業したときの作業メモ'/><author><name>Hiroyuki Kurosawa</name><uri>http://www.blogger.com/profile/06788598705082022579</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-341817547867833834.post-2005887255547007019</id><published>2023-03-25T11:58:00.002+09:00</published><updated>2023-03-25T11:58:18.915+09:00</updated><title type='text'>Stable Diffusion WebUIをubuntu, pyenv virtualenvの環境でインストールした</title><summary type="text">&amp;nbsp;Stable Diffusion WebUIをUbuntuとpyenv-virtualenvの環境でインストールした。公式のマニュアルどおりではうまく行かなかったので、正しいのかはわかってないけどとりあえず動いたので差分のメモをしておきます。試したのは2023/3/25。Ubuntuの環境は以下の通り$ cat /etc/os-releaseNAME=&quot;Ubuntu&quot;VERSION=&quot;20.04.3 LTS (Focal Fossa)&quot;1. まずpyenv virutualenvで専用の環境を作る。現時点で要求のpythonのバージョンが3.10.6とのことだったので従う$ pyenv virtualenv 3.10.6 stable-diffusion-webuiみたいにして、3.10.6をベースにしたvirtualenv環境を作っておく。&amp;nbsp;2. &quot;</summary><link rel='replies' type='application/atom+xml' href='http://blog.imho.jp/feeds/2005887255547007019/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://blog.imho.jp/2023/03/stable-diffusion-webuiubuntu-pyenv.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/2005887255547007019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/2005887255547007019'/><link rel='alternate' type='text/html' href='http://blog.imho.jp/2023/03/stable-diffusion-webuiubuntu-pyenv.html' title='Stable Diffusion WebUIをubuntu, pyenv virtualenvの環境でインストールした'/><author><name>Hiroyuki Kurosawa</name><uri>http://www.blogger.com/profile/06788598705082022579</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-341817547867833834.post-704169464223271691</id><published>2020-06-19T12:18:00.000+09:00</published><updated>2020-06-19T12:18:01.809+09:00</updated><title type='text'>Windowsでvim環境を構築するための道のり：終章</title><summary type="text">昨日Windowsでhowmをもう一回使いたくてvimでやってみるかと思ったんだけど、今日調べていたらVSCodeで類似の拡張があることがわかった。もともとhowmはちょっと機能多すぎてメモとTODOぐらいできればいいんだけどな、、という感じだったのでむしろちょうど良いぐらいかもしれない。vscode-memo-life-for-youhttps://qiita.com/satokaz/items/33b5c5ae4f19a87c5187</summary><link rel='replies' type='application/atom+xml' href='http://blog.imho.jp/feeds/704169464223271691/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://blog.imho.jp/2020/06/windowsvim_19.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/704169464223271691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/704169464223271691'/><link rel='alternate' type='text/html' href='http://blog.imho.jp/2020/06/windowsvim_19.html' title='Windowsでvim環境を構築するための道のり：終章'/><author><name>Hiroyuki Kurosawa</name><uri>http://www.blogger.com/profile/06788598705082022579</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-341817547867833834.post-2963323037993272765</id><published>2020-06-17T12:58:00.004+09:00</published><updated>2020-06-17T13:09:32.572+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gvim"/><title type='text'>Windowsでvim環境を設定するための道のり：設定はどこに書けばいいのか</title><summary type="text">昔Emacsでhowmというツールを使っていたのを思い出したんだけど、もうEmacsとか使うの気が重いな、、と思っていたところvimにQFixHowmというプラグインがあるらしいので、そちらでセットアップしてみることにしました。いったんWindows Subsystem for Linuxのコンソール上のvimでセットアップしてみたんだけど、日本語切り替えとモード切替がめんどくさすぎて無理っぽかったので、gvimで再トライです。gvimはまともに使ったことが無いので、設定ファイルはどこに置けばいいのだ、、？からスタートです。閑居う変数としては、$VIMと$HOMEが存在する。確認するときは:echo $VIMまたは:echo $HOMEで表示されるwindows上では、.vimrcでなく_vimrcと_gvimrcとして作成する（これは単にWindows上のファイル名規則の制限かな）</summary><link rel='replies' type='application/atom+xml' href='http://blog.imho.jp/feeds/2963323037993272765/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://blog.imho.jp/2020/06/windowsvim.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/2963323037993272765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/2963323037993272765'/><link rel='alternate' type='text/html' href='http://blog.imho.jp/2020/06/windowsvim.html' title='Windowsでvim環境を設定するための道のり：設定はどこに書けばいいのか'/><author><name>Hiroyuki Kurosawa</name><uri>http://www.blogger.com/profile/06788598705082022579</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-341817547867833834.post-6204499087951660522</id><published>2019-03-31T00:16:00.001+09:00</published><updated>2019-03-31T00:16:33.813+09:00</updated><title type='text'>ファイルが含まれているrpmパッケージの情報を表示する</title><summary type="text">$ rpm -qf {ファイルパス}|awk -F&#39;-[0-9]&#39; &#39;{print $1}&#39;|xargs yum info</summary><link rel='replies' type='application/atom+xml' href='http://blog.imho.jp/feeds/6204499087951660522/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://blog.imho.jp/2019/03/rpm.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/6204499087951660522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/6204499087951660522'/><link rel='alternate' type='text/html' href='http://blog.imho.jp/2019/03/rpm.html' title='ファイルが含まれているrpmパッケージの情報を表示する'/><author><name>Hiroyuki Kurosawa</name><uri>http://www.blogger.com/profile/06788598705082022579</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-341817547867833834.post-1816759813908015471</id><published>2018-11-18T06:45:00.001+09:00</published><updated>2018-11-18T06:45:38.745+09:00</updated><title type='text'>pylintがcv2のメンバを見つけてくれない</title><summary type="text">・VSCode 1.29.1
・pipenv 2018.7.1
・opencv-python 3.4.3.18
・pylint 2.1.1

上記の環境でpylintをかけるとcv2のメンバがいないと怒られる。
（実際はVSCode自体は関係ない。pylintコマンド直接でも同様。） 

https://stackoverflow.com/questions/50612169/pylint-not-recognizing-cv2-members

上記に従って、pylintに --extension-pkg-whitelist=cv2 というオプションを渡して上げれば良い。VSCode上だとpython.linting.pylintArgsというオプションで渡す。

cv2のメンバはCのモジュールで定義されているから（？）の模様である。</summary><link rel='replies' type='application/atom+xml' href='http://blog.imho.jp/feeds/1816759813908015471/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://blog.imho.jp/2018/11/pylintcv2.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/1816759813908015471'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/1816759813908015471'/><link rel='alternate' type='text/html' href='http://blog.imho.jp/2018/11/pylintcv2.html' title='pylintがcv2のメンバを見つけてくれない'/><author><name>Hiroyuki Kurosawa</name><uri>http://www.blogger.com/profile/06788598705082022579</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-341817547867833834.post-4631492369028482092</id><published>2018-10-06T07:37:00.001+09:00</published><updated>2018-10-06T07:37:55.894+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="howto"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><title type='text'>pipenv2018.7.1とpip18.1の組み合わせはエラーになる</title><summary type="text">不具合に遭遇したのでメモ。 

現象
$ pipenv install {some_package}
すると、エラー終了する。
Pipfileやパッケージのインストール自体は完了している
lockfileの作成あたりでコケている模様？


原因
エラーメッセージでググると同様の事象を見つけた。
https://github.com/pypa/pipenv/issues/2871

pipenv2018.7.1とpip18.1の組み合わせがエラーを起こしている模様。


解決方法 
workaroundとしてはpipを18.0にする。
ポイントとしては、pipenvの環境のほうのpipを18.0にする。

$ pipenv run pip install pip==18.0
</summary><link rel='replies' type='application/atom+xml' href='http://blog.imho.jp/feeds/4631492369028482092/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://blog.imho.jp/2018/10/pipenv201871pip181.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/4631492369028482092'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/4631492369028482092'/><link rel='alternate' type='text/html' href='http://blog.imho.jp/2018/10/pipenv201871pip181.html' title='pipenv2018.7.1とpip18.1の組み合わせはエラーになる'/><author><name>Hiroyuki Kurosawa</name><uri>http://www.blogger.com/profile/06788598705082022579</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-341817547867833834.post-4021946875621556981</id><published>2018-09-23T01:43:00.002+09:00</published><updated>2018-09-23T02:04:22.863+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="howto"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><title type='text'>Pythonの環境構築にpipenvを使う</title><summary type="text">pipenvというPythonの仮想環境構築ツールを使い始めました。詳細は公式を見れば良いとして分かりづらかったところのメモ書き。

Pipenv: 人間のためのPython開発ワークフロー

書いている時点のバージョンは以下
$ pipenv --versionpipenv, version 2018.7.1

インストール
繰り返しだが詳細は上記の公式サイトのドキュメントを読めば良い。macOSの場合Homebrewとpipを使う方法があるようですが、私はPythonのバージョン管理にpyenvも使っていてHomebrewの方で入れるとバージョンが変になりそうな気がしたのでpipの方でインストールしました（Homebrewで試してはいない）。

$ pip install pipenv
すると、下記のようにpyenv配下にpipenvがインストールされてる模様。
$ which </summary><link rel='replies' type='application/atom+xml' href='http://blog.imho.jp/feeds/4021946875621556981/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://blog.imho.jp/2018/09/pythonpipenv.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/4021946875621556981'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/4021946875621556981'/><link rel='alternate' type='text/html' href='http://blog.imho.jp/2018/09/pythonpipenv.html' title='Pythonの環境構築にpipenvを使う'/><author><name>Hiroyuki Kurosawa</name><uri>http://www.blogger.com/profile/06788598705082022579</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-341817547867833834.post-508242759102814297</id><published>2017-10-09T02:53:00.003+09:00</published><updated>2018-09-23T00:42:53.732+09:00</updated><title type='text'>Classic MacOSの文字化けしたファイル名を修正する</title><summary type="text">とある事情から、Classic MacOS上で作成したファイルを開く必要があり、フロッピーからバックアップを取っていた.imgファイルからファイルを復旧しました（.imgはディスクユーティリティで.dmg形式に変換する必要もあった）

ところがディスクイメージ形式の変換も終わりいざディスクイメージをマウントしてみると、日本語のファイル名が全て文字化けしている状態でした。
そもそもフロッピーからイメージ化したのもClassic OS上だし仕方ないことなのですが、いかんせんファイル名が見えないことには
何もわからないので、変換する方法を調べてみたところ、Apple自身がファイル名の修正ユーティリティを提供していました。

File Name Encoding Repair Utility v1.0
https://support.apple.com/kb/DL355?locale=ja_JP</summary><link rel='replies' type='application/atom+xml' href='http://blog.imho.jp/feeds/508242759102814297/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://blog.imho.jp/2017/10/classic-macos.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/508242759102814297'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/508242759102814297'/><link rel='alternate' type='text/html' href='http://blog.imho.jp/2017/10/classic-macos.html' title='Classic MacOSの文字化けしたファイル名を修正する'/><author><name>Hiroyuki Kurosawa</name><uri>http://www.blogger.com/profile/06788598705082022579</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-341817547867833834.post-6317644422990562012</id><published>2017-08-26T06:29:00.000+09:00</published><updated>2017-08-26T06:30:53.310+09:00</updated><title type='text'>Raspbian上で仮想キーボードをインストールする</title><summary type="text">Raspberry pi 3を7インチ タッチスクリーンディスプレイで利用しているのですが、ちょっとしたキー操作の時にもUSBキーボードを繋がないといけなくて面倒だなと思っていました。本格的にタイプするときにはVNC経由でmacから操作するからいいとして、とりあえずちょっと操作したいときにタッチスクリーンだけで完結したいなと思って調べました。

Raspbirn上で仮想キーボードを表示して、タッチスクリーン上から文字入力を行うには、matchbox-keyboardというパッケージを導入すれば良いようです。

通常どおり

$ sudo aptitude install matchbox-keyboard

としてインストールするだけです。

どうでもいいけどネット上のblogみるとみんなapt-get使ってるけどなんでなんでしょう、aptitudeのほうが使いやすそうなんですが、</summary><link rel='replies' type='application/atom+xml' href='http://blog.imho.jp/feeds/6317644422990562012/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://blog.imho.jp/2017/08/raspbian.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/6317644422990562012'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/6317644422990562012'/><link rel='alternate' type='text/html' href='http://blog.imho.jp/2017/08/raspbian.html' title='Raspbian上で仮想キーボードをインストールする'/><author><name>Hiroyuki Kurosawa</name><uri>http://www.blogger.com/profile/06788598705082022579</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-341817547867833834.post-6256384643060693028</id><published>2017-08-21T00:38:00.002+09:00</published><updated>2018-09-23T02:09:23.534+09:00</updated><title type='text'>Technology RadarをCSVに対応させた</title><summary type="text">ThoughtWorksというところがTechnology Radarというレポートを半年に一回ぐらい発表しているのですが、それの可視化に使われているツールをオープンソースで提供しています。これを使えば私家版のTechnology Radarが作成できる、というわけです。
https://github.com/thoughtworks/build-your-own-radar

面白そうだと思ったのですが、難点があると思っていて、Google Docsにしか対応していないようでした。これが、github上でCSVとかに対応できていれば、みんなでcommitしたりして使えるので良いのではないかな、と思いました。
で、作ってみた。
https://github.com/hkurosawa/build-your-own-radar/tree/csvsupport

本家にpull </summary><link rel='replies' type='application/atom+xml' href='http://blog.imho.jp/feeds/6256384643060693028/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://blog.imho.jp/2017/08/technology-radarcsv.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/6256384643060693028'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/6256384643060693028'/><link rel='alternate' type='text/html' href='http://blog.imho.jp/2017/08/technology-radarcsv.html' title='Technology RadarをCSVに対応させた'/><author><name>Hiroyuki Kurosawa</name><uri>http://www.blogger.com/profile/06788598705082022579</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-341817547867833834.post-2373886934389304509</id><published>2017-08-21T00:33:00.006+09:00</published><updated>2017-08-21T00:33:57.548+09:00</updated><title type='text'>RasPi 3 でWiringPiでエラーがでたのでpigpioを使った</title><summary type="text">Raspberry pi 3でサーボの制御をやってみようと思ってSG90というサーボモーターを購入しました。電子工作の分野では最も手軽なモーターでネットで調べても情報が多そうだったので。これをうまく動作させるために少しハマったので、その記録です。結論としてはwiringPiは使わず、pigpioというライブラリを使うことにしました。

環境は以下。 
pi@raspberrypi ~/src/wiringpi % cat /etc/issue
Raspbian GNU/Linux 8 \n \l

pi@raspberrypi ~/src/wiringpi % uname -a
Linux raspberrypi 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux


RPi.GPIOでのPWM出力サンプル</summary><link rel='replies' type='application/atom+xml' href='http://blog.imho.jp/feeds/2373886934389304509/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://blog.imho.jp/2017/08/raspi-3-wiringpipigpio.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/2373886934389304509'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/2373886934389304509'/><link rel='alternate' type='text/html' href='http://blog.imho.jp/2017/08/raspi-3-wiringpipigpio.html' title='RasPi 3 でWiringPiでエラーがでたのでpigpioを使った'/><author><name>Hiroyuki Kurosawa</name><uri>http://www.blogger.com/profile/06788598705082022579</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-341817547867833834.post-2517636481809249607</id><published>2017-07-08T00:53:00.000+09:00</published><updated>2017-07-08T00:57:47.163+09:00</updated><title type='text'>ANKERのPowerCore 10000とSeriaのUSB-CケーブルでPowerBook Proに充電できるか試した</title><summary type="text">SeriaでUSB-A/USB-Cケーブルが売られていたので、モバイルバッテリーのPowerCore 10000でPowerBook Proが充電できるのかを試してみました。
PowerBook Proは13インチの2016年タッチバーなしモデル、
モバイルバッテリーはANKER社のPowerCore 10000です。以下。
&amp;nbsp;
結論。ぎりぎり充電できました。

USBケーブルはSeriaで108円で売られていた以下のケーブル。念のため3.0A対応と明記されているものを選びました。
&amp;nbsp;
&amp;nbsp;

注意しないといけない点は、アプリケーションを利用していない状態なら充電状態になったが、ただしFireFoxとかが「エネルギーを激しく消費中」と表示されているようなケースでは、いわゆる「給電モード」になるようで、ようするに利用しながら充電という、いわゆる電源アダプターと</summary><link rel='replies' type='application/atom+xml' href='http://blog.imho.jp/feeds/2517636481809249607/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://blog.imho.jp/2017/07/ankerpowercore-10000seriausb-cpowerbook.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/2517636481809249607'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/2517636481809249607'/><link rel='alternate' type='text/html' href='http://blog.imho.jp/2017/07/ankerpowercore-10000seriausb-cpowerbook.html' title='ANKERのPowerCore 10000とSeriaのUSB-CケーブルでPowerBook Proに充電できるか試した'/><author><name>Hiroyuki Kurosawa</name><uri>http://www.blogger.com/profile/06788598705082022579</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqR_kjJSJLr1P832At18sdIldfFv9t5HGuZyuXYaEOOvizSKPXLIXeurCZs0FpxlZF_zdWIKfTRSbqGwQTk0zoNipuGnEWILc6lkUTybtXsOxxen3kqRoAgYVhKXktF_hH924Aghyphenhyphenuo7s/s72-c/Seria1.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-341817547867833834.post-4814911278916667626</id><published>2017-05-08T02:06:00.002+09:00</published><updated>2017-05-08T02:10:49.394+09:00</updated><title type='text'> VSCodeでThree.jsの開発環境を整える（３） </title><summary type="text">Visual Studio Codeで、Three.jsの開発環境を構築しています。このポストでは、VSCodeのデバッガ機能を利用してブレークポイントを打ったりすることができることまでが目標です。ブラウザ環境としてはChromeかFirefoxが現実的な選択肢だと思うけど、今回はまずFirefoxでデバッグすることを考えます。

Debugger for Firefox をVSCodeにインストールする
まずはVSCodeにFirefoxのデバッガ拡張をインストールします。これは単純に以下のプラグインをインストールすればOK。
https://marketplace.visualstudio.com/items?itemName=hbenl.vscode-firefox-debug
この拡張をインストールすると、デバッガのlaunch.jsonファイルの編集時、Add </summary><link rel='replies' type='application/atom+xml' href='http://blog.imho.jp/feeds/4814911278916667626/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://blog.imho.jp/2017/05/vscodethreejs_8.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/4814911278916667626'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/4814911278916667626'/><link rel='alternate' type='text/html' href='http://blog.imho.jp/2017/05/vscodethreejs_8.html' title=' VSCodeでThree.jsの開発環境を整える（３） '/><author><name>Hiroyuki Kurosawa</name><uri>http://www.blogger.com/profile/06788598705082022579</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-341817547867833834.post-1131138904023912818</id><published>2017-05-07T01:08:00.006+09:00</published><updated>2017-05-07T09:42:19.455+09:00</updated><title type='text'> VSCodeでThree.jsの開発環境を整える（２） </title><summary type="text">前のポストでVisual Studio Code上でコード補完付きでコーディングが可能な状態になったので、これをブラウザ上で実行可能な状態にコンパイルすることを考えます。

VSCodeでのコード補完を利用するためにthree.jsをnpmからインストールしたのでそのままでは実行できず、同じくnpmで提供されているツールであるwebpackというコマンドを利用します。


webpackコマンドをインストールする
プロジェクトのルートディレクトリから、webpackをnpmコマンドでインストールします。ブログとかには-gオプションをつけてグローバルにインストールする記述が多いが、グローバル空間はあまり汚したくないのでプロジェクト内に閉じることにします。
$ npm install webpack --save-dev

--save-devオプションをつけることで、webpack</summary><link rel='replies' type='application/atom+xml' href='http://blog.imho.jp/feeds/1131138904023912818/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://blog.imho.jp/2017/05/vscodethreejs_7.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/1131138904023912818'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/1131138904023912818'/><link rel='alternate' type='text/html' href='http://blog.imho.jp/2017/05/vscodethreejs_7.html' title=' VSCodeでThree.jsの開発環境を整える（２） '/><author><name>Hiroyuki Kurosawa</name><uri>http://www.blogger.com/profile/06788598705082022579</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-341817547867833834.post-7313850571119760603</id><published>2017-05-06T09:13:00.001+09:00</published><updated>2017-05-06T09:33:00.414+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="howto"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><category scheme="http://www.blogger.com/atom/ns#" term="VSCode"/><title type='text'>VSCodeでThree.jsの開発環境を整える（１）</title><summary type="text">しばらく利用していなかったVisual Studio Codeをバージョンアップしてみたらすごく速く使いやすくなっていたので、すこし本格的に環境を構築して使ってみることにしました。VSCodeおよびnodeなどもこれまでごく基本的な利用しかしていないので、それらの知識のアップデートも兼ねます。

とりあえず、JavaScript（Three.js）の開発環境を構築することを目的にします。

VSCodeのIntelliSenseを利用したコード補完ができること 
ChromeまたはFireFoxでブレークポイントを利用したデバッグが可能なこと
デバッグはdockerのコンテナ環境で構築すること

上記３点ができるようになることを目的として、 
まずは任意の.jsプロジェクトでthree.jsのコード補完が可能になることを目指します。


新規プロジェクトフォルダを作成する
任意のフォルダ</summary><link rel='replies' type='application/atom+xml' href='http://blog.imho.jp/feeds/7313850571119760603/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://blog.imho.jp/2017/05/vscodethreejs.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/7313850571119760603'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/7313850571119760603'/><link rel='alternate' type='text/html' href='http://blog.imho.jp/2017/05/vscodethreejs.html' title='VSCodeでThree.jsの開発環境を整える（１）'/><author><name>Hiroyuki Kurosawa</name><uri>http://www.blogger.com/profile/06788598705082022579</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-341817547867833834.post-1953150531885129930</id><published>2017-01-03T03:04:00.001+09:00</published><updated>2017-01-03T20:00:33.528+09:00</updated><title type='text'>MacBook Pro 2016用のマルチポートアダプタをkickstarterで支援しました。</title><summary type="text">MacBook Pro 2016モデルの周辺機器問題を解消するためのアダプタを探していたんですが、なかなか「これ！」というものが見つかりませんでしたが、kickstarteで見つけて、即支援しました。


良いところ：&amp;nbsp;
・thunderbolt3ポートを利用するので、高速
　前のポストでも書いたようなものはほとんどがUSB3.1の接続（たぶん）で、5Gbpsの帯域をハブで分け合っている状態で、パフォーマンスに不安がある。買ったのはMBP2016のファンクションキーモデルでThunderbolt3ポートは2つしかないので、有効に使いたい。
・2つのThunderbolt3ポートを塞ぐが、一つはThunderbolt3がそのまま通っているみたいなので安心。もう一つはUSB-Cの口だけど、USB3.1仕様みたいで、ディスプレイ出力もなし。このへんがUSB-Cのややこしいところ。

</summary><link rel='replies' type='application/atom+xml' href='http://blog.imho.jp/feeds/1953150531885129930/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://blog.imho.jp/2017/01/macbook-pro-2016kickstarter.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/1953150531885129930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/1953150531885129930'/><link rel='alternate' type='text/html' href='http://blog.imho.jp/2017/01/macbook-pro-2016kickstarter.html' title='MacBook Pro 2016用のマルチポートアダプタをkickstarterで支援しました。'/><author><name>Hiroyuki Kurosawa</name><uri>http://www.blogger.com/profile/06788598705082022579</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-341817547867833834.post-7227417513928472711</id><published>2017-01-03T02:46:00.003+09:00</published><updated>2017-01-03T02:46:57.426+09:00</updated><title type='text'>dockerのmysqldコンテナにdumpデータをロードする</title><summary type="text">
ローカルにmysqlのダンプファイルがあるとして、すでにmysqldが起動しているdockerコンテナが存在するとする。

このとき、以下のようにすればローカルのdumpファイルのロードが可能。

$ docker exec -i mysqld_container_name mysql -uroot -proot &amp;lt; dump.sql


参照：http://depressiverobot.com/2015/02/19/mysql-dump-docker.html

</summary><link rel='replies' type='application/atom+xml' href='http://blog.imho.jp/feeds/7227417513928472711/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://blog.imho.jp/2017/01/dockermysqlddump.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/7227417513928472711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/7227417513928472711'/><link rel='alternate' type='text/html' href='http://blog.imho.jp/2017/01/dockermysqlddump.html' title='dockerのmysqldコンテナにdumpデータをロードする'/><author><name>Hiroyuki Kurosawa</name><uri>http://www.blogger.com/profile/06788598705082022579</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-341817547867833834.post-7148262749863035236</id><published>2016-12-25T00:30:00.003+09:00</published><updated>2016-12-25T00:30:38.410+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="develop"/><category scheme="http://www.blogger.com/atom/ns#" term="docker"/><category scheme="http://www.blogger.com/atom/ns#" term="howto"/><title type='text'>docker-composeで既存のnetworkに接続する</title><summary type="text">docker-composeを利用してコンテナを起動した場合、通常だとdocker-compose.yml（プロジェクト）単位で
内部ネットワークが作成される。これを、例えば別のdocker-compose.ymlファイルから起動されたコンテナのnetworkの中でコンテナを作成するには、network設定をdocker-compose.yml内に記述する


既存のネットワークの一覧


$ docker network ls


コマンドを実行すると、以下のようにネットワークの一覧が表示される。例ではexisting_nw_defaultに接続するとする。

$ docker network ls
NETWORK ID          NAME                DRIVER
a36b706eb5a6        bridge              bridge</summary><link rel='replies' type='application/atom+xml' href='http://blog.imho.jp/feeds/7148262749863035236/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://blog.imho.jp/2016/12/docker-composenetwork.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/7148262749863035236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/7148262749863035236'/><link rel='alternate' type='text/html' href='http://blog.imho.jp/2016/12/docker-composenetwork.html' title='docker-composeで既存のnetworkに接続する'/><author><name>Hiroyuki Kurosawa</name><uri>http://www.blogger.com/profile/06788598705082022579</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-341817547867833834.post-9002683862730288961</id><published>2016-12-24T01:02:00.000+09:00</published><updated>2016-12-24T01:14:32.610+09:00</updated><title type='text'>Bloggerでシンタックスハイライトを利用する</title><summary type="text">code-prettifyを利用する方法。
https://github.com/google/code-prettify

（１）ブログ管理画面の&quot;Template&quot;から、テンプレートのHTMLを編集する。
haedタグの中に以下を記述する。

&amp;lt;script src=&#39;https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js?skin=sunburst&#39;/&amp;gt;



（２）シンタックスハイライトを利用したい部分を、以下のタグで囲う。

&amp;lt;pre class=&quot;prettyprint&quot;&amp;gt;
（任意のコード）
&amp;lt;/pre&amp;gt;



classに、追加で&quot;lang-*&quot;を指定すると対象言語を明示的に指定できる。lang-*の&quot;*&quot;の部分にはデフォルトで以下が利用できる

</summary><link rel='replies' type='application/atom+xml' href='http://blog.imho.jp/feeds/9002683862730288961/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://blog.imho.jp/2016/12/blogger.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/9002683862730288961'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/9002683862730288961'/><link rel='alternate' type='text/html' href='http://blog.imho.jp/2016/12/blogger.html' title='Bloggerでシンタックスハイライトを利用する'/><author><name>Hiroyuki Kurosawa</name><uri>http://www.blogger.com/profile/06788598705082022579</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-341817547867833834.post-1443754192027268073</id><published>2016-12-18T12:11:00.000+09:00</published><updated>2016-12-20T13:43:02.048+09:00</updated><title type='text'>Raspbianでpyenv環境を構築する</title><summary type="text">Raspbian環境をアップグレードしたついでにpyenv/pyenv-virtualenv環境を構築しようとおもいました。その際、pyenvを使ったpythonバージョンのインストールでエラーが出たので、その構築メモです。


0.環境
記事執筆した時点で、 $ sudo aptitude safe-upgrade した状態です。
日本語環境を入れたりはしてるので、かならずしもデフォではないです。


$ uname -a
Linux raspberrypi 4.4.34+ #930 Wed Nov 23 15:12:30 GMT 2016 armv6l GNU/Linux



１．エラー
以下のようにreadlineとかbzip2とかいかにも必要そうなものがないとか怒られます。


$ pyenv install 2.7.12
Downloading Python-2.7.12.</summary><link rel='replies' type='application/atom+xml' href='http://blog.imho.jp/feeds/1443754192027268073/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://blog.imho.jp/2016/12/raspbianpyenv.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/1443754192027268073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/341817547867833834/posts/default/1443754192027268073'/><link rel='alternate' type='text/html' href='http://blog.imho.jp/2016/12/raspbianpyenv.html' title='Raspbianでpyenv環境を構築する'/><author><name>Hiroyuki Kurosawa</name><uri>http://www.blogger.com/profile/06788598705082022579</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>