2013년 1월 17일 목요일

style.position = "relative"



relative는 parent element를 기준으로 상태 위치로 지정하는 방법이고
absoulte는 절대 위치로 지정하는 방법인데 이를 하게되면 child element가 아닌 절대위치를 가진 element가 되기때문에 floating과 상관없이 해당 element는 붕 떠있는 상태가 된다.
(1) parent element에는 아무값을 주지 않고 본인 스스로 relative를 줘도 되지만 이럴경우 자기 자신이 parent에 속해져 있는 상태가 되기 때문에 자신의 width 혹은 height만큼 parent element도 영향을 받게 된다.

(2) 하지만 parent element를 relative를 주고 child element를 absolute를 주게 되면 parent를 기준으로한 절대위치가 된다. 

물런 
간단히 예를 들어 보자
HTML 코드는 아래와 같다

<div id="parent_element">
    Parent Element
    <div id="child_element">Child Element Line number #1 <br />Child Element Line number #2 <br/>Child Element Line number #3 </div>
</div>
<div id="absolute_element">Absolute Element</div>

absolute만 사용할 경우의 CSS는 이렇다. (1번)
#parent_element {margin:50px;background:pink;}
#child_element {position:relative;top:50px;left:50px;background:yellow}
#absolute_element {position:absolute;top:10px;left:10px;background:orange;}

이 CSS를 적용한 후 브라우저에서 확인을 하면 아래와 같이 된다.
(1)문구 참고




테이블에 버튼 두개를 나란히 뿌려주고자 할때
<tr><td>안에 그냥 버튼을 뿌려줄수도 있지만
위치가 맘에 안들면
<div>를 이용해서 원하는곳을 직접 지정해 줄수 있다.

두가지 방법이 있는데
하나는
<div style="position:relative; top:0px; left:0px; width:340px;"> position을 relative로 줬을때와
<div style="position:absolute;left:33px;top:205px"> position을 absolute로 줬을때와
효과는 비슷하지만 absolute는 화면변화에 민감해서 일일이 지정을 해줘야되는거 같다.

두가지의 예는.

<td width=140><div id="mail" name="mail" style="position:absolute;left:33px;top:205px">버튼..</div></td>        
<td width=300><div style="position:absolute;left:158px;top:205px">버튼</div></td>


이런식과

<td colspan="2">
      <div style="position:relative; top:0px; left:0px; width:340px;">
      <div style="position:relative; float:left; top:0px; height:24px; margin-left:2px; margin-top:0px; margin-right:5px;">버튼..</div>
      <div style="position:relative; float:left; top:0px; height:24px; margin-left:1px; margin-top:0px; margin-right:10px;">버튼</div>
      </div>

</td> 

밑의 div는 겉의 div width길이 만큼 align을 left로 줬기 때문에 가로로 붙어서 나온다.
width가 꽉차면 그때 다음줄로 나온다.

html5 figure

html5 figure 어떻게 쓰나?

HTML5 figure, figcaption 엘리먼트(element)

이 둘은 새로 등장한 엘리먼트이다. figure 엘리먼트는 그림,사진,일러 코드리스트등과 같이 캡션을 할때 사용한다.

<figure>
 <img src="images/igoogle.gif" alt="구글로고">
 <figcaption>Bubbles at work</figcaption>
</figure>

위의 예제는 구글 로고이미즈를 보여주는사례이다.앞서말했듯이 비디오 역시 가능하다.

<figure>
 <video src="football.mov"></video>
 <figcaption>제작 어쩌고 저쩌고</figcaption>
</figure>

당연하지만 여러그림이 들어 가도 상관없다.

<figure>
 <img src="images/daum.gif" alt="다음">
 <img src="images/naver.gif" alt="네이버">
 <img src="images/google.gif" alt="구글">
 <figcaption>각포탈사이트 :다음,네이버,구글</figcaption>
</figure>

단 figcaption은 figure엘리먼트안에서 바로 다음이나 아니면 맨아래 쓴다.

2013년 1월 15일 화요일

HP ENVY 23-d050kr hp 올인원pc

HP ENVY 23-d050kr hp 올인원pc



제품 번호
H3W01AA
출시 날짜
2012년 10월 19일
판매 국가/지역
대한민국
디스플레이
  • 크기: 58.42cm(23인치) 대각선
  • LCD HD 패널: 평판 디스플레이 - TFT 활성 매트릭스, WLED 백라이트
  • 색상: 1,670만
  • 색 재현율: 72%
  • 기본 해상도: 1920 x 1080(16:9 종횡비) 전체 HD 모드
  • 응답 시간: 5ms(일반)
  • 명암비: 1000:1
  • 이미지 밝기: 최대 250nits(일반)
  • 픽셀 피치: 0.26mm(가로) x 0.26mm(세로)
  • 가로 시야각: 최대 170도
  • 세로 시야각: 최대 160도
  • 전력 소모량: 20.4W
마더보드
그림 1: 마더보드 윗면 보기
마더보드 이미지
  • 제조업체: Pegatron
  • 폼 팩터: uAIX 22cm(8.7인치) x 24.2cm(9.5인치)
  • 칩셋: Intel H61
  • 메모리 소켓: 2 x DDR3
  • 전면 버스 속도: 5Gb/초 DMI(Direct Media Interface)
  • 프로세서 소켓: LGA 1155
  • 확장 슬롯:
    • PCI Express 미니 카드 소켓 2개(2세대 속도)
    • PCI Express x16 그래픽 카드(2세대 속도)를 지원하는 PCI Express MXM 슬롯 1개
  • 자세한 내용은 Lavaca3-SB 마더보드 사양 을 참조하십시오.
프로세서
  • TDP: 65W
  • 동작 속도: 3.1GHz(최대 3.8GHz 터보)
  • 코어 수: 4
  • 소켓: LGA1155
  • 버스 속도: DMI(Direct Media Interface) - 5.0GT/초
  • TDP: 프로세서에 따라 다름
  • 소켓 종류: LGA 1155
  • 마더보드는 다음 프로세서 업그레이드를 지원합니다.
    프로세서TDP
    Intel Core i3-3xxxT(Ivy Bridge) 듀얼 코어최대 35W
    Intel Core i3-3xxx(Ivy Bridge) 듀얼 코어최대 55W
    Intel Core i5-3xxxT(Ivy Bridge) 듀얼 코어최대 35W
    Intel Core i5-3xxxT(Ivy Bridge) 쿼드 코어최대 45W
    Intel Core i5-3xxxS(Ivy Bridge) 쿼드 코어최대 65W
    Intel Core i3-2xxx(Sandy Bridge) 듀얼 코어최대 65W
    Intel Core i3-2xxxT(Sandy Bridge) 듀얼 코어최대 35W
    Intel Core i7-2xxxS(Sandy Bridge) 쿼드 코어최대 95W
    Intel Pentium G6xx(Sandy Bridge) 듀얼 코어최대 65W
    Intel Pentium G6xxT(Sandy Bridge) 듀얼 코어최대 35W
    Intel Pentium G8xx(Sandy Bridge) 듀얼 코어최대 65W
메모리
  • 용량: 4GB
  • 속도: PC3-12800MB/초
  • 종류: DDR3-1600
  • 듀얼 채널 메모리 아키텍처
  • DDR3 SO-DIMM(204핀) 소켓 2개
    • PC3-10600(DDR3-1333)
    • PC3-12800(DDR3-1600)
  • Non-ECC 메모리 전용, 언버퍼
  • 1GB, 2GB, 4GB, 8GB(8GB는 Ivy Bridge 프로세서를 사용하는 시스템에서만 사용 가능) DDR3 SO-DIMM 지원
  • 64비트 PC에서 최대 16GB 지원(16GB는 Ivy Bridge 프로세서를 사용하는 시스템에서만 사용 가능)
  • 32비트* PC에서 최대 4GB 지원
    *32비트 PC는 4.0GB 메모리 전체의 주소를 지정할 수 없습니다.
비디오 그래픽
그림 2: 비디오 카드
비디오 카드 이미지
  • 폼 팩터: PCI Express x16
  • 인터페이스: MXM 3.0
  • 그래픽 코어: GF108
  • 내장 메모리: 2GB
  • 최대 해상도: 최대 1080p
  • 메모리 인터페이스: 128비트
  • 총 전력 소비: 37W(최대)
  • Blu-ray 디스크 지원
  • HDCP 지원
  • 포트:
    • LVDS(저전압 차동 시그널링) 지원
    • 모듈에 I/O 커넥터 없음, 모든 커넥터가 내장형
*그래픽 카드를 설치한 경우 통합 비디오를 사용할 수 없습니다.
  • 통합 Intel HD 2000 그래픽(프로세서별 지원)
  • Mobile PCI Express Module(MXM) 소켓 1개
    • MXM 3.0 버전: A 유형
    • <35W
    • 최대 256MB 공유 메모리
TV 튜너
그림 3: TV 튜너 카드 상단 보기
TV 튜너 카드 이미지
  • 커넥터: 내장 USB 포트
  • 디지털 TV 표준 지원:
    • ATSC
    • QAM
  • 아날로그 TV 표준 지원:
    • NTSC
    • PAL 및 SECAM(미국 외 지역)
  • 작동 모드:
    • 디지털 TV 수신기
    • RF 밴드: 하위 VHF, 상위 VHF, UHF
사운드/오디오
통합 HD 오디오
  • 오디오 코덱: IDT 92HD91
  • 잭 감지 지원
  • 채널: 2
  • 전원: 채널당 2W
네트워크 연결
  • 폼 팩터: PCI Express 1/2 길이 미니 카드
  • 데이터 전송 속도: 최대 150Mbps
  • 무선 표준: 802.11a/b/g/n
  • 안테나: 내장된 듀얼 밴드 2.4/5GHz 안테나 2개
  • 기술: Realtek RTL8111E
  • 데이터 전송 속도: 최대 10/100/1000Mb/초
  • 전송 표준: 기가비트 1000-Base-T 이더넷
하드 드라이브
  • 크기: 1TB
  • 인터페이스: SATA
  • 회전 속도: 7200RPM
CD/DVD 디스크 드라이브
메모리 카드 리더
컴퓨터 케이스
그림 7: 시스템 왼쪽 부분
시스템 왼쪽 측면 이미지
1 - 왼쪽 측면 포트
그림 8: 시스템 오른쪽 부분
시스템 오른쪽 측면 이미지
1 - 광학 디스크 드라이브
전원 공급 장치
전체 전력량: 180W 외장형 전원 어댑터(100V-240V)
입력 전압: 100-240V/2A(50-60Hz)
출력 전압: 19V
출력 전류: 9.47
I/O 포트
그림 9: 왼쪽 I/O 포트
왼쪽 I/O 포트 이미지
1 - HDD 작동 상태 표시등
2 - 6-in-1 메모리 카드 리더
3 - 2:USB 3.0
4 - 마이크 잭
5 - 헤드폰 잭
그림 10: 후면 I/O 포트
후면 I/O 포트 이미지
1 - 동축 TV 입력
2 - DC 전원 LED
3 - DC 입력 전원 포트
4 - LAN(이더넷)
5 - 4:USB 2.0
6 - 서브우퍼 커넥터
7 - 오디오 출력 잭
키보드, 마우스 및 입력 장치
그림 11: 키보드 윗면 보기
키보드 이미지
  • 인터페이스: USB 수신기
  • 유효 거리: 10미터
  • 배터리 수명: 12개월(AAA 알카라인 배터리 2개)
그림 12: 마우스 윗면 보기
마우스 이미지
  • 인터페이스: USB 포트
  • 유효 거리: 10미터
  • 버튼: 2 버튼 및 스크롤 휠(배터리 수명이 오래갈 수 있도록 마우스 아래쪽에 켜기/끄기 버튼 장착)
  • 배터리 수명: 5개월(AAA 알카라인 배터리 2개)
그림 13: 리모컨 보기
리모컨 이미지
  • 라디오 주파수 리모컨
  • 리모컨은 모델에 따라 다를 수 있음
  • HP 1.0 MP HD 웹캠
  • 스틸 이미지 캡처 크기: 최대 1280 x 800 HD 해상도
그림 14: 웹캠
웹 카메라의 클로즈업 보기입니다.
1 - 웹캠
2 - 웹캠 작동 상태 LED
소프트웨어
참고 :HP에서는 컴퓨터 구매 시 제공되는 소프트웨어에 대해서만 지원해 드립니다. 만약 도움이 필요하신 경우에는 해당 소프트웨어 도움말 또는 소프트웨어 공급 업체 사이트를 참고 해주시기 바랍니다.
소프트웨어 범주소프트웨어 설명서복구 관리자: 프로그램 재설치
운영 체제
  • Microsoft Windows 8(64비트)
  • 아니요
CD/DVD 굽기
  • Cyberlink Power2Go
엔터테인먼트, 음악 및 게임
  • AVermedia TV Player
  • Cyberlink PowerDVD(CD, DVD 및 Blu-ray 재생용)
  • HP Beats Audio
  • HP Games
  • 아니요
  • 아니요
이미지, 사진, 비디오 및 필름
  • Cyberlink Photo Director
  • Cyberlink YouCam Deluxe
디스플레이
  • HP My Display OSD
HP와 연결
  • HP Connected Remote
보안
  • Norton Internet Security 2013(60일 보안 업데이트 구독)
  • Norton Studio
  • 아니요
  • 아니요
지원
  • HP PC 하드웨어 진단 UEFI
  • HP Support Assistant
  • 아니요
복구
  • HP Recovery Manager
  • 아니요
브라우저
  • Microsoft Internet Explorer 10
  • 아니요
참고 : 이 문서는 제품 설계 시 제품 사양과 구성 요소 이미지를 제공하고 있습니다. 제조 업체 또는 서비스 공급 업체의 상황에 따라 제품 구성 요소 및 이미지의 차이가 있을 수 있습니다.

2013년 1월 14일 월요일

멀티 WCF IP 구성하기

멀티로 IP 구성하기



http://robseder.wordpress.com/2011/01/31/iis-hosted-wcf-services-on-a-server-with-multiple-ip%E2%80%99s/


        <serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> 


여러개의 서비스를 만들고 endpoint 를 만들어서 구성



Although I’ve done a fair amount with WCF, it’s been mostly around hosting services in end-user applications or in Windows services. Every time I’ve tried to host a WCF service in IIS, things suddenly got very complicated and I seemed to spend a lot of time troubleshooting. Well today, I needed to host a WCF service in IIS and ran across such a problem: 
This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. 
What does that mean? Well, I know the service just sort of piggy-backs on the port and virtual application of the ASP.NET app, so I assumed that the service would get its address and port from IIS. Well, after some digging around a bit, I found this blog post:http://www.robzelt.com/blog/2007/01/24/WCF+This+Collection+Already+Contains+An+Address+With+Scheme+Http.aspx 
The problem occurs when the service is hosted in IIS, and that IIS server has multiple IP addresses assigned. This results in multiple baseAddresses. The answer is to create a custom service host. The blog post above didn’t go into all the detail, so I wanted to write this down (mostly for my own benefit), here.
Web.Config: <?xml version="1.0"?> <configuration    <system.web        <compilation debug="true" targetFramework="4.0" />     </system.web    <system.serviceModel        <behaviors            <serviceBehaviors                <behavior name=""                    <serviceMetadata httpGetEnabled="true" />                     <serviceDebug includeExceptionDetailInFaults="false" />                 </behavior            </serviceBehaviors        </behaviors        <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />     </system.serviceModel</configuration>
Service (ExampleService) and Contract (IExampleService) – NO CHANGE CustomServiceHost.cs: public class CustomServiceHost : ServiceHost
{
    public CustomServiceHost(Type serviceType, params Uri[] baseAddresses)
        base(serviceType, baseAddresses)
    { }

    protected override void ApplyConfiguration()
    {
        base.ApplyConfiguration();
    }
}
CustomServiceHostFactory.cs: public class CustomServiceHostFactory : ServiceHostFactory
{
    protected override ServiceHost CreateServiceHost(Type serviceType, Uri[] baseAddresses)
    {
        CustomServiceHost customServiceHost =
            new CustomServiceHost(serviceType, baseAddresses[0]);
        return customServiceHost;
    }
}

ExampleService.svc: 
<%@ ServiceHost Language="C#" Debug="true"
    Factory="SederSoftware.WcfExample.CustomServiceHostFactory"
    Service="SederSoftware.WcfExample.ExampleService" CodeBehind="ExampleService.svc.cs" %>
So to piece this all together… When you invoke the ExampleService.svc, it calls the "Factory" specified – CustomerServiceHostFactory. That factory attempts to start a service host – and it specifies just ONE of the IP addresses. Arguably, you could add some logic here to filter which one/ones you want to run from, but for my purposes, just pulling the first one is fine. 
From that point on, the rest is like a regular WCF service. So there – you’re welcome, Future Robert, who is not going to remember this in a couple of weeks! Also, the problem I worked with today was with VS2005 and .NET 3.0 – and I just tried this now with .NET 4.0 and it works fine for both.