PropertyUtils.copyProperties()

보기:
PropertyUtils.copyProperties(jisikRec, jisikForm);

<-- jisikForm 에 저장된 정보를 jisikRec 으로 복사한다.
순서에 주의하라.
PropertyUtils.copyProperties(target, source);



PropertyUtils 클래스는 org.apache.commons.beanutils 에 있다.


google calendar notifier 를 설치해보았다. 그런데 제대로 동작을 하지 않는다. 해결방법을 조금 찾다가 귀찮아서 포기
사용자 삽입 이미지


--> google calendar 의 html 대신 xml 을 복사해 넣었더니 제대로 동작한다

java 에서 두 시간의 차이는 어떻게 구할까? Date1 과 Date2 가 몇 초 차이가 나는지 알려면 어떻게 하는지 모르겠다.

MS SQL Server7 에서 Database 복사 방법 0. source 가 snd 이고 destination 이 skhu 일 때 1. Tools -> Wizeards -> Data Transformatin Services -> DTS import Wizard 창에서 Data Source를 snd 선택 Data Destination 을 skhy 선택 [계속] 버튼 모든테이블 선택 [계속] 버튼 끝 * 기존에 복사한 적이 있으면 데이타가 추가되는 것 같다, * procedure, view 는 복사되지 않는다. 이것까지 복사하는 방법은 뭘까?

SELECT (sysdate - to_date('01-JAN-1970','DD-MON-YYYY') ) * (86400) - (9*3600) AS dt FROM dual; SELECT (create_time - to_date('01-JAN-1970','DD-MON-YYYY') ) * (86400) - (9*3600) AS dt FROM maintext WHERE board_id = 1;

sqlplus 명령어

oracle 2006. 12. 27. 16:58
sqlplus에서
. ed[it] : 바로 전에 입력한 명령어를 vi 로 편집
. r[un] : buffer에 저장된 명령어 실행
. sav[e] filename[.sql] : buffer에 저장된 명령어 저장
 
  기타 유용한 명령어
. @file_name[.sql] : file_name 의 파일을 sqlplus 에서 실행
. desc[ribe] [user.]table_name[@db_name] : 지정된 테이블에 대한 상세
. spool file_name : 질의 결과를 file_name 파일에 저장
 >> spool off 결과 저장 중지

java 날짜 처리

java 2006. 12. 27. 16:51
출처:http://mwultong.blogspot.com/2006/11/java-unix-time-posix-time-unix-epoch.html

import java.util.*;
public class Date {
        public static void main(String[] args) {
                Date start = new Date();       
                System.out.println( " ==> " + start );
                System.out.println( " ==> " + start.toString() );
   
                 long L = System.currentTimeMillis() / 1000;
                 System.out.println("current unixtime is :" + L);
       
       
                 Calendar oCalendar = Calendar.getInstance( );  // 현재 날짜/시간 등의 각종 정보 얻기
       
                 System.out.println("현재 년: " +  oCalendar.get(Calendar.YEAR));
                 System.out.println("현재 월: " + (oCalendar.get(Calendar.MONTH) + 1));
                 System.out.println("현재 일: " +  oCalendar.get(Calendar.DAY_OF_MONTH));
                 System.out.println(); // 다음줄로 행갈이 하기
       
                 System.out.println("현재 시: " +  oCalendar.get(Calendar.HOUR_OF_DAY)); // 24시간제
                 System.out.println("현재 분: " +  oCalendar.get(Calendar.MINUTE));
                 System.out.println("현재 초: " +  oCalendar.get(Calendar.SECOND));
                 System.out.println();
       
                 // 12시간제로 현재 시
                 System.out.print("현재 시: " +  oCalendar.get(Calendar.HOUR));
                 if (oCalendar.get(Calendar.AM_PM) == 0) System.out.println("am");
                 else System.out.println("pm");
       
                 System.out.println("현재 초의 1000분의1초: " +  oCalendar.get(Calendar.MILLISECOND));
       
                 System.out.println("현재 요일: " +  oCalendar.get(Calendar.DAY_OF_WEEK)); // 일요일 = 1
                 System.out.println("올해 몇 번째 날: " + oCalendar.get(Calendar.DAY_OF_YEAR)); // 1월 1일 = 1
                 System.out.println("올해 몇 번째 주: " + oCalendar.get(Calendar.WEEK_OF_YEAR)); // 1월 1일은 = 1
       
                 System.out.println("이번 달의 몇 번째 주: " + oCalendar.get(Calendar.WEEK_OF_MONTH)); // 첫째 주 = 1 
 
        }      
}

웹 2.0을 이끄는 방탄웹 책에 실린 소스 출처는 http://acornpub.co.kr/book/webstandard-set

스트럿츠의 클래스 다이어그램 출처는 http://rollerjm.free.fr/pro/Struts11.html
사용자 삽입 이미지

KLDP 운영자가 한 말을 보고 웃었는데 나도 비슷하게 되었다.
연말 정산 서류 출력 때문에, 은행과 카드사에서 제공하는 ActiveX를 마구 깔아댔더니 PC가 걸레가 됬대나?
내 PC 도 그렇게 되어가고 있다