본문 바로가기

Language

파이썬(Python) + Eclipse 설치 , pip 설정, eclipse 가상환경 적용법, anaconda 설치 1. 파이썬 + Eclipse 설치 http://sjpison.tistory.com/211 참고 설명잘되있음. 2. pip 설정 http://ssse.tistory.com/36 3. Eclipse 가상환경 적용법 http://pentode.tistory.com/127 4. Anaconda 설치 https://www.anaconda.com/download/ OS 버전에 맞는거 받아서 설치 더보기
python pydev 설치 http://pentode.tistory.com/99 참고 더보기
SocketTimeoutException SocketTimeoutException https://stackoverflow.com/questions/5632279/how-to-set-timeout-on-client-socket-connection 참고 아래 소스가 완벽하게 설명해줌. socket.connect 는 connection 을 설립(?) 하는데 드는 시간이 초과될 경우 발생하는거고. socket.setSoTimeout 은 connection 은 성공적으로 연결됐는데 Server 에 있는 데이터 read 하다 시간 초과난 경우 Socket socket = new Socket(); // This limits the time allowed to establish a connection in the case // that the connecti.. 더보기
IO VS NIO http://homoefficio.github.io/2016/08/06/Java-NIO%EB%8A%94-%EC%83%9D%EA%B0%81%EB%A7%8C%ED%81%BC-non-blocking-%ED%95%98%EC%A7%80-%EC%95%8A%EB%8B%A4/ 참고 좋은글임 더보기
ProtocolBuffer 예제 http://ourcstory.tistory.com/47 그대로 따라하면 됨. 주의 1. .protoc 파일은 resource 에 놔두고 컴파일 output 위치를 패키지/xxx.java 로 놓기. 2. gradle protoc 받기. 더보기
Subject (doAs) 특정 객체가 Action 을 할 수 있는지 권한을 체크하는 메소드? https://stackoverflow.com/questions/4989063/what-is-the-meaning-of-subject-vs-user-vs-principal-in-a-security-context 참고 더보기
Exception 참고 내 생각1. Exception 은 이 예외를 냈을 때 Caller 쪽에서 뭔가 Exception 에 관한 처리를 반드시 해야할 때2. RuntimeException 은 이 예외를 냈을 때 Caller 쪽에서 해당 RuntimeException 처리를 안해도 되지만 단 인지는 하고 싶을 때 정리 1. RuntimeException 은 UncheckException, rollback 됨.만약 try, catch 없는 문에서 예외가 나왔다? 하면 runtimeException 으로 처리해줘야지.ex) args 가 크기를 넘어섰을 때 등. IndexOutOf..., NullpointerException 2. 나머지 Exception 이 CheckException 이며, try, catch 해줘야함. rollba.. 더보기
JMX 1. Client 예제http://www.journaldev.com/1359/java-jmx-client-example-authentication 2. Server 예제https://community.oracle.com/thread/1176935 3. 전체 예제 (Oracle Manual)https://docs.oracle.com/javase/8/docs/technotes/guides/jmx/examples.html 주의사항Windows Client 에서 등록할 때 LocateRegistry.createRegistry(port); 이걸 등록해줘야 하네. 안그러면 권한없다고 나옴. 더보기
[MBean] MBean 구현 1. 구현https://docs.oracle.com/javase/tutorial/jmx/remote/custom.html 더보기
[Jar] Jar 유닉스에서 실행 http://veenvalu.tistory.com/entry/%EB%A9%94%EC%9D%B8-%EC%8A%A4%EB%A0%88%EB%93%9C%EA%B0%80-%EC%9E%88%EB%8A%94-JAR-%ED%8C%8C%EC%9D%BC-%EC%8B%A4%ED%96%89%EB%B0%A9%EB%B2%95 참조 핵심은 Eclipse 에서 jar 만들고 Main 지정 후 유닉스 서버에서 java -jar jar명 실행 더보기