'Check'에 해당되는 글 4건

  1. 2010/02/18 AMD-V Hyper-V System Compatibility Check Utillity 1.0
  2. 2009/07/20 Javascript : Microsoft OS & Internet Explorer Agent Check
  3. 2007/05/29 자바스크립트 키코드를 이용한 엔터 처리
  4. 2007/05/19 나이가 만 14세 이상인가? Javascript 체크
2010/02/18 20:20

AMD-V Hyper-V System Compatibility Check Utillity 1.0


http://www.kbench.com/software/?flag=1&pcc=0&pg=1&keyword=&no=34774

집에 있는 PC가 AMD CPU를 사용하고 있어서 가상화(Virtualization)의 필두인 Hyper-V를 지원하는지 궁금해지더군요.

혹시 한번 찾아보니 확인하는 유틸이 있어 스크랩했어요.

이하 내용은 참조 사이트에서 발췌한 설명입니다.

AMD-V Hyper-V System Compatibility Check 유틸리티는 AMD CPU에서 AMD Virtualization 기술과 Microsoft Hyper-V 기술을 지원하는지 여부를 테스트 해주는 기능을 가지고 있습니다.
 
윈도우 7 에서 지원하는 가상 XP 모드는 사용자의 AMD CPU가 AMD-V(AMD Virtualization) 기술을 지원해야 사용할 수 있습니다.

지금 소개해드리는 AMD-V Hyper-V System Compatibility Check 프로그램을 이용하시면 간단하게 알 수 있습니다.

이 프로그램은 프리웨어입니다.
저작자 표시 비영리 변경 금지
크리에이티브 커먼즈 라이선스
Creative Commons License
올블로그추천버튼 블코추천버튼 블로그뉴스추천버튼 믹시추천버튼 한RSS추가버튼 구글리더기추천버튼


이 포스팅이 도움이 되었다면 구글에서 관련 정보를 찾아 보세요 ^^


Trackback 0 Comment 0

Trackback : http://i-ruru.com/trackback/541 관련글 쓰기

2009/07/20 12:26

Javascript : Microsoft OS & Internet Explorer Agent Check

 

 

Web Page에서 브라우저와 OS에 따라 다른 조치를 해야 하는 경우가 있습니다.

 

그래서 브라우저에서 받아올 수 있는 User Agent 값을 분석해서 이에 이용하게 되죠.

 

다음과 같이 값을 체크하는 부분을 공통으로 작성하여 가져다가 쓰면 좋을 것 같네요.

 

 

 

 

테스트 페이지(Test page): BrowserTest.html

 

<html>

<head>

<title>Browser Agent Test</title>

<script type="text/javascript">

   

function BrowserIs()

{

var agt = navigator.userAgent.toLowerCase();

this.osver = 1.0;

 

if (agt)

{

var stOSVer = agt.substring(agt.indexOf("windows ") + 11);

this.osver = parseFloat(stOSVer);

}

 

this.major = parseInt(navigator.appVersion);

this.nav = ((agt.indexOf('mozilla')!=-1)&&((agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible')==-1)));

        this.nav2 = (this.nav && (this.major == 2));

this.nav3 = (this.nav && (this.major == 3));

this.nav4 = (this.nav && (this.major == 4));

this.nav6 = this.nav && (this.major == 5);

this.nav6up = this.nav && (this.major >= 5);

this.nav7up = false;

   

if (this.nav6up)

{

var navIdx = agt.indexOf("netscape/");

if (navIdx >=0 )

this.nav7up = parseInt(agt.substring(navIdx+9)) >= 7;

}

   

this.ie = (agt.indexOf("msie")!=-1);

this.aol = this.ie && agt.indexOf(" aol ")!=-1;

   

if (this.ie)

{

var stIEVer = agt.substring(agt.indexOf("msie ") + 5);

this.iever = parseInt(stIEVer);

this.verIEFull = parseFloat(stIEVer);

}

else

this.iever = 0;

   

this.ie3 = ( this.ie && (this.major == 2));

this.ie4 = ( this.ie && (this.major == 4));

this.ie4up = this.ie && (this.major >=4);

this.ie5up = this.ie && (this.iever >= 5);

this.ie55up = this.ie && (this.verIEFull >= 5.5);

this.ie6up = this.ie && (this.iever >= 6);

this.ie7up = this.ie && (this.iever >= 7);

this.ie8up = this.ie && (this.iever >= 8);

this.win16 = ((agt.indexOf("win16")!=-1)

|| (agt.indexOf("16bit")!=-1) || (agt.indexOf("windows 3.1")!=-1)

|| (agt.indexOf("windows 16-bit")!=-1) );

this.win31 = (agt.indexOf("windows 3.1")!=-1) || (agt.indexOf("win16")!=-1) ||

(agt.indexOf("windows 16-bit")!=-1);

this.win98 = ((agt.indexOf("win98")!=-1)||(agt.indexOf("windows 98")!=-1));

this.win95 = ((agt.indexOf("win95")!=-1)||(agt.indexOf("windows 95")!=-1));

this.winnt = ((agt.indexOf("winnt")!=-1)||(agt.indexOf("windows nt")!=-1));

this.win32 = this.win95 || this.winnt || this.win98 ||

((this.major >= 4) && (navigator.platform == "Win32")) ||

(agt.indexOf("win32")!=-1) || (agt.indexOf("32bit")!=-1);

this.os2 = (agt.indexOf("os/2")!=-1)

|| (navigator.appVersion.indexOf("OS/2")!=-1)

|| (agt.indexOf("ibm-webexplorer")!=-1);

this.mac = (agt.indexOf("mac")!=-1);

this.mac68k = this.mac && ((agt.indexOf("68k")!=-1) ||

(agt.indexOf("68000")!=-1));

this.macppc = this.mac && ((agt.indexOf("ppc")!=-1) ||

(agt.indexOf("powerpc")!=-1));

this.w3c = this.nav6up;

}

   

function ObjectStripShow(obj, outputDivId)

{

var outputStr = "";

 

for (var i in obj) outputStr += i + " = " + eval('obj.' + i) + "<br/>\n";

if (outputDivId == null || document.getElementById(outputDivId) == null)

document.write(outputStr);

else

document.getElementById(outputDivId).innerHTML = outputStr;

}

   

window.onload = function()

{

var bi = new BrowserIs();

ObjectStripShow(bi, 'output');

};

   

</script></head>

<body>

<div id="output">

</div>

</body>

</html>


 

 

 

 

결과(Result ):

 

osver = 5.2
major = 4
nav = false
nav2 = false
nav3 = false
nav4 = false
nav6 = false
nav6up = false
nav7up = false
ie = true
aol = false
iever = 7
verIEFull = 7
ie3 = false
ie4 = true
ie4up = true
ie5up = true
ie55up = true
ie6up = true
ie7up = true
ie8up = false
win16 = false
win31 = false
win98 = false
win95 = false
winnt = true
win32 = true
os2 = false
mac = false
mac68k = false
macppc = false
w3c = false


저작자 표시 비영리 변경 금지
크리에이티브 커먼즈 라이선스
Creative Commons License
올블로그추천버튼 블코추천버튼 블로그뉴스추천버튼 믹시추천버튼 한RSS추가버튼 구글리더기추천버튼


이 포스팅이 도움이 되었다면 구글에서 관련 정보를 찾아 보세요 ^^


Trackback 0 Comment 0

Trackback : http://i-ruru.com/trackback/483 관련글 쓰기

2007/05/29 19:56

자바스크립트 키코드를 이용한 엔터 처리

자바스크립트로 키코드 이벤트를 처리하는 경우는 상당히 많다.

일반적으로 하나의 폼에서 다중의 submit을 구현하거나

페이지에서 키코드를 막거나 기타 여러가지에서 키 이벤트를 처리한다.


 function checkEnter(evt)//window.event
 {
  if ( evt.keyCode == 13 )//ENTER KEY CODE
  {
   return false;
  }
  else
  {
   return true;
  }
 }



위 코드는 엔터에 해당하는 키코드를 받아 false를 리턴해주는 이벤트 델리게이트다.

따라서 onkeypress 등의 이벤트에 써주면 유용하게 사용할 수 있다.

ps. 각 키에 대한 이벤트 코드를 잘 정리해둔 사이트가 있네요 ^ ^
아래 링크를 확인하세요~

http://27m.net/v8/bbs/view.php?id=information&no=331
http://www.phpschool.com/gnuboard4/bbs/board.php?bo_table=tipntech&wr_id=23836
크리에이티브 커먼즈 라이선스
Creative Commons License
올블로그추천버튼 블코추천버튼 블로그뉴스추천버튼 믹시추천버튼 한RSS추가버튼 구글리더기추천버튼


이 포스팅이 도움이 되었다면 구글에서 관련 정보를 찾아 보세요 ^^


Trackback 1 Comment 0

Trackback : http://i-ruru.com/trackback/52 관련글 쓰기

  1. Subject 필요할때 찾으면 없는 이벤트 키코드(event.keyCode)

    Tracked from 나에게 충고하기™ 2009/02/13 15:58 delete

    뭐든 꼭 필요할때 찾으면 없는 이상한 머피의 법칙;;그중에 하나가 이벤트 키코드다.그래서 귀찮아도 남겨 놓는게 좋을 것 같다는 생각이 들었다.개별 키코드를 알고 싶은 경우 아래와 같은 함수를 이용해서 하나 하나 눌어보는 방법;;;;function keyCheck(){&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; alert("키번호는 [..

2007/05/19 16:15

나이가 만 14세 이상인가? Javascript 체크

나이가 만 14세 이상인지 확인하려면 어떻게 해야할까?

뭐 여러가지 방법이 있겠지만

가장 간단한 방법을 소개한다.
(GNU Board 에서 발췌한 소스)

if (typeof(f.mb_birth) != 'undefined') {
        var todays = 20070512;
        // 오늘날짜에서 생일을 빼고 거기서 140000 을 뺀다.
        // 결과가 0 이상의 양수이면 만 14세가 지난것임
        var n = todays - parseInt(f.mb_birth.value) - 140000;
        if (n < 0) {
            alert("만 14세가 지나지 않은 어린이는 정보통신망 이용촉진 및 정보보호 등에 관한 법률\n\n제 31조 1항의 규정에 의하여 법정대리인의 동의를 얻어야 하므로\n\n법정대리인의 이름과 연락처를 '자기소개'란에 별도로 입력하시기 바랍니다.");
            return;
        }
    }

  1. 나의 생일이 '19810115'의 형식으로 f(form 객체).mb_birth(input text의 textbox의 id) 에 저장되어 있다.
  2. 오늘의 날자를 구한다.
  3. 오늘의 날자에서 내 생일을 뺀다.
  4. 140000을 더 뺀다.
  5. 결과값이 0보다 작으면 만 14세가 지나지 않은것이다.
  6. 결과값이 0보다 크거나 같으면 만 14세 이상이다.
Date함수로 복잡하게 파싱하지 않고 위 방법으로 하는 것이 현재로서는 가장 편한 방법이 아닐까 생각한다. ^ ^

크리에이티브 커먼즈 라이선스
Creative Commons License
올블로그추천버튼 블코추천버튼 블로그뉴스추천버튼 믹시추천버튼 한RSS추가버튼 구글리더기추천버튼


이 포스팅이 도움이 되었다면 구글에서 관련 정보를 찾아 보세요 ^^


Trackback 0 Comment 0

Trackback : http://i-ruru.com/trackback/23 관련글 쓰기