I am Charmie

メモとログ

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

OpenCV 3.1.0 on Ubuntu 14.04

cmakeのバージョンを3.1.3以上にする howto With QTのチェックを外す

CMake 3.2 installation on Ubuntu 14.04

Ubuntu package manager still installs CMake 2.8 on Ubuntu 14.04. The following is a solution installing newer version of it. [code lang="bash"] sudo apt-get install software-properties-common sudo add-apt-repository ppa:george-edison55/cma…

Notepadqq on Ubuntu with Qt 5.6

Notepadqq is a Notepad++ like editor for Ubuntu. How to install: [code lang="bash"] sudo add-apt-repository ppa:notepadqq-team/notepadqq sudo apt-get update sudo apt-get install notepadqq [/code] Notepadqq shows a pop-up window saying that…

Remote Desktop Environment (RDP) installation no Ubuntu 14.04

xrdp and lxde enables remote desktop access to Ubuntu from Windows. [code lang="bash"] install sudo apt-get install xrdp sudo apt-get install lubuntu-desktop lxde settings echo lxsession -s LXDE -e LXDE > ~/.xsession change crypt_level fro…

install Anaconda for all users on Ubuntu 14.04

Change the install location from default directory to another directory where all users can access. In my case, : default install directory: /home/oyamada/anaconda2 customized install directory: /opt/anaconda/anaconda2 Add the customized i…

setup virtual environment (Ubuntu 14.04) on Windows 10

The procedure is like install VirtualBox install Vagrant (ver. 1.8.1) setup Vagrant You can see a list of available OS here. The above 3rd step is executed via command prompt as follows: [code lang="bash"] install OS vagrant box add ubuntu…

Keras deep learning library installation on Ubuntu 14.04

[code lang="bash"] conda update conda conda update anaconda conda update --all conda install mingw libpython pip install --upgrade --no-deps theano pip install keras [/code]

Keras deep learning library installation on Windows

Keras, which works with either TensorFlow or Theano, is a library for using deep learning in Python. [code lang="bash"] step 1 prepare for the installation conda update conda conda update anaconda conda update --all conda install mingw lib…

関数ポインタと関数オブジェクト

関数ポインタと関数オブジェクトであれば,関数オブジェクトを使用した方が高速に動作する可能性があるそうだ. 原因は,関数オブジェクトではoperator()の呼び出しがinline化される一方で,関数ポインタが必ずinline化される保証がないからだそうだ.コンパ…

OpenCV 3.1.0 prebuilt binary

Please use OpenCV 3.1.0 prebuilt binary provided at github, not at sourceforge. The one provided at sourceforge has some problem. Double clicking the exe file, I got an error message saying that can not open file "***/opencv-3.1.0.exe" as …

Notes on OpenCV-Python on Ubuntu

If PYTHON2_NUMPY_INCLUDE_DIRS is not found, python bindings for python2.7 is not generated. Couldn't compile with FFMPEG=ON. Turned off the flag. BUILD_opencv_python2=ON BUILD_opencv_python3=ON OPENCV_EXTRA_MODULES_PATH="CONTRIB_DIR/module…

highgui related issues of OpenCV-Python on Ubuntu 14.04

OpenCV-Python always crashed when I used highgui related functions. With Spyder, we can see only kernel crash, so I had no idea what happened. When I ran a problem from terminal, I got an error message that This application failed to start…

OpenCV 3.1.0 for Python: installation on Windows

OpenCV 3.1.0をPython 2.7から使うためのインストール手順 OpenCVのインストールはめんどくさいのでプレビルトライブラリを使う.opencv_contribの便利機能を使いたい場合は自前でコンパイルする必要がある. 前提条件: Anacondaを使ってPython2.7がインスト…

Install Theano on Windows

[code lang="bash"] Install MinGW compiler conda install mingw libpython Install Theano pip install theano [/code]

Install TensorFlow on Linux

[code lang="bash"] pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.7.1-cp27-none-linux_x86_64.whl check installed version python -c "import tensorflow; print(tensorflow.version);" [/code]

install Chainer on Windows

install Microsoft Visual C++ Compiler for Python 2.7 from here install Chainer by pip install chainer

apt-get update error due to Chrome

edit /etc/apt/sources.list.d/google-chrome.list as a superuser change the line as deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main then start the update sudo apt-get update

install networkx on ubuntu using anaonca

[code lang="bash"] conda install networkx conda install pydot-ng conda install graphviz [/code]

install pygtk on Windows

download gtk+ package, uncompress the package, and set bin directory of the package to the system path. download pycairo_gtk-1.10.0-cp27-none-win_amd64.whl, pygtk-2.22.0-cp27-none-win_amd64.whl, and pygobject-2.28.6-cp27-none-win_amd64.whl…

enable anaconda search on Windows

[code lang="bash"] conda install anaconda-client [/code]

PyGTK installation using Anaconda

Using anaconda search, anaconda search -t conda pygtk, there are several packages: jochym/pygtk for linux-64 mike/pygtk-aio for win-32 mw/pygtk2 for linux-64, linux-32, osx-64 ska/pygtk for linux-64 vgauthier/pygtk for osx-64 I've tried sk…

Tegaki compilation from source on Ubuntu 14.04

On Ubuntu 14.04, only mw/pygtk2 anaconda package worked with tegaki. [code lang="bash"] download source from git git clone https://github.com/tegaki/tegaki.git install all modules pip install ./tegaki-python pip install ./tegaki-pygtk pip …

Zinnia installation on Ubuntu 14.04

[code lang="bash"] sudo apt-cache search zinnia [/code] libzinnia-dev - development files for the zinnia library libzinnia-doc - documention files for the zinnia library libzinnia0 - online handwriting recognition system with machine learn…

Installation Tegaki on Ubuntu 14.04

[code lang="bash"] sudo apt-cache search tegaki [/code] ibus-tegaki - tegaki engine for IBus python-tegaki - core Python module of Tegaki python-tegaki-gtk - GTK+ widget Python model for Tegaki python-tegakitools - command-line tools for T…

電気回路

電子回路シミュレータ: 遊び方 3次元電気回路シミュレータ: 遊び方

Pov-Ray 3.7 installation on Ubuntu 14.04

download from the github repository and then follow the instruction. [code lang="bash"] git clone https://github.com/POV-Ray/povray.git cd povray cd unix ./prebuild.sh cd .. ./configure COMPILED_BY="your name <email@address>" make ma…

ImageMagick align images

[code lang="bash"] convert 0000.png -background "#ffffff" -gravity south -splice 0x32 blank0000.png convert -pointsize 24 -gravity south -annotate 0 "0" -fill red blank0000.png text0000.png montage text0000.png text0001.png text0002.png te…

directional statistics

directional statistics on wikipedia Essentials of Paleomagnetism

Open-Source Chinese and Japanese Handwriting Recognition

Tegaki is an Open-Source Chinese and Japanese Handwriting Recognition

Python: install scikit-tensor

scikit-tensor package [code lang="bash"] pip install scikit-tensor [/code]