java.util.concurrent.ConcurrentMap 의 특징 설명

By | 7월 13, 2011

– 출처 : http://tutorials.jenkov.com/java-util-concurrent/concurrentmap.html – The java.util.concurrent.ConcurrentMap interface represents a Map which is capable of handling concurrent access (puts and gets) to it. The ConcurrentMap has a few extra atomic methods in addition to the methods it inherits from its superinterface, java.util.Map. ConcurrentMap Implementations Since ConcurrentMap is an interface, you need to use one of its implementations in order to use it. The java.util.concurrent package contains the following… Read More »

Xmanager 를 사용하여 우분투 11.04에 XDMCP로 접속하기

By | 7월 11, 2011

- 출처 : 넷사랑컴퓨터 –  * 잘 알고 한 것이 아니라 어쩌다 하다 보니 된 케이스임 1. X Display Manager (xdm) 인스톨 # apt-get install xdm     – 설치가 완료되면 디폴트 디스플레이를 선택하라고 하는데 gdm을 선택하자 (그냥 찍었음 –;) 2. /etc/gdm/custom.conf 파일에 다음 내용 추가 (없으면 생성할 것) [xdmcp]Enable=trueDisplaysPerHost=10 3. 다음 명령으로 gdm을 다시 구동하던지,… Read More »

우분투에 아파치(apache) 웹서버 설치하기

By | 7월 9, 2011

* 디테일한 메뉴얼이 아니고 “성공했다” 정도의 수준으로만 기록한 문서임. * 아파치 다운로드 http://httpd.apache.org/download.cgi * 설치 ./configure ./make ./make install * httpd.conf 수정 (디폴트로 설치했을 경우 ServerName을 요구하는 에러가 발생하므로) gedit /usr/local/apache2/conf/httpd.conf – “ServerName localhost” 삽입 * 실행 /usr/local/apache2/bin/apachectl start * 실행되고 있는지 확인 ps -ef | grep httpd * 부팅 때 항상 실행되도록 설정 (1)… Read More »

[펌글] 우분투에 텔넷 서버 설치하기 (xinetd, telnetd)

By | 7월 9, 2011

– 출처 : http://uyeong.tistory.com/68 –   우분투에서 텔넷을 사용하기 위해서는 먼저 2가지의 프로그램을 설치하여야 한다. “$sudo -i” -># 전환 apt-get install xinetd apt-get install telnetd 그다음 xinetd.conf 파일에 몇가지 추가해주자 # cd /etc # gedit xinetd.conf xinetd를 열면 아래와 같은 소스를 기입해준다. # Please note that you need a log_type line to be able to use log_on_success… Read More »

[펌글] 우분투에 FTP서버 설치하기 (vsftpd)

By | 7월 9, 2011

– 출처 : http://uyeong.tistory.com/64 – * vsftp를 설치하기전에 다른 ftp가 설치되어 있는지 확인 # sudo dpkg -l | grep ssh * 설치 # sudo apt-get install vsftpd(시냅틱에서 svftpd를 검색해서 설치해도 무관) * 서비스 확인 # netstat -ntl * vsftp설정파일 수정 # sudo gedit /etc/vsftpd.conf anonymous_enable 익명 사용자의 접속 허용 여부를 설정하는 항목으로 default 값은 YES 입니다. FTP… Read More »

[펌글] 우분투 10.10 에서 WOL(Wake-on-Lan) 기능 사용할 수 있도록 설정하기

By | 7월 1, 2011

– 출처 : http://kuber.posterous.com/enable-wol-wake-on-lan-in-ubuntu-1010 – Wake on LAN is useful to wake up your computer from sleep by sending a magic packet. Assuming your computer supports WOL (check you bios settings), the following steps should help you get WOL enabled in Ubuntu 10.10. Install ethtool and wol: sudo apt-get install ethtool wakeonlan Choose which network interface you… Read More »

[링크] DNS-323 관련 정보

By | 6월 28, 2011

DNS-323에 텔넷 설치하기 (ffp 설치) DNS-323에서 하드디스크 SMART 정보 보기 DNS-323에 ffp 꾸러미 설치하기 DNS-323에서 토렌트 돌리기 – Transmission 설치

Spring에서 트랜젝션 내에 별도의 트랜젝션을 가져가는 방법 (Spring 2.5 / 어노테이션 기반 트랜젝션)

By | 6월 22, 2011

어노테이션 기반 트랜젝션 (예:<tx:annotation-driven/>) 에서 어떤 클래스에 @Transactional 이 선언되어 있고 이 클래스는 다음과 같은 메서드를 가진다고 할 때 메서드A(){          for(int i=0; i<10; i++){         메서드B();     }  } 메서드A()는 스프링의 프록시로 감싸져 있기 때문에 Exception 발생시 롤백이 가능하지만, 그 안에 있는 메서드B()는 현재 개별적인 트랜젝션처리(각 루프별 독립적 롤백)가 불가능한 상태이다. 이 경우에는 다음과 같이… Read More »

ibatis 에서 쿼리 문장 내에 #이 포함되어 있을 경우 escape 방법

By | 6월 21, 2011

select ‘#ABC’ from dual  위와 같은 SQL문을 ibatis로 실행하려 할 경우, ibatis는 #이후를 바인딩 변수로 인식하려 하기 때문에 오류를 발생시키게 된다. 이 경우는 #앞에 #을 한 번 더 붙여 주면 첫 번째 #은 escape character로만 작용하고 이후 #을 일반 문자열로 인식하게 된다. select ‘##ABC’ from dual