Language(99)
-
install PyMySQL
version python3 install 하기) localhost:bin terrypark$ pip3 install PyMySQL You are using pip version 7.0.1, however version 7.1.0 is available. You should consider upgrading via the 'pip install --upgrade pip' command. Collecting PyMySQL Downloading PyMySQL-0.6.6-py2.py3-none-any.whl (66kB) 100% |████████████████████████████████| 69kB 704kB/s Installing collected packages: PyMySQL Successfully in..
2015.07.21 -
규칙41) 오버로딩을할 때는 주의하라!
제네릭 메카니즘 “Erasure" Type Erasure Generics were introduced to the Java language to provide tighter type checks at compile time and to support generic programming. To implement generics, the Java compiler applies type erasure to: Replace all type parameters in generic types with their bounds or Object if the type parameters are unbounded. The produced bytecode, therefore, contains only ordinary cla..
2015.07.21 -
(java) ltrim 구현
private final static Pattern LTRIM = Pattern.compile("^\\s+"); tip. \\s+$ private String ltrim(String s) { return LTRIM.matcher(s).replaceAll(""); } ^ : 시작. \s : 공백. + : 하나 이상. 매칭되는것 없애준다. 끝.
2015.06.30 -
crontab+python3
crontab 내용 */1 * * * * /acet/terrypark/run_agitData.sh >> /acet/terrypark/getAgitData2.log run_agitData.sh 내용 #!/bin/bash source ~/.bash_profile /opt/python3/bin/python3 /acet/terrypark/getAgitData.py 크론탭은 환경변수를 인식못하기 때문에 shell을 하나 생성하여 .bash_profile과 실행한 파이썬을 걸어준다. 단, 절대경로를 사용하는게 좋다. - 끝 -
2015.06.30 -
python???
https://www.python.org/downloads/mac-osx/ 에 가셔서 파이썬 3.x를 다운 받습니다. IDE를 켜고~파이썬 SDK를 잡아줍니다. MAC은 아래의 경로에 셋팅이 되어지네용~@-@;;localhost:bin terrypark$ pwd/Library/Frameworks/Python.framework/Versions/3.5/bin 여기까지 일단~
2015.06.22 -
이펙티브자바 규칙 19) 2015년 6월 21일- 일요일 스터디 카페 방문
1. 이펙티브 자바 읽기(범위 : 규칙19,20,21) 인터페이스는 클라이언트 입장에서 보면 “알림이?(명세) 역할"을 한다. 즉, class로 구현할 것을 인터페이스는 미리 말해준다. 인터페이스 사용법 중에 실패한 것은 메소드도 없고 static final field만 존재하는 소위 "constant interface” 라 불린다. // Constant interface antipattern - do not use! public interface PhysicalConstants { // Avogadro's number (1/mol) static final double AVOGADROS_NUMBER = 6.02214199e23; // Boltzmann constant (J/K) static final d..
2015.06.21