Thursday, January 29, 2015

opencv problem and boost problem

1. opencv:

open opencv.pc

and change path from .....libcalib3d.so to lcalib3d

2. boost:

boost:FOR EACH has not been declared

change to this:

 #include <boost/foreach.hpp>
 #include <boost/version.hpp>

 namespace boost {

 #if BOOST_VERSION != 104900
 namespace BOOST_FOREACH = foreach;
 #endif
 
 } // namespace boost
 
 #define foreach BOOST_FOREACH


Tuesday, January 27, 2015

Some unix commands:

grep -r "uniqueid"
find ./ | grep annotation | grep slu
apt-cache search yaml
less

Wednesday, January 14, 2015

Create Website Using Flask -- A Step by Step Guide

Part 1 How to compile and run the website

virtualenv env
. env/bin/activate

pip install Flask Flask-Script Flask-Mail Flask-SQLAlchemy Flask-Uploads Flask-WTF python-dateutil 

Next time:


mkdir flask
cd flask ; mv ~/path/to/Merlot .
virtualenv env
. flask/env/bin/activate
pip install pip install Flask Flask-Script Flask-Mail Flask-SQLAlchemy Flask-Uploads Flask-WTF python-dateutil merlot
cd Merlot
python mangae.py runserver
the only like you need to repeat the next time is the
. flask/env/bin/activate

Part 2 register and login

flask login and principal

Emacs Cheatsheet

C-x C-f: find file
C-s: search

C-x + enter: dir
C-w: delete selection

C-x u: undo

C-x 3: split window horizontally
C-x 2: split window vertically