java FileOutputStream 특정폴더 떨구기
·
Programing
import java.io.FileOutputStream; import java.io.*; import java.io.OutputStreamWriter; import java.text.SimpleDateFormat; import java.util.Calendar; public class test { static int sum = 0; public static String getTodayDate(String flag){ String todayDate = ""; Calendar calendar = Calendar.getInstance(); SimpleDateFormat dateFormat = null; if( "1".equals(flag) ){ dateFormat = new SimpleDateFormat("..
Tomcat NT버전 JAVA_PATH강제로 잡기
·
Programing
D:\app\Tomcat5\Catalina.bat SET JAVA_HOME=E:/amail/app/java14 SET JAVA_OPTS=%JAVA_OPTS% -Xmx512m
Apache,Tomcat mod_jk연동시 linsting 보이는 파일 처리
·
Programing
http://ApacheIP:80/web-inf/web.xml 파일 안보이기 1) 웹 서버 혹은 웹 어플리케이션 서버에서 디렉토리 인덱싱 기능을 비활성화 시킨다. [tomcat의 예제] listings false [apache의 예제] # # KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to "Off" to deactivate. # KeepAlive Off #2009.12.08 Namha Options IncludesNoExec FollowSymLinks #Options FollowSymLinks MultiViews # The Options directive is ..
HTML index 포워딩
·
Programing
This page will forward to http://www.amail.co.kr in three seconds. Please update your links.
주민번호 OR 사업자등록번호 짤라서 ***붙이기
·
Programing
public class Test { public static final String getJumin(String str) { String str1 = str; if( str1 == null){ return "Number is null"; }else if(str1.length() == 10){ return str1.substring(0, 3) + "-" + str1.substring(3, 5) + "-" + str1.substring(5, 6) +"****"; }else if(str1.length() == 13){ return str1.substring(0, 6) + "-" + str1.substring(6, 7)+ "******"; }else{ return "wrong number"; } } public..
Apache2.2 + Tomcat5.5 가상호스트 분리
·
Programing
아파치 서버와 톰캣이 연동이 되었다는 전제하에. 우선, 호스트를 2개로 분리를 하겠습니다. 호스트를 분리한다는 말은 같은 ip로 서로 다른 도메인을 사용하겠다는 의미입니다. 예를 들어 192.168.xx.xxx 의 ip로 http://www.baver.com http://www.gahoo.com 로 접속하겠다는 의미(?)죠-_- 일단, serverl.xml쪽에 host를 두개 추가해줍니다.
eclipse SDK 이전 버전 Download LINK
·
Programing
http://archive.eclipse.org/eclipse/downloads/index.php 출처 - http://kogaeng.tistory.com/category/Resources/eclipse
Eclipse Working Set 사용하기
·
Programing
보통 프로젝트를 저렇게 관리해왔었습니다. 지금은 그나마 프로젝트가 적은 편인데, 수가 늘어나는 건 정말 순식간인 것 같습니다. 그런데 오늘 매우 좋은 걸 알아냈습니다. Working Set이라는게 있더군요. 토비형이 알려줬는데 그걸 사용하면 프로젝트 창이 매우 깔끔해집니다.1. 먼저 Top Level Element를 Project 에서 Working set으로 변경합니다.그러면 모든 프로젝트가 일단 Other Projects라는 Working Set에 추가된 것을 볼 수 있습니다.2. 마지막으로 Working Set을 편집합니다.편집은 유사항 프로젝트 끼리 묶으면 되겠죠. 쉽습니다. 그러면 다음과 같이 프로젝트를 그룹별로 묶어서 관리할 수 있습니다.
[subversive] 윈도우에서 버전 컨트롤(subversion 사용하기)
·
Programing
Subversion windows 서버에서 해줄 것. 목적 : 버전 컨트롤 시스템을 윈도우NT 서버에 설치하고, tcp/ip를 통해서 소스를 관리할 수 있도록 한다. 1. Subversion을 server에 설치 2. reposiotory 폴더 생성하기 - D:\repos 폴더를 만든다. - D:>svnadmin create –fs-type fsfs d:\repos ;repos폴더를 파일시스템으로 만든다. 3. 사용자 인증을 한다. (TortoiseSVN 도움말 항목 SettingUp A Server/Svnserve Based Server 항목중 Authentication with svnserve 참조) d:\repos의 svnserve.conf 항목 수정 [general] anon-access=read..
[Eclipse, subversive]소스 관리 이클립스 플러그인 subversive 설치 및 사용 방법
·
Programing
소스 관리 이클립스 플러그인 subversive 설치 및 사용 방법 1. 이클립스 실행 후 Help -> Software Updates -> Find and Install 2. Search for new features to install 3. New Remote Site 4. Name : subversive URL : http://www.polarion.org/projects/subversive/download/update-site/ 5. Finish 6. 제일 위의 체크 박스를 선택한다.(전체 선택) 7. 라이센스에 동의해준다. 8. Finish 9. Install All 10. 설치 완료후 다시 시작할지를 묻는데 Yes 11. 사용 방법 : Window -> Show View -> Other 12...