2015년 12월 15일 화요일

Beautiful JavaScript

http://www.amazon.com/Beautiful-JavaScript-Leading-Programmers-Explain/dp/1449370756

it is essay of javascript.

there are a lot of story about javascript.

it is not impression.

if you want to know about javascript technic, i did not recommend.

you can see different perspective in books.

2013년 9월 17일 화요일

emacs python 세팅


  • python.el 설치 
    • package-install python.el
  • python-flymake 설치
    • https://github.com/purcell/flymake-python-pyflakes
    • emacs 세팅
      • (require 'flymake-python-pyflakes)
      • (add-hook 'python-mode-hook 'flymake-python-pyflakes-load)
      • (setq flymake-python-pyflakes-executable "/usr/local/bin/pyflakes")

  • python refactoring
    • Pymacs 설치
      • pip install -e "git+https://github.com/pinard/Pymacs.git#egg=Pymacs"
      • cd src/pymacs
      • sudo python setup.py install
      • python -c "import Pymacs" 이 에러 없음면 설치 완료
      • emacs 에서 package-install pymacs
    • rope, ropemacs 
      • sudo pip install rope
      • sudo pip install ropemacs 
      • cd .emacs.d 
      • hg https://bitbucket.org/agr/ropemacs
    • emacs 설정
      • (defun load-ropemacs()
      •   "Load pymacs and repemacs"
      •   (interactive)
      •   (require 'pymacs)
      •   (pymacs-load "ropemacs" "rope-")
      •     ;; Automatically save project python buffers before refactoring                                                                                                                                                                                                             
      •   (setq ropemacs-confirm-saving 'nil))

      • (add-hook 'python-mode-hook 'load-ropemacs)
      • (global-set-key "\C-xpl" 'load-ropemacs)

2013년 8월 16일 금요일

centos 5.9 python 2.7 python-ldap 설치

yum installl openldap24-libs.i386
yum installl openldap24-libs.x86_64
yum installl openldap24-libs-devel.i386
yum installl openldap24-libs-devel.x86_64

python-ldap-2.4.13.tar.gz download

tar -xvzf python-ldap-2.4.13.tar.gz

cd python-ldap-2.4.13
emacs setup.cfg

lib 에 /usr/lib64/openldap24 ,/usr/lib/openldap24 추가
include 에 /usr/include/openldap24 추가

python setup.py install




2013년 8월 14일 수요일

mac ldap lib 설치

http://projects.skurfer.com/posts/2011/python_ldap_lion/

rb 파일만 넣고
brew install하면 끝남.

그후에 python-ldap 하면 됨.

python ldap 2.3.13

https://pypi.python.org/pypi/python-ldap/2.3.13


centos 6
yum install openldap24-libs-devel.x86_64

2013년 8월 13일 화요일

python mysql connector 설치 및 SQLAachemy 연동

You can use the MySQL Connector/Python
Installation via PyPip
pip install mysql-connector-python
Further information can be found on the MySQL Connector/Python 1.0.5 beta announcement blog.
On Launchpad there's a good example of how to add-, edit- or remove data with the library.



MySQL-Connector Notes

Support for the MySQL database via the MySQL Connector/Python adapter.
MySQL Connector/Python is available at:

Connecting

Connect string format:
mysql+mysqlconnector://<user>:<password>@<host>[:<port>]/<dbname>

http://docs.sqlalchemy.org/en/rel_0_7/dialects/mysql.html#id5

2013년 8월 9일 금요일

maven net.sf.json-lib 등록시 json-lib.jar 없을때

<dependency>
            <groupId>net.sf.json-lib</groupId>
            <artifactId>json-lib</artifactId>
            <version>2.4</version>
            <classifier>jdk15</classifier>
        </dependency>