달력

42024  이전 다음

  • 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

<SCRIPT>

font_cho = Array(
'ㄱ', 'ㄲ', 'ㄴ', 'ㄷ', 'ㄸ',
'ㄹ', 'ㅁ', 'ㅂ', 'ㅃ', 'ㅅ', 'ㅆ',
'ㅇ', 'ㅈ', 'ㅉ', 'ㅊ', 'ㅋ', 'ㅌ', 'ㅍ', 'ㅎ' );

font_jung = Array(
'ㅏ', 'ㅐ', 'ㅑ', 'ㅒ', 'ㅓ',
'ㅔ', 'ㅕ', 'ㅖ', 'ㅗ', 'ㅘ', 'ㅙ',
'ㅚ', 'ㅛ', 'ㅜ', 'ㅝ', 'ㅞ', 'ㅟ',
'ㅠ', 'ㅡ', 'ㅢ', 'ㅣ' );

font_jong = Array(
'', 'ㄱ', 'ㄲ', 'ㄳ', 'ㄴ', 'ㄵ', 'ㄶ', 'ㄷ', 'ㄹ',
'ㄺ', 'ㄻ', 'ㄼ', 'ㄽ', 'ㄾ', 'ㄿ', 'ㅀ', 'ㅁ',
'ㅂ', 'ㅄ', 'ㅅ', 'ㅆ', 'ㅇ', 'ㅈ', 'ㅊ', 'ㅋ', 'ㅌ', 'ㅍ', 'ㅎ' );



stringtest = "ㅤㅊㅠㄺ";
CompleteCode = stringtest.charCodeAt(0);
UniValue = CompleteCode - 0xAC00;

Jong = UniValue % 28;
Jung = ( ( UniValue - Jong ) / 28 ) % 21;
Cho = parseInt (( ( UniValue - Jong ) / 28 ) / 21);



alert( font_cho[Cho] );
alert( font_jung[Jung] );
alert( font_jong[Jong] );

</SCRIPT>


출처 : http://flashcafe.org/javascript_study/7251

Posted by dewlit
|

<%

function getInfo_function(xurl)


  dim RStr

  dim xmlClient


  Set xmlClient = Server.CreateObject("Microsoft.XMLHTTP")

  xmlClient.open "GET", Xurl, False

  xmlClient.setRequestHeader "Content-Type","text/xml"

  xmlClient.setRequestHeader "Accept-Language","ko"

  xmlClient.send


  if xmlClient.status = 200 then

   Set responseStrm = CreateObject("ADODB.Stream") 

   responseStrm.Open 

   responseStrm.Position = 0 

   responseStrm.Type = 1 

   responseStrm.Write xmlClient.responseBody

   responseStrm.Position = 0

   responseStrm.Type = 2

   responseStrm.Charset = "utf-8" 

   RStr = responseStrm.ReadText  

   responseStrm.Close

   Set responseStrm = Nothing

  else

   RStr = "get_fail"

  end if


  SET xmlClient = nothing

  getInfo_function = RStr


end function


%>


<%

read_data = getInfo_function("http://")

response.write(read_data)

%>


출처 : http://horangi.tistory.com/2


'ASP' 카테고리의 다른 글

asp 폴더 내 파일 목록 보기  (0) 2012.07.09
asp xml 파싱  (0) 2012.07.09
ASP UTF-8 파일 읽기,쓰기 및 실행 예제  (0) 2012.05.11
ASP 날짜 처리 함수  (0) 2012.05.10
ASP 종료 함수  (0) 2012.04.05
Posted by dewlit
|

<압축 풀기>

1. tar.gz 압축풀기


$gunzip filename.tar.gz    // tar.gz에서 gz을 풀어냅니다.

$tar xvf filename.tar         // tar를 풀어냅니다.  ( x: 압축풀기 , v: 압축푸는 상태를 본다, f: 파일이름 )


압축푸는 상황을 보고 싶지 않으시다면 v옵션을 주지 않으셔도 됩니다만 보통은 적습니다.


2. tar.gz 한번에 풀기


$tar xvzf filename.tar.gz


이렇게 간단하게 풀어버리는 방법도 있습니다.ㅋ


<압축 하기> 


3. tar.gz 압축하기


$tar cvf filename.tar file1...    //file1의 폴더나 파일을 filename.tar로 묶는다 (압축아님)

$gzip filename.tar                //filename.tar을 filename.tar.gz로 압축한다 (이땐 압축)


4. tar.gz 한번에 압축하기


$tar cvzf filename.tar.gz file1...     //file1의 폴더나 파일을 filename.tar.gz로 묶고 압축한다.



출처 : http://towanouta.tistory.com/101

Posted by dewlit
|