2013年6月26日 星期三

flask

$ sudo easy_install flask
$ sudo easy_install flask-wtf                     //for wtf
$ sudo easy_install sqlalchemy-migrate    //for db
sqlalchemy-migrate==0.7.2 is not compatible with SQLAlchemy 0.8.x. install SQLAlchemy 0.7.10 instead with pip install SQLAlchemy==0.7.10 or easy_install QLAlchemy==0.7.10


Memo for Big Data

Python
Crawler
Scrapy
http://scrapy.org/

Data Analysis
pandas

Machine Learning
scikit-learn

Graphs Analysis
NetworkX

Data Base
Mongo

Distributed Computing Framework
disco

DPark

Spark

happy

A Guide to Python Frameworks for Hadoop

Visualization
matplotlib

R
RHIPE

2013年6月24日 星期一

The problem with NVIDIA GeGorce GT 640m in UBUNTU12.04

When i execute Openrave in Aspire V3-471G notebook, there is error message about "Can't set up a valid OpenGL canvas, something is seriously wrong with the system!"
The cause of this problem  is that Nvidia Optimus function is not support in Ubuntu.
So i have to install Bumblebee-UI in ubuntu.

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install bumblebee bumblebee-nvidia linux-headers-generic

2013年5月30日 星期四

pyinstaller

convert your py file to exe file
user who can execute your program without python
Install:
just unzip to your file folder

Usage:
python pyinstaller.py /path/to/yourscript.py
or
python /path/to/pyinstaller.py yourscript.py

2013年5月6日 星期一

Weka FP Growth dataset

Weka FPGrowth needs Binary attributes, arff form likes this:


@relation FPGrowth dataset

@attribute a {1,0}
@attribute b {1,0}
@attribute c {1,0}

@data
0,0,0
0,0,1
0,1,0
0,1,1
1,0,0
1,0,1
1,1,0
1,1,1

2013年1月15日 星期二

SBCL


Steel Bank Common Lisphttp://www.sbcl.org/ )

ubuntu:

Install SBCL

    ~$ sudo apt-get install sbcl
installed to
    /usr/bin
    /usr/lib
    /usr/share/doc

Running SBCL

    ~$ sbcl
    * (quit)     ;quit sbcl



ASDF: Another System Definition Facility http://common-lisp.net/project/asdf/ )

Install 

    ~$ sudo apt-get install cl-asdf
install to
    /usr/lib/asdf

SHOP2

Simple Hierarchical Ordered Planner (http://www.cs.umd.edu/projects/shop/)

~$ sbcl
* (require :asdf)
* (push "/home/user/experiment/shop2/" asdf:*central-registry*)    ;push shop2 folder path to asdf
* (asdf:oos 'asdf:load-op "shop2")    ;load shop2 in asdf
* (load "~/experiment/basic")    ;load shop2 domain, problem & plan which you define