일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
- management
- Spain
- Book
- web
- Linux
- RFID
- django
- Artificial Intelligence
- essay
- erlang
- Kuala Lumpur
- comic agile
- history
- MySQL
- ubuntu
- France
- agile
- Book review
- Italy
- leadership
- QT
- hadoop
- Python
- Programming
- Java
- Software Engineering
- Malaysia
- hbase
- programming_book
- program
- Today
- Total
목록Programming (347)
http://docs.python.org/2/howto/unicode.html e.g. UnicodeEncodeError: 'ascii' codec can't encode character u'\ua000' in position 0: ordinal not in range(128)MySQLdb로 mysql의 table에서 select를 해 file에 저장할 때str = '....'try:str = str.encode('utf-8')except UnicodeDecodeError:str = str.encode('ascii')e.g. UnicodeDecodeError: 'ascii' codec can't decode byte 0x9f in position 3: ordinal not in range(128) ht..
Python: tuple indices must be integers, not str when selecting from mysql tablehttp://stackoverflow.com/questions/12325234/python-tuple-indices-must-be-integers-not-str-when-selecting-from-mysql-table check cursor type first, being dict cursor, use dict key, or use tuple index How to see the real SQL query in Python cursor.executehttp://stackoverflow.com/questions/5266430/how-to-see-the-real-sql..
post url test ab [-n number|-t time] -p [post query file] [-v verbose-level] -T "application/x-www-form-urlencoded" "[url]" mandatory -n test 횟수 or -t 시간 -p post data file -T "application/x-www-form-urlencoded" 없으면 query가 전달되지 않고 empty string이 됨 optional -v verbose-level example ab -n 1 -p ./queryFile.txt -v 4 -T "application/x-www-form-urlencoded" "http://10.15.86.143:5000/analyze" cons 여러 데이터를..
원문 http://blog.daum.net/jchern/13756899참고http://calflove.tistory.com/m/post/view/id/335http://blog.naver.com/PostView.nhn?blogId=mook7508&logNo=120158730601http://blog.naver.com/PostView.nhn?blogId=affectionjs&logNo=140114730131apache bench http://koronaii.tistory.com/208installation# wget http://mirror.apache-kr.org//httpd/httpd-2.4.4.tar.gz# tar xfz httpd-2.4.4.tar.gz# cd httpd-2.4.4 httpd-2.4..
http://bookworm.pe.kr/wordpress/2013/01/01/2642/ http://dev.mysql.com/doc/refman/5.0/en/innodb-locking-reads.html LOCK IN SHARE MODESELECT후 트랜잭션이 끝날 때까지 해당 ROW 값이 변경되지 않음을 보장즉, 해당 ROW를 UPDATE/DELETE하는 쿼리는 잠김 상태가 되어 트랜잭션이 끝날 때까지 대기 / SELECT는 여러 세션 동시 수행 가능auto_commit을 꺼야 한다SELECT * FROM user WHERE id = 1 LOCK IN SHARE MODE; FOR UPDATESELECT로 가져 온 데이터를 변경할 때 사용해당 ROW에 대해 다른 세션의 SELECT, UPDATE, DEL..
http://blog.naver.com/PostView.nhn?blogId=nforce7050&logNo=140095190376 리눅스 시스템의 RPM관리자. "Yellowdog Updater Modified" 의 약자 # yum list available yum 저장소에 있는 설치가능한 모든 패키지들을 보여줌 # yum list updatesyum 저장소의 패키지들 가운데 업데이트 가능한 패키지 리스트들을 확인 # yum list linstalled 특정 패키지의 설치여부를 확인. # yum check-update업데이트가 가능한 패키지 목록을 확인. # yum install [패키지 명] 패키지 상관관계를 모두 분석하여 의존성문제 없이 지정된 패키지를 설치할 수 있다. # yum update [패키지..
http://blog.outsider.ne.kr/699http://blog.hawkhost.com/2010/06/28/tmux-the-terminal-multiplexer/http://blog.hawkhost.com/2010/07/02/tmux-–-the-terminal-multiplexer-part-2/http://webdizz.name/blog/2012/05/24/tmux-cheat-sheet/ tmux attach || tmux new — attaches to existing server process or creates new if it does not exist. When you are in tmux terminal window you can use next commands to manage y..
10분마다 실행*/10 * * * * something 실행 경로 및 로그 경로는 절대 경로 사용 연속 명령은 ;나 &&로 연결 log에 날짜 남길 때 \ 사용 잊지 말 것(없으면 동작 안 함)* * * * * echo 'test' > /some/directory/path/log.`date +\%Y-\%m-\%d-\%H-\%M-\%S`.log* * * * * echo 'test' > /some/directory/path/log.$(date +\%Y-\%m-\%d-\%H-\%M-\%S).log cron 동작 살펴보고 싶으면# tail -f /var/log/cron
http://whiletruecode.com/post/installing-iterm2-and-tmux-osx http://ricardianambivalence.com/2012/12/23/installing-iterm2-and-tmux-on-a-mac/http://lambert.tistory.com/m/post/view/id/553 http://code.google.com/p/iterm2/wiki/TmuxIntegration http://blog.hawkhost.com/2010/06/28/tmux-the-terminal-multiplexer/ http://blog.hawkhost.com/2010/07/02/tmux-–-the-terminal-multiplexer-part-2/ http://blog.outs..
http://www.if-not-true-then-false.com/2010/install-virtualbox-with-yum-on-fedora-centos-red-hat-rhel/ # wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo # yum update # yum install VirtualBox-4.2.6 # usermod -a -G vboxusers [user id]# yum install ruby rubygems ruby-devel # dependencies for vagrant # gem install vagrant # chmod 644 /usr/lib64/ruby/gems/1.8/gems/vagrant-1.0.6..