<?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"><channel><title><![CDATA[꼭대기에 대한 상상 RSS Feed]]></title><description><![CDATA[rapsealk's GitHub Blog]]></description><link>https://rapsealk.github.io</link><generator>GatsbyJS</generator><lastBuildDate>Tue, 27 Oct 2026 17:59:44 GMT</lastBuildDate><item><title><![CDATA[bitsandbytes 이슈 삽질기]]></title><link>https://rapsealk.github.io/bitsandbytes-issue/</link><guid isPermaLink="false">https://rapsealk.github.io/bitsandbytes-issue/</guid><pubDate>Mon, 04 Sep 2023 00:00:00 GMT</pubDate><content:encoded>&lt;a class=&quot;og-card&quot; href=&quot;https://www.backend.ai/ko/blog/2023-07-bitsandbytes-issue&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;span class=&quot;og-card-body&quot;&gt;&lt;span class=&quot;og-card-title&quot;&gt;bitsandbytes 이슈 삽질기&lt;/span&gt;&lt;span class=&quot;og-card-desc&quot;&gt;NGC Catalog 컨테이너에서 특정 패키지를 실행할 때 발생한 오류를 추적하고 해결한 과정을 엔지니어의 시선으로 공유합니다.&lt;/span&gt;&lt;span class=&quot;og-card-host&quot;&gt;www.backend.ai&lt;/span&gt;&lt;/span&gt;&lt;img class=&quot;og-card-image&quot; src=&quot;https://cdn.lablup.com/bitsandbytes_ko_2_c6907ba884.jpg&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; onerror=&quot;this.onerror=null;this.src=&apos;https://www.google.com/s2/favicons?domain=www.backend.ai&amp;sz=128&apos;;&quot; /&gt;&lt;/a&gt;</content:encoded></item><item><title><![CDATA[2022년을 돌아보는 회고록]]></title><description><![CDATA[2022년 마지막 근무를 했던 12월 3…]]></description><link>https://rapsealk.github.io/2022-retrospective/</link><guid isPermaLink="false">https://rapsealk.github.io/2022-retrospective/</guid><pubDate>Sat, 07 Jan 2023 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;2022년 마지막 근무를 했던 12월 30일에 팀원분들과 연말을 기념하는 커피챗 미팅을 잡게 되었다. 팀 리드님께서 한 해를 되돌아보며 기억하자는 의미에서 &quot;기년회&quot;를 제안해 주셨고, 덕분에 나도 어떤 시간을 보냈었는지 돌이켜 볼 수 있는 기회가 되었다. 기년회에 대한 내용은 이 &lt;a href=&quot;http://egloos.zum.com/agile/v/4016733&quot; title=&quot;망년회 대신 기년회&quot;&gt;블로그&lt;/a&gt;를 참고하시길 바란다.&lt;/p&gt;
&lt;p&gt;올해는 어떤 항목들로 기억을 분류해 보면 좋을까 고민을 하다가 시간순으로 나열해 보기로 했다.&lt;/p&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 630px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/ab42831cbbd98e7fe2575d4e4c3bad00/92f8c/1.webp&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 42.405063291139236%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/webp;base64,UklGRpQAAABXRUJQVlA4IIgAAAAQBACdASoUAAgAPtFWo0uoJKMhsAgBABoJZACsAYvqxtJH5hrKQgmmkAD+7ymCVuF2ewn6RH8p/SPYwSmO1XcOi+jAboAVSWDtqbxvCPUftf7qsLtJlxibxk6oc7eGL7C8Jlj3BjSf/JV6Em9X6RmdBjpuyljlWbOxkHiSMguPO0L+it9/QAAA&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;기억 뽑아내는 중 (출처: 해리포터와 혼혈왕자)&quot;
        title=&quot;&quot;
        src=&quot;/static/ab42831cbbd98e7fe2575d4e4c3bad00/8aab1/1.webp&quot;
        srcset=&quot;/static/ab42831cbbd98e7fe2575d4e4c3bad00/81b7c/1.webp 158w,
/static/ab42831cbbd98e7fe2575d4e4c3bad00/6ea66/1.webp 315w,
/static/ab42831cbbd98e7fe2575d4e4c3bad00/8aab1/1.webp 630w,
/static/ab42831cbbd98e7fe2575d4e4c3bad00/a70f5/1.webp 945w,
/static/ab42831cbbd98e7fe2575d4e4c3bad00/92f8c/1.webp 1200w&quot;
        sizes=&quot;(max-width: 630px) 100vw, 630px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;기억 뽑아내는 중 (출처: 해리포터와 혼혈왕자)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1월&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;2021년 10월부터 12월까지 진행하던 프로젝트의 1차 시연을 성공적으로 마치고, 최종 배포를 위한 안정화 작업을 진행했다. 이 프로젝트는 데스크톱 환경에서 실행되는 Electron 기반 클라이언트로 아래와 같은 특징들로 인하여 그동안 개발했던 프로그램들과 결을 달리 하는데, 이에 적합한 개발 방법을 끝내 찾지 못하고 마무리하게 된 것 같아 아쉬움이 많이 남는다.&lt;/p&gt;
&lt;p&gt;- 사용자 PC의 시간을 강제로 변경한다. 이 기능은 관리자 권한을 필요로 하는데, 프로그램을 실행할 때 &quot;관리자 권한으로 실행&quot;을 선택할 수 있는 Windows와는 달리 macOS에서는 터미널에서 sudo 명령어로 시작해야 했다. 대상 사용자가 터미널을 하지 않는 (개발직군 외의) 일반적인 PC 사용자인 점을 생각했을 때 썩 유쾌한 방법은 아니었던 것 같다.&lt;/p&gt;
&lt;p&gt;- 백그라운드에서 실행되고 있는 음성 파일이 진행됨에 따라 이벤트를 발생시켜야 한다. 문제는 이 이벤트가 웹페이지를 이동하거나 스크립트를 실행시키는 것이었는데, 매우 당연하게도 사용자의 네트워크 환경에 따라 로딩 속도에 차이가 있었다. 따라서 웹페이지의 로딩이 끝나는 시점을 알아야 했는데, 당시의 접근 방법이었던 &lt;a href=&quot;https://developer.mozilla.org/ko/docs/Web/API/Window/DOMContentLoaded_event&quot;&gt;DomContentLoaded&lt;/a&gt; 이벤트로는 이미지 등의 리소스들의 로딩 시점은 알 수 없었다.&lt;/p&gt;
&lt;p&gt;그 외에도 마우스 커서를 일시적으로 변경하거나 Electron WebView에서 내부 DOM에 접근하는 스크립트를 실행하는 등 매우 도전적인 이슈들이 많았다. 당시에 작성했던 &lt;a href=&quot;https://rapsealk.tistory.com/20&quot;&gt;글&lt;/a&gt;이 하나 있는데, 지금 돌이켜보면 나름 재밌는 이슈였던 것 같다.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2월&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;첫 커리어를 시작했던 직장에서 퇴사했다. 당시 사내의 소프트웨어 개발 업무를 전담하여 진행하는 과정에서 많은 고민들이 생겼었다.&lt;/p&gt;
&lt;p&gt;- 개발 능력에 대한 자신감과 생산력이 떨어졌다.&lt;/p&gt;
&lt;p&gt;- 업무적으로나 일상적으로나 사람을 만날 일이 없으니 갈수록 외로움이 커졌다.&lt;/p&gt;
&lt;p&gt;그러던 중 커뮤니티를 통해 한 시니어와 깊은 대화(라기보다는 검증의 시간)를 할 기회가 생겼는데, 여기에서 큰 충격을 받게 되었다. 그 결과 조금 갑작스럽지만 퇴사를 결정하게 되었고, 7개월 간의 여정을 마치고 집으로 돌아오게 되었다.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3월&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Back to the basic이라는 마음가짐으로 나를 검증하는 시간을 가지기로 했다. 지금까지 알고 있다고 생각했던 내용들을 다시 확인하는 과정을 거쳤으며, 조금 더 나은 개발 방법을 찾기 위하여 새로운 사이드 프로젝트를 진행하였다. 어차피 백수였기 때문에 시간은 많았으므로 매일매일 조금씩이라도 꾸준히 진행하려고 했다. 소위 말하는 &quot;잔디심기&quot;를 신경 쓰는 편은 아니지만, 이 기간 동안만큼은 내가 어떻게 진행했는지를 나타내는 하나의 지표가 되어 줄 수는 있을 것 같다.&lt;/p&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 174px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/ac3b85efb817041339f8764795596076/fe9c7/2.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 67.72151898734178%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAOCAYAAAAvxDzwAAAACXBIWXMAAA7DAAAOwwHHb6hkAAACgklEQVR42mVT227TQBD1BwBFlPgSt00dJ7Gd3bUd3x0noZAGiQaIWqSoAiReED+AxO8fZtdOE8HDyLNnZ86cmVlrQy/Ewa7HHFfDAMOJaDE/hOMJwhmu3OkTdoh3KE7igxF7wjTXjzBwGfJmjd3+B9bbLxizRJFejzhYXOHD7hGrzSeMgxnhRESFA5Hj7v4r7h6+qVwZO/QiaMOAlHkUEJcolrcoV+/hBhEcUnJNdxORYrn5iGK1gYx1pu3diMVI5jdYrO9U3mDC1b3GRAFjyWHMOc7rAIGfwckS6HOGs8cMr7YxekWAXjWF/jbEs+8ZjJsQ5lzgvAlUAY9yekuGfk2EFzcZzFpgkMdw0wROnuCyiGBWVGQdw1xF6M9DsghWE6F3G8OSZ0o2K4HxtoB/X8EoOOyKCM8eEhg1h5uk4KKE3nBYVMAkzKKEPplUI02eraK9txoBI6O8nyXGvxvoKYMtFVoysGlb0Bdc+VKRIliESo3ZiCMuffrKs5FzjH7V8P8soWdEOJeEdVv9qojV7GSBPklXarrWVNG686XquiW3ShrVLoWzz2HmXcuSzFgI1TLjpSJX86k7JSeqlMITXJEWJIjGYKhRdYQ6bdmhhUzDAmf7FL0NDb5s2/+P8FBwFeLFo9x4BLsMMaX5+/Q2Nckq2x3FiXqs59sZzDexauepTalE+tXJlzb+eksLfUexqxjjOINLHJp8HpxXit2PCqWsT2QSb2fXbbnu/IofsZzh5ecZnu8T9MpAta3JdlhIcsMcARGap5v9d8vN0bfriP6uApNZAS8hi3N4xKHZmYDPM0x4Ck9ksHOBi4wSCL/Iw9YnzD74WetfpiF81uZN2NH+AnbsqdfKW/4FAAAAAElFTkSuQmCC&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;3월 14일부터 5월 6일까지&quot;
        title=&quot;&quot;
        src=&quot;/static/ac3b85efb817041339f8764795596076/fe9c7/2.png&quot;
        srcset=&quot;/static/ac3b85efb817041339f8764795596076/c26ae/2.png 158w,
/static/ac3b85efb817041339f8764795596076/fe9c7/2.png 174w&quot;
        sizes=&quot;(max-width: 174px) 100vw, 174px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;3월 14일부터 5월 6일까지&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;4월&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;한 달간의 수련을 끝마치고 다시 이력서를 작성하고 구직 활동을 시작했다.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;5월&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;5월 9일 래블업 주식회사에 입사했다.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;6월&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;6월 14일부터 전문연구요원으로서 병역을 시작하게 되었다.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;7월&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Raft 합의 알고리즘 공부를 시작했다. 이 게시물의 끝을 지어보려 한다.&lt;/p&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 630px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/8b7dfe6d29b9b8e6fba1dd07404f6e9d/02cd5/3.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 29.11392405063291%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAGCAYAAADDl76dAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAA1UlEQVR42pVRy47CMAzMV+9vIO57RIgP4MiZMzfghBoq2G0TtxQV9ZFkqB2QUIWEsDQa2xnbcaJ8CHDew48QhvwnsAXRO3jnhNUxTXE+naC1xlGnSBKN/yxD3/exgAuDOC9x9N+ZMsbAWgtrLMgSOM4HEFnJX6tKuCxL5Hku5+xfBvTO41YZrBZTzCc/OGw3UFQUIiwezMVE3Dg2YRgeSHEY66PGyo3ovMduPcN6+QvK/qCapkFd12Bu21ZWZWZ0XYe2iT6zxM+zQRferK7Gj/ytjT/qDkaFz2Un7eMqAAAAAElFTkSuQmCC&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Raft 합의 알고리즘&quot;
        title=&quot;&quot;
        src=&quot;/static/8b7dfe6d29b9b8e6fba1dd07404f6e9d/f058b/3.png&quot;
        srcset=&quot;/static/8b7dfe6d29b9b8e6fba1dd07404f6e9d/c26ae/3.png 158w,
/static/8b7dfe6d29b9b8e6fba1dd07404f6e9d/6bdcf/3.png 315w,
/static/8b7dfe6d29b9b8e6fba1dd07404f6e9d/f058b/3.png 630w,
/static/8b7dfe6d29b9b8e6fba1dd07404f6e9d/02cd5/3.png 821w&quot;
        sizes=&quot;(max-width: 630px) 100vw, 630px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Raft 합의 알고리즘&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;8월&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;9월&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;새로운 프로젝트인 Backend.AI FastTrack 개발에 참여하게 되었다.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://blog.lablup.com/posts/2022/11/29/introduce-fasttrack&quot;&gt;Backend.AI MLOps 플랫폼 FastTrack을 소개합니다. | Lablup Blog&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;10월&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;논산훈련소에 다녀오게 되었다. 3주라는 시간이 참 길게 느껴지는 곳이었다. 대한민국의 모든 장병들에게 무한한 존경을 표하고 싶다.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;11월&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;12월&lt;/strong&gt;&lt;/p&gt;</content:encoded></item><item><title><![CDATA[Go언어와 CUDA Runtime API(cudart)]]></title><description><![CDATA[기존에 Python으로 작성했던 프로젝트를 Go로 다시 작성하는 과정에서 CUDA와 관련하여 문제가 발생했다. Python의 경우 cuda-python이라는 패키지가 공식적으로 지원되는 데 반해, 아직 Go에는 그런 것이 존재하지 않았다. Go…]]></description><link>https://rapsealk.github.io/go-cuda/</link><guid isPermaLink="false">https://rapsealk.github.io/go-cuda/</guid><pubDate>Sun, 24 Apr 2022 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;기존에 Python으로 작성했던 프로젝트를 Go로 다시 작성하는 과정에서 CUDA와 관련하여 문제가 발생했다. Python의 경우 &lt;a href=&quot;https://developer.nvidia.com/cuda-python&quot;&gt;cuda-python&lt;/a&gt;이라는 &lt;a href=&quot;https://pypi.org/project/cuda-python/&quot;&gt;패키지&lt;/a&gt;가 공식적으로 지원되는 데 반해, 아직 Go에는 그런 것이 존재하지 않았다. Go에서 CUDA의 기능을 이용하기 위한 방법들을 찾아보다가, &lt;a href=&quot;https://go.dev/blog/cgo&quot;&gt;&lt;strong&gt;cgo&lt;/strong&gt;&lt;/a&gt;라는 것을 이용하여 C 코드를 실행할 수 있다는 것을 알 수 있었다. &lt;a href=&quot;https://go.dev/blog/cgo&quot;&gt;cgo&lt;/a&gt;에 대한 자세한 내용은 아래의 글을 참고하시기 바란다.&lt;/p&gt;
&lt;a class=&quot;og-card&quot; href=&quot;https://go.dev/blog/cgo&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;span class=&quot;og-card-body&quot;&gt;&lt;span class=&quot;og-card-title&quot;&gt;C? Go? Cgo! - The Go Programming Language&lt;/span&gt;&lt;span class=&quot;og-card-host&quot;&gt;go.dev&lt;/span&gt;&lt;/span&gt;&lt;img class=&quot;og-card-image&quot; src=&quot;https://www.google.com/s2/favicons?domain=go.dev&amp;amp;sz=128&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; onerror=&quot;this.onerror=null;this.src=&apos;https://www.google.com/s2/favicons?domain=go.dev&amp;sz=128&apos;;&quot; /&gt;&lt;/a&gt;
&lt;p&gt;cgo를 사용하기 위해서는 import &quot;C&quot; 구문 바로 이전에 주석의 형태로 C 코드를 작성하면 되는데, 이것을 preamble이라고 부른다. 이렇게 작성된 코드는 Go 런타임에서 C 패키지를 통해 접근이 가능해진다. 또한 #cgo 지시자를 통해 컴파일러에 옵션을 전달할 수 있다. 이 글에서는 gcc를 사용하였으며, CUDA Runtime API를 사용하기 위하여 아래와 같은 형태로 작성하였다.&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;go&quot;&gt;&lt;pre class=&quot;language-go&quot;&gt;&lt;code class=&quot;language-go&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;// #cgo CFLAGS: -I/usr/local/cuda/include&lt;/span&gt;
&lt;span class=&quot;token comment&quot;&gt;// #cgo LDFLAGS: -L/usr/local/cuda/lib64 -lcudart&lt;/span&gt;
&lt;span class=&quot;token comment&quot;&gt;// #include &amp;lt;cuda_runtime_api.h&gt;&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;C&quot;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;이제 Go에서 CUDA Runtime API를 사용할 수 있게 되었다. 코드를 작성하기에 앞서, 아래의 문서를 통해 CUDA Runtime API의 명세를 확인할 수 있다.(본 글에서는 cudaGetDeviceCount, cudaGetDeviceProperties 등 Device Management 관련 API만을 사용한다.)&lt;/p&gt;
&lt;a class=&quot;og-card&quot; href=&quot;https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__DEVICE.html&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;span class=&quot;og-card-body&quot;&gt;&lt;span class=&quot;og-card-title&quot;&gt;6.3. Device Management — CUDA Runtime API Reference Manual 13.4 documentation&lt;/span&gt;&lt;span class=&quot;og-card-host&quot;&gt;docs.nvidia.com&lt;/span&gt;&lt;/span&gt;&lt;img class=&quot;og-card-image&quot; src=&quot;https://www.google.com/s2/favicons?domain=docs.nvidia.com&amp;amp;sz=128&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; onerror=&quot;this.onerror=null;this.src=&apos;https://www.google.com/s2/favicons?domain=docs.nvidia.com&amp;sz=128&apos;;&quot; /&gt;&lt;/a&gt;
&lt;p&gt;이제 본격적으로 Go 코드를 작성해 보도록 하겠다.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;cudaGetDeviceCount&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;cudaGetDeviceCount는 사용 가능한 CUDA Device의 갯수를 읽어오는 함수로, 그 명세는 아래와 같다.&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;c&quot;&gt;&lt;pre class=&quot;language-c&quot;&gt;&lt;code class=&quot;language-c&quot;&gt;__host____device__cudaError_t &lt;span class=&quot;token function&quot;&gt;cudaGetDeviceCount&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt; count &lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;함수에 전달한 int형 주소값인 count를 역참조하여 CUDA Device의 갯수 정보를 입력하고, 함수의 반환값으로는 에러의 유무를 전달하여 정상적으로 처리되었는지를 알 수 있게 한다. 이 API를 Go로 사용하기 위하여 아래와 같이 작성할 수 있다.&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;go&quot;&gt;&lt;pre class=&quot;language-go&quot;&gt;&lt;code class=&quot;language-go&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;errors&quot;&lt;/span&gt;

&lt;span class=&quot;token keyword&quot;&gt;var&lt;/span&gt; ErrCUDAInvalidValue &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; errors&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;New&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;This indicates that one or more..&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;

&lt;span class=&quot;token keyword&quot;&gt;func&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;GetDeviceCount&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token builtin&quot;&gt;int32&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token builtin&quot;&gt;error&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;var&lt;/span&gt; deviceCount C&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token builtin&quot;&gt;int&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; C&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;cudaGetDeviceCount&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;&amp;amp;&lt;/span&gt;deviceCount&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
        &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; ErrCUDAInvalidValue
    &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;int32&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;deviceCount&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token boolean&quot;&gt;nil&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;이때 C 함수에는 *C.int 자료형을 전달하고, Go 함수에서 반환할 때는 int32 자료형으로 변환했음에 유의하자.&lt;/p&gt;
&lt;ol start=&quot;2&quot;&gt;
&lt;li&gt;cudaGetDeviceProperties&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;cudaGetDeviceProperties는 n번째 CUDA Device의 정보를 읽어오는 함수로, 그 명세는 아래와 같다.&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;c&quot;&gt;&lt;pre class=&quot;language-c&quot;&gt;&lt;code class=&quot;language-c&quot;&gt;__host__cudaError_t &lt;span class=&quot;token function&quot;&gt;cudaGetDeviceProperties&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt; cudaDeviceProp&lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt; prop&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;int&lt;/span&gt;  device &lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;마찬가지로 함수에 전달한 cudaDeviceProp형 주소값인 prop을 역참조하여 device 번째에 해당하는 CUDA Device의 정보를 입력하고, 함수의 반환값으로는 에러의 유무를 전달한다. 이 API를 Go로 사용하기 위하여 아래와 같이 작성할 수 있다.&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;go&quot;&gt;&lt;pre class=&quot;language-go&quot;&gt;&lt;code class=&quot;language-go&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;
    &lt;span class=&quot;token string&quot;&gt;&quot;encoding/hex&quot;&lt;/span&gt;
    &lt;span class=&quot;token string&quot;&gt;&quot;fmt&quot;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;

&lt;span class=&quot;token keyword&quot;&gt;func&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;GetDeviceProperties&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;device &lt;span class=&quot;token builtin&quot;&gt;int32&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;C&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;struct_cudaDeviceProp&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token builtin&quot;&gt;error&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;var&lt;/span&gt; prop C&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;struct_cudaDeviceProp
    &lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; C&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;cudaGetDeviceProperties&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;&amp;amp;&lt;/span&gt;prop&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; C&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;device&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
        &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; prop&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; ErrCUDAInvalidValue
    &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
    c_uuid &lt;span class=&quot;token operator&quot;&gt;:=&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;byte&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;C&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;GoString&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;&amp;amp;&lt;/span&gt;prop&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;uuid&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;bytes&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
    uuid &lt;span class=&quot;token operator&quot;&gt;:=&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;make&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token builtin&quot;&gt;byte&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; hex&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;EncodedLen&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;len&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;c_uuid&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
    hex&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;Encode&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;uuid&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; c_uuid&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
    fmt&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;Println&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;Name:&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; C&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;GoString&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;&amp;amp;&lt;/span&gt;prop&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;name&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
    fmt&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;Println&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;UUID:&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;uuid&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
    fmt&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;Println&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;Total Global Memory:&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; prop&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;totalGlobalMem&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; prop&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token boolean&quot;&gt;nil&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;이때 C에서 정의된 struct cudaDeviceProp {...}과 같은 구조체는 C.struct_cudaDeviceProp과 같은 형태로 접근할 수 있다. 또한 C.GoString은 *_Ctype_char을 인자로 받기 때문에, []_Ctype_char 자료형인 prop.name을 &amp;#x26;prop.name[0]의 형태로 참조하였다.&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;txt&quot;&gt;&lt;pre class=&quot;language-txt&quot;&gt;&lt;code class=&quot;language-txt&quot;&gt;Hello, MLRD!
GPU Device count: 1
Name: NVIDIA GeForce GTX 1660 Ti
UUID: cfd68e3d1d6d95b3e8240890188f0536
Total Global Memory: 6441992192&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;하루종일 삽질한 결과 방법을 찾아낼 수 있었다.&lt;/p&gt;
&lt;a class=&quot;og-card&quot; href=&quot;https://github.com/rapsealk/go-cuda&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;span class=&quot;og-card-body&quot;&gt;&lt;span class=&quot;og-card-title&quot;&gt;GitHub - rapsealk/go-cuda&lt;/span&gt;&lt;span class=&quot;og-card-desc&quot;&gt;Contribute to rapsealk/go-cuda development by creating an account on GitHub.&lt;/span&gt;&lt;span class=&quot;og-card-host&quot;&gt;github.com&lt;/span&gt;&lt;/span&gt;&lt;img class=&quot;og-card-image&quot; src=&quot;https://opengraph.githubassets.com/321a2a472700806320e139d78ab4af3cde1b1a5b6959e1bf138ca17c4648992d/rapsealk/go-cuda&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; onerror=&quot;this.onerror=null;this.src=&apos;https://www.google.com/s2/favicons?domain=github.com&amp;sz=128&apos;;&quot; /&gt;&lt;/a&gt;</content:encoded></item><item><title><![CDATA[[Web] Drop Event 발생시키기]]></title><description><![CDATA[* 이 글에서 나오는 프로그램은 웹사이트를 돌아다니며 미술관에서 작품을 안내하는 도슨트처럼 각 사이트의 내용을 설명해주는 기능을 한다. 사용자는 프로그램에 내장된 WebView…]]></description><link>https://rapsealk.github.io/web-drop-event/</link><guid isPermaLink="false">https://rapsealk.github.io/web-drop-event/</guid><pubDate>Wed, 15 Dec 2021 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;* 이 글에서 나오는 프로그램은 웹사이트를 돌아다니며 미술관에서 작품을 안내하는 &lt;strong&gt;도슨트&lt;/strong&gt;처럼 각 사이트의 내용을 설명해주는 기능을 한다. 사용자는 프로그램에 내장된 WebView를 통해 일정 시간마다 각 사이트로 이동하게 되고, 매 사이트에 도착할 때마다 그곳을 설명하는 나레이션이 실행된다.&lt;/p&gt;
&lt;p&gt;프로그램을 개발하는 과정에서 재밌는 요구사항이 있었다. 이 프로그램에서 방문하는 사이트 중에는 아래와 같은 사이트도 있었다.&lt;/p&gt;
&lt;a class=&quot;og-card&quot; href=&quot;https://musiclab.chromeexperiments.com/Spectrogram/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;span class=&quot;og-card-body&quot;&gt;&lt;span class=&quot;og-card-title&quot;&gt;Chrome Music Lab&lt;/span&gt;&lt;span class=&quot;og-card-desc&quot;&gt;Music is for everyone. Play with simple experiments that let anyone, of any age, explore how music works.&lt;/span&gt;&lt;span class=&quot;og-card-host&quot;&gt;musiclab.chromeexperiments.com&lt;/span&gt;&lt;/span&gt;&lt;img class=&quot;og-card-image&quot; src=&quot;https://musiclab.chromeexperiments.com/static/share.jpg&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; onerror=&quot;this.onerror=null;this.src=&apos;https://www.google.com/s2/favicons?domain=musiclab.chromeexperiments.com&amp;sz=128&apos;;&quot; /&gt;&lt;/a&gt;
&lt;p&gt;이 사이트는 다양한 소리의 스펙트로그램을 시각화하여 보여주는 기능을 제공한다. 플룻, 하프, 휘파람 등의 샘플 소리들을 기본적으로 제공해주며, 마이크를 통해 입력된 소리를 이용할 수도 있다. 또한 드래그 앤 드롭을 통해 midi 이외의 오디오 파일의 실행도 지원해준다.&lt;/p&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 630px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/dbaa2a954214b86fa2787f86b5ee858d/29114/1.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 50.632911392405056%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAACXBIWXMAAA7DAAAOwwHHb6hkAAABqElEQVR42o2Ru24TQRSGt8bO2rs7s9fYYWNj4V0vOOISQIvtCEFAQSJOC1KKvEIaCiQkSkRDRctL0PBKduGL7PJjZoMtWyBI8emcOWfOP/PPGNPpFM1sNmMzXywWBcvlkvF4zGg0WtdWzOdzppMJk2J2ovIxxmAwoNfr0e/3t9C1FXmeF2zW/pzpcXQ0wDBNk3K5XFAqlSgriqjWOyXF79510FqG7/u4rrvGc72r3POohw0iEeJLXZNIVxRxc/8mWsvQiRBijScCpIqOdNlrPKYVH7IfptRkgz27ia/6jnC2ZlZorW1BqW9Ww7EdgtAjOXtJ8vqU2sEb6neGNPNzglsPcCxT7ZX/EXTUqbsBon4TYdsIzyd+d0r+4YTjry/IPg/xv5/hXySIG1WE+w9BRy/UrVpZhGzGCEsLqjd5MiR++pbB8xM+ve/y42fAxy8O9o52cw3LUomIsIar7EhlfzfqsB8/IjRbRNE9Ll895Nsz9cbuVV/+TdBRVi3LKqhUq8UvpmlKlnZIDzrcvTym3W2Ttm/Tun+o8i5pkpBlGUEQUKlU1vNa6xcqrEVxPtPxfAAAAABJRU5ErkJggg==&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Chrome Music Lab의 Spectrogram 서비스&quot;
        title=&quot;&quot;
        src=&quot;/static/dbaa2a954214b86fa2787f86b5ee858d/f058b/1.png&quot;
        srcset=&quot;/static/dbaa2a954214b86fa2787f86b5ee858d/c26ae/1.png 158w,
/static/dbaa2a954214b86fa2787f86b5ee858d/6bdcf/1.png 315w,
/static/dbaa2a954214b86fa2787f86b5ee858d/f058b/1.png 630w,
/static/dbaa2a954214b86fa2787f86b5ee858d/40601/1.png 945w,
/static/dbaa2a954214b86fa2787f86b5ee858d/78612/1.png 1260w,
/static/dbaa2a954214b86fa2787f86b5ee858d/29114/1.png 1920w&quot;
        sizes=&quot;(max-width: 630px) 100vw, 630px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Chrome Music Lab의 Spectrogram 서비스&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;이 재미난 사이트에서 주어진 요구사항은 아래와 같다.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;현재 실행되고 있는 나레이션의 스펙트로그램을 보여주도록 한다.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;이 요구사항을 충족하기 위해 밟아온 단계들을 차례로 정리하고자 한다.&lt;/p&gt;
&lt;p&gt;0. 가상 Element 파헤치기&lt;/p&gt;
&lt;p&gt;사용자의 마이크 입력을 전달받기 위해서는 아래에 있는 여러 버튼들 중 가장 왼쪽에 있는 버튼을 클릭해야 한다. 이 과정을 자바스크립트로 구현하는 과정에서 버튼의 클래스 이름을 알아내고 아래와 같은 방식으로 접근했다.&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;javascript&quot;&gt;&lt;pre class=&quot;language-javascript&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;document&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;getElementsByClassName&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&apos;music-box__buttons__button&apos;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;하지만 결과는 텅 빈 HTMLCollection[]가 돌아올 뿐이었다. 몇 번의 시행착오를 통해 해당 요소가 iframe을 통해 불러온 것이며, 가상 Element로 이루어졌음을 확인할 수 있었다. 가상 Element는 사용자의 입력이 발생하기 전에는 Element에 접근이 되지 않는 것 같다. 아래와 같은 iframe 태그를 찾을 수 있었고, 실제 기능을 수행하는 페이지의 주소를 알아낼 수 있었다.&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;html&quot;&gt;&lt;pre class=&quot;language-html&quot;&gt;&lt;code class=&quot;language-html&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;iframe&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;experimentFrame&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;iframe&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;​&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;a class=&quot;og-card&quot; href=&quot;https://musiclab.chromeexperiments.com/spectrogram-service/?ln=ko&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;span class=&quot;og-card-body&quot;&gt;&lt;span class=&quot;og-card-title&quot;&gt;3D Spectrogram&lt;/span&gt;&lt;span class=&quot;og-card-host&quot;&gt;musiclab.chromeexperiments.com&lt;/span&gt;&lt;/span&gt;&lt;img class=&quot;og-card-image&quot; src=&quot;https://www.google.com/s2/favicons?domain=musiclab.chromeexperiments.com&amp;amp;sz=128&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; onerror=&quot;this.onerror=null;this.src=&apos;https://www.google.com/s2/favicons?domain=musiclab.chromeexperiments.com&amp;sz=128&apos;;&quot; /&gt;&lt;/a&gt;
&lt;p&gt;1. StereoMix&lt;/p&gt;
&lt;p&gt;첫 번째로 사용한 방법은 StereoMix를 이용한 방법이다. 정확히는 Chrome Music Lab의 마이크 기능을 이용하기 위하여 StereoMix를 통해 소리를 전달하도록 하였다.&lt;/p&gt;
&lt;p&gt;StereoMix는 현재 스피커에 출력되고 있는 소리를 녹음할 수 있도록 해주는 가상 오디오 입력 장치다. 오디오 입력 장치를 StereoMix로 설정한 후 마이크 버튼을 누르면 실행 중인 소리를 그대로 입력으로 전달할 수 있다.&lt;/p&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 465px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/9667e0f0a00b4f06b70621a55f0733c3/9ff85/2.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 111.39240506329114%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAWCAYAAADAQbwGAAAACXBIWXMAAAsTAAALEwEAmpwYAAACgklEQVR42q1VO3PTQBj0f+cH0EGREiqgoAwz0DFAkyZlbEt+YNmWpZP1ftrL7jlKjBOTTIbL7Jxy+rS339MDdzJFHMcoyhK73Q5106DtOjRH+1Oo6xr7/R5jx8VguVphs9kgSRIsl0tkWQqf/+uS9XqNPM95lv0TaZpaUkeEi8UCnudhu93CI6GIVrzEhCFms5k1fgoSU1UVRqMxBiE/dMZjTPmxDqaTCVxiPptjwYuksG5qflBbFY+CZFoTfjcIgoCycyRxirIosfZ9JGmGtm1R0djG6DZWIj1FTSRZgYz7eOxgILmO4+DD548o28K66ZNUruvdfaxynFtxWSEoKrgiNJFBGqZ48/UtrvwrdEWLwISIougue8q+cG41rIaWdiOGji6H1p2EwS2KwmZ6Opkh53PXlw/dF84tXaplyyYMqXC7wvD7N4RMxJols/E3LJmVdVlJKSyKJwmHo9EhKR0P9lTUUqVCYEG3u12H56ykS2D2hjFklmOqeP/lE169e40gNfg9ndokqT5tUvLMqhTOKbs217hcXmI1WVMh6zD0A1z8uMBP75dNioq8ZewUw7Y7xE/7A0IcCE1h4GUeYz+/dbljFvnX7Z/n4jmltlNE2LTN3eFL1u6UUK4d3/RShcNTwpeunvBmeFs27X8iHPaEan61VieQ/CHUen0L3rei3vX7HaHGV8lpvbXD4NB+f6PkzMtsKcVxgoh7b6va1BCJoq310nHVesbYOlMRC4+N+Koq2TnGkkqA7DRYNVRTPotUy3XZKRpVp9P3GDoTiVTq50GqIramnq292pWX6dzOw8XCszfoUCNLKo7Rz0vDd7ITiSaz7PVONvP53F5yczPEH+8Qok/FedSGAAAAAElFTkSuQmCC&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Stereo Mix 오디오 장치 (Windows)&quot;
        title=&quot;&quot;
        src=&quot;/static/9667e0f0a00b4f06b70621a55f0733c3/9ff85/2.png&quot;
        srcset=&quot;/static/9667e0f0a00b4f06b70621a55f0733c3/c26ae/2.png 158w,
/static/9667e0f0a00b4f06b70621a55f0733c3/6bdcf/2.png 315w,
/static/9667e0f0a00b4f06b70621a55f0733c3/9ff85/2.png 465w&quot;
        sizes=&quot;(max-width: 465px) 100vw, 465px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Stereo Mix 오디오 장치 (Windows)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;StereoMix의 설정 방법은 아래와 같다.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&quot;https://www.intel.com/content/www/us/en/download/19336/realtek-high-definition-audio-driver-for-windows-10-64-bit-for-nuc8i7be-nuc8i5be-nuc8i3be.html&quot;&gt;Realtek High Definition Audio (SST) 드라이버&lt;/a&gt;를 설치한다.&lt;/li&gt;
&lt;li&gt;제어판 &gt; 하드웨어 및 소리 &gt; 소리로 이동한 후, 녹음 장치를 스테레오 믹스로 설정한다.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;이렇게 설정한 후 정상적으로 기능이 작동함을 확인할 수 있었다. 하지만 이런 방법에는 아래와 같은 문제점이 있었다.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;실행 PC에 Realtek 드라이버가 설치되었음을 보장할 수 없다.&lt;/li&gt;
&lt;li&gt;오디오 입력 장치를 임의로 설정/변경하는 방법을 찾지 못했다. (레지스트리로 접근했지만..)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;따라서 별도의 설정이 필요하지 않은 드래그 앤 드롭 기능을 이용하는 방법으로 변경하기로 했다.&lt;/p&gt;
&lt;p&gt;2. Drop Event&lt;/p&gt;
&lt;p&gt;드래그 앤 드롭 기능을 이용하기 위해서는 &apos;drop&apos; 이벤트를 어떻게 처리하는지 확인할 필요가 있었다. 따라서 해당 페이지에서 동작하는 자바스크립트 코드를 분석하기로 했다. 그렇게 지옥문이 열렸다.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://musiclab.chromeexperiments.com/js/app.js&quot;&gt;https://musiclab.chromeexperiments.com/js/app.js&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;2-1. 어떤 Element가 이벤트를 처리하는가?&lt;/p&gt;
&lt;p&gt;아름다운 minify가 적용되어 덤으로 난독화까지 적용된 모습이었다. 우선 &apos;drop&apos; 이벤트에 대한 처리 방식을 찾아야 했기 때문에, &apos;drop&apos; 단어를 검색해봤다. 그 결과 아래와 같은 처리 함수가 등록되었음을 확인할 수 있었다.&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;javascript&quot;&gt;&lt;pre class=&quot;language-javascript&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token parameter&quot;&gt;n&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
	n&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;preventDefault&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; n&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;stopPropagation&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; e&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;addClass&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;pointer-events&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;token keyword&quot;&gt;var&lt;/span&gt; s &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; n&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;originalEvent&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;dataTransfer&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
	s &lt;span class=&quot;token operator&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; s&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;files&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;length &lt;span class=&quot;token operator&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; s&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;items&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;audio/midi&quot;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;!==&lt;/span&gt; s&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;items&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;type
		&lt;span class=&quot;token operator&quot;&gt;?&lt;/span&gt; $&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;each&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;s&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;files&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token parameter&quot;&gt;n&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; i&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
			i&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;type&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;indexOf&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;audio&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;&gt;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;1&lt;/span&gt;
				&lt;span class=&quot;token operator&quot;&gt;?&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;#loadingMessage&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;text&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;i&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;name&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;#loadingSound&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;show&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;r&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;i&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; e&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;removeClass&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;active&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; e&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;removeClass&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;pointer-events&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
					&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; t&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;text&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;Only sound files will work here.&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
		&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; t&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;text&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;Only sound files will work here.&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;이제 저 처리 함수가 어떤 Element에 등록되었는지 확인해야 했다. 이것을 확인하기 위하여 사용자가 파일을 드롭하는 영역에 &apos;drop&apos; 이벤트 리스너를 추가하였고, 파일을 드랍했을 때 실제로 반응하는 Element가 무엇인지 확인했다.&lt;/p&gt;
&lt;p&gt;2-2. 어떻게 파일을 전달할 것인가?&lt;/p&gt;
&lt;p&gt;위의 이벤트 처리 함수를 보면 dataTransfer에 담긴 파일을 처리하는 방식임을 알 수 있었다. 그렇다면 이제 audio/mp3 파일을 dataTransfer에 담아서 전달해주기만 하면 될 것 같다. dataTransfer에 대한 내용은 아래에서 확인할 수 있었다.&lt;/p&gt;
&lt;a class=&quot;og-card&quot; href=&quot;https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API/Drag_operations&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;span class=&quot;og-card-body&quot;&gt;&lt;span class=&quot;og-card-title&quot;&gt;Drag operations - Web APIs | MDN&lt;/span&gt;&lt;span class=&quot;og-card-host&quot;&gt;developer.mozilla.org&lt;/span&gt;&lt;/span&gt;&lt;img class=&quot;og-card-image&quot; src=&quot;https://www.google.com/s2/favicons?domain=developer.mozilla.org&amp;amp;sz=128&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; onerror=&quot;this.onerror=null;this.src=&apos;https://www.google.com/s2/favicons?domain=developer.mozilla.org&amp;sz=128&apos;;&quot; /&gt;&lt;/a&gt;
&lt;a class=&quot;og-card&quot; href=&quot;https://developer.mozilla.org/ko/docs/Web/API/DataTransfer&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;span class=&quot;og-card-body&quot;&gt;&lt;span class=&quot;og-card-title&quot;&gt;DataTransfer - Web API | MDN&lt;/span&gt;&lt;span class=&quot;og-card-host&quot;&gt;developer.mozilla.org&lt;/span&gt;&lt;/span&gt;&lt;img class=&quot;og-card-image&quot; src=&quot;https://www.google.com/s2/favicons?domain=developer.mozilla.org&amp;amp;sz=128&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; onerror=&quot;this.onerror=null;this.src=&apos;https://www.google.com/s2/favicons?domain=developer.mozilla.org&amp;sz=128&apos;;&quot; /&gt;&lt;/a&gt;
&lt;p&gt;2-3. 아뿔싸! originalEvent가 무엇인가?&lt;/p&gt;
&lt;p&gt;jQuery에서는 DOM Event 객체를 jQuery.Event 객체로 래핑하여 사용함을 알 수 있었다.&lt;/p&gt;
&lt;a class=&quot;og-card&quot; href=&quot;https://api.jquery.com/category/events/event-object/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;span class=&quot;og-card-body&quot;&gt;&lt;span class=&quot;og-card-title&quot;&gt;Event Object | jQuery API Documentation&lt;/span&gt;&lt;span class=&quot;og-card-host&quot;&gt;api.jquery.com&lt;/span&gt;&lt;/span&gt;&lt;img class=&quot;og-card-image&quot; src=&quot;https://www.google.com/s2/favicons?domain=api.jquery.com&amp;amp;sz=128&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; onerror=&quot;this.onerror=null;this.src=&apos;https://www.google.com/s2/favicons?domain=api.jquery.com&amp;sz=128&apos;;&quot; /&gt;&lt;/a&gt;</content:encoded></item><item><title><![CDATA[Visual Studio Code와 Docker를 이용한 원격 코딩]]></title><description><![CDATA[필자는 2019년 다음과 같은 글을 작성하였다. (https://rapsealk.tistory.com/10) 하지만 시간은 흐르고, 이제는 Linux 환경을 넘어 Docker를 다룰 줄 아는 것이 기본 소양인 시대가 되었다.  Docker…]]></description><link>https://rapsealk.github.io/vscode-docker-remote-coding/</link><guid isPermaLink="false">https://rapsealk.github.io/vscode-docker-remote-coding/</guid><pubDate>Thu, 07 Oct 2021 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;필자는 2019년 다음과 같은 글을 작성하였다. (&lt;a href=&quot;https://rapsealk.tistory.com/10&quot;&gt;https://rapsealk.tistory.com/10&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;하지만 시간은 흐르고, 이제는 Linux 환경을 넘어 Docker를 다룰 줄 아는 것이 기본 소양인 시대가 되었다.&lt;/p&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 630px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/e114bdfbadcb63ee483ca09eb9ee7241/a6d36/1.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 81.64556962025317%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAQCAYAAAAWGF8bAAAACXBIWXMAAAsTAAALEwEAmpwYAAAEGUlEQVR42oVUe0xbVRi/AzZZmOBQ2UQcMHl0ReaybrgxSkdbWrrC2kFve3m1g5ZLW2gHtKWM6g7r4A83TbaMmCBxjZtksYIQZKjsDzBxyXSYCC4m7sVjOhMhk0WTSem9x++WR9CYeJIvv+99fufL/S5hQ8MJyH97E8Z4w6oQcADDQSJW9JBvRV/zrcsNO4H6n6tDA/EEevu7+Lg3xNtSxMfcAlVFc1axwbVXpW9NOawyJglVuswjpZ596kpXtsbYzJeS7qTco0f5Uq3jQHFVc3ZxtWu/2uBJkairoW846hzdQgwM4GdTpaRyX4kJK4wOVlnjYuVGB85U6uf5ivJ7eXo7VpicTJHZzR7U1mKejJp8vUjPSA0NWF7VyIgBefKyWZ6k8vnGd2c3E11+HJOp0CmU0ISye4JVLm9QW9+K88qsv+Vo6Tt6pxcbXN4lvaMtWGJpwXsLKyaSc9VLSbkqJlGoWkoWHcOp4pJpvoyMvTDMPkNcuYKjuYaFJicuBhaU/U1WbXZDQ8u8UFd7l9PhIoasO8kWmRw4S101KS63MuraZqyinQwXz6Xo2Wj+gdhhruF7PQtbM+RauRKSiy3NDFesqnXhvHLLnFBH31FBIWXzADs3ozQ2YZjdRFGNI1jRhNiKxlOAbVhusM0QCfxYn28qMvTkPYVlCiUwLG04xRpbOljS5oGG1nkhZb6nqffgancHU+loY4tqnPggaZrM19sZ6sRb+LirHRi2YEll/UNilWGX/3HMq3lqQYacmskooKZAHoD8zJfrbu6S6z7PkOkepUvJ++kS8gHYM7tk2j6I331NTk1DzX3QH/FlurFtu/OjEMewu3shdqeoMCdNQgZTJSWLaRLNX4ABwD8B/+DJtIEcbc2iUEsH+AVUIE2seZIm1Txdl7sE+GRHjnKn3483h2aYKCrk8aSafpDeVQFGfZDYByz6D5eaPxaXmz8CvSeNi+WTfct55CfpkAMvuJoM3/K5y79GETY0mrCyAmvb8O8jQrAdib7IfMe5KAHdtfE/UkK1sHXRRB0aiecMAU1vJESiCJEIRQgEAtBRaMUOHUI7ssnL3yTubxs//v6N3uoPxn8U28/vXqshyXCujrMtLUNbCcuZL17hDIRQ2LLgsJVbN1V3f91Ff/jT70rvLSxzDM3U9079YLo0fglikQj2F6HRCNLvD+eQwMSGJjT4AkczwdYx/KIZ9cXR7usxVjS03YFuxJGt3VkNI3Ps6ZtLrPfqWMD7bRC3jC0sHrGe3ePz4UiujntdbftnLzvPjm5vaP/qJc63NoTQLXBomFFn5+0tIsM7vNPD0wvnbwXwxcEJ5uT1p9jy6S8PswrK/2/mocA/gtzviMOewRGP//s5bL/2mEHXZnGb78s6zk/6cfhy3XohQvg3X7j8Ju+M2mEAAAAASUVORK5CYII=&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Docker&quot;
        title=&quot;&quot;
        src=&quot;/static/e114bdfbadcb63ee483ca09eb9ee7241/f058b/1.png&quot;
        srcset=&quot;/static/e114bdfbadcb63ee483ca09eb9ee7241/c26ae/1.png 158w,
/static/e114bdfbadcb63ee483ca09eb9ee7241/6bdcf/1.png 315w,
/static/e114bdfbadcb63ee483ca09eb9ee7241/f058b/1.png 630w,
/static/e114bdfbadcb63ee483ca09eb9ee7241/a6d36/1.png 650w&quot;
        sizes=&quot;(max-width: 630px) 100vw, 630px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Docker&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;준비사항: Visual Studio Code, Docker가 실행 중인 (원격) 서버&lt;/p&gt;
&lt;a class=&quot;og-card&quot; href=&quot;https://code.visualstudio.com/docs/containers/ssh&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;span class=&quot;og-card-body&quot;&gt;&lt;span class=&quot;og-card-title&quot;&gt;Connect to remote Docker over SSH&lt;/span&gt;&lt;span class=&quot;og-card-desc&quot;&gt;Connect via SSH to Docker engine running on a remote machine and use the remote machine as a development environment for Visual Studio Code.&lt;/span&gt;&lt;span class=&quot;og-card-host&quot;&gt;code.visualstudio.com&lt;/span&gt;&lt;/span&gt;&lt;img class=&quot;og-card-image&quot; src=&quot;https://code.visualstudio.com/opengraphimg/generated/docs/containers/ssh.webp&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; onerror=&quot;this.onerror=null;this.src=&apos;https://www.google.com/s2/favicons?domain=code.visualstudio.com&amp;sz=128&apos;;&quot; /&gt;&lt;/a&gt;
&lt;p&gt;[0] 현재 PC에 접속할 서버에 대한 fingerprint가 저장된 상태인지 확인한다. 처음 접속하는 경우라면, 아래의 명령어를 통해 서버에 접속하기 위한 fingerprint를 생성 및 저장할 수 있다.&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;shell&quot;&gt;&lt;pre class=&quot;language-shell&quot;&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;token operator&quot;&gt;&gt;&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;ssh&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;token environment constant&quot;&gt;USER&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;&gt;&lt;/span&gt;@&lt;span class=&quot;token operator&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;token environment constant&quot;&gt;HOSTNAME&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;:&lt;span class=&quot;token operator&quot;&gt;&amp;lt;&lt;/span&gt;PORT&lt;span class=&quot;token operator&quot;&gt;&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;[1] Visual Studio Code에서 필요로 하는 Extension을 설치해 준다.&lt;/p&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 494px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/d261d2bb002b30b8f861184829568b0b/d72d4/2.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 37.34177215189873%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAHCAYAAAAIy204AAAACXBIWXMAAAsTAAALEwEAmpwYAAABnElEQVR42l2RvW7UQBSF9yGC2LXHHq9jGy/+mfH4Lw7sKktApKAgCkJCNKSAVCkowgtQQEeHRMkL0PJUPMPHXXdQHGlGZ+65936zCMOQcHUPbR6jq1HOR/i+4uRkYrfbcv70nLZ1FEXBMAykSSK+x6FOBRpPhfhKiwKCQLEI/RXRs2vWn36zfv+D9ZvPqDhnlOLtdsvZ/gzXNKRphjGGqirJ8w1aR2xijybzMMkKk6+Jk1QCvfvEH3+R/ITk+x+iixvU8ghjLV3bSJil2ORkWUZdV7Supes6Mgmd6mMu+pgnVrMfSmpjJVA6abcnurxDb68IlYfSMZV1NONEUUvoeErpemzXU5Xl3OwwbSleaRyb0sg7S2NqFtGjS/SLW/TuNdHzD0Qv7wiLXu5XlDff8PdveXj9hfTdV9TuFVWeslyuUEqhhLVS/sxO+b5wPDBcx4THqeiBKJsViFFUFjecYtqO4jDtMOHaXtbtaWwjnxLMoUEQ/KNFKOn/62DE2UZ4OaZxZOyFm7MMfcc0TbOca2RtS11VwraeEdim4S/ihNksZEz5MQAAAABJRU5ErkJggg==&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;VSCode: Docker&quot;
        title=&quot;&quot;
        src=&quot;/static/d261d2bb002b30b8f861184829568b0b/d72d4/2.png&quot;
        srcset=&quot;/static/d261d2bb002b30b8f861184829568b0b/c26ae/2.png 158w,
/static/d261d2bb002b30b8f861184829568b0b/6bdcf/2.png 315w,
/static/d261d2bb002b30b8f861184829568b0b/d72d4/2.png 494w&quot;
        sizes=&quot;(max-width: 494px) 100vw, 494px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;VSCode: Docker&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 546px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/684eadf45c4822d35551d106449efa95/76aed/3.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 31.0126582278481%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAGCAYAAADDl76dAAAACXBIWXMAAAsTAAALEwEAmpwYAAABfUlEQVR42k2Qz2oTURjF8xRFnZk7k0ky/+6de+/MxNaQkIBO0lR3FnddVBoXCmJcudOFXQp9gVoRn8GHEARBQbsR+iY/r2MXLg7n8PFxvnO+nvBuEiSGaH9LtHyGiBP6oaBpGpRSGGtIk9TpEmM01hhsVZNmBcNRRqE0xWjIxiQskpheMJRMX31m8/GKo/dXlJsLBklG295jvV6zWq2ckXEHxizdbNm2rBzfnY7Z1QmzvRpbFJzUBfN0QC9aHPP44jdPz7/z/MMP7p/9JLr9gEqlXRpV5AziPkoWXeK8kIzigKn0aK1gbmNKU7ETRgSxS9ifHHJwdsn20yUn57+YnX4jMgts3aCbO9jdCXZvhrJjaldVSok2llxqpHbVc3n9Co3WJT0R+GSPTpm//crkzRdGBy/wfQ919JrscMvw4UvUk3fE+8ddSiEEnud1O77jwPed9ruZ57gzDLwbBPkYkVYEt3aIohBV/n1+RVnqDk09vkZNGIYIh//5nxb8AQgLyKKcQKxKAAAAAElFTkSuQmCC&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;VSCode: Remote - Container&quot;
        title=&quot;&quot;
        src=&quot;/static/684eadf45c4822d35551d106449efa95/76aed/3.png&quot;
        srcset=&quot;/static/684eadf45c4822d35551d106449efa95/c26ae/3.png 158w,
/static/684eadf45c4822d35551d106449efa95/6bdcf/3.png 315w,
/static/684eadf45c4822d35551d106449efa95/76aed/3.png 546w&quot;
        sizes=&quot;(max-width: 546px) 100vw, 546px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;VSCode: Remote - Container&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 492px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/9b96e1c19938b62b306c5ff6962ff618/5c6e9/4.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 34.810126582278485%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAHCAYAAAAIy204AAAACXBIWXMAAAsTAAALEwEAmpwYAAABwUlEQVR42k2RS2vUcBTF8yHU2mmSyXOSTPNOZhJrRWYWiqjDvFAXhdaKUhRcFVyJiLofNz4K4kJ3unPhp3AQQVG6dOHH+HknILi43Mv58z/33HMUXVPR1A2MbIhZj9EtD611Gsu28TwPW7rjupim2cwrzJHuCrbCQ8finO/iGm00XUdZkcU3nrL95Avnny2pDz+h+iVFljKdThgMB4zGY9IkoT6zxWw2p+qXVFWfpOwziTd5PSjpCfG6pqEY/RE7R8fcffuD68+XHLz/TbCzwO/YVHVNXpTkeYbebhNGIWmWkaUphmUTWmtcTE+JwhMM0zZRnKK4Fw649vIXuy++Ml8s2Xn1k+TeBzqOSREF5FGXXhqRBHKeZzdkRV40xFVZUOURdSnqS8HLHooebjNZfGPvzTE3j76z/+4P3ugBhtMhuHoba+sy3mBO98otjLMjwjjBdZzGT9ftiNfiX0d8dcRTwRWttSafpuT3P1IcfsafPUKToIzNnGr/Md1Lu0TjO/T3HjYL0rwkkGBWAaiqBCq+rfq/UnRd0lk/ibohj7rRzJraahREvkMeh8SBqHVNyiSScFIJpMYXUlUW60L8f/0FcqzrPfrhR48AAAAASUVORK5CYII=&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;VSCode: Remote - SSH&quot;
        title=&quot;&quot;
        src=&quot;/static/9b96e1c19938b62b306c5ff6962ff618/5c6e9/4.png&quot;
        srcset=&quot;/static/9b96e1c19938b62b306c5ff6962ff618/c26ae/4.png 158w,
/static/9b96e1c19938b62b306c5ff6962ff618/6bdcf/4.png 315w,
/static/9b96e1c19938b62b306c5ff6962ff618/5c6e9/4.png 492w&quot;
        sizes=&quot;(max-width: 492px) 100vw, 492px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;VSCode: Remote - SSH&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;[2] File &gt; Preferences &gt; Settings에 들어간 후 docker.host 항목에 접속할 ssh 서버 주소를 입력한다.&lt;/p&gt;
&lt;p&gt;[3] Ctrl+Shift+P를 누른 후, Remote-Containers: Attach to Running Container...를 선택한다.&lt;/p&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 626px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/38a00aac471402f79089b929f9640510/af590/5.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 54.43037974683544%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAALCAYAAAB/Ca1DAAAACXBIWXMAAAsTAAALEwEAmpwYAAAB0ElEQVR42pWSSW/bMBSE9SPaQ0+1JVvWYmu1VlIi5Q1NuiBBkF56KeBD0aBB//9pOpRgH4KgRQ8fnrhoyDdDS2sF1XcYWI+HPQ77PXbDgLZpUFUlqrKAlIJrh2l9Z9b1yOl4GPf3neQ+7q0qWFGtkKpbJP0JSTeRqQ/I9c2VlONYnhB3L+Bcxv9Ssh1u4aU1rM3hEenDL8R3P5A/PCG5/4n1pzP8j2eErOvPZ3g33/FWfJ2QU33TPuKd+obo/hnhlycEd7/xvjhScBOhVz1EI9i6wk5r+J4He25j4ThkgeVi+QqcX3pw1yXcsBjrfO7AipMUDf2SsocUHbQeOBb0ULC2KIoSYbjGwogs3RdwjodO2HA5tqI4QV03EBQTQkIpjbaV6Lqe4jtE7OB1sQurK667glWUFdOpIbtJULNlI24ElRqQpRkFF38RnDBic9pkJWxZCDEKmLaHYcfa8ZbtOLfdFvBW/j8FDbZNwbKsUfL9tEKM3vUMxlhgiGnHZhP/hyBDyfJiDEX1mmnzwfLhCuOhnG7nMGXHWY4BGC8vGAFTTasXHIZjlUzRpJnlOeLIBMQbj75WyLIMvu8z5RBBEFy/TTUHBEE4iphWDbPZDH8A+x9dYMAK1K0AAAAASUVORK5CYII=&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Attach to Running Container...&quot;
        title=&quot;&quot;
        src=&quot;/static/38a00aac471402f79089b929f9640510/af590/5.png&quot;
        srcset=&quot;/static/38a00aac471402f79089b929f9640510/c26ae/5.png 158w,
/static/38a00aac471402f79089b929f9640510/6bdcf/5.png 315w,
/static/38a00aac471402f79089b929f9640510/af590/5.png 626w&quot;
        sizes=&quot;(max-width: 626px) 100vw, 626px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Attach to Running Container...&lt;/em&gt;&lt;/p&gt;</content:encoded></item><item><title><![CDATA[오픈 소스 컨트리뷰션 도전기]]></title><description><![CDATA[1. 해당 소프트웨어를 사용하는 유저들의 니즈를 파악할 수 있다. 2. 소프트웨어 프로젝트의 운영 방식과 소통 방법을 이해하고 경험할 수 있다. 발견한 이슈: - github.com/microsoft/AirSim/issues/171…]]></description><link>https://rapsealk.github.io/oss-contribution/</link><guid isPermaLink="false">https://rapsealk.github.io/oss-contribution/</guid><pubDate>Tue, 20 Apr 2021 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;1. 해당 소프트웨어를 사용하는 유저들의 니즈를 파악할 수 있다.&lt;/p&gt;
&lt;p&gt;2. 소프트웨어 프로젝트의 운영 방식과 소통 방법을 이해하고 경험할 수 있다.&lt;/p&gt;
&lt;p&gt;발견한 이슈:&lt;/p&gt;
&lt;p&gt;- &lt;a href=&quot;https://github.com/microsoft/AirSim/issues/1711&quot;&gt;github.com/microsoft/AirSim/issues/1711&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;커밋 목록:&lt;/p&gt;
&lt;p&gt;- &lt;a href=&quot;https://github.com/microsoft/AirSim/commit/c88ffafffa7b272fceb1728376660b2074852eac&quot;&gt;github.com/microsoft/AirSim/commit/c88ffafffa7b272fceb1728376660b2074852eac&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;- &lt;a href=&quot;https://github.com/microsoft/AirSim/commit/ed12bf75624df553dff06a30a149363c6c040535&quot;&gt;github.com/microsoft/AirSim/commit/ed12bf75624df553dff06a30a149363c6c040535&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;최종 PR(Pull Request):&lt;/p&gt;
&lt;p&gt;- &lt;a href=&quot;https://github.com/microsoft/AirSim/pull/1981&quot;&gt;github.com/microsoft/AirSim/pull/1981&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title><![CDATA[Windows 환경에서 virtualenv 사용하기]]></title><description><![CDATA[Python 프로젝트를 운용할 경우, 모듈들이 중복되거나 꼬이는 현상을 막기 위하여 독립된 공간이 필요할 때가 있다. 이럴 때 사용할 수 있는 것이 바로 virtualenv(이하 venv)다. Windows 환경에서 virtualenv…]]></description><link>https://rapsealk.github.io/windows-virtualenv/</link><guid isPermaLink="false">https://rapsealk.github.io/windows-virtualenv/</guid><pubDate>Tue, 23 Mar 2021 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Python 프로젝트를 운용할 경우, 모듈들이 중복되거나 꼬이는 현상을 막기 위하여 독립된 공간이 필요할 때가 있다. 이럴 때 사용할 수 있는 것이 바로 virtualenv(이하 venv)다.&lt;/p&gt;
&lt;p&gt;Windows 환경에서 virtualenv를 사용하기 위해서는 PowerShell을 &quot;관리자 권한으로 실행&quot;한 후 아래의 명령어를 실행시켜야 한다.&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;cs&quot;&gt;&lt;pre class=&quot;language-cs&quot;&gt;&lt;code class=&quot;language-cs&quot;&gt;Set&lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt;ExecutionPolicy Unrestricted &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt;Force&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;이후 여느 환경과 동일하게 사용하면 된다.&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;python&quot;&gt;&lt;pre class=&quot;language-python&quot;&gt;&lt;code class=&quot;language-python&quot;&gt;source venv&lt;span class=&quot;token operator&quot;&gt;/&lt;/span&gt;Scripts&lt;span class=&quot;token operator&quot;&gt;/&lt;/span&gt;activate&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</content:encoded></item><item><title><![CDATA[PTR]]></title><description><![CDATA[기록을 남긴다. * (Deep) Reinforcement Learning - Playing Atari with Deep Reinforcement Learning, 2013     > 키워드: Deep Q Network     > 링크: arxiv]]></description><link>https://rapsealk.github.io/ptr/</link><guid isPermaLink="false">https://rapsealk.github.io/ptr/</guid><pubDate>Tue, 24 Nov 2020 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;기록을 남긴다.&lt;/p&gt;
&lt;p&gt;* (Deep) Reinforcement Learning&lt;/p&gt;
&lt;p&gt;- Playing Atari with Deep Reinforcement Learning, 2013&lt;/p&gt;
&lt;p&gt;    &gt; 키워드: Deep Q Network&lt;/p&gt;
&lt;p&gt;    &gt; 링크: &lt;a href=&quot;https://arxiv.org/abs/1312.5602&quot;&gt;arxiv&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title><![CDATA[개인정보처리방침]]></title><description><![CDATA[이 앱은 아래와 같은 이유로 안드로이드 권한을 필요로 합니다. - android.permission.CAMERA : 기기의 전면 카메라를 이용하여 사용자의 얼굴을 인식하기 위함.]]></description><link>https://rapsealk.github.io/privacy-policy/</link><guid isPermaLink="false">https://rapsealk.github.io/privacy-policy/</guid><pubDate>Wed, 26 Feb 2020 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;이 앱은 아래와 같은 이유로 안드로이드 권한을 필요로 합니다.&lt;/p&gt;
&lt;p&gt;- android.permission.CAMERA : 기기의 전면 카메라를 이용하여 사용자의 얼굴을 인식하기 위함.&lt;/p&gt;</content:encoded></item><item><title><![CDATA[Kotlin 키워드 정리]]></title><description><![CDATA[Java에서 사용하던 키워드 중 Kotlin에서 대응되는 키워드 목록을 (Java -> Kotlin) 형태로 나열해보려 한다. * native -> external Java에서는 JNI(Java Native Interface)를 이용하여 C…]]></description><link>https://rapsealk.github.io/kotlin-keywords/</link><guid isPermaLink="false">https://rapsealk.github.io/kotlin-keywords/</guid><pubDate>Fri, 24 Jan 2020 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Java에서 사용하던 키워드 중 Kotlin에서 대응되는 키워드 목록을 (&lt;strong&gt;Java&lt;/strong&gt; -&gt; &lt;strong&gt;Kotlin&lt;/strong&gt;) 형태로 나열해보려 한다.&lt;/p&gt;
&lt;p&gt;* &lt;strong&gt;native&lt;/strong&gt; -&gt; &lt;strong&gt;external&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Java에서는 JNI(Java Native Interface)를 이용하여 C++로 작성된 함수를 실행할 때 &lt;strong&gt;native&lt;/strong&gt; 키워드를 이용해서 함수를 선언해준다.&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;java&quot;&gt;&lt;pre class=&quot;language-java&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;native&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;print_hello&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Kotlin에서는 &lt;strong&gt;external&lt;/strong&gt; 키워드를 이용하여 아래와 같이 선언할 수 있다.&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;kotlin&quot;&gt;&lt;pre class=&quot;language-kotlin&quot;&gt;&lt;code class=&quot;language-kotlin&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;external&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;fun&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;print_hello&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;...&lt;/p&gt;</content:encoded></item><item><title><![CDATA[읽을 것들]]></title><description><![CDATA[https://towardsdatascience.com/facebook-builds-an-ai-agent-to-master-the-hanabi-challenge-the-new-frontier-for-ai-research-db4764fd49fc]]></description><link>https://rapsealk.github.io/reading-list/</link><guid isPermaLink="false">https://rapsealk.github.io/reading-list/</guid><pubDate>Tue, 31 Dec 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;a href=&quot;https://towardsdatascience.com/facebook-builds-an-ai-agent-to-master-the-hanabi-challenge-the-new-frontier-for-ai-research-db4764fd49fc&quot;&gt;https://towardsdatascience.com/facebook-builds-an-ai-agent-to-master-the-hanabi-challenge-the-new-frontier-for-ai-research-db4764fd49fc&lt;/a&gt;&lt;/p&gt;
&lt;a class=&quot;og-card&quot; href=&quot;https://arxiv.org/abs/1902.00506?fbclid=IwAR2XnX55JT3Fr1LawuZT2SOHZpo4oWOjRfAhz1fdKc37-FaODMnM5GOSmGM&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;span class=&quot;og-card-body&quot;&gt;&lt;span class=&quot;og-card-title&quot;&gt;The Hanabi Challenge: A New Frontier for AI Research&lt;/span&gt;&lt;span class=&quot;og-card-desc&quot;&gt;From the early days of computing, games have been important testbeds for studying how well machines can do sophisticated decision making. In recent years, machine learning has made dramatic advances with artificial agents reaching superhuman performance in challenge domains like Go, Atari, and some variants of poker. As with their predecessors of chess, checkers, and backgammon, these game domains have driven research by providing sophisticated yet well-defined challenges for artificial intelligence practitioners. We continue this tradition by proposing the game of Hanabi as a new challenge domain with novel problems that arise from its combination of purely cooperative gameplay with two to five players and imperfect information. In particular, we argue that Hanabi elevates reasoning about the beliefs and intentions of other agents to the foreground. We believe developing novel techniques for such theory of mind reasoning will not only be crucial for success in Hanabi, but also in broader collaborative efforts, especially those with human partners. To facilitate future research, we introduce the open-source Hanabi Learning Environment, propose an experimental framework for the research community to evaluate algorithmic advances, and assess the performance of current state-of-the-art techniques.&lt;/span&gt;&lt;span class=&quot;og-card-host&quot;&gt;arxiv.org&lt;/span&gt;&lt;/span&gt;&lt;img class=&quot;og-card-image&quot; src=&quot;https://arxiv.org/static/browse/0.3.4/images/arxiv-logo-fb.png&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; onerror=&quot;this.onerror=null;this.src=&apos;https://www.google.com/s2/favicons?domain=arxiv.org&amp;sz=128&apos;;&quot; /&gt;&lt;/a&gt;
&lt;a class=&quot;og-card&quot; href=&quot;https://arxiv.org/abs/1912.02318?fbclid=IwAR0xDUuoiHEUkH0CQVmMsoTq806BRNcjKY19f6HFIFvtJkjU3pqWIkKpWD0&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;span class=&quot;og-card-body&quot;&gt;&lt;span class=&quot;og-card-title&quot;&gt;Improving Policies via Search in Cooperative Partially Observable Games&lt;/span&gt;&lt;span class=&quot;og-card-desc&quot;&gt;Recent superhuman results in games have largely been achieved in a variety of zero-sum settings, such as Go and Poker, in which agents need to compete against others. However, just like humans, real-world AI systems have to coordinate and communicate with other agents in cooperative partially observable environments as well. These settings commonly require participants to both interpret the actions of others and to act in a way that is informative when being interpreted. Those abilities are typically summarized as theory f mind and are seen as crucial for social interactions. In this paper we propose two different search techniques that can be applied to improve an arbitrary agreed-upon policy in a cooperative partially observable game. The first one, single-agent search, effectively converts the problem into a single agent setting by making all but one of the agents play according to the agreed-upon policy. In contrast, in multi-agent search all agents carry out the same common-knowledge search procedure whenever doing so is computationally feasible, and fall back to playing according to the agreed-upon policy otherwise. We prove that these search procedures are theoretically guaranteed to at least maintain the original performance of the agreed-upon policy (up to a bounded approximation error). In the benchmark challenge problem of Hanabi, our search technique greatly improves the performance of every agent we tested and when applied to a policy trained using RL achieves a new state-of-the-art score of 24.61 / 25 in the game, compared to a previous-best of 24.08 / 25.&lt;/span&gt;&lt;span class=&quot;og-card-host&quot;&gt;arxiv.org&lt;/span&gt;&lt;/span&gt;&lt;img class=&quot;og-card-image&quot; src=&quot;https://arxiv.org/static/browse/0.3.4/images/arxiv-logo-fb.png&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; onerror=&quot;this.onerror=null;this.src=&apos;https://www.google.com/s2/favicons?domain=arxiv.org&amp;sz=128&apos;;&quot; /&gt;&lt;/a&gt;</content:encoded></item><item><title><![CDATA[2019년을 돌아보는 회고록]]></title><description><![CDATA[올해 2019년을 시작으로 회고록을 작성해보려고 한다. 사실 차곡차곡 글을 써서 모으려고 블로그를 개설한 게 3년 전인데, 미루고 미루다보니 생각보다 남은 글이 없다. 201…]]></description><link>https://rapsealk.github.io/2019-retrospective/</link><guid isPermaLink="false">https://rapsealk.github.io/2019-retrospective/</guid><pubDate>Mon, 30 Dec 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;올해 2019년을 시작으로 회고록을 작성해보려고 한다. 사실 차곡차곡 글을 써서 모으려고 블로그를 개설한 게 3년 전인데, 미루고 미루다보니 생각보다 남은 글이 없다.&lt;/p&gt;
&lt;p&gt;2019년은 중요한 해였지만, 생각만큼 성과가 나타나지는 않은 한해였다. 돌이켜보면 아쉬운 점이 이렇게나 많았던 적이 있었나 싶을 정도다. 우선 올해 있었던 일들을 정리하고 자극제로 삼으려고 한다.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;프로젝트&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;작년 10월을 시작으로(정확히는 8월부터지만), 학교 산학협력단을 통하여 모 기업과의 프로젝트를 진행하고 있다. 사실 3개월의 계약이었기 때문에 1월에 마무리가 되었어야 하지만, 성과가 계속 나오지 않았기 때문에 현재까지 계속 진행중이다. 사실 나는 이 프로젝트에 참여할 생각이 없었다. 오히려 참여하고 싶지 않았다. 하지만 진행하게 되었고, 그 안에서 배울 것들을 찾아보기로 했다. 덕분에 &lt;strong&gt;소프트웨어 아키텍처&lt;/strong&gt;에 대한 관심이 생겼고, 처음으로 &lt;strong&gt;테스트 코드&lt;/strong&gt;를 작성하며 그 중요도를 체감할 수 있었다. 또한 MQTT와 같은 &lt;strong&gt;메시징 큐&lt;/strong&gt;도 사용해볼 수 있었으며, 자그마치 Microsoft의 &lt;a href=&quot;https://github.com/microsoft/AirSim/commit/c88ffafffa7b272fceb1728376660b2074852eac&quot;&gt;AirSim&lt;/a&gt;이라는 오픈소스에 기여하는 기회도 얻었다. 하지만.. 프로젝트 진행에 대하여 나에게 선택권이 있었으면 하는 아쉬움이 남는 것은 사실이다.&lt;/p&gt;
&lt;p&gt;2019년 1학기를 마친 후 고민끝에 휴학을 하고, AI Robotics KR의 오픈채팅방을 통해서 &lt;strong&gt;Mercy 프로젝트 팀&lt;/strong&gt;에 안드로이드 개발자로 합류했다. 안드로이드 경험을 더 쌓고 싶기도 했고 딥러닝에 대해서 어깨너머 더 배우고 싶은 마음도 있었지만, 제일 큰 이유는 &quot;저 사람들은 어떻게 프로젝트를 진행할까?&quot;에 대한 의문이었던 것 같다. 바로 AI Hub에서 진행하는 &lt;a href=&quot;http://www.aihub.or.kr/node/424&quot;&gt;&lt;strong&gt;AI허브 데이터 활용 우수사례·아이디어 공모&lt;/strong&gt;&lt;/a&gt;에 참여했고 장려상의 결과를 낳았다. 나의 기여도와 퍼포먼스가 생각보다 높지는 않아서 아쉬운 부분도 있지만, 좋은 분들과 함께 프로젝트를 진행할 수 있어서 즐거운 시간이었다. 특히 팀장님은 정말 대단하신 분이었다.&lt;/p&gt;
&lt;p&gt;아래에서 설명하겠지만, 나는 2019년 1학기를 마치고 졸업까지 한학기가 남은 상태에서 휴학을 선택했다. 휴학 후 그동안 모아놓은 돈으로 생활을 유지하고 있었지만, 수입이 없는 상태에서 지출만 일정하게 발생하니 결국 바닥을 드러내기 시작했다. 그러던 중, 다행히 오랜만에 외주를 하게 되어 한숨 돌리게 되었다. 이번 외주는 iOS 어플리케이션 제작이기 때문에 사실 커리어에 도움이 될지는 잘 모르겠다. 하지만 그 안에서 개발론, &lt;a href=&quot;https://martinfowler.com/architecture/&quot;&gt;아키텍처&lt;/a&gt; 등을 다시 익히고, 추후에 안드로이드 어플리케이션으로까지 확장하며 어떻게든 양분으로 삼으려고 계획하고 있다.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;독서&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;사실 독서를 멈춘 게 꽤 오래됐다. 2016년부터 읽고 싶은 / 읽어야 하는 책들은 계속 구입해서 쌓여만 가는데, 이것 역시 미루다보니 끝이 없다. 마지막으로 읽었던 책이 그나마 2018년 2월에 억지로라도 읽어야겠다고 생각해서 하루동안 읽은 &lt;strong&gt;댄 브라운&lt;/strong&gt;의 &lt;strong&gt;오리진&lt;/strong&gt;이다. 취미로도 좋지만, 어느정도 기본 소양이 되는 책들은 의무적으로라도 읽도록 해야겠다. &lt;strong&gt;GoF의 디자인 패턴&lt;/strong&gt;, &lt;strong&gt;이펙티브 자바&lt;/strong&gt;, &lt;strong&gt;객체지향의 사실과 오해&lt;/strong&gt;, &lt;strong&gt;클린 코드&lt;/strong&gt;, &lt;strong&gt;클린 아키텍처&lt;/strong&gt;, &lt;strong&gt;실용주의 프로그래머&lt;/strong&gt;, &lt;strong&gt;테스트 주도 개발&lt;/strong&gt;, &lt;strong&gt;인공지능: 현대적 접근방식&lt;/strong&gt;, 그리고 논문 작성을 위한 강화학습 및 양자역학 관련 도서들.. 2020년 이맘때쯤에는 얼마나 읽은 상태일지 궁금하다.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;진로와 갈등&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;어쩌면 2017년부터 시작됐을 고민인데, 나는 아직도 내 진로를 결정하지 못한 것 같다. 물론 다 소화할 수 있다면 좋겠지만, 그렇게 수용 능력이 뛰어나지는 않다는 걸 나는 알고 있다. 그래서 나는 둘 중 하나에서 선택해야 하는데, 아직도 그 사이에서 갈팡질팡 선택을 못하고 있다. 그 두 가지를 어떻게 정의하면 좋을지 모르겠지만, 우선 나는 &lt;strong&gt;서비스 개발&lt;/strong&gt;과 &lt;strong&gt;인공지능 연구&lt;/strong&gt;라고 하겠다.&lt;/p&gt;
&lt;p&gt;서비스 개발은 내가 프로그래밍을 본격적으로 입문하게 해준 분야다. 2017년 인턴을 시작으로 외주, 그리고 2018년 인턴과 한이음 프로젝트  및 채점 프로그램 등 다양한 서비스를 개발해왔다. 그 과정에서 기술적인 문제로 속앓이를 한 적도 많이 있지만, 결국 내가 그것들을 즐길 수 있었기 때문에 마무리를 지을 수 있었다고 생각한다. 또한 이쪽에 대한 욕심은 시작 이래로 놓은 적이 없어서, 오히려 본업이라고 할 수 있을 정도인 인공지능 연구쪽에 소홀해지기도 했다. 다만 마음이 갈팡질팡하며 서비스 개발도 생각보다 성과가 적다는 부분이 아쉽게 다가온다.&lt;/p&gt;
&lt;p&gt;인공지능 연구는 내가 대학에 입학하여 소프트웨어를 처음 접했을 때부터 가져온 꿈이었다. 그렇기 때문에 계속 교수님들과 컨택을 하고 3학년이 됨과 동시에 연구실에 들어가게 되었다. 하지만 내가 생각했던 것과 다른 일을 하게 되고, 또한 서비스 개발에 대한 마음이 남아있어서인지 그닥 성과를 내지 못한 것 같다. 가끔은 내가 이 길을 택한 것이 옳은가 고민을 하게 되기도 한다. 우선 올해는 논문을 마무리하고 졸업해서 내 선택에 대한 끝맺음을 하려고 한다.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;이력서와 면접&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;내가 걸어온 길을 정리할겸 이력서를 작성해보기로 했다. 어떤 양식이 좋을까 고민하다가, 구직 관련 사이트에서 제공해주는 것을 발견하고 그것들을 이용하기로 했다. 나는 &lt;a href=&quot;https://www.wanted.co.kr/&quot;&gt;원티드&lt;/a&gt;와 &lt;a href=&quot;https://programmers.co.kr/&quot;&gt;프로그래머스&lt;/a&gt;를 선택했다. 정리해보니 적지 않은 프로젝트를 진행했지만, 그 분야가 다양하여 하나에 조예가 있어 보이지는 않았다.&lt;/p&gt;
&lt;p&gt;또한 이번에 처음으로 면접을 경험했다. 서울에 위치한 모 회사의 백엔드 개발자로 지원했는데, 운이 좋게 면접을 볼 수 있었다. 회사마다 다르겠지만 대부분 요구되는 기술과 관련된 질문을 받았다. 결과는 불합격이었지만, 오랜만에 신선한 자극을 받을 수 있었고 공부의 방향을 재조정할 수 있는 기회라고 생각한다.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;논문&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;대학원생은 연구를 하는 사람으로, 그 성과는 논문이라는 정량적 지표로 평가할 수 있다고 생각한다. 사실 처음 대학원 진학을 결심했을 때 두 편 정도의 논문을 작성하고 졸업 논문으로 마무리를 짓고 싶다는 소망이 있었다. 하지만.. 여러가지 이유가 있었겠지만, 결과적으로 개인 시간을 활용하지 못하여 개인 연구에 진척이 없었다. 그렇기 때문에 현재로써는 그저 졸업 논문만 제대로 완성되기를 바라고 있다. &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;건강&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;잔병치레 없이 지내다 2017년부터 일년에 하나씩 문제가 생기는 느낌이다.&lt;/p&gt;
&lt;p&gt;2017년 여름에는 잦은 야외 실험 탓인지 피부가 상하기 시작하고, 2018년 여름에는 눈가에 알러지가 생기더니, 2019년 올해는 무릎이 아파오기 시작했다. 사실 몇년 전부터 증세는 있었는데, 올해 특히 심해진 느낌이다.&lt;/p&gt;
&lt;p&gt;내년에는 건강해지자..&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;기타&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;올해 드디어 &lt;strong&gt;정보처리기사&lt;/strong&gt;를 취득했다. 사실 작년에 접수를 했었으나 전날 네이버 AI 해커톤을 다녀온 후 친구집에서 놀다가 시험을 보러 가지 않아서.. 휴학을 하고 필요한 자격증을 따보자는 목표가 있었는데 그 중 하나를 해결해서 후련하다. 이제 TOEIC만 다시 보면 된다!&lt;/p&gt;
&lt;p&gt;2020년에는 졸업시켜주세요!&lt;/p&gt;</content:encoded></item><item><title><![CDATA[Networks of Spiking Neurons: The Third Generation of Neural Network Models]]></title><description><![CDATA[Networks of Spiking Neurons: The Third Generation of Neural Network Models by Wolfgang Maass (1996) * EPSP(흥분성 연접후 전위; Excitatory…]]></description><link>https://rapsealk.github.io/spiking-neural-networks/</link><guid isPermaLink="false">https://rapsealk.github.io/spiking-neural-networks/</guid><pubDate>Mon, 23 Dec 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;Networks of Spiking Neurons: The Third Generation of Neural Network Models&lt;/strong&gt; by &lt;strong&gt;Wolfgang Maass&lt;/strong&gt; (1996)&lt;/p&gt;
&lt;p&gt;* EPSP(흥분성 연접후 전위; Excitatory Postsynaptic Potential)&lt;/p&gt;
&lt;p&gt;- &lt;/p&gt;
&lt;p&gt;- 출처: &lt;a href=&quot;https://ko.wikipedia.org/wiki/%ED%9D%A5%EB%B6%84%EC%84%B1_%EC%97%B0%EC%A0%91%ED%9B%84_%EC%A0%84%EC%9C%84&quot;&gt;https://ko.wikipedia.org/wiki/%ED%9D%A5%EB%B6%84%EC%84%B1_%EC%97%B0%EC%A0%91%ED%9B%84_%EC%A0%84%EC%9C%84&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;* IPSP(억제성 연접후 전위; Inhibitory Postsynaptic Potential)&lt;/p&gt;
&lt;p&gt;- &lt;/p&gt;
&lt;p&gt;- 출처: &lt;a href=&quot;https://ko.wikipedia.org/wiki/%EC%96%B5%EC%A0%9C%EC%84%B1_%EC%97%B0%EC%A0%91%ED%9B%84_%EC%A0%84%EC%9C%84&quot;&gt;https://ko.wikipedia.org/wiki/%EC%96%B5%EC%A0%9C%EC%84%B1_%EC%97%B0%EC%A0%91%ED%9B%84_%EC%A0%84%EC%9C%84&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title><![CDATA[Visual Studio Code를 이용한 원격 코딩]]></title><description><![CDATA[필자는 Windows 10 데스크탑과 macOS 노트북을 사용하고 있다. 주로 카페에서 작업하는 방식을 이용하고 있고, 다행히 Node.js와 Android…]]></description><link>https://rapsealk.github.io/vscode-remote-coding/</link><guid isPermaLink="false">https://rapsealk.github.io/vscode-remote-coding/</guid><pubDate>Mon, 11 Nov 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;필자는 &lt;strong&gt;Windows 10 데스크탑&lt;/strong&gt;과 &lt;strong&gt;macOS 노트북&lt;/strong&gt;을 사용하고 있다. 주로 카페에서 작업하는 방식을 이용하고 있고, 다행히 Node.js와 Android 작업을 하기 때문에 별다른 애로사항은 없었다.&lt;/p&gt;
&lt;p&gt;하지만 최근 문제가 발생했다. 진행하고 있는 드론 프로젝트 때문에 &lt;strong&gt;ROS&lt;/strong&gt; 환경에서의 작업이 필요하다는 것이다. &lt;a href=&quot;https://www.ros.org/&quot;&gt;&lt;strong&gt;ROS&lt;/strong&gt;&lt;/a&gt;는 Robot Operating System의 약자로, 로봇 응용 프로그램 개발 프레임워크라고 할 수 있다. 자세한 설명은 &lt;a href=&quot;http://wiki.ros.org/ROS/Introduction&quot;&gt;공식 문서&lt;/a&gt;를 참고하면 좋다. 참 좋은 이 프레임워크의 문제는 바로 &lt;strong&gt;Linux&lt;/strong&gt; 환경에서만 실행할 수 있다는 것이다. (차세대 버전 &lt;a href=&quot;https://index.ros.org/doc/ros2/&quot;&gt;&lt;strong&gt;ROS2&lt;/strong&gt;&lt;/a&gt;는 &lt;strong&gt;Windows&lt;/strong&gt; 환경도 지원한다. 이 내용은 다음에 다루기로 하자.) 또 하나의 제약(?)은 내가 맥북으로 작업하는 것을 선호한다는 것이다. 그렇다고 &lt;strong&gt;Virtual Box&lt;/strong&gt;를 이용해서 가상 환경을 구축하자니 매끄럽지 않은 환경이 마음에 들지 않았다. 그러다 &lt;strong&gt;VSCode&lt;/strong&gt;를 이용하여 원격 코딩을 할 수 있다는 &lt;a href=&quot;https://code.visualstudio.com/docs/remote/remote-overview&quot;&gt;글&lt;/a&gt;을 보게 되었다.&lt;/p&gt;
&lt;p&gt;준비 사항: Visual Studio Code, Linux 서버&lt;/p&gt;
&lt;p&gt;[1] 우선 &lt;strong&gt;Visual Studio Code&lt;/strong&gt;에서 &lt;strong&gt;Remote - SSH&lt;/strong&gt; 플러그인을 설치한다.&lt;/p&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 630px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/284313f2b43e3f342a6a5ffb37e92df1/ea7fb/1.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 21.51898734177215%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAECAYAAACOXx+WAAAACXBIWXMAAAsTAAALEwEAmpwYAAAA7UlEQVR42k3PvUrEQBSG4VyH5m+ShU1mJjOTbGQHcQs7YbFRLNTCLQQLG0sLG0HwFiwEvTNZb+T1BFG2eODjFC+cpFAz3Nkj/eULau4Yh54YI8YaxnEkhEDXWZxzeGHFQjfc9i1WFeylGXmWkYk8z0nM+p7N5zfnb18sb14JEloeRKyxDIsB7wNBV0Rf49qKToLOWo6CxHVLWZZUSqHEtBN9csfmY8v1+5bx6hkfDYfrFa53NE2DMUbimk4YCViJ6ekmYa31v+le1zVJUSrs6QP+4ol81tKOc/xxT1GXpPspaSbSP9nO/jW9urt/AGexfsvlPqG1AAAAAElFTkSuQmCC&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Visual Studio Code의 Remote - SSH 플러그인 (by. Microsoft)&quot;
        title=&quot;&quot;
        src=&quot;/static/284313f2b43e3f342a6a5ffb37e92df1/f058b/1.png&quot;
        srcset=&quot;/static/284313f2b43e3f342a6a5ffb37e92df1/c26ae/1.png 158w,
/static/284313f2b43e3f342a6a5ffb37e92df1/6bdcf/1.png 315w,
/static/284313f2b43e3f342a6a5ffb37e92df1/f058b/1.png 630w,
/static/284313f2b43e3f342a6a5ffb37e92df1/ea7fb/1.png 788w&quot;
        sizes=&quot;(max-width: 630px) 100vw, 630px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Visual Studio Code의 Remote - SSH 플러그인 (by. Microsoft)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;[2] &lt;strong&gt;Ctrl+Shift+P&lt;/strong&gt;를 누른 후, **Remote-SSH: Connect to Host...**를 선택한다.&lt;/p&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 630px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/720316a69865dc7cf190b2b74f17b716/084e2/2.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 48.734177215189874%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAACXBIWXMAAAsTAAALEwEAmpwYAAABh0lEQVR42o3R226bQBSFYV6htdQqNcYJ9gA2xBibBpjhYIhN7LRy40i56lXV93+GvwOpqkSVnFx8Gmlma7O0MLJMkmUZUmYopfQpaZqaw+HAfn9He9ey3W5p2/bv3Z66rvu5bv6l7s4o61tuty1lsyNKFNGNZKXPTpzl/3yVhVb24qx49dZZpznCnWEM6l8Mmt8Mm58EzQm3esDTbPWdT9GOz6sdg0XNx+vqhc1/PuiZiysHw0y+MZQPiGxP0UXPK6QqSHQVy1VMGK1xvDn21GEi3LMsa4xhySOj/JFZfqBUkiC4xvd97CubiT1hOpkgpgJHvM2yLIxxeo8pfzBTB1SW0v0kpXJdsCJJUlzXQwjnXZ4XqiOmOumE95R5Tllt+qXrONZJg37Qcdz3L7SrR6zyCX9zpN1tWcU3TJ2uEz2k0zneDHc2x5v75+mPj8eXGJeq6/DUd7gpC9JUsliEhGGkLQmX0auk5/QLv4iAC7FgJHQK1+k7e+b2PM/Dtm2GwyGmab5hxB/EOTTH202ylAAAAABJRU5ErkJggg==&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;Ctrl+Shift+P -&amp;gt; Remote-SSH: Connect to Host...&quot;
        title=&quot;&quot;
        src=&quot;/static/720316a69865dc7cf190b2b74f17b716/f058b/2.png&quot;
        srcset=&quot;/static/720316a69865dc7cf190b2b74f17b716/c26ae/2.png 158w,
/static/720316a69865dc7cf190b2b74f17b716/6bdcf/2.png 315w,
/static/720316a69865dc7cf190b2b74f17b716/f058b/2.png 630w,
/static/720316a69865dc7cf190b2b74f17b716/084e2/2.png 632w&quot;
        sizes=&quot;(max-width: 630px) 100vw, 630px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Ctrl+Shift+P -&gt; Remote-SSH: Connect to Host...&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;[3] 접속할 호스트 이름과 비밀번호를 입력한다. (e.g. &lt;a href=&quot;mailto:root@127.0.0.1&quot;&gt;root@127.0.0.1&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;[4] 원격 서버에 접속하여 작업을 이어나간다.&lt;/p&gt;
&lt;p&gt;&lt;span
      class=&quot;gatsby-resp-image-wrapper&quot;
      style=&quot;position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 171px; &quot;
    &gt;
      &lt;a
    class=&quot;gatsby-resp-image-link&quot;
    href=&quot;/static/56acb2a2f7741732d3b84afc1b653778/1d8ec/3.png&quot;
    style=&quot;display: block&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    &lt;span
    class=&quot;gatsby-resp-image-background-image&quot;
    style=&quot;padding-bottom: 174.68354430379748%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAjCAYAAACU9ioYAAAACXBIWXMAAAsTAAALEwEAmpwYAAAEcklEQVR42o1WTXPiRhD1NZccU6kKBiMkhATiGwHmG2yMbfyJYQ1bi42xU7V27e7BtdlK5Zpjrvm9L/3GlmM+jDlMjTSa6Xndr/u1NpLJFDji8QQSiSQSlom0E1Xv0WgUsZgjcwy2/bTm7Z8fqVRa9sawoesGQiEdpVIJEdNEdvwXIudfkYha2G3vodFootlsot8fIJvNQdNC4JllIxQKYcMwwuBIpzOwxKDdf0Sg9wOZRBzHxyfY3W1jb6+DXu8C+XxBGQyHTXjnXg8CezFoWTZ0zoaGWMRUN/r9AfUtGNTUZo5lhhYM8jBd4/Pj4yMeHh7U+3R6i9FohJubKe7vH15cXgthWNzl5my+gkq1qQ55hJAsPptmRF2+FkLXzYvRCKZnWfR348i622jU62qdaGu1+kp0CwYLhQIiEQt/37cwOXVRqjQxmUxwcnKKwWCATqezEt2Cy57hzYAOLRTGViAIn8+viOF4j5AFhHVxz7ZtXF9fYf9gH+VyReXeaPRR1iZwnPibRr0wzCBkJXCuFMrIpXOICxFuvigXNVCX+JGQZcZ0XdJK08XonEGWDm/6LaNhM6VLLlrIpmIIGzoCW8E3jBmwLQv5bFIZnnG5XKnACtv49dbELxc69ooFTC47SCUctXkZu6GQASdmo1XNI6TK7xVCWudBvxGCJtWiy2bfph+aVMkqIggm+JxOMwirtRpMWfxH3r87DlyJ3cfhSKXNqtx7kxRWgy5ofjR2MCzXEBexaIswVKu1d9NlaR7GpMSMsDBp+SXQPvkYVvq3Kl3ezUNdSPmj9xO+HP+MTL6Ob9++Kgmj2jBt6NpapafiwAWdSIMirlty0JJ1Q9VvILCFLUkdzhzrlZ7crGsa/j3rYFwtQRNEhweHODo6VsndbLbQau2oeS35okGi+bORx1EmDne7hNvpVFg+wXh8pVwn453O/kzKvG1QPlK+nGwe0XhSoWDcGD+qOV32+gnXqUxcf412xiBf2LX6l1fiVls1rZubG9zd/Y7Pn+8VyvPznsxjnJ2dqx5DeaNhXjKT2N7gzRRWR9KFGykYVGw2MOYp50wmq+qezxxvIvSYTseEactASjYzXgdCDHsJO16hUJxpWPP5uWhQJKiYkR4SNVEolhTDbKHd7pHSxcPDrjq0HsvPQxNRYD6SgE0RB+YdUfl8m+r5f2TmaoOqJwvCSzeCTlxHud7ElRAxGHxQij0UoWBvYQiI9uLiYgHp0hjGzDAiomuMF4Uhl3NRLG6jLb8l7HzsglwjIavz8DmGSceGFaGCZ5QhEuK6rjLESygWZJ5Mz/fppQZLGRvxiC65uIPb2zt8+jQW9/ri9rUarBb+UQyHwxfBWEmKLbdbkn+eGHgVwlYakNbKdz5zJlmcPebnKsVQmnjSG6Jab6Eo7rEyut2uqmOmENGxSoiYM4WCBG1L3dM43d94XeiWdLDm7gGyuYIKOhk9PT1TCc7DHFxrP/83krT9/QMVz6eetPDnIEiVADzlGt3xBhF4Lnph4Jh3+T+rcDsDIX5UtgAAAABJRU5ErkJggg==&apos;); background-size: cover; display: block;&quot;
  &gt;&lt;/span&gt;
  &lt;img
        class=&quot;gatsby-resp-image-image&quot;
        alt=&quot;원격 서버의 프로젝트 폴더 구성&quot;
        title=&quot;&quot;
        src=&quot;/static/56acb2a2f7741732d3b84afc1b653778/1d8ec/3.png&quot;
        srcset=&quot;/static/56acb2a2f7741732d3b84afc1b653778/c26ae/3.png 158w,
/static/56acb2a2f7741732d3b84afc1b653778/1d8ec/3.png 171w&quot;
        sizes=&quot;(max-width: 171px) 100vw, 171px&quot;
        style=&quot;width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;&quot;
        loading=&quot;lazy&quot;
        decoding=&quot;async&quot;
      /&gt;
  &lt;/a&gt;
    &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;원격 서버의 프로젝트 폴더 구성&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gazebo&lt;/strong&gt; 등의 GUI 환경 조건이 추가된다면 어쩔 수 없이 &lt;strong&gt;Virtual Box&lt;/strong&gt;로 가상 머신을 구축하게 되겠지만, &lt;strong&gt;ROS-Base&lt;/strong&gt; 수준에서는 위와 같은 방법으로 개발 환경을 갖출 수 있다.&lt;/p&gt;
&lt;p&gt;-끝-&lt;/p&gt;</content:encoded></item><item><title><![CDATA[[Python] TCP 소켓 확장하기 (recv)]]></title><description><![CDATA[…]]></description><link>https://rapsealk.github.io/python-tcp-socket-recv/</link><guid isPermaLink="false">https://rapsealk.github.io/python-tcp-socket-recv/</guid><pubDate>Tue, 03 Sep 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;연구실의 기술이전 프로젝트를 진행하던 중, 요구조건이 추가됨에 따라 네트워크쪽 기능을 구현하게 되었다.&lt;/p&gt;
&lt;p&gt;요구되는 기능은 드론에 장착된 라즈베리파이에서 원격 클라우드 서버에 접속하여 데이터를 교환하는 것으로, 매우 기본적인 것이었다. (사실 그렇게 생각했지만 구현하는 과정에서 많은 우여곡절이 있었다.)&lt;/p&gt;
&lt;p&gt;그 우여곡절들을 겪으며 소켓에 대해 배운 내용들을 차례대로 정리해보려고 한다.&lt;/p&gt;
&lt;p&gt;[1] TCP: 동적인 크기의 패킷을 온전하게 전달하기. (struct)&lt;/p&gt;
&lt;p&gt;[2] recv와 send 들여다보기&lt;/p&gt;
&lt;p&gt;우선, 소켓 서버 구현에 사용할 언어는 연구실에서 제일 자주 사용하는 Python3으로 선택하였다. (클라이언트는 C로 구현되었다.) 그리고 코드 작성을 시작하였다. 아래는 간략하게 적은 내용이다.&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;python&quot;&gt;&lt;pre class=&quot;language-python&quot;&gt;&lt;code class=&quot;language-python&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;import&lt;/span&gt; socket

sock &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; socket&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;socket&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;socket&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;AF_INET&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; socket&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;SOCK_STREAM&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# TCP 소켓&lt;/span&gt;

&lt;span class=&quot;token triple-quoted-string string&quot;&gt;&quot;&quot;&quot; 서버/클라이언트 설정 &quot;&quot;&quot;&lt;/span&gt;

conn&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; addr &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; sock&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;accept&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;

message &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; conn&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;recv&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;1024&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;위와 형태로 작성한 후, 로컬 환경에서 테스트를 마치고 클라우드에 올린 후 실행하였다.&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;(이는 후에 Consumer 패턴을 추가하여 개선하였다.)&lt;/p&gt;
&lt;p&gt;소켓과 관련된 유틸리티 코드는 아래의 저장소에 모아두려고 한다.&lt;/p&gt;
&lt;a class=&quot;og-card&quot; href=&quot;https://github.com/rapsealk/socketx&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;span class=&quot;og-card-body&quot;&gt;&lt;span class=&quot;og-card-title&quot;&gt;GitHub - rapsealk/socketx&lt;/span&gt;&lt;span class=&quot;og-card-desc&quot;&gt;Contribute to rapsealk/socketx development by creating an account on GitHub.&lt;/span&gt;&lt;span class=&quot;og-card-host&quot;&gt;github.com&lt;/span&gt;&lt;/span&gt;&lt;img class=&quot;og-card-image&quot; src=&quot;https://opengraph.githubassets.com/51aadc51632cc94214486f4376273deb2db2ee88802a8f3506dd67bd727773d3/rapsealk/socketx&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; onerror=&quot;this.onerror=null;this.src=&apos;https://www.google.com/s2/favicons?domain=github.com&amp;sz=128&apos;;&quot; /&gt;&lt;/a&gt;</content:encoded></item><item><title><![CDATA[2019년 07월 05일]]></title><description><![CDATA[Pixhawk 2.1 (Cube)는 PX4 FMU Version 3을 사용해야한다. (https://docs.px4.io/en/flight_controller/pixhawk_series.html#fmu-versions)]]></description><link>https://rapsealk.github.io/2019-07-05/</link><guid isPermaLink="false">https://rapsealk.github.io/2019-07-05/</guid><pubDate>Fri, 05 Jul 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Pixhawk 2.1 (Cube)는 PX4 FMU Version 3을 사용해야한다. (&lt;a href=&quot;https://docs.px4.io/en/flight_controller/pixhawk_series.html#fmu-versions&quot;&gt;https://docs.px4.io/en/flight_controller/pixhawk_series.html#fmu-versions&lt;/a&gt;)&lt;/p&gt;</content:encoded></item><item><title><![CDATA[2019년 07월 04일]]></title><description><![CDATA[오늘은 두 가지 문제가 발생했다. [1] 첫번째는 두 대의 Pixhawk에서 Arming이 걸리지 않는 문제였다. QGroundControl로 확인한 결과, PREFLIGHT FAIL: EKF HIGH IMU ACCEL BIAS…]]></description><link>https://rapsealk.github.io/2019-07-04/</link><guid isPermaLink="false">https://rapsealk.github.io/2019-07-04/</guid><pubDate>Thu, 04 Jul 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;오늘은 두 가지 문제가 발생했다.&lt;/p&gt;
&lt;p&gt;[1]&lt;/p&gt;
&lt;p&gt;첫번째는 두 대의 Pixhawk에서 Arming이 걸리지 않는 문제였다.&lt;/p&gt;
&lt;p&gt;QGroundControl로 확인한 결과, &lt;strong&gt;PREFLIGHT FAIL: EKF HIGH IMU ACCEL BIAS&lt;/strong&gt; 라는 경고문를 발견할 수 있었다. 즉, Preflight 검사 과정에서 문제가 있었던 것이다.&lt;/p&gt;
&lt;p&gt;Github issue(&lt;a href=&quot;https://github.com/PX4/Firmware/issues/9241&quot;&gt;https://github.com/PX4/Firmware/issues/9241&lt;/a&gt;)를 찾아본 결과 QGroundControl을 통해 COM_ARM_EKF_AB 파라미터 값을 변경하면 된다고 한다. 기본값은 0.0017이라고 하는데 초기값이 0.0024로 설정되어 있었다. 이 값을 변경해도 큰 문제는 없다고 하여 기존값의 두 배인 0.0048로 수정하였더니 이 문제는 해결되었다.&lt;/p&gt;
&lt;p&gt;[2]&lt;/p&gt;
&lt;p&gt;두번째는 Raspberry Pi쪽 (정확히는 ROS) 문제였다. 세 대의 드론을 배치하고 OFFBOARD를 통해 Arming 명령을 주고 있었는데, 이전까지 잘 작동하던 리더(SYSTEM_ID #1)가 작동하지 않았다. QGroundControl에서는 아무런 메시지를 확인할 수 없었고, 텔레메트리를 통해서는 Arming이 잘 걸렸다. 가만히 살펴보던 중 다른 두 대의 라즈베리파이 전원 불빛은 solid한 상태인데, 리더의 불빛만 깜빡이는 것을 볼 수 있었다. 따라서 연구실로 복귀하여 라즈베리파이를 검사해봤다.&lt;/p&gt;
&lt;p&gt;모니터와 연결하여 부팅해보니 기존의 GUI가 아닌 CUI로 접속이 되었다. 혹시나 싶어 ROS log 파일들을 삭제(rm -rf ~/.ros/log)하니 다시 GUI로 돌아왔다. 아마 CUI로 접속되며 로그인 무한 대기 상태에 빠져서 Background service가 실행되지 않은 것 같다.&lt;/p&gt;</content:encoded></item><item><title><![CDATA[Hexo 블로그 시작하기]]></title><description><![CDATA[Github pages 기능을 이용하여 정적 페이지 호스팅이 가능하다. 이번에는 Node.js 기반의 Hexo 프레임워크를 이용하여 블로그를 생성하고 호스팅하는 과정을 다뤄본다.]]></description><link>https://rapsealk.github.io/hexo-blog/</link><guid isPermaLink="false">https://rapsealk.github.io/hexo-blog/</guid><pubDate>Sat, 23 Feb 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Github pages 기능을 이용하여 정적 페이지 호스팅이 가능하다.&lt;/p&gt;
&lt;p&gt;이번에는 Node.js 기반의 Hexo 프레임워크를 이용하여 블로그를 생성하고 호스팅하는 과정을 다뤄본다.&lt;/p&gt;</content:encoded></item><item><title><![CDATA[채점 자동화 제작기]]></title><description><![CDATA[2018년 2학기, 1학년 프로그래밍입문(C언어) 과목 조교를 수행하며 실습을 진행할 필요가 있었다. 한 반에 60여명의 학생이 있었고,]]></description><link>https://rapsealk.github.io/grading-automation/</link><guid isPermaLink="false">https://rapsealk.github.io/grading-automation/</guid><pubDate>Tue, 18 Dec 2018 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;2018년 2학기, 1학년 프로그래밍입문(C언어) 과목 조교를 수행하며 실습을 진행할 필요가 있었다.&lt;/p&gt;
&lt;p&gt;한 반에 60여명의 학생이 있었고,&lt;/p&gt;</content:encoded></item><item><title><![CDATA[Geth 노드에 새로운 계정 추가하기]]></title><description><![CDATA[이더리움(Ethereum) 기반의 dApp을 만들면서 geth를 이용하여 프라이빗 노드를 실행하도록 했습니다. 우선 geth는 아래의 간단한 옵션을 추가하여 실행하도록 합니다. geth가 성공적으로 실행된다면 하나의 Etherbase…]]></description><link>https://rapsealk.github.io/geth-new-account/</link><guid isPermaLink="false">https://rapsealk.github.io/geth-new-account/</guid><pubDate>Wed, 01 Aug 2018 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;이더리움(Ethereum) 기반의 dApp을 만들면서 geth를 이용하여 프라이빗 노드를 실행하도록 했습니다. 우선 geth는 아래의 간단한 옵션을 추가하여 실행하도록 합니다.&lt;/p&gt;
&lt;div class=&quot;gatsby-highlight&quot; data-language=&quot;text&quot;&gt;&lt;pre class=&quot;language-text&quot;&gt;&lt;code class=&quot;language-text&quot;&gt;~/ethereum$ geth --datadir . --rpcapi personal,db,eth,net,web3 console --rpc --dev&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;geth가 성공적으로 실행된다면 하나의 Etherbase 계정이 자동으로 생성될 것입니다. 이더리움 상의 트랜잭션은 기본적으로 두 개의 계좌 사이의 상호작용이기 때문에 하나 이상의 계정을 더 만들 필요가 있습니다. 따라서, 처음에는 아래와 같은 메서드를 통해 계정을 추가 생성하도록 했습니다.&lt;/p&gt;
&lt;p&gt;const account = await web3.eth.accounts.create(/*&lt;/p&gt;
&lt;p&gt;@entropy: at least 32 charactersd&lt;/p&gt;
&lt;p&gt;*/);&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://web3js.readthedocs.io/en/1.0/web3-eth-accounts.html#create&quot;&gt;web3.eth.accounts.create&lt;/a&gt;는 계정의 복잡도를 높이기 위해 옵션으로 32자 이상의 문자열 entropy를 파라미터로 받습니다. 그리고 account 객체를 반환합니다. 그 형태는 아래와 같습니다.&lt;/p&gt;
&lt;p&gt;web3.eth.accounts.create();
&gt; {
address: &quot;0xb8CE9ab6943e0eCED004cDe8e3bBed6568B2Fa01&quot;,
privateKey: &quot;0x348ce564d427a3311b6536bbcff9390d69395b06ed6c486954e971d960fe8709&quot;,
signTransaction: function(tx){...},
sign: function(data){...},
encrypt: function(password){...}
}&lt;/p&gt;
&lt;p&gt;생성된 계정의 주소는 account.address의 형태로 접근할 수 있습니다.&lt;/p&gt;
&lt;p&gt;○ ○ ○&lt;/p&gt;
&lt;p&gt;하지만 문제점이 발생했습니다. 생성된 계정으로 트랜잭션을 발생시키려고 했으나 다음과 같은 에러를 발생시키며 동작하지 않았습니다.&lt;/p&gt;
&lt;p&gt;const transaction = await TokenContract.methods.airdrop(address, AIRDROP_).send({&lt;/p&gt;
&lt;p&gt;from: account.address,&lt;/p&gt;
&lt;p&gt;gas: web3.utils.toWei(&apos;6000000&apos;, &apos;wei&apos;)&lt;/p&gt;
&lt;p&gt;});&lt;/p&gt;
&lt;p&gt;  &lt;strong&gt;sender account not recognized&lt;/strong&gt;  &lt;/p&gt;
&lt;p&gt;web3.eth.accounts.create는 이더리움에서 사용하는 알고리즘을 이용하여 동일한 형태의 계정을 생성할 뿐, 네트워크에는 영향을 주지 않아서 그런 것으로 예상됩니다. 따라서 아래와 같이 &lt;a href=&quot;https://web3js.readthedocs.io/en/1.0/web3-eth-personal.html#newaccount&quot;&gt;web3.eth.personal.newAccount&lt;/a&gt;를 이용하여 계정을 생성해주도록 했습니다.&lt;/p&gt;
&lt;p&gt;※ 주의: 이 글에서는 Web3 라이브러리 중 하나인 web3.js를 사용하고 있습니다. web3j등 다른 언어의 모듈을 사용할 경우 약간의 차이가 있을 수 있습니다.&lt;/p&gt;</content:encoded></item><item><title><![CDATA[음성을 통한 감정 인식 (1701.08071)]]></title><description><![CDATA[작업 중 (2018-03-07 ~) Emotion Recognition From Speech With Recurrent Neural Network 초록 (Abstract…]]></description><link>https://rapsealk.github.io/speech-emotion-recognition/</link><guid isPermaLink="false">https://rapsealk.github.io/speech-emotion-recognition/</guid><pubDate>Wed, 07 Mar 2018 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;작업 중 (2018-03-07 ~)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://arxiv.org/pdf/1701.08071.pdf&quot;&gt;Emotion Recognition From Speech&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://arxiv.org/pdf/1701.08071.pdf&quot;&gt;With Recurrent Neural Network&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;초록 (Abstract)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;이 논문에서는 음성을 통해 감정을 인식하는 과정을 다룬다. 제안된 접근법은 작은 단위로 쪼개진 연속된 음성 특징(sequential acoustic features)으로 학습된 &lt;a href=&quot;https://arxiv.org/pdf/1312.6026.pdf&quot;&gt;Deep RNN&lt;/a&gt;을 사용한다. 동시에 특별한 확률적 특성(probabilistic-nature)인 &lt;a href=&quot;https://www.cs.toronto.edu/~graves/icml_2006.pdf&quot;&gt;CTC&lt;/a&gt; 손실 함수는 감정적 부분과 비감정적 부분이 모두 포함된 긴 발화도 고려할 수 있도록 한다. 이런 접근법은 두 가지 효과를 보이게 된다. 하나는 해당 분야의 최근 발전 결과물들과 비교가 가능하다는 점이다. 또다른 점은 인간이 같은 과정을 처리했을 때의 성능을 수치화할 수 있다는 점이다.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. Introduction&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;최근 몇년동안 데이터 사이언티스트들에게 인간-컴퓨터 상호작용은 더욱 더 흥미로운 주제로 다가왔다. 대부분의 연구는 인간과 컴퓨터 사이의 소통을 더 자연스럽게 만드는 것에 목표를 두었다. 당연하게도 이 목표를 위해서는 2개에 초점을 두면 되는데: 바로 사람이 컴퓨터를 잘 이해하도록 하는 것과 그 정반대의 작업이다. STT(Speech to Text)라고 불리는 음성 인식에는 큰 진보가 있었다. 오늘날 기계는 인간이 하는 말을 대부분 이해할 수 있으며, Siri와 같이 스마트폰을 통해 목소리로 제어하는 서비스들도 이미 널리 사용되고 있다. Totally, 컴퓨터는 사람이 &lt;strong&gt;&quot;무엇을&quot;&lt;/strong&gt; 말했는지는 알 수 있다. 하지만 음성에는 &lt;strong&gt;&quot;누가&quot;&lt;/strong&gt;, &lt;strong&gt;&quot;어떻게&quot;&lt;/strong&gt; 말했는지 등의 더 많은 정보가 담겨있다. 두 번째 질문은 음성으로부터 감정을 추론하는 방법 탐구에 동기부여를 해준다.&lt;/p&gt;</content:encoded></item></channel></rss>