전체 글(85)
-
Apache + mod_wsgi + Flask
아파치는 설치되어 있다 가정하고...1. Flask app editing2. mod_wsgi install3. httpd.conf editing4. Apache restart 1. Flask app editing$ cd /[app path]$ vim [app name].wsgi# 아래 추가.import syssys.path.insert(0, "/[app path]")from [app name] import app as application 2. mod_wsgi install$ cd /usr/local/src$ sudo weget http://modwsgi.googlecode.com/files/mod_wsgi-3.4.tar.gz$ sudo tar zxvf mod_wsgi-3.4.tar.gz$ cd mod_..
2013.07.18 -
wxPython 설치
난 앱등이니까 Mac1. 쉬운방법- brew 사용- brew install wxwidgets (Cross-Platform GUI Library) 32bit 로 돌리기 위한거 같다.defaults write com.apple.versioner.python Prefer-32-Bit -bool yes
2013.07.15 -
[Linux] FreeTDS 사용
FreeTDS란? FreeTDS is a set of libraries for Unix and Linux that allows your programs to natively talk to SQL Server and Sybase databases. 다운로드 주소 ftp://ftp.astron.com/pub/freetds/stable/freetds-stable.tgz freetds.conf 설정 [global] tds version = 8.0 # Option 아래 설정만으로 커넥션이 안될경우 이 줄도 추가해보자. [MyServer] host = My Server IP port = 1433 tds version = 8.0 Python Sample(SQL Server) import pymssql conn = p..
2013.07.15 -
Flask 어플리케이션 테스트하기
Something that is untested is broken.이 문구의 기원을 정확하게 알수는 없지만, 이것은 진실에 가깝다. 테스트되지 않은 어플리케이션은들은 기존 코드의 개선을 어렵게 하며 프로그램 개발자들을 심한 편집증환자로 만들어 버린다. 만약 어플리케이션의 테스트들이 자동화 되어 있다면, 우리는 문제가 발생했을때 안전하며 즉각적으로 변경이 가능하다.Flask는 Werkzeug 를 통해 테스트 Client 를 제공하여 어플리케이션의 컨텍스트 로컬을 처리하고 테스트할 수 있는 방법을 제공한다. 그리고 당신이 가장 좋아하는 테스팅 도구를 사용 할 수 있도록 해준다. 이 문서에서 우리는 Python에서 기본으로 제공하는 unittest 를 사용 할 것이다.어플리케이션첫째로 우리는 테스트할 어플리케..
2013.07.09 -
[CentOS] APM Source Compile
MySQL yum install zlib curl yum install gcc g++ cpp gcc-c++ yum install openssl openssl-devel yum install libtermcap-devel ncurses-devel libc-client-devel bzip2-devel yum install bison groupadd mysql useradd -g mysql mysql cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_EXTRA_CHARSETS=all -DMYSQL_DATADIR=/usr/local/mysql/data -DENAB..
2013.06.26 -
WHAT DOES AN RPG (GAME) DATABASE LOOK LIKE?
(2012) This post was written long before I had much game development experience. It’s more of a concept design, rather than actual reality. So really I was blowing a little smoke :)Answer: Pretty much anything.Like business applications, every RPG Game (Focusing on that particular genre) will have a different Database. Design, Technology, Feedback .. They all affect a Database.This Database is s..
2013.06.26