블로그 이미지
좋은느낌/원철
이것저것 필요한 것을 모아보렵니다.. 방문해 주셔서 감사합니다..

calendar

1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31

Notice

    2015. 8. 6. 15:01 카테고리 없음

    The year is 2040. You are a member of a space crew that was to rendezvous with the mother ship on the lighted surface of the moon. You experienced mechanical difficulties and your ship was forced to land about 200 miles from the point you were to be. During re-entry and landing, much of the equipment on your ship was damaged. Your survival depends on you reaching the mother ship. You will need to survey what is left that is useable and determine the most critical undamaged items that you will take for the 200 mile trip. 


    Your task is to look over the list below which contains the useable, undamaged items left on your ship, and rank them in order of their importance for your crew. Remember you need to rank each item in terms of its value in allowing you to reach the mother ship. Copy the list below or print out a copy. Place the number 1 by the most important item and keep going to number 15 which will be te least important. Be ready to explain why you have given each item the rank it received. Use your knowledge of the Moon and its environment to help you make your decisions. When you are done you can check how you did against the rankings given this same list by NASA. If you are doing this activity in your classroom, compare your rankings with other groups or idividuals and hear their reasons for their rankings before checking the NASA list.

    How close did you come? Were your top 5 most important and bottom 5 least important items(regardless of ranking numbers) the same ones as others in your class? Or the same as on the NASA list? (See link below)

    __ Box of matches  (성냥)

    __ Food concentrate (농축 식량)

    __ 50 feet of nylon rope (15미터 밧줄)

    __ Parachute silk  (낙하산 천)

    __ Portable heating unit ( 휴대용 보온 장치)

    __ Two 45 calibre pistols ( 45구경 권총 2자루)

    __ One case dehydrated milk (분말 우유 한 박스)

    __ Two 100-pound tanks of oxygen (약 45리터의 산소탱크)

    __ Stellar map (of moon's surface) (달표면 지도)

    __ Life raft ( 구명정)

    __ Magnetic compass (나침반)

    __ 5 gallons of water (약 19리터의 물)

    __ Signal flares (신호용 섬광탄)

    __ First aid kit containing injection needle (주사바늘이 내장된 구급킷)

    __ Solar-powered FM receiver-transmitter (태양열 FM송수신기)


    posted by 좋은느낌/원철
    2011. 6. 29. 16:14 카테고리 없음

    느낌. 기억

    출처 : http://zasfe.com/141

    신뢰할수 있는 사이트 등록하기

    IE 를 사용하다보면 가끔은 특정 사이트의 ActiveX 를 다운받아서 사용해야 할 경우가 있습니다.[주:다만 저는 ActiveX 를 최대한 설치하지 않고 사용을 하려합니다.] 더군다나 서명되지 않은 ActiveX 일 경우는 IE 7부터는 다운로드도 하지 못합니다.[주:멋진 기능입니다. 안그래도 위험제일요소인 출처불명의 ActiveX 는 있다는것만 알겠군요.]

    이게 불편해서 레지스트리에 신뢰할수 있는 사이트에 서명되지 않은 ActiveX 를 다운로드가 가능하도록 하고, 신뢰할수 있는 사이트에 도메인을 넣는 방법을 사용하였습니다.

    1. 신뢰할수 있는 사이트로 zasfe.com 를 등록하는 방법
    HKEY_CURRENT_USER
    - Software
      - Microsoft
       - Windows
        - CurrentVersion
         - Internet Settings
          - ZoneMap
           - Domains
    위 레지스트리에 하위 키로 도메인을 입력하면 됩니다.  아래는 zasfe.com 을 신뢰할수 있는 사이트로 등록하는 예시입니다.
    Add_Trust_Domain.reg

    Windows Registry Editor Version 5.00

    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\zasfe.com]
    "http"=dword:00000002

    2. 서명되지 않은 ActiveX 다운로드후 확인으로 설정하는 방법
    HKEY_CURRENT_USER
    - Software
      - Microsoft
       - Windows
        - CurrentVersion
         - Internet Settings
          - Zones
    위 레지스트리에 0~4 까지의 하위 키가 있습니다.
    IE 인터넷 옵션의 보안탭에 나열되어 있는 보안설정 목록입니다.

    보안설정 목록
    하위 키

    탐색기
    0

    로컬 인트라넷
    1

    신뢰할 수 있는 사이트
    2

    인터넷
    3

    제한된 사이트
    4

    설정을 하려는 것은 신뢰할수 있는 사이트이므로 2 번 키를 사용하게 됩니다.
    그리고 서명되지 않은 ActiveX 다운로드은 1004 값을 변경하면 됩니다.

    설정 값
    DWORD 값

    사용
    0

    확인
    1

    다운로드 금지
    3

    신뢰할수 있는 사이트에 대해서 서명되지 않은 ActiveX 다운로드를 허용하는 것이 목표였기때문에 다음과 같은 레지스트리를 추가하면 됩니다.
    Allow_ActiveX_TrustSite.reg

    Windows Registry Editor Version 5.00

    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2]
    "1004"=dword:00000000;

    posted by 좋은느낌/원철
    2011. 5. 6. 15:44 카테고리 없음

    출처 : http://sewony.tistory.com/entry/Client-Socket%EC%97%90%EC%84%9C-connect-%EC%8B%9C%EC%97%90-timeout-%EC%84%A4%EC%A0%95%ED%95%98%EA%B8%B0

    일반적으로 Client Socket 작성시에 다음과 같은 코드를 사용하게 되는데,

    Socket s = new Socket("192.168.0.2", "9000"); // ipaddress, port

    Socket을 생성하는 시점에 해당 ip와 port로 접속을 하게 된다.
    따라서 다음과 같이 생성이후에 timeout을 설정하는 것은 아무 의미가 없다.

    Socket s = new Socket("192.168.0.2", "9000"); // ipaddress, port
    s.setSoTimeout(5000);

    그러므로, connection timeout 값을 설정하려면 다음과 같이 사용해야 한다.

                    Socket s = new Socket();
                    SocketAddress addr = new InetSocketAddress("192.168.0.2", "9000");
                    s.connect(addr, 5000); // 5 seconds timeout

    posted by 좋은느낌/원철