Docker,Python

Thumbnail of post image 183

Pythonの実行環境を構築したDockerコンテナに入ってコマンド実行

$ docker exec hoge-container python hoge.py arg1 arg2

hoge-container: Pytho ...

Python

Thumbnail of post image 092

# configファイルの作成$ jupyter notebook --generate-config# geditでconfigファイルを開き、c.NotebookApp.notebook_dirの変数に好きな場所に書き換える$ gedi ...

Python

Thumbnail of post image 006

やりたいこと:
$\beta$($circ$C) を (C) にしたい

正規表現:
\$.+?\$

詳細:

\$: $をエスケープ

+: 1回以上の繰り返し

...

Imagemagick

Thumbnail of post image 200

>> magick convert input.png -crop 100×100+10+20 output.png

ver7からmagickコマンドを付けて実行しなければならなくなったのです ...

Pandas,Python

Thumbnail of post image 144

# Make DataframeIn:df = pd.DataFrame({"A" : ,"B" : ,"C" : ,"D" : np.random.randn(8)})Out:A B C D0 foo one hoge -0.650722 ...

Python

Thumbnail of post image 019

num_list = num_list.index(1)>>2num_list.index(0)>>0num_list.index(2)>>Traceback (most recent call last):>>File "<ipyt ...

RaspberryPi

Thumbnail of post image 115

Raspberry Pi 3 model BにWi-fiでXRDPしようとしたとき,
ifconfigで確認したwlan0のipアドレスを打つと,エラーがでて接続できない.

何度も設定を見直すが,間違えている個所は ...

Ubuntu

Thumbnail of post image 037

必要パッケージのインストール

sudo apt-get install language-pack-ja-base language-pack-ja

内部パラメータの設定

# bash_profileに1行加えて更新v ...

Python

Thumbnail of post image 145

以下のパッケージをインストールすれば解決

Python2と3でパッケージ名が違うという罠…

$ pip install rope

$ pip install rope-py3k

Windows

Thumbnail of post image 160

知人から2万円分のさくらクラウドクーポンを貰い,サーバーを作成してみた.接続は簡単!さくらクラウドのコントロールパネルに表示されるIPアドレスにsshなどでアクセスするだけ.

これだけでも十分使えるものの,CUIではなくG ...