I am Charmie

メモとログ

2020-01-01から1年間の記事一覧

C#と.NET framework

C#

よくわからないのでメモ. C - .NET上で動作するオブジェクト指向言語 .NET framework MicrosoftがWindows用に作成した開発プラットフォーム 今はクロスプラットフォーム (.NET Coreと呼ばれる) Mono (.NET framework互換プラットフォーム)はXamarinやUnity…

スケーラビリティ

参考文献: Pythonではじめるソフトウェアアーキテクチャ スケーラビリティ = 計算リソースの追加によりソフトウェアシステムが拡張される程度 システム拡張 垂直スケール (スケールアップ): 計算ノード内でリソース(CPUやRAM)を追加,リソースを有効活用 水…

Novel View Synthesis系論文とコード

まとめ CVPR 2020 Tutorial Novel-View Synthesis for Objects and Scenes from awesome neural rendering papers コード 動作確認済み 動作未確認 SynSin: End-to-end View Synthesis from a Single Image Nerf++ Generative View Synthesis: From Single-v…

MacTeXインストール後の/usr/localのpermission error

以下のページに書いてあるとおり,MacTeXが悪い. discourse.brew.sh 面倒くさいので,以下のように雑に対応 sudo chown -R $(whoami) $(brew --prefix)/*

NVIDIA driver related problem after OS update from Ubuntu 18.04 to 20.04

My desktop booted with super low resolution (640x480) after upgrading from Ubuntu 18.04 to 20.04. I happily solved the problem following here. Software & Update > Additional Drivers > select the newest one, 450 in my case.

OBSのメモ

OBS

Scene CollectionのImport/Export - jsonファイルで管理 ファイル名 このQ&Aを見る限り,絶対パスで指定 jsonファイルを編集してメディアソースのファイル名を相対パスにしたら動画を再生できなかった ファイル差し替え 絶対パスでファイルを関連付けている…

BioPython関係

% conda config --add channels bioconda % conda config --add channels conda-forge % conda install biopython % conda install cython seaborn pysam pyvcf simuPOP dendropy rpy2 % conda install r-essentials r-gridextra

install R and RStudio

Ubuntu 18.04用 sudo apt install r-base sudo apt install gdebi-core wget https://download1.rstudio.org/desktop/bionic/amd64/rstudio-1.3.1073-amd64.deb sudo gdebi rstudio-1.3.1073-amd64.deb Ubuntu 20.04用 Rのバージョンも違うかも # install R …

export interactive Bokeh plot to csv

目的 オンラインで学生実験を行うためのwebアプリ開発 - コンデンサの充放電の実験 作ってみたサンプル Bokehのサンプルプログラムを改造して,サインカーブの一部をcsvとして保存するページを作った. charmie11.github.io 要件 github上で公開可能 (インス…

Rust installation on Mac OSX Catalina

As recommended by the official HP, the following command downloads Rustup, toolchain manager, and then installs Rust, compiler. curl https://sh.rustup.rs -sSf | sh Then, the terminal asks to select which installation of the followings: 1) …

gdb on Mac OSX Catalina

コード署名と資格情報の登録はここに書いてある通り.

sort app of LaunchPad on Mac OSX

Mac

defaults write com.apple.dock ResetLaunchPad -bool true; killall Dock

LibreOfficeのアップデート (Ubuntu 18.04)

自動でアップデートしてくれなかったので手動アップデート 以下のコマンド 1. 公式サイトから最新版(tar.gz)をダウンロード 1. ダウンロードしたファイルを解凍 1. DEBSディレクトリで以下のコマンドを実行して既存のバージョンをアンインストールしてから最…

libndi related error

After installing obs-ndi, apt upgrade returns the following error message. /sbin/ldconfig.real: /usr/lib/libndi.so.4 is not a symbolic link The following command proves that the file is not a symbolic link. % cd /usr/lib % ls -l | grep lib…

matplotlib bar and barh with hatch

plot of bar or barh with hatch, that adds pattern to bars, does not work with savefig as pdf. The result pdf lacks some bars without hatch patterns. To fix this, a simple solution is render with alpha=some value. The following stackoverflo…

box selection / column selection in PyCharm

step 1: enable box selection Ctrl + Shift + A shows FindAction window type column lists column related actions the top in the list is Column Selection Mode that is assigned Alt + Shift + Insert step 2: use box selection turn on box selecti…

installation management for JetBrain software

JetBrain provides an installation management software called Toolbox App. Simple but efficient management is aveilable!! uninstall installed PyCharm and CLion # uninstall PyCharm sudo snap remove pycharm-community rm -rf ~/.java/.userPrefs…

manifold learning in sklearn

sklearn で Manifold Learning Manifold Learningは非線形な高次元のデータを次元圧縮する時に使われる. sklearnでも色々なアルゴリズムの実装が提供されている. 複数のアルゴリズムの比較はこのサンプルを見ると分かる. fit とtransformを別々に実行可能…

skimage.transform.rescale with color image

skimage.transform.rescale関数を使った時にハマったので,備忘録. 色々試行錯誤したコードはページの下の方に載せている. カラー画像とグレースケール画像をで変換する時の色々を載せる. 原画像 以下のように,両画像が8bitの画像として読み込まれる. c…

vcpkg (C++ package manager): install on Mac OSX

Step 0: check gcc and g++ clang might cause compilation error. % g++ -v Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc/9.2.0_3/libexec/gcc/x86_64-apple-darwin19/9.2.0/lto-wrapper Target: x86_64-apple-darwin…

cmakeの使い方 (コンパイルしたライブラリを使うため)

とりあえず xxx-config.cmakeさえ作っておけば良い? static library add_libraryでSTATICを指定 ファイルの出力先はset_target_properties(ARCHIVE_OUTPUT_DIRECTORY ${DIR_TO_OUTPUT})で指定 shared library add_libraryでSHAREDを指定 ファイルの出力先は…

ディレクトリ内の全pdfファイルを画像に変換

前提 imagemagickがインストール済み 同一ディレクトリに一つ以上のpdfファイルが保存されている 全pdfファイルは1ページ スクリプト 以下の通り #!/bin/bash for filename in *.pdf; do convert $filename -quality 90 ${filename/.pdf/.png} done 注意 pd…

vcpkg: install c++ packages

vcpkgでインストールに成功・失敗したパッケージのまとめ library version OS result ceres 1.14.0-7 mac o boost 1.73.0 mac x (boost-python) g2o 2020-02-07 mac o gtest 1.10.0 mac o CMakeLists.txtでの設定についてはインストール後に表示されるメッセ…

Relational Database (RDB)

RDB関係のメモ SQL RDB管理システムにおけるデータベース言語・ドメイン固有言語 宣言型言語なのでプログラミング言語ではないらしい RDBMS Relational Database Management System (RDBMS)の略 以下の Oracle Database Microsoft SQL Server MySQL IBM DB2 …

Graph Theory: Spectrum

グラフ理論の特にグラフのスペクトルに関するまとめ 参考書一覧 情報数理の基礎と応用 疑問点 特性方程式の係数が何を意味するか(特にc_n,n>3) グラフのスペクトルを何に使うのか 前提 グラフ G = (V, E) Vは頂点の集合 Eは辺の集合 隣接行列 A: グラフGの辺…

networkx

networkxの使い方のメモ networkxのTutorialに書いてある. Graphの生成 import networkx as nx G = nx.Graph() グラフGにノードを追加 add_nodeでノードを1つ追加,add_nodes_fromで複数のノードをまとめて追加できる G.add_node(1) G.add_nodes_from([2, 3…

PyWavelets

PyWaveletsに関するメモ (公式資料の低質の和訳). PyWaveletsとは Wavelet変換を実現するためのオープンソースのPythonパッケージ 以下の機能を提供 1次元,2次元,多次元の離散Wavelet変換(DWT)と逆離散Wavelet変換(IDWT) 1次元,2次元,多次元の多重解像…

Mac OSX: CMake with clang or gcc

デフォルトのコンパイラでclangが選ばれちゃう. シンボリックリンクの参照先をインストールしたgcc, g++に設定したものの,CMakeで選択されるデフォルトコンパイラはclangのままだった. 解決策はコンパイラの指定 コンパイラの指定を選択 コンパイラの指定…

Mac OSX セットアップ

from App store ソフトウェア 備考 Commander One Slack Xcode command line toolsのインストールだけでもOKっぽい Tag Editor Free ForkLift Dark modeなしファイルマネージャ from installer ソフトウェア 備考 Dropbox Office 365 Skype Sublime Text 3 t…

TeXStudioのpdfプレビューで日本語表示 on Mac OSX

texwikiに書いてあった. いくつか設定をすればOK