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>
       

2013년 8월 5일 월요일

android sdk 콘솔에서 update

./android update sdk --no-ui

android console org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp

jenkins에서  org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp 발생시 확인 사항

  • ant-1.8 이상 확인
  • jenkins에 ANT_HOME이 ant-1.8로 되어 있는지 확인 



2013년 8월 1일 목요일

python wsdl client 사용업

> pip install sudl

python > from sudl import Client
python > client = Client("wsdl 주소")

메소드 확인
python > print client

메소드 실행 방법

python > client.service.메소드(파라미터)

접속에러시

python > client.set_options(location="wsdl 메소드 url")

디버그 방법
http://stackoverflow.com/questions/4426204/how-can-i-output-what-suds-is-generating-receiving
from suds.client import Client
import logging

logging.basicConfig(level=logging.INFO)
logging.getLogger('suds.client').setLevel(logging.DEBUG)
logging.getLogger('suds.transport').setLevel(logging.DEBUG)
logging.getLogger('suds.xsd.schema').setLevel(logging.DEBUG)
logging.getLogger('suds.wsdl').setLevel(logging.DEBUG)

SB_PRIVATE_ACCESS = {"PATH":"https://thisurl.com:443/services/",}

client = Client(SB_PRIVATE_ACCESS['PATH'])
print client

parallel로 test 코드 짜기

http://www.javacodegeeks.com/2013/07/run-your-unit-tests-in-parallel.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+JavaCodeGeeks+%28Java+Code+Geeks%29