<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.9.5">Jekyll</generator><link href="https://github.com/feed.xml" rel="self" type="application/atom+xml" /><link href="https://github.com/" rel="alternate" type="text/html" /><updated>2024-07-10T05:43:14+00:00</updated><id>https://github.com/feed.xml</id><title type="html">Dream Console</title><subtitle>Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description.</subtitle><author><name>DreamConsole</name></author><entry><title type="html">V8 빌드하기</title><link href="https://github.com/library/V8_build_manual/" rel="alternate" type="text/html" title="V8 빌드하기" /><published>2024-06-19T00:00:00+00:00</published><updated>2024-06-19T00:00:00+00:00</updated><id>https://github.com/library/V8_build_manual</id><content type="html" xml:base="https://github.com/library/V8_build_manual/"><![CDATA[<h1 id="windows">Windows</h1>

<p>미리 준비할 것:</p>
<ul>
  <li>파이썬 설치 (3.12.4)</li>
  <li>7z 설치 (7z를 설치한 후, 7z.exe 위치에 대하여, 환경변수 경로 설정을 해준다.)</li>
  <li>ninja 빌드 툴 (https://github.com/ninja-build/ninja/releases) (설치 후, ninja.exe 위치에 대하여 환경변수 경로 설정을 해준다)</li>
  <li>** 모든 환경 변수, 경로는 계정 변수(path) 아닌, 시스템 변수(path)로 할 것</li>
</ul>

<p>$&gt; powershell -command “Invoke-WebRequest https://storage.googleapis.com/chrome-infra/depot_tools.zip -O depot_tools.zip”</p>

<p>$&gt; 7z x depot_tools.zip -o*</p>

<p>$&gt; set PATH=%CD%\depot_tools;%PATH% (즉, depot_tools, 환경변수 경로 설정을 해준다)</p>

<p>visual studio 2019 community 설치<br />
visual studio installer 실행</p>
<ul>
  <li>c++를 사용한 데스크톱 개발</li>
  <li>설치 세부정보
    <ul>
      <li>최신 빌드 도구용 C++ ATL</li>
      <li>최신 빌드 도구용 C++ MFC</li>
    </ul>
  </li>
</ul>

<p>windows SDK 10.0.19041.0 설치  (winsdksetup.exe)
(https://developer.microsoft.com/ko-kr/windows/downloads/sdk-archive/)</p>
<ul>
  <li>Debugging tools for windows 포함 시킬 것</li>
</ul>

<p>$&gt; set GYP_MSVS_VERSION=2019 &amp;&amp; set DEPOT_TOOLS_WIN_TOOLCHAIN=0</p>

<p>$&gt; gclient config https://github.com/ncsoft/v8.git</p>

<p>$&gt; gclient sync –with_branch_heads -r 9.7.106.9999
(이 시점에 파이썬 설치가 되어 있어야 한다)</p>

<p>$&gt; cd v8</p>

<p>$&gt; gn gen out/x64.release -args=”v8_use_external_startup_data=false v8_monolithic=true v8_enable_pointer_compression=false v8_enable_i18n_support=false is_debug=false v8_static_library=true is_clang=false”</p>

<p>$&gt; ninja -C out/x64.release v8_monolith</p>]]></content><author><name>DreamConsole</name></author><category term="Library" /><category term="V8" /><category term="Javascript" /><category term="Build" /><summary type="html"><![CDATA[Windows]]></summary></entry><entry><title type="html">리눅스(우분투) 각종 팁</title><link href="https://github.com/tips/Linux-Ubuntu-tips/" rel="alternate" type="text/html" title="리눅스(우분투) 각종 팁" /><published>2024-06-12T00:00:00+00:00</published><updated>2024-06-12T00:00:00+00:00</updated><id>https://github.com/tips/Linux%20Ubuntu%20tips</id><content type="html" xml:base="https://github.com/tips/Linux-Ubuntu-tips/"><![CDATA[<h1 id="팁-모음">팁 모음</h1>

<p>우분투 22.04.4 버전을 설치해서 사용 중이다.
 (주로 VitualBox같은 가상화 툴로 게스트 OS로 사용하고 있다)</p>

<h2 id="버츄얼박스virtualbox-우분투-터미널-안-열림-해결-방법">버츄얼박스(VirtualBox) 우분투 터미널 안 열림 해결 방법</h2>

<p>버츄얼박스에 우분투를 설치했는데 터미널(Terminal)이 열리지 않는 현상이 발생했다. 이러한 현상은 무인 설치(Unattended Install)를 진행하면 발생하는 현상</p>

<p>Settings -&gt; Region &amp; Langauage -&gt; Language를 English(United States)에서 ‘English(Canada)’로 바꿔준다</p>

<p>로그아웃 후 다시 로그인, 끝!</p>

<h2 id="한글-입력-세팅">한글 입력 세팅</h2>

<ul>
  <li>
    <p>sudo apt upgrade ibus-hangul</p>
  </li>
  <li>
    <p>Settings -&gt; Keyboard -&gt; Input sources
입력소스를 그냥 Korean이 아니라 Korea(Hangul) 로 해줄 것!</p>
  </li>
</ul>

<p>-한영 전환키 : Super(윈도키 등) + space</p>

<h2 id="python-명령어를-인식-못할-경우-python3는-설치되어-있는데도">python 명령어를 인식 못할 경우 (python3는 설치되어 있는데도)</h2>

<p>python-is-python3을 설치한다.</p>

<p>-sudo apt install python-is-python3</p>]]></content><author><name>DreamConsole</name></author><category term="tips" /><category term="Linux" /><category term="Ubuntu" /><category term="OS" /><summary type="html"><![CDATA[팁 모음]]></summary></entry><entry><title type="html">터미널에서 git / github 사용해보기</title><link href="https://github.com/tips/using-git-and-github-on-terminal/" rel="alternate" type="text/html" title="터미널에서 git / github 사용해보기" /><published>2024-06-06T00:00:00+00:00</published><updated>2024-06-06T00:00:00+00:00</updated><id>https://github.com/tips/using%20git%20and%20github%20on%20terminal</id><content type="html" xml:base="https://github.com/tips/using-git-and-github-on-terminal/"><![CDATA[<h1 id="터미널에서-git--github-사용해보기">터미널에서 git / github 사용해보기</h1>

<p>안녕하세요 오늘은 터미널(쉘이라고도 하죠)에서 깃을 사용하는 법을 정리해보겠습니다. 😀 💻</p>

<p>편리한 Github Desktop 이나 SourceTree 같은 편리한 깃 클라이언트 프로그램들이 있지만 
때로는 터미널에서 깃을 다루어야 할 때가 있죠. 오늘은 터미널에서 ssh 방식을 이용해 깃을 
사용하는 방법을 정리해봅니다.</p>

<h2 id="터미널을-연다">터미널을 연다</h2>

<h2 id="git-을-설치한다-sudo-apt-get-install-git">git 을 설치한다 (sudo apt-get install git)</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$&gt; sudo apt-get install git
</code></pre></div></div>

<p>깃을 설치했으니 바로 깃허브 리포지터리에서 뭔가를 다운로드(clone) 해 볼 수 있겠죠?
그러나</p>

<blockquote>
  <p>remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.</p>
</blockquote>

<p>이런 에러가 아마도 뜰 것입니다. 정책상 깃허브에서 이제는 터미널에서 패스워드로 인증하는 방식은 없앴기 때문이죠.
저 링크를 따라가보면 ssh 방식을 사용하라고 안내를 할 것입니다.</p>

<h2 id="git-ssh-설정을-한다">git ssh 설정을 한다.</h2>

<ol>
  <li>
    <p>cd ~/.ssh 명령으로 디렉토리 이동을 합니다.</p>
  </li>
  <li>
    <p>ssh-keygen 명령으로 ssh key를 생성합니다</p>
  </li>
</ol>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$&gt; ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
</code></pre></div></div>

<ol>
  <li>ls 명령으로 확인해보면, id_rsa, id_rsa.pub 두 개 파일이 생성된 것을 볼 수 있습니다.</li>
</ol>

<ul>
  <li>참고는 rsa는 암호화 알고리즘을 말하는 것으로 알고리즘을 만든 사람들의 이름을 따서 붙인 이름입니다.
(Rivest-Shamir-Adleman (RSA) encryption algorithm)</li>
</ul>

<ol>
  <li>cat id_rsa.pub 명령으로 키를 확인합니다. 
ssh-rsa 로 시작해서 이메일 주소로 끝나는 긴 암호화된 문자열이 나옵니다.</li>
</ol>

<p>이것을 복사해서 깃허브에 연결해주어야 합니다.</p>

<ol>
  <li>깃허브 계정 설정에서도 ssh key를 새로 생성하고, 위의 터미널에서 생성된 키를 복사하여 연결해준다.</li>
</ol>

<blockquote>
  <p>github account setting -&gt; ssh and gpg key 항목 -&gt; new ssh key -&gt; 복사한 키 넣어주기</p>
</blockquote>

<h2 id="깃-클론clone-해보기">깃 클론(clone) 해보기</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>git clone git@github.com:[username]/[repository name].git
</code></pre></div></div>

<p>이제 저장소에 있는 파일들이 잘 받아 지는 것을 볼 수 있습니다.</p>

<h2 id="깃-커밋commit-해보기">깃 커밋(commit) 해보기</h2>

<p>클론을 할 때는 물어보지 않았지만, 처음 커밋을 할 때는 신원 정보(이메일과 주소)를 요청하는 메시지를 보게 될 것입니다.
아래와 같이 설정해주시면 됩니다.</p>

<blockquote>
  <p>git config –global user.email “you@example.com”
  git config –global user.name “내 이름”</p>
</blockquote>

<h2 id="터미널에서-깃-명령어-정리">터미널에서 깃 명령어 정리</h2>

<p>자 이제 기본적인 설명은 다 된것 같으니. 깃에서 자주 쓰이는 기본 명령어들만 정리해보겠습니다.</p>

<ul>
  <li>git clone</li>
  <li>git add</li>
  <li>git add . : 이렇게 점을 추가해서 명령을 내리면, 변경된 모든 파일을 커밋 목록에 추가한다.</li>
  <li>git commit -m “메시지”</li>
  <li>git push</li>
  <li>git pull</li>
  <li>git restore . :  discard all local changes</li>
</ul>

<p>깃 클라이언트 프로그램을 써 본 분들은 위 내용만 보아도 어떤 명령인지 알 수 있겠죠.😀</p>]]></content><author><name>DreamConsole</name></author><category term="tips" /><category term="git" /><category term="Github" /><category term="terminal" /><summary type="html"><![CDATA[터미널에서 git / github 사용해보기]]></summary></entry><entry><title type="html">우분투 배터리 유틸</title><link href="https://github.com/tutorial/Ubuntu-%EB%B0%B0%ED%84%B0%EB%A6%AC-%EC%9C%A0%ED%8B%B8/" rel="alternate" type="text/html" title="우분투 배터리 유틸" /><published>2020-08-09T00:00:00+00:00</published><updated>2020-08-09T00:00:00+00:00</updated><id>https://github.com/tutorial/Ubuntu%20%EB%B0%B0%ED%84%B0%EB%A6%AC%20%EC%9C%A0%ED%8B%B8</id><content type="html" xml:base="https://github.com/tutorial/Ubuntu-%EB%B0%B0%ED%84%B0%EB%A6%AC-%EC%9C%A0%ED%8B%B8/"><![CDATA[<h1 id="우분투-배터리-유틸">우분투 배터리 유틸</h1>

<p>맥북에어 5,2(2012년 모델)에 우분투를 설치해서 사용 중이다.
노트북 운영체제로 우분트를 사용하게 되면 항상 발생하는 이슈가 배터리 문제이다.
이 문제를 개선해주는 툴 몇개를 소개한다.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>1) TLP
2) Slimbook Battery
3) Powertop
</code></pre></div></div>

<p>차례대로 설치해보자</p>

<h2 id="tlp">TLP</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>sudo add-apt-repository ppa:linrunner/tlp
sudo apt update
sudo apt install tlp
</code></pre></div></div>

<p>설치 과정이 모두 끝났으면 다음을 실행</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>sudo tlp start

//active 여부 확인
sudo tlp-stat -b

//Status 및 Version 확인 가능
tlp-stat -s
</code></pre></div></div>

<p>재부팅 이후에도 건드릴게 없다.</p>

<h2 id="powertop">Powertop</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>sudo apt install powertop

//실행법
sudo powertop
</code></pre></div></div>

<h2 id="slimbook-batter">Slimbook Batter</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>//PPA저장소 추가
sudo add-apt-repository ppa:slimbook/slimbook

sudo apt update

sudo apt install slimbookbattery
</code></pre></div></div>]]></content><author><name>DreamConsole</name></author><category term="tutorial" /><category term="Ubuntu" /><category term="OS" /><summary type="html"><![CDATA[우분투 배터리 유틸]]></summary></entry><entry><title type="html">멀티플레이 게임 개발 in 유니티 &amp;amp; 미러(Mirror) (1)</title><link href="https://github.com/game%20programming/multiplayer-programming-in-Unity-and-Mirror/" rel="alternate" type="text/html" title="멀티플레이 게임 개발 in 유니티 &amp;amp; 미러(Mirror) (1)" /><published>2020-03-16T00:00:00+00:00</published><updated>2020-03-16T00:00:00+00:00</updated><id>https://github.com/game%20programming/multiplayer%20programming%20in%20Unity%20and%20Mirror</id><content type="html" xml:base="https://github.com/game%20programming/multiplayer-programming-in-Unity-and-Mirror/"><![CDATA[<h1 id="멀티플레이-게임-개발-in-유니티--미러mirror-1">멀티플레이 게임 개발 in 유니티 &amp; 미러(Mirror) (1)</h1>

<h2 id="참고-링크">참고 링크</h2>

<ul>
  <li><a href="https://assetstore.unity.com/packages/tools/network/mirror-129321?locale=ko-KR">미러 에셋스토어</a></li>
  <li><a href="https://www.youtube.com/watch?v=oR9P0gSaAOU&amp;list=PLkx8oFug638oBYF5EOwsSS-gOVBXj1dkP&amp;index=2">미러 유튜브 강의</a></li>
  <li><a href="https://github.com/vis2k/Mirror">미러 github</a></li>
  <li><a href="https://forum.unity.com/threads/mirror-networking-for-unity-unet-replacement.425437">미러 유니티 포럼</a></li>
</ul>

<h2 id="미러mirror-에-대한-소개">미러(Mirror) 에 대한 소개</h2>

<p>유니티용으로 제작된 하이 레벨 Network API
하위 레벨에서 Telepathy라는 C# TCP Library를 이용하고 있다.
미러와 텔레파시 모두 vis2k라는 팀에서 제작하였는데, 심플하면서도 강력한 네트웍 기능을 제공한다.</p>

<h2 id="특징">특징</h2>

<p>MMO스케일 테스트 완료 (1000개 접속 무리없이 소화)</p>

<p>쉬운 사용과 신뢰성</p>

<p>서버구조와 클라이언트 구조가 동일</p>

<p>클라-서버간 커맨드 통신 방식</p>

<p>서버-클라간 RPC 통신</p>

<p>동기변수(SyncVar): 자동적으로 상태 동기화</p>

<p>미러는 유니티의 기존 네트워킹 시스템인 UNET(지금은 지원 안됨)의 대안 라이브러리로 사용할 수 있다.</p>

<p>호환 유니티 버전: Unity 2018.4 LTS and 2019</p>]]></content><author><name>DreamConsole</name></author><category term="Game Programming" /><category term="Unity" /><category term="network-programming" /><category term="Mirror" /><summary type="html"><![CDATA[멀티플레이 게임 개발 in 유니티 &amp; 미러(Mirror) (1)]]></summary></entry><entry><title type="html">MySQL 사용법</title><link href="https://github.com/tutorial/mysql_tutorial/" rel="alternate" type="text/html" title="MySQL 사용법" /><published>2020-03-16T00:00:00+00:00</published><updated>2020-03-16T00:00:00+00:00</updated><id>https://github.com/tutorial/mysql_tutorial</id><content type="html" xml:base="https://github.com/tutorial/mysql_tutorial/"><![CDATA[<h1 id="mysql-사용법">MySQL 사용법</h1>

<ul>
  <li><a href="##참고사항">참고사항</a></li>
</ul>

<h2 id="기본적인-로그인-방법">기본적인 로그인 방법</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>&gt; mysql -u root -p
</code></pre></div></div>

<p>기본 아이디는 root이고 초기에는 비밀번호는 설정되어 있지 않으니
엔터를 누르면 비밀번호는 건너 뛸 수 있다.</p>

<p>그러면, mysql 쉘이 실행된다.</p>

<h2 id="계정-만들기">계정 만들기</h2>

<p>먼저, 데이터베이스를 mysql로 변경한다.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>mysql&gt; use mysql;
</code></pre></div></div>

<p>mysql 디비의 테이블들을 먼저 확인한다.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>mysql&gt; show tables;
</code></pre></div></div>

<p>이중, user 테이블을 확인할 수 있고, user 테이블의 모든 컬럼을 보려면,</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>mysql&gt; show full columns from user;
</code></pre></div></div>

<p>user 테이블에서 호스트와 유저와 페스워드를 조회해보자.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>mysql&gt; select host, user, password_lifetime from user;
</code></pre></div></div>

<p>유저 생성</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>mysql&gt; create user 'happy123'@'localhost' identified by '123';
</code></pre></div></div>

<p>혹은,</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>mysql&gt; create user happy identified by '123';    
</code></pre></div></div>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>+-----------+------------------+
| host      | user             |
+-----------+------------------+
| %         | happy            |
| localhost | happy123         |
| localhost | mysql.infoschema |
| localhost | mysql.session    |
| localhost | mysql.sys        |
| localhost | root             |
+-----------+------------------+

</code></pre></div></div>

<p>조회해보면, happy의 hosts는 %로 되어있는 것이 볼 수 있다. local유저가 아닌 외부에서도 접속가능하다는 뜻.</p>

<p>마지막으로 만든 계정을 사용할 수 있으려면, 아래와 같이 변경을 해준다.(php버전에 따라 불필요하기도 함.)</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>mysql&gt; ALTER USER happy IDENTIFIED WITH mysql_native_password BY '123';
</code></pre></div></div>

<h2 id="유저-데이터베이스-및-테이블-생성하기">유저 데이터베이스 및 테이블 생성하기</h2>

<p>데이터베이스 생성하기</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>mysql&gt; create database happydb;
</code></pre></div></div>

<p>테이블 생성하기</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>mysql&gt; CREATE TABLE user (
        id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY,
        name VARCHAR(30) NOT NULL,
        email VARCHAR(50) NOT NULL,
        password VARCHAR(30) NOT NULL,
        reg_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
        ); 
</code></pre></div></div>

<p>테이블 확인해보기.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>mysql&gt; show tables;
mysql&gt; select * from user;
</code></pre></div></div>

<p>테이블에 데이터 넣어보기</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>mysql&gt; INSERT INTO user (id, name, email, password)VALUES (1, '김철수', 'test@gmail.com', '1234');
</code></pre></div></div>

<h2 id="php-mysql-연결">php, mysql 연결</h2>

<p>php.ini 파일에서 mysqli를 사용할 수 있도록 설정 (설정 후, php서버를 다시 띄워야 한다)</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>extension=mysqli
</code></pre></div></div>

<h2 id="참고사항">참고사항</h2>

<p>php 터미널 실행</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code> &gt; php -S 127.0.0.1:8080
</code></pre></div></div>

<h2 id="참고자료">참고자료</h2>
<p><a href="https://wani.kr/posts/2016/07/29/window-enviroment-settings/">초간단 Window 10 PHP 환경 구축</a></p>]]></content><author><name>DreamConsole</name></author><category term="tutorial" /><category term="MySQL" /><category term="database" /><summary type="html"><![CDATA[MySQL 사용법]]></summary></entry><entry><title type="html">cocos2d-x 개발환경 설정</title><link href="https://github.com/tutorial/cocos2d-x-%EA%B0%9C%EB%B0%9C%ED%99%98%EA%B2%BD-%EC%84%A4%EC%A0%95/" rel="alternate" type="text/html" title="cocos2d-x 개발환경 설정" /><published>2019-09-10T00:00:00+00:00</published><updated>2019-09-10T00:00:00+00:00</updated><id>https://github.com/tutorial/cocos2d-x%20%EA%B0%9C%EB%B0%9C%ED%99%98%EA%B2%BD%20%EC%84%A4%EC%A0%95</id><content type="html" xml:base="https://github.com/tutorial/cocos2d-x-%EA%B0%9C%EB%B0%9C%ED%99%98%EA%B2%BD-%EC%84%A4%EC%A0%95/"><![CDATA[<h1 id="test">test</h1>
<h2 id="test-1">test</h2>

<p>파이썬 설치(파이썬 3말고 2설치할 것)
파이썬 경로 환경변수(path) 설정 후</p>

<p>ndk 다운로드
C:\Users\jh071\projects\android-ndk-r20</p>

<p>android studio 설치(android sdk 설치)
C:\Users\jh071\AppData\Local\Android\Sdk</p>

<p>코코스2d 새프로젝트 스크립트 실행</p>

<p>C:\Users\jh071\AppData\Local\Android\Sdk</p>

<p>*android build</p>

<p>jdk 있어야 함.
JAVA_HOME 환경변수 설정</p>

<p>키체인필요
jdk 폴더 bin에 가면 keytool이 있다.</p>

<p>cmd 관리자 권한으로 실행할 것
keytool -genkey -alias kestore_iaptest -keyalg RSA -validity 10000 -keystore keystore_iaptest.keystore
비밀번호: dhzpflskU1!</p>

<p>ant.properties에서 키스토어 설정이 잘 되어 있는지 체크</p>

<p>sdk버전 (api 수준) 체크, 구글플레이 콘솔에서 설정한 값과 맞게
AndroidManifest.xml에서 설정할 수 있다.
minSdkVersion
targetSdkVersion</p>

<p>apk가 64비트 코드를 지원하도록 빌드하려면, arm64-v8a추가
In Application.mk:
APP_ABI := armeabi-v7a arm64-v8a</p>

<p>최종:
cocos compile -p android 
혹은
cocos compile -p android -m release</p>]]></content><author><name>DreamConsole</name></author><category term="tutorial" /><category term="Cocos2d-x" /><category term="game-development" /><summary type="html"><![CDATA[test test]]></summary></entry><entry><title type="html">vue.js 공부하기 (1)</title><link href="https://github.com/tutorial/vuejs_tuto_1/" rel="alternate" type="text/html" title="vue.js 공부하기 (1)" /><published>2019-08-17T00:00:00+00:00</published><updated>2019-08-17T00:00:00+00:00</updated><id>https://github.com/tutorial/vuejs_tuto_1</id><content type="html" xml:base="https://github.com/tutorial/vuejs_tuto_1/"><![CDATA[<p>vue.js와 같은 웹 개발 프레임워크는 프론트엔드의 기초 지식인 html, css, javascript에 관한 지식을 전제로 한다. 
만일, 이러한 기초 지식이 부족하다면, 이것들을 먼저 공부하는 것을 추천한다. 프론트엔드 개발에서 기초 지식없이
프레임워크를 시작하는 것은 좋은 생각이 아니다.</p>

<p>자바스크립트 등의 웹 코딩 예제를 테스트해 볼 수 있는 도구로 요즘은 ‘코드 플레이그라운드’ 툴 들을 많이 사용한다.
대표적으로 <a href="http://codepen.io">CodePen</a>과 <a href="https://jsfiddle.net">JSFiddle</a>을 가장 많이 사용한다.</p>

<p>필자는 CodePen을 사용하여 예제들을 테스트 해 볼 것이다. 이 툴을 이용하여 vue.js가 어떻게 동작하는지 매우 간단한 예제로 테스트 해보자.
먼저, html 페이지에 단순히 아래와 같은 링크를 포함해 보자.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>&lt;script src="https://unpkg.com/vue"&gt;&lt;/script&gt;
</code></pre></div></div>

<p>이제 vue.js를 사용할 준비가 되었다.
이번에는 안녕하세요 vue.js! 라는 문구를 웹페이지에 띄워보자.</p>

<p>먼저, html 페이지에 아래 내용을 작성하고,</p>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">id=</span><span class="s">"app"</span><span class="nt">&gt;</span>
  {{ message  }}
<span class="nt">&lt;/div&gt;</span>
</code></pre></div></div>

<p>아래와 같은 자바스크립트를 추가한다. 아래 자바스크립트에서 바로 Vue 객체를 생성하고, 내용을 넣고, 위에서 정의한 &lt;div&gt;의 id와 연결을 하는 것이다.</p>

<div class="language-js highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kd">var</span> <span class="nx">app</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">Vue</span><span class="p">({</span>
  <span class="na">el</span><span class="p">:</span> <span class="dl">'</span><span class="s1">#app</span><span class="dl">'</span><span class="p">,</span>
  <span class="na">data</span><span class="p">:</span> <span class="p">{</span>
    <span class="na">message</span><span class="p">:</span> <span class="dl">'</span><span class="s1">안녕하세요 vue.js!</span><span class="dl">'</span>
  <span class="p">}</span>
<span class="p">})</span>
</code></pre></div></div>

<p>결과값:</p>
<blockquote>
  <p>안녕하세요 vue.js!</p>
</blockquote>

<p>아래 링크를 따라가면 완성된 예제를 볼 수 있다. message의 내용을 바꾸어 가며 테스트 해보자.</p>

<p>예제1 보기 : <a href="https://codepen.io/joanpark-the-decoder/pen/rNBLjMg">예제1</a></p>

<p>이렇게 첫 시간, 첫번째 vue.js를 만들어 보았다.
다음 시간에는 vue.js의 directive(지시자)에 대하여 알아보자.</p>]]></content><author><name>DreamConsole</name></author><category term="tutorial" /><category term="Vue.js" /><category term="front-end" /><category term="web-framework" /><summary type="html"><![CDATA[vue.js와 같은 웹 개발 프레임워크는 프론트엔드의 기초 지식인 html, css, javascript에 관한 지식을 전제로 한다. 만일, 이러한 기초 지식이 부족하다면, 이것들을 먼저 공부하는 것을 추천한다. 프론트엔드 개발에서 기초 지식없이 프레임워크를 시작하는 것은 좋은 생각이 아니다.]]></summary></entry><entry><title type="html">터미널에서 디렉토리 지우기</title><link href="https://github.com/programming/removing-non-empty-diretory-in-terminal/" rel="alternate" type="text/html" title="터미널에서 디렉토리 지우기" /><published>2019-08-09T00:00:00+00:00</published><updated>2019-08-09T00:00:00+00:00</updated><id>https://github.com/programming/removing%20non%20empty%20diretory%20in%20terminal</id><content type="html" xml:base="https://github.com/programming/removing-non-empty-diretory-in-terminal/"><![CDATA[<p>Use the below command :</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>rm -rf lampp
</code></pre></div></div>

<p>It deletes all files and folders contained in the lampp directory.</p>

<p>In case user doesn’t have the permission to delete the folder:
Add sudo at the beginning of the command :</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>sudo rm -rf folderName
</code></pre></div></div>

<p>Otherwise, without sudo you will be returned permission denied. And it’s a good practice to try not to use -f while deleting a directory:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>sudo rm -r folderName
</code></pre></div></div>

<p>FYI: you can use letters -f, -r, -v:</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>-f = to ignore non-existent files, never prompt
-r = to remove directories and their contents recursively
-v = to explain what is being done
</code></pre></div></div>]]></content><author><name>DreamConsole</name></author><category term="Programming" /><category term="Powershell" /><category term="terminal" /><summary type="html"><![CDATA[Use the below command :]]></summary></entry><entry><title type="html">자주나는 c++ 힙 에러</title><link href="https://github.com/programming/frequent_cpp_heap_errors/" rel="alternate" type="text/html" title="자주나는 c++ 힙 에러" /><published>2019-08-08T00:00:00+00:00</published><updated>2019-08-08T00:00:00+00:00</updated><id>https://github.com/programming/frequent_cpp_heap_errors</id><content type="html" xml:base="https://github.com/programming/frequent_cpp_heap_errors/"><![CDATA[<ul>
  <li>Invalid address specified to RtlValidateHeap
<br />
위의 에러메세지가 호출될 경우,
New와 Delete 혹은 malloc과 free과 잘못 Match 되어 있을 가능성이 높다.</li>
</ul>

<p>Easy rule of thumb: Call free exactly once per every call to malloc/calloc. 
Same applies to delete+new and delete[]+new[].</p>

<p>[참고]
https://stackoverflow.com/questions/33613246/heap-error-invalid-address-specified-to-rtlvalidateheap
<br />
http://egloos.zum.com/saintrv/v/1560122</p>]]></content><author><name>DreamConsole</name></author><category term="Programming" /><category term="debugging" /><category term="C++" /><category term="heap" /><summary type="html"><![CDATA[Invalid address specified to RtlValidateHeap 위의 에러메세지가 호출될 경우, New와 Delete 혹은 malloc과 free과 잘못 Match 되어 있을 가능성이 높다.]]></summary></entry></feed>