ネタ帳_20201126

これから書こうかなぁと思っている内容やちょっとメモしておきたい内容をまとめる場所.

見る価値はない.


vimmer への道.
NERDTreeのshortcut.
https://qiita.com/zwirky/items/0209579a635b4f9c95ee
jedi-vim のshortcut
https://github.com/davidhalter/jedi-vim
<learder>g や<leader>d で飛んだ後に戻る方法.<C-o>.


jupyter lab extensions .
krassowski/jupyterlab-lsp
axlair/jupyterlab_vim


How to add SWAP memory in Ubuntu 16.04


Vimメモ : jedi-vimでPythonの入力補完
NeoBundleの導入


ファイルのエンコーディングの自動判断.(絶対的な手法はなし,確率的に判断している模様.)

[Python][chardet] ファイルの文字コードの自動判別


Virtualbox 上でwebcameraを使う方法.

virtualbox 上の Ubuntu で webcam を使いたい
VirtualBox上の仮想OSでWebカメラを使えるようにする

VBoxManage list runningvms
VBoxManage list webcams
VBoxManage controlvm name_of_virtual_machine webcam attach .1


Linuxでvirtualboxを起動する方法.
moduleのsign in の設定をした後は,再起動時にkeyのimportを許可しないといけない.
Signing VirtualBox Kernel Modules


Ubuntuでjupyter notebookの起動自体がやたら遅くなったときの対処方法.
CPU constantly near 100% and computer overheating after upgrade to 18.04
– variable inspector が原因の可能性もあり.(今回の僕の場合は違った...)
https://github.com/jupyter/notebook/issues/3303

sudo apt install lightdm
sudo dpkg-reconfigure lightdm

あと,キッシュの削除,

sudo sh -c "echo 3 > /proc/sys/vm/drop_caches"

swap もoff にしてみた.が,切実にon にしたい.
An introduction to swap space on Linux systems


不変mapの作成方法

from types import MappingProxyType
d = {1:"A"}
d_proxy = MappingProxyType(d)
print(d_proxy)
d_proxy[2] = "x"

CPythonについて

# 1. Command line and environment, CPython
https://docs.python.org/3/using/cmdline.html

# 23. Exploring CPython’s Internals
https://devguide.python.org/exploring/

# Your Guide to the CPython Source Code
https://realpython.com/cpython-source-code-guide/


緑本をpythonのコードで補足解説しているブログがあった.
statsmodelsを使っているから参考になりそう.ありがたし.
Pythonで「データ解析のための統計モデリング入門」


RealPythonにcomplex numberに関する説明あったはずなんだけどなぁ.
Example: Class for complex numbers
Python: Making a class to use complex numbers
classに関する説明 Object-Oriented Programming (OOP) in Python3
-> Fluent python にVectorの実装例が載っていた!


hint for understanding the architecture of python.
Python list implementation
How is Python’s List Implemented?
This is good example of understanding “is” operator behavior.
Understand How Much Memory Your Python Objects Use


エンジニアがゼロから技術ブログを書くための方法をまとめました
https://tomokazu-kozuma.com/ways-for-engineers-to-write-technical-blogs-from-scratch/


pythonのvisualization modules.
https://www.fusioncharts.com/blog/best-python-data-visualization-libraries/


Pythonのf文字列(フォーマット済み文字列リテラル)の使い方
https://note.nkmk.me/python-f-strings/



pythonのasteriskの使い方.variadic arguments, packing, unpacking.
https://medium.com/understand-the-python/understanding-the-asterisk-of-python-8b9daaa4a558


オンラインクラウドサーバー.
Xserverを用いているがそこの空き容量を効率的に使う方法.
online cloud serverを用いる.
-> nextCloud か ownCloud.無料で使うならnextCloudがオススメ.


ipython, jupyter notebookを起動した時に,importする予定のファイルをいじった時に変更を反映させる方法.

ipython を起動しながら自作モジュールを修正した場合
https://qiita.com/Accent/items/f6bb4d4b7adf268662f4

以下のコードを回しておけばok.

%load_ext autoreload 
%autoreload 2 

良かった記事
・データサイエンスはつまらない(パート1)【前編】, https://ainow.ai/2019/10/14/179437/

コメント

タイトルとURLをコピーしました