원본글 

http://timheuer.com/blog/archive/2012/10/26/remote-debugging-windows-store-apps-on-surface-arm-devices.aspx



환경

 개발용 PC (x86 or x64)

 디버깅용 서피스 (Pro or RT)


1. 서피스 에서 

http://www.microsoft.com/visualstudio/eng/downloads#d-additional-software 로 접속한다


Remote Tools for Visual Studio 2012 Update 2 를 클릭하여 설치한다.
Pro의 경우 x86, RT의 경우 ARM 으로 설치한다.


2. PC의 VS 2012 에서 프로젝트 -> 속성을 들어간다


대상 장치를 원격 컴퓨터로 지정하고 디버깅을 시작한다.

3. 최초 디버깅 시에
서피스에서 개발 라이센스 취득 창이 뜬다.
라이센스 취득 후에
다시 디버깅을 시작해보면 서피스에서 앱이 실행 된다.


Posted by orange code

Bundle bundle = Platform.getBundle(Activator.PLUGIN_ID);

URL entry = bundle.getEntry("/filename");


InputStream is = entry.openStream();

ByteArrayOutputStream baos = new ByteArrayOutputStream();

byte[] bb = new byte[4096];

int read = 0;

while ((read = is.read(bb)) > 0) {

baos.write(bb, 0, read);

}

baos.close();

is.close();


Posted by orange code
cat /etc/redhat-release
Posted by orange code