Jupyter Notebook の初回起動時のワーキングディレクトリを変更

# configファイルの作成$ jupyter notebook --generate-config# geditでconfigファイルを開き、c.NotebookApp.notebook_dirの変数に好きな場所に書き換える$ gedi ...
Python 正規表現 $で囲われた文字を置換

やりたいこと:
$\beta$($circ$C) を (C) にしたい
正規表現:
\$.+?\$
詳細:
\$: $をエスケープ
+: 1回以上の繰り返し
...
ImageMagick 7 で画像の切り抜き convert -crop

>> magick convert input.png -crop 100×100+10+20 output.png
ver7からmagickコマンドを付けて実行しなければならなくなったのです ...
Python pandas 列の範囲を指定して欠損値判定

# Make DataframeIn:df = pd.DataFrame({"A" : ,"B" : ,"C" : ,"D" : np.random.randn(8)})Out:A B C D0 foo one hoge -0.650722 ...
ある要素が初めて現れるのは何番目か?[Python]

num_list = num_list.index(1)>>2num_list.index(0)>>0num_list.index(2)>>Traceback (most recent call last):>>File "<ipyt ...
Raspberry Pi 3 model BにWi-fiでXRDPしようとしたらハマった

Raspberry Pi 3 model BにWi-fiでXRDPしようとしたとき,
ifconfigで確認したwlan0のipアドレスを打つと,エラーがでて接続できない.
何度も設定を見直すが,間違えている個所は ...
Ubuntuで日本語環境の設定

必要パッケージのインストール
sudo apt-get install language-pack-ja-base language-pack-ja内部パラメータの設定
# bash_profileに1行加えて更新v ...Spyder with python2/3 で自動補完(Autocomplete)が使えないときの対処法

以下のパッケージをインストールすれば解決
Python2と3でパッケージ名が違うという罠…
$ pip install rope
$ pip install rope-py3k
さくらクラウドにGUI開発環境を作る(xrdpではない方法)

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

全画面のスクリーンショット
Win+Space+Fn
アクティブウィンドウのみのスクリーンショット
Win+Space+Fn+Alt
WinキーとFnキーを押した後にSpaceを押すと撮りやすい ...