<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Bryan, Choi on Medium]]></title>
        <description><![CDATA[Stories by Bryan, Choi on Medium]]></description>
        <link>https://medium.com/@oopchoi?source=rss-977124f78ca2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*92w4DI4BNqF8Q5OtKHb75A.jpeg</url>
            <title>Stories by Bryan, Choi on Medium</title>
            <link>https://medium.com/@oopchoi?source=rss-977124f78ca2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 20:17:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@oopchoi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[logo3]]></title>
            <link>https://medium.com/@oopchoi/logo3-645c59640e1b?source=rss-977124f78ca2------2</link>
            <guid isPermaLink="false">https://medium.com/p/645c59640e1b</guid>
            <dc:creator><![CDATA[Bryan, Choi]]></dc:creator>
            <pubDate>Thu, 08 Sep 2016 10:23:16 GMT</pubDate>
            <atom:updated>2016-09-08T10:23:16.837Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/109/1*BUAWwItGzFAgB7hQRgU3_A.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=645c59640e1b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[logo2]]></title>
            <link>https://medium.com/@oopchoi/logo2-94e7051f4135?source=rss-977124f78ca2------2</link>
            <guid isPermaLink="false">https://medium.com/p/94e7051f4135</guid>
            <dc:creator><![CDATA[Bryan, Choi]]></dc:creator>
            <pubDate>Thu, 08 Sep 2016 10:19:37 GMT</pubDate>
            <atom:updated>2016-09-08T10:19:37.555Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/149/1*08-JDehC1_-xYWX20mZ8GQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=94e7051f4135" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[logo]]></title>
            <link>https://medium.com/@oopchoi/logo-3c826774a29?source=rss-977124f78ca2------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c826774a29</guid>
            <dc:creator><![CDATA[Bryan, Choi]]></dc:creator>
            <pubDate>Thu, 08 Sep 2016 10:17:14 GMT</pubDate>
            <atom:updated>2016-09-08T10:17:14.290Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/110/1*BM6GtQWMj1q6uVOPoT60Tg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c826774a29" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[이슈 등록 하는 방법]]></title>
            <link>https://medium.com/@oopchoi/%EC%9D%B4%EC%8A%88-%EB%93%B1%EB%A1%9D-%ED%95%98%EB%8A%94-%EB%B0%A9%EB%B2%95-7ff328584fb7?source=rss-977124f78ca2------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ff328584fb7</guid>
            <dc:creator><![CDATA[Bryan, Choi]]></dc:creator>
            <pubDate>Sun, 07 Aug 2016 00:33:47 GMT</pubDate>
            <atom:updated>2016-08-12T23:08:26.454Z</atom:updated>
            <content:encoded><![CDATA[<ol><li>번역 할 파일 고르기</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/308/1*O4lQGDwT7xw0Hyq_Z4rdGg.png" /><figcaption>index.md 파일을 번역하려고 합니다.</figcaption></figure><p>2. <a href="https://github.com/oopchoi/spark-docs/">https://github.com/oopchoi/spark-docs/</a> 로 접속해서 Issues 탭을 선택하고 New Issue 버튼을 클릭한다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/993/1*ZkaT-BOl2-qeGlwIVdRUiA.png" /></figure><p>3. 입력 폼에서 아래와 같은 형태로 입력</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*D-a5ZUNdz7zuSgMoN128Hg.png" /></figure><p>Title 입력 포맷 : DOCS-[N displayTitle]</p><p>DOCS- 까지는 고정이고 N은 이전 이슈 번호에 1을 더해서 입력하면 됩니다.</p><p>displayTitle 부분은 번역하고자 하는 md 파일을 열면 displayTitle 항목의 값을 입력하시면 됩니다. 만약 displayTitle이 없을 경우 title을 입력하시면 됩니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*ophvAQZ6yBR-kpXQD2T08g.png" /></figure><p>따라서 index.md파일의 경우 첫번째 번역 파일로 N은 1이고 다음과 같습니다.</p><p>예) Title : DOCS-1 Spark Overview</p><p>아래 코멘트 부분에는 docs/하위에 파일 위치를 파일명과 함께 입력하시면 됩니다.</p><p>예) docs/index.md</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ff328584fb7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Apache Spark 2 번역 참여 방법]]></title>
            <link>https://medium.com/@oopchoi/apache-spark-2-%EB%B2%88%EC%97%AD-%EC%B0%B8%EC%97%AC-%EB%B0%A9%EB%B2%95-dca0de999d97?source=rss-977124f78ca2------2</link>
            <guid isPermaLink="false">https://medium.com/p/dca0de999d97</guid>
            <dc:creator><![CDATA[Bryan, Choi]]></dc:creator>
            <pubDate>Sat, 06 Aug 2016 03:35:00 GMT</pubDate>
            <atom:updated>2016-08-07T08:50:24.113Z</atom:updated>
            <content:encoded><![CDATA[<p>어서 오세요~ 환영합니다. 본 문서는 스파크2 번역에 참여하시는 분들을 위한 소개입니다.</p><p>기본적으로 <a href="https://spark.apache.org/docs/latest/">https://spark.apache.org/docs/latest/</a> 문서에 걸려있는 모든 링크에 대해 번역 하는 것을 목적으로 합니다.</p><p>사전 지식으로 git, github 사용법을 이해하셔야 합니다. 마크다운(md) 문서 작성에 대해서도 이해가 필요하지만 실제 md 파일을 열어보시면 직관적으로 바로 아실 수 있기 때문에 따로 공부하지 않으셔도 될 것 같습니다.</p><p>git, github 공부 추천 링크 : <a href="http://nolboo.kim/blog/2013/10/06/github-for-beginner/">http://nolboo.kim/blog/2013/10/06/github-for-beginner/</a></p><ol><li><a href="https://github.com/oopchoi/spark-docs">https://github.com/oopchoi/spark-docs</a> 접속해서 Fork</li><li>자신의 원격 깃헙에서 로컬로 클론(체크아웃)</li><li>docs 경로에 있는 md 파일을 번역하고 커밋, 푸쉬</li><li>풀리퀘스트</li></ol><p>주의) 여러 사람이 공동으로 작업하기 때문에 같은 파일을 수정하면 충돌이 납니다. 따라서 반드시 이슈를 등록 하고 진행중인 번역 파일에 대해 작성해주셔야 합니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*2UtJPADdPm0XPkRZYn6Nqg.png" /></figure><p>이슈 등록 하는 방법 : <a href="https://medium.com/@oopchoi/%EC%9D%B4%EC%8A%88-%EB%93%B1%EB%A1%9D-%ED%95%98%EB%8A%94-%EB%B0%A9%EB%B2%95-7ff328584fb7#.ikbghwtt7">https://medium.com/@oopchoi/%EC%9D%B4%EC%8A%88-%EB%93%B1%EB%A1%9D-%ED%95%98%EB%8A%94-%EB%B0%A9%EB%B2%95-7ff328584fb7#.ikbghwtt7</a></p><p>번역을 마치고 풀리퀘스트로 머지가 완료되면 이슈를 close 하시면 됩니다.</p><p>문서 빌드 방법 : 현재 API docs 부분을 빌드하면 에러가 발생하므로</p><p>$ SKIP_API=1 jekyll build</p><p>를 사용해서 빌드하시면 기본 문서들은 생성이 잘 됩니다.</p><p>빌드 방법 : <a href="https://medium.com/@oopchoi/%EB%A7%A5os%EC%97%90%EC%84%9C-spark-docs-%EB%B9%8C%EB%93%9C%ED%95%98%EA%B8%B0-d8794ea09c3e#.7mgtxkf08">https://medium.com/@oopchoi/%EB%A7%A5os%EC%97%90%EC%84%9C-spark-docs-%EB%B9%8C%EB%93%9C%ED%95%98%EA%B8%B0-d8794ea09c3e#.7mgtxkf08</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dca0de999d97" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[맥OS에서 spark/docs 빌드하기]]></title>
            <link>https://medium.com/@oopchoi/%EB%A7%A5os%EC%97%90%EC%84%9C-spark-docs-%EB%B9%8C%EB%93%9C%ED%95%98%EA%B8%B0-d8794ea09c3e?source=rss-977124f78ca2------2</link>
            <guid isPermaLink="false">https://medium.com/p/d8794ea09c3e</guid>
            <dc:creator><![CDATA[Bryan, Choi]]></dc:creator>
            <pubDate>Fri, 05 Aug 2016 07:05:33 GMT</pubDate>
            <atom:updated>2016-08-06T23:53:39.082Z</atom:updated>
            <content:encoded><![CDATA[<p>HTML docs 와 API docs 를 Scala, Python 그리고 R에서 빌드하려면 몇 가지 도구들을 설치해야 한다.</p><p>참고) 현재 2016–08–05 문서대로 진행해도 API Docs 빌드 시 에러 발생 … 미해결.</p><h3>1. 루비와 파이썬 설치</h3><pre>sudo gem install jekyll jekyll-redirect-from pygments.rb</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*CCZS8ul9JwvmQZNyFLEoAw.png" /></figure><pre>sudo easy_install pip</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*UZnuJnHCiv8VK5UkLhh-dg.png" /></figure><pre>sudo pip install sphinx</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/1*PjSRkfGT7AemSMh8kFcsdA.png" /></figure><h3>2. R 설치</h3><p><a href="https://opentutorials.org/course/2071/11427">맥(OSX)에서 R 설치 - R programming</a></p><p>위 링크의 동영상을 참고하여 R을 설치하고 아래 명령을 실행한다.</p><pre>sudo Rscript -e &#39;install.packages(c(&quot;knitr&quot;, &quot;devtools&quot;, &quot;roxygen2&quot;, &quot;testthat&quot;), repos=&quot;http://cran.stat.ucla.edu/&quot;)&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*m4oAbQJ0IaST1WL3eIwczg.png" /></figure><h3>3. github에서 spark 포크, 체크아웃</h3><p><a href="https://github.com/oopchoi/spark-docs">https://github.com/oopchoi/spark-docs</a></p><p>우선 위 링크의 레파지토리를 자신의 원격 레파지토리로 복사(Fork) 한다.</p><p>자신의 원격 레파지토리에서 로컬 저장소로 복사(Clone) 한다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/453/1*pI9Xo9UvuEnAavAT0MNPZg.png" /><figcaption>이 그림은 설명용이고 자신의 레파지토리에 해당하는 주소를 복사해야 함</figcaption></figure><p>Clone 주소를 클립보드로 복사 한 후 인텔리제이를 실행하고 클론한다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/322/1*4AHA_HMmenl1jcdxlRKP8g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*X-mdAPwJtNbNlln99eSI1g.png" /><figcaption>이 그림은 설명용이고 자신의 레파지토리에 해당하는 주소를 복사해야 함</figcaption></figure><h3>4. HTML 생성</h3><p>체크아웃 받은 spark 경로 아래 docs 폴더로 이동해서 아래 명령을 실행한다.</p><pre>jekyll build</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*e5QKH648TYoC7r9-GMqjfA.png" /></figure><p>빌드 할 때 다음과 같이 할 수도 있다.</p><pre>    # Skip generating API docs (which takes a while)<br>    $ SKIP_API=1 jekyll build<br><br>    # Serve content locally on port 4000<br>    $ jekyll serve --watch<br><br>    # Build the site with extra features used on the live page<br>    $ PRODUCTION=1 jekyll build</pre><p>첫 번째, API docs는 생성하지 않도록 빌드<br>두 번째, 4000 포트로 로컬에서 접속 가능하도록 빌드<br>세 번째, 사이트의 부가 기능으로 페이지를 제공하도록 빌드</p><p>자 .. 이제 html 생성하는 방법을 알았으니 열심히 번역이나 해볼까!!!</p><p>번역 참여 방법 : <a href="https://medium.com/@oopchoi/apache-spark-2-%EB%B2%88%EC%97%AD-%EC%B0%B8%EC%97%AC-%EB%B0%A9%EB%B2%95-dca0de999d97#.ogw0fpaht">https://medium.com/@oopchoi/apache-spark-2-%EB%B2%88%EC%97%AD-%EC%B0%B8%EC%97%AC-%EB%B0%A9%EB%B2%95-dca0de999d97#.ogw0fpaht</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d8794ea09c3e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JMX(Java Management Extensions) 이해]]></title>
            <link>https://medium.com/@oopchoi/jmx-java-management-extensions-%EC%9D%B4%ED%95%B4-1e856e38194c?source=rss-977124f78ca2------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e856e38194c</guid>
            <category><![CDATA[jmx]]></category>
            <category><![CDATA[mbean]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Bryan, Choi]]></dc:creator>
            <pubDate>Sat, 05 Mar 2016 07:20:42 GMT</pubDate>
            <atom:updated>2016-03-05T07:20:42.980Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Instrumentation Tier</strong></p><p>MBean 자바 오브젝트에 의해 설치되는 애플리케이션, 디바이스, 서비스 리소스</p><p>MBean은 원격으로 관리하고 모니터링하는 JMX 에이전트를 통해 관리 인터페이스 제공</p><p><strong>Agent Tier</strong></p><p>MBean서버. MBean이 등록되는 코어 관리 에이전트 오브젝트 서버.</p><p>JMX 에이전트는 MBean을 핸들링하기 위한 서비스를 포함하고 있다.</p><p>에이전트는 직접적으로 리소스를 제어하고 관리가능하도록 한다.</p><p><strong>Remote Management Tier</strong></p><p>JVM 외부의 원격 관리 애플리케이션으로부터 접근 가능한 JMX 에이전트를 만드는</p><p>어댑터와 커넥터를 정의한다.</p><p>커넥터는 원격으로 클라이언트가 JMX-aware이고 로컬 클라이언트가 보게될 것과</p><p>같은 JMX API를 볼 때 사용된다.</p><p>어댑터는 원격 클라이언트가 SNMP(Simple Network Management Protocol)나</p><p>CIM/WBEM(Common Information Model and Web Based Enterprise Management) 같은</p><p>일반 관리 프로토콜을 이용할 때 사용된다.</p><p><strong>JMX를 사용하는 개발자 분류</strong></p><ul><li>리소스 관리를 위해 MBean을 작성</li><li>에이전트를 생성하고 배치 <br> * MBean서버를 생성하거나 플랫폼에서 제공되는 것을 사용<br> * MBean네이밍 컨벤션을 이용하여 리소스를 나타내는 MBean들을 등록<br> * 플랫폼(RMI/SNMP)에 의해 공급된 커넥터와 프로토콜 어댑터를 형성하거나 <br> 리소스가 원격으로 접근되었을 때 커스텀 커넥터나 어댑터를 추가</li><li>원격 매니저를 작성<br> * JMX 에이전트와 상호작용하는 커넥터나 프로토콜을 선택하고<br> MBean을 통해 원격으로 관리되는 리소스의 뷰를 구축한다.</li></ul><p><strong>MBean 타입</strong></p><ul><li>표준 MBean : 관리 인터페이스</li><li>다이나믹 MBean : javax.management.DynamicMBean 인터페이스를 이용하여 관리</li><li>모델 MBean : 리소스를 동적으로 설치하는데 사용</li><li>오픈 MBean : 데이터 타입에 특정 제한을 가진 다이나믹 MBean.<br> * 런타임 시 발견되는 새로운 관리 오브젝트들을 이해하고 사용할 수 있게 한다.</li></ul><p><strong>관리 인터페이스 생성 단계</strong></p><ol><li>MBean을 MBean 서버와 함께 등록하는 에이전트는 물론, MBean 인터페이스 생성</li><li>원격 관리 애플리케이션을 사용하여 MBean을 관리</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e856e38194c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ext JS 6 커스텀 컴포넌트 만들기]]></title>
            <link>https://medium.com/@oopchoi/ext-js-6-%EC%BB%A4%EC%8A%A4%ED%85%80-%EC%BB%B4%ED%8F%AC%EB%84%8C%ED%8A%B8-%EB%A7%8C%EB%93%A4%EA%B8%B0-5030b054cc45?source=rss-977124f78ca2------2</link>
            <guid isPermaLink="false">https://medium.com/p/5030b054cc45</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[ext-js-6]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[Bryan, Choi]]></dc:creator>
            <pubDate>Wed, 02 Mar 2016 14:32:26 GMT</pubDate>
            <atom:updated>2016-03-02T14:35:11.289Z</atom:updated>
            <content:encoded><![CDATA[<p>참고 : <a href="https://wikidocs.net/2890">https://wikidocs.net/2890</a> 가이드를 참고하여 실습</p><h3><strong>워크스페이스 생성</strong></h3><p>$&gt; sencha generate workspace example01</p><h3><strong>앱 생성</strong></h3><p>$&gt; cd example01/</p><p>$&gt; sencha -sdk ../ext6 generate app -classic App01 ./App01</p><h3><strong>커스텀 테마 생성</strong></h3><p>$&gt; sencha generate theme my-classic-theme</p><h3><strong>앱 와치 (실시간 컴파일 및 제티 구동)</strong></h3><p>$&gt; sencha app watch</p><h3><strong>테마 상속 설정</strong></h3><p>example01/packages/local/my-classic-theme 경로의 package.json 수정</p><p>“extend”: “theme-crisp”,</p><h3><strong>앱 테마 설정</strong></h3><p>app.json 수정</p><p>“theme”:”my-classic-theme”,</p><h3><strong>브라우저 실행</strong></h3><p><a href="http://localhost:1841/App01/?platformTags=fashion:true">http://localhost:1841/App01/?platformTags=fashion:true</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3t-EwB79Ef49C61xunQ3gg.png" /></figure><h3><strong>글로벌 베이스 폰트 색상 설정</strong></h3><p>example01/packages/local/my-classic-theme/sass/var 경로에 Component.scss 파일을 생성하고 내용 추가</p><p>$base-color: #317040;</p><h3><strong>앱 와치</strong></h3><p>$&gt; sencha app watch</p><h3><strong>브라우저 실행</strong></h3><p><a href="http://localhost:1841/App01/?platformTags=fashion:true">http://localhost:1841/App01/?platformTags=fashion:true</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r1eTCmmhbHNixqcxi88cBA.png" /></figure><h3><strong>패널 타이틀 폰트 변수 설정</strong></h3><p>my-classic-theme/sass/var/panel 폴더 생성하고 하위에 Panel.scss 파일을 생성한 후 아래 내용을 추가하고 브라우저를 확인한다.</p><p>$panel-header-font-family: dynamic(Times New Roman);</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fh8wX8m6wO1lO0aRFD89Aw.png" /></figure><p>제공되는 컴포넌트의 변수들을 확인하려면 API를 찾아서 상단에 보면 “CSS Vars” 가 보이는데 마우스를 오버하면 변수들을 볼 수 있다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SvIq0YoJnLfVk0m8jX3abA.png" /></figure><h3><strong>커스텀 패널 믹스인 설정</strong></h3><p>my-classic-theme/sass/src/panel 폴더를 생성하고 하위에 Panel.scss 파일을 생성 후 아래 내용을 입력하고 저장한다.</p><p>@include extjs-panel-ui(</p><p>$ui: ‘highlight-framed’,</p><p>$ui-header-background-color: red,</p><p>$ui-border-color: red,</p><p>$ui-header-border-color: red,</p><p>$ui-body-border-color : red,</p><p>$ui-border-width: 5px,</p><p>$ui-border-radius: 5px,</p><p>$ui-header-color: white</p><p>);</p><h3>앱에서 믹스인 적용</h3><p>App01/app/view/main 경로에 있는 Main.js 파일을 열어 아래 내용을 수정/추가하고 저장한다.</p><p>ui: ‘highlight’, // 수정</p><p>frame: true, // 추가</p><h3>브라우저 실행</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XK69G8k3Bcsg7ZtLyX6rNA.png" /></figure><p>제공되는 컴포넌트의 믹스인들을 확인하려면 API를 찾아서 상단에 보면 “CSS Mixins” 가 보이는데 마우스를 오버하면 믹스인을 볼 수 있다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*voEY26WnMtluQ9TtVTtmgA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5030b054cc45" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ext JS 6 객체지향 프로그래밍 문법]]></title>
            <link>https://medium.com/@oopchoi/ext-js-6-%EA%B0%9D%EC%B2%B4%EC%A7%80%ED%96%A5-%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%98%EB%B0%8D-%EB%AC%B8%EB%B2%95-a82381e13948?source=rss-977124f78ca2------2</link>
            <guid isPermaLink="false">https://medium.com/p/a82381e13948</guid>
            <category><![CDATA[ext-js-6]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Bryan, Choi]]></dc:creator>
            <pubDate>Thu, 25 Feb 2016 16:53:18 GMT</pubDate>
            <atom:updated>2016-02-25T16:53:18.847Z</atom:updated>
            <content:encoded><![CDATA[<ul><li>사전 지식 : <strong>Ext JS 6 애플리케이션 폴더 구조와 설정 &amp; 제티 실행</strong><a href="http://blog.naver.com/oopchoi/220637394268">http://blog.naver.com/oopchoi/220637394268</a></li></ul><p>소스 파일을 <a href="https://github.com/oopchoi/xharu.git">https://github.com/oopchoi/xharu.git</a> 에서 <strong>xharu-extjs6 </strong>모듈 소스를 받으시고 아래 선택된 파일들의 주석을 참고하라. 스프링 부트 애플리케이션을 메이븐 플러그인(spring-boot:run)으로 실행하고 <a href="http://localhost:8080/app/index.html">http://localhost:8080/app/index.html</a> 을 접속한 후에 (커맨드+옵션+I) 단축키를 사용하여 크롬의 개발자도구를 띄우고 콘솔에 테스트 결과를 확인해 보라. 자세한 설명은 다음 시간에 하기로 하고 직접 소스를 보면서 클래스 정의와 객체 생성 그리고 상속, 싱글톤, 정적 멤버 등 여러가지 기법들을 살펴보기 바란다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kUCYV-sxfs4XJH6TCIVfNQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*wcINRXj5Dwf2qe5pZC4aHQ.png" /><figcaption>결과 1</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/1*VPgZ58PThdSBJs_VtNSVzg.png" /><figcaption>결과 2</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a82381e13948" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ext JS 6 애플리케이션 폴더 구조와 설정 & 제티 실행]]></title>
            <link>https://medium.com/@oopchoi/ext-js-6-%EC%95%A0%ED%94%8C%EB%A6%AC%EC%BC%80%EC%9D%B4%EC%85%98-%ED%8F%B4%EB%8D%94-%EA%B5%AC%EC%A1%B0%EC%99%80-%EC%84%A4%EC%A0%95-%EC%A0%9C%ED%8B%B0-%EC%8B%A4%ED%96%89-7f36546886?source=rss-977124f78ca2------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f36546886</guid>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[ext-js-6]]></category>
            <dc:creator><![CDATA[Bryan, Choi]]></dc:creator>
            <pubDate>Wed, 24 Feb 2016 16:22:22 GMT</pubDate>
            <atom:updated>2016-02-25T16:59:26.420Z</atom:updated>
            <content:encoded><![CDATA[<ul><li>선행 지식 : <strong>Ext JS 6 애플리케이션 생성 및 실행해 보기 (</strong><a href="http://blog.naver.com/oopchoi/220634995933">http://blog.naver.com/oopchoi/220634995933</a>)</li></ul><h3>애플리케이션 폴더 구조</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/245/1*jm_0OrNQeVsbOKoPNHaqiA.png" /></figure><ul><li>resources/static/app : Ext JS 6 앱 루트 경로</li><li>앱루트/app : 글로벌 클래스 패스</li><li>앱루트/classic : 데스크탑 애플리케이션의 루트 경로</li><li>앱루트/modern : 모바일 애플리케이션의 루트 경로</li></ul><p>Ext JS 6는 초기에 애플리케이션 실행 시 앱루트/index.html 파일이 실행 되는데 데스크탑 툴킷을 적용할 것인지 모바일 툴킷을 적용할 것인지 디텍팅을 하고 프로파일을 지정한다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*JdrdqwnBT31JuHTmBPwEZg.png" /><figcaption>앱루트/index.html</figcaption></figure><p>따라서, Ext.manifest에 ‘classic’이 지정되면 “앱루트/app”와 “앱루트/classic” 경로에 있는 자원들을 활용하여 데스크탑 애플리케이션으로 실행되고, ‘modern’이 지정되면 “앱루트/app”와 “앱루트/modern” 경로에 있는 자원들을 활용하여 모바일용 애플리케이션으로 실행된다.</p><h3>애플리케이션 설정 app.json</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ErO30Hs-ctfDylkea1iLWw.png" /><figcaption>앱루트/app.json</figcaption></figure><p>“앱루트/app.json” 파일은 애플리케이션을 설정하는 파일이다. 파일을 열면 여러가지 설정들이 기본적으로 되어 있는데 핵심적인 몇 가지만 살펴보도록 하자. 더 자세한 설정에 대해서는 <a href="http://blog.naver.com/oopchoi/220629710128">http://blog.naver.com/oopchoi/220629710128</a> 링크를 참고하기 바란다.</p><p>가장 먼저 확인해야 하는 설정은 “name” 속성이다. 이 속성에 지정된 문자열은 네임스페이스(클래스 패스로 부터 특정 클래스를 찾아가기 위한 이름) 역할을 한다. sencha generate app 명령으로 애플리케이션을 생성할 때 지정한 애플리케이션 이름으로 자동 할당 된다.</p><p>다음으로 살펴볼 속성은 “classpath”이다. 이 속성에 지정된 경로에 접근하기 위해 네임스페이스를 사용한다. 기본으로 “app”과 “${toolkit.name}/src” 값이 지정되어 있는데 “app”은 앱루트에 있는 app 디렉토리다. “${toolkit.name}/src”는 디텍팅 결과가 데스크탑이면 앱루트에 있는 “classic/src”가 클래스 패스로 사용되고 모바일이면 앱루트에 있는 “modern/src”가 클래스 패스로 사용된다.</p><p>특정 클래스를 접근하는 방식은 네임스페이스를 사용하여 클래스 패스를 먼저 접근하고 하위 해당 클래스가 있는 디렉토리까지 각 단계마다 점(.)을 사용하여 접근하면 된다. 예를들어, 데스크탑용 애플리케이션일 경우 앱루트에 있는 classic/src/view/main/Main.js 클래스를 접근하려면 네임스페이스 “App”으로 클래스패스 “classic/src”를 접근하고 그 하위 디렉토리 접근을 “App.view.main.Mian” 과 같이 점으로 연결하여 문자열을 만들면 된다. 이 접근 방법은 클래스를 정의할 때도 동일하게 적용된다. Main.js 파일을 열어보면 Ext.define(‘App.view.main.Main’, {…}); 와 같이 정의되어 있다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1019/1*Ik72dWvWtNReq9VjlI2hEw.png" /><figcaption>classic/src/view/main/Main.js</figcaption></figure><p>만약 앱루트 경로 아래에 classic/src/view/main/Main.js 클래스가 있는데 동일한 이름의 파일이 app/view/main/Main.js 과 같이 동시에 존재한다면 빌드 할 때 아래와 같이 BUILD FAILED 에러가 발생한다. 이유는 ‘classic/src’와 ‘app’ 은 둘 모두 클래스패스로 지정되어 있어서 충돌이 나기 때문이다.</p><p>나중에 살펴보겠지만 사스(.scss)파일이나 app.json 파일같은 설정 파일을 변경 했을 때 빌드를 하게 된다. 사스는 다음에 사스 컴파일러를 다룰 때 설명하겠다. 또한, 클래스 파일을 수정하고 구문에 오류가 있는지 클래스가 충돌나지는 않는지 애플리케이션 빌드를 통해 확인 할 수 있다. 빌드를 하려면 앱루트 경로에 터미널로 접속해서 <em>sencha app build</em> 명령을 실행하면 된다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*pQoT9JnYnBd9geN0y0uiqA.png" /><figcaption>Main.js 충돌 에러 발생</figcaption></figure><p>에러 메세지를 아무리 뜯어봐도 classic/src/view/main/Main.js와 app/view/main/Main.js가 충돌났다는 내용은 볼 수 없다. 알 수 없는 에러 메세지 때문에 고생하지 말고 비슷한 에러 메세지를 보게 되면 클래스 충돌을 의심해 보기 바란다.</p><p>다음은 “js” 속성을 살펴보자. 이 속성은 배열 형태로 필요한 만큼 설정을 추가 할 수 있다. 기본으로 하나의 객체가 들어있고 객체의 “path” 속성에 “app.js” 문자열이 지정되어 있다. 이 것은 애플리케이션을 생성 할 때 앱루트 경로에 자동으로 생성된 app.js 파일을 가르킨다. 애플리케이션이 시작 될 때 마이크로로더(bootstrap.js)가 실행되면서 이 파일을 실행하고 app.js는 다시 내부에서 애플리케이션을 로딩하기 위해 app/Application.js 클래스 파일을 실행하게 된다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/195/1*FHBETuXLe20tTEcSSXe3Mw.png" /><figcaption>app.json에 “js” 속성 설정</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*wYB0SQuaDWsfLwHSUOdiBg.png" /><figcaption>app.js 파일 내용</figcaption></figure><p>app.js는 Ext.application() 메소드를 호출하여 애플리케이션을 로드한다. 인자는 문자열이나 객체를 전달 할 수 있는데, 문자열로 특정 애플리케이션 파일을 로드하도록 할 수 있고, 설정 객체로 전달하면 객체 내에 지정된 키/값 들로 애플리케이션을 초기화하여 로드한다. 위 그림의 app.js 파일 내용을 보면 애플리케이션(‘App.Application’)을 실행하는 데 메인 뷰 클래스를 ‘App.view.main.Main’으로 지정하여 로드한다. 이 메인 뷰 클래스가 초기 화면에 보여질 View(보여지는 화면:레이아웃과 렌더링)를 담당한다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f927lVr_4SEN2y5fQp46Fg.png" /><figcaption>app/Application.js 내용</figcaption></figure><p>App.Application 클래스 파일는 launch() 메소드를 가지고 있는데 애플리케이션이 실행되면 초기에 호출되는 메소드이다. 애플리케이션 실행 시 초기화 작업이 필요할 경우 이 메소드 바디를 구현하도록 한다.</p><h3>제티 서버에서 애플리케이션 실행</h3><p>이 전에는 톰캣을 실행하고 http://localhost:8080/app/index.html을 실행 했었는데 이 번에는 제티(<a href="https://eclipse.org/jetty/">https://eclipse.org/jetty/</a>) 서버를 실행하고 화면에 접속해보고자 한다.</p><p>app.json 설정에 보면 “indexHtmlPath” 속성에 “index.html” 문자열이 지정되어 있는데 이 것은 앱루트에 있는 index.html 파일의 상대경로다. <em>sencha app watch</em> 명령을 실행하여 제티를 구동 시키고 http://localhost:1841/로 접속하면 실행되는 파일이다.</p><p>참고) 제티를 시작하고 종료하는 명령은 sencha app start와 sencha app stop인데, sencha app watch를 사용하면 실시간 빌드 기능을 사용할 수 있고 제티 서버도 구동해 주기 때문에 편리하다.</p><p>지금까지 잘 따라 왔다면, 톰캣으로 index.html을 접속할 때 url은 <a href="http://localhost:8080/app/index.html">http://localhost:8080/app/index.html</a>이 되고 제티로 접속할 때 url은 <a href="http://localhost:1841/index.html">http://localhost:1841/index.html</a>이 된다. 만약 제티로 접속 시 톰캣처럼 동일한 <a href="http://localhost:1841/app/index.html">http://localhost:1841/app/index.html</a> 주소를 사용하고 싶다면 sencha app start 명령을 resources/static/ 경로에서 실행하면 된다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*3U9y6T-EL_tWyeTjg2K6RA.png" /><figcaption>sencha app watch 실행중</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*AhTiDxtvxkxI7ATZoDcC-Q.png" /><figcaption>애플리케이션이 <a href="http://localhost:1841/">http://localhost:1841</a> 접속 가능 상태</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OPBCRkSdAenR9M7irG19PA.png" /><figcaption><a href="http://localhost:1841/">http://localhost:1841/</a> 접속 화면</figcaption></figure><p>다음은 클래스 구문과 객체지향 프로그래밍 기법들을 살펴보도록 하겠다.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f36546886" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>