<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>技術系 アーカイブ - Sheltie&#039;s Garage</title>
	<atom:link href="https://sheltie-garage.xyz/category/%E6%8A%80%E8%A1%93%E7%B3%BB/feed/" rel="self" type="application/rss+xml" />
	<link>https://sheltie-garage.xyz/category/技術系/</link>
	<description>趣味に生きる</description>
	<lastBuildDate>Sun, 13 Feb 2022 11:14:38 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://sheltie-garage.xyz/wp-content/uploads/2018/04/cropped-L927xrpq-32x32.jpg</url>
	<title>技術系 アーカイブ - Sheltie&#039;s Garage</title>
	<link>https://sheltie-garage.xyz/category/技術系/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Unity Editorのインスペクタで音声が正しく再生されなくなった時の対処法</title>
		<link>https://sheltie-garage.xyz/2022/02/unity-editor%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%9a%e3%82%af%e3%82%bf%e3%81%a7%e9%9f%b3%e5%a3%b0%e3%81%8c%e6%ad%a3%e3%81%97%e3%81%8f%e5%86%8d%e7%94%9f%e3%81%95%e3%82%8c%e3%81%aa%e3%81%8f/</link>
		
		<dc:creator><![CDATA[sheltie]]></dc:creator>
		<pubDate>Sun, 13 Feb 2022 11:14:37 +0000</pubDate>
				<category><![CDATA[Unity]]></category>
		<category><![CDATA[技術系]]></category>
		<guid isPermaLink="false">https://sheltie-garage.xyz/?p=3140</guid>

					<description><![CDATA[<p>Unityで開発中、なぜか音声のプレビュー(再生)がうまくできなくなってしまったため、解決法のメモうまく再生できないというのは、自分の環境の場合、音声がスローに再生されてしまい、音程が狂ったりノイズが乗った状態で再生され [&#8230;]</p>
<p>投稿 <a href="https://sheltie-garage.xyz/2022/02/unity-editor%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%9a%e3%82%af%e3%82%bf%e3%81%a7%e9%9f%b3%e5%a3%b0%e3%81%8c%e6%ad%a3%e3%81%97%e3%81%8f%e5%86%8d%e7%94%9f%e3%81%95%e3%82%8c%e3%81%aa%e3%81%8f/">Unity Editorのインスペクタで音声が正しく再生されなくなった時の対処法</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></description>
										<content:encoded><![CDATA[
<p>Unityで開発中、なぜか音声のプレビュー(再生)がうまくできなくなってしまったため、解決法のメモ<br>うまく再生できないというのは、自分の環境の場合、音声がスローに再生されてしまい、音程が狂ったりノイズが乗った状態で再生されるようになってしまいました</p>



<h2 class="wp-block-heading" id="インスペクタでの再生">インスペクタでの再生</h2>



<p>Unity Editor上で音声を選択し、インスペクタから再生することができます</p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="467" height="478" src="https://sheltie-garage.xyz/wp-content/uploads/2022/02/20220213.png" alt="" class="wp-image-3141" srcset="https://sheltie-garage.xyz/wp-content/uploads/2022/02/20220213.png 467w, https://sheltie-garage.xyz/wp-content/uploads/2022/02/20220213-293x300.png 293w" sizes="(max-width: 467px) 100vw, 467px" /></figure>



<p>今回のケースではインスペクタ上で再生ボタンを実行すると、音声がスローになってしまい正しく再生できなくなってしまいました</p>



<h2 class="wp-block-heading" id="同様のケースで質問が行われており-解決方法が見つかる">同様のケースで質問が行われており、解決方法が見つかる</h2>



<p>以下のフォーラムで同じ状態になっている方がいました</p>



<p><a href="https://forum.unity.com/threads/audio-slow-down-and-crackling.719720/">https://forum.unity.com/threads/audio-slow-down-and-crackling.719720/</a></p>



<p>こちらのフォーラムを確認すると、「Project Setting > Audio > DSP Buffer Size」を「Best latency」以外に設定することで解決するとのこと</p>



<figure class="wp-block-image size-full"><img decoding="async" width="1025" height="351" src="https://sheltie-garage.xyz/wp-content/uploads/2022/02/20220213_2.png" alt="" class="wp-image-3142" srcset="https://sheltie-garage.xyz/wp-content/uploads/2022/02/20220213_2.png 1025w, https://sheltie-garage.xyz/wp-content/uploads/2022/02/20220213_2-300x103.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2022/02/20220213_2-768x263.png 768w" sizes="(max-width: 1025px) 100vw, 1025px" /></figure>



<p>自分の場合、Good latencyに設定することで、音声が正常に再生されるようになりました!</p>



<h2 class="wp-block-heading" id="以上">以上</h2>



<p>今回はUnity開発時に発生したトラブルの紹介でした。<br>発生原因はいまいち不明ですが、ひとまず解決できてよかった。<br>ビルド後のゲームに影響が出ないことを祈るばかりです</p>
<p>投稿 <a href="https://sheltie-garage.xyz/2022/02/unity-editor%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%9a%e3%82%af%e3%82%bf%e3%81%a7%e9%9f%b3%e5%a3%b0%e3%81%8c%e6%ad%a3%e3%81%97%e3%81%8f%e5%86%8d%e7%94%9f%e3%81%95%e3%82%8c%e3%81%aa%e3%81%8f/">Unity Editorのインスペクタで音声が正しく再生されなくなった時の対処法</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Unityでコード補完が効かなくなったときに確認すること</title>
		<link>https://sheltie-garage.xyz/2022/01/unity-visualstudio/</link>
		
		<dc:creator><![CDATA[sheltie]]></dc:creator>
		<pubDate>Mon, 24 Jan 2022 13:53:19 +0000</pubDate>
				<category><![CDATA[Unity]]></category>
		<category><![CDATA[技術系]]></category>
		<guid isPermaLink="false">https://sheltie-garage.xyz/?p=3116</guid>

					<description><![CDATA[<p>個人的なメモスクリプトを組んでいて、なぜかコード補完が効かなくなってしまいました。.(ドット)を入力しても、関連するプロパティやメソッドが表示されなくて恐ろしく不便！治せるのか調べてみたら、以下の記事で解決できました U [&#8230;]</p>
<p>投稿 <a href="https://sheltie-garage.xyz/2022/01/unity-visualstudio/">Unityでコード補完が効かなくなったときに確認すること</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></description>
										<content:encoded><![CDATA[
<p>個人的なメモ<br>スクリプトを組んでいて、なぜかコード補完が効かなくなってしまいました。<br>.(ドット)を入力しても、関連するプロパティやメソッドが表示されなくて恐ろしく不便！<br>治せるのか調べてみたら、以下の記事で解決できました</p>



<figure class="wp-block-embed is-type-wp-embed is-provider-アプリ関連ニュース wp-block-embed-アプリ関連ニュース"><div class="wp-block-embed__wrapper">
<blockquote class="wp-embedded-content" data-secret="SmPJVaSrOJ"><a href="https://www.gigas-jp.com/appnews/archives/9448">[Unity] Visual Studioの入力補完が機能しない場合の対処方法</a></blockquote><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  title="&#8220;[Unity] Visual Studioの入力補完が機能しない場合の対処方法&#8221; &#8212; アプリ関連ニュース" src="https://www.gigas-jp.com/appnews/archives/9448/embed#?secret=SmPJVaSrOJ" data-secret="SmPJVaSrOJ" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
</div></figure>



<h2 class="wp-block-heading">Unity Editorの設定確認</h2>



<p>メニューから「Edit -&gt; Preferences」の順に選択し、設定ダイアログから「External Tools」を選択</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="386" src="https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-2-1-1024x386.png" alt="" class="wp-image-3109" srcset="https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-2-1-1024x386.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-2-1-300x113.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-2-1-768x290.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-2-1.png 1146w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>赤枠の部分をVisual Studio Community 2019 に変更</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="435" src="https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-3-1-1024x435.png" alt="" class="wp-image-3122" srcset="https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-3-1-1024x435.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-3-1-300x127.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-3-1-768x326.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-3-1.png 1147w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading">以上！</h2>



<p>確認が必要な設定は、これだけ！<br>この設定で無事にコード補完が復活しました!</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="820" height="407" src="https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-4-2.png" alt="" class="wp-image-3127" srcset="https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-4-2.png 820w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-4-2-300x149.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-4-2-768x381.png 768w" sizes="auto, (max-width: 820px) 100vw, 820px" /></figure>



<p>このあたりの設定はいじった覚えがないのだけど・・・<br>もしコード補完が効かないな？と思ったら、この設定を見直してみてください。</p>



<p></p>
<p>投稿 <a href="https://sheltie-garage.xyz/2022/01/unity-visualstudio/">Unityでコード補完が効かなくなったときに確認すること</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Unity VR PCディスプレイに第三者カメラを表示</title>
		<link>https://sheltie-garage.xyz/2022/01/unity-vr-pc%e3%83%87%e3%82%a3%e3%82%b9%e3%83%97%e3%83%ac%e3%82%a4%e3%81%ab%e7%ac%ac%e4%b8%89%e8%80%85%e3%82%ab%e3%83%a1%e3%83%a9%e3%82%92%e8%a1%a8%e7%a4%ba/</link>
		
		<dc:creator><![CDATA[sheltie]]></dc:creator>
		<pubDate>Tue, 04 Jan 2022 08:17:02 +0000</pubDate>
				<category><![CDATA[Unity]]></category>
		<category><![CDATA[VR]]></category>
		<category><![CDATA[技術系]]></category>
		<guid isPermaLink="false">https://sheltie-garage.xyz/?p=3094</guid>

					<description><![CDATA[<p>Unity VR開発で、PCディスプレイにはHMDではなく、別カメラの映像を表示したいということがよくあります。以下の方法でPCディスプレイには別カメラ映像を表示することが可能です。 プロジェクトセットアップ 今回の環境 [&#8230;]</p>
<p>投稿 <a href="https://sheltie-garage.xyz/2022/01/unity-vr-pc%e3%83%87%e3%82%a3%e3%82%b9%e3%83%97%e3%83%ac%e3%82%a4%e3%81%ab%e7%ac%ac%e4%b8%89%e8%80%85%e3%82%ab%e3%83%a1%e3%83%a9%e3%82%92%e8%a1%a8%e7%a4%ba/">Unity VR PCディスプレイに第三者カメラを表示</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></description>
										<content:encoded><![CDATA[
<p>Unity VR開発で、PCディスプレイにはHMDではなく、別カメラの映像を表示したいということがよくあります。<br>以下の方法でPCディスプレイには別カメラ映像を表示することが可能です。</p>



<h2 class="wp-block-heading">プロジェクトセットアップ</h2>



<p>今回の環境は以下の通りです</p>



<ul class="wp-block-list"><li>Windows11</li><li>HTC Vive</li><li>Unity 2020.3.25f</li><li>SteamVR 2.7.3</li></ul>



<p>まずはプロジェクトを作成してSteamVRプラグインを取り込みます</p>



<figure class="wp-block-image size-large"><a href="https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-2.png"><img loading="lazy" decoding="async" width="1024" height="550" src="https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-2-1024x550.png" alt="" class="wp-image-3095" srcset="https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-2-1024x550.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-2-300x161.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-2-768x413.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-2-1536x826.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-2.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a></figure>



<p>SteamVR PluginからCamera Rigを設定します</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="547" src="https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-3-1024x547.png" alt="" class="wp-image-3096" srcset="https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-3-1024x547.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-3-300x160.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-3-768x410.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-3-1536x820.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-3.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>動きが分かりやすいように、CameraRig配下のleft、right、cameraに適当なオブジェクトを設定しておきます</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="547" src="https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-4-1024x547.png" alt="" class="wp-image-3097" srcset="https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-4-1024x547.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-4-300x160.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-4-768x410.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-4-1536x820.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-4.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>最初から配置されているMain Cameraを変更していきます。<br>好きな位置に移動したのち、以下のプロパティを変更します</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="461" height="596" src="https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-5.png" alt="" class="wp-image-3098" srcset="https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-5.png 461w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-5-232x300.png 232w" sizes="auto, (max-width: 461px) 100vw, 461px" /></figure>



<p>Depthのプロパティを1、具体的にはHMD側のCameraのDepthプロパティより大きい値を指定することでPCディスプレイ側にはMain Camera側(Depthが大きいほう)が優先されて表示されます。<br>もちろん、HMDにはHMD側のカメラの映像が表示されます。<br>Target EyeはNoneを指定します。</p>



<h2 class="wp-block-heading">以上</h2>



<p>ひとまずPCディスプレイにHMD以外のカメラ映像を表示する場合、上記の設定だけで実現することができます。<br>アバターなどを利用するゲームの場合、プレイヤーにはHMDの映像を、PCディスプレイには他カメラの映像を映すことでVRゲームを遊ぶ人、遊んでいる人を見てる人、両方とも楽しめるゲームが作れるかもしれませんね</p>



<a href="https://www.amazon.co.jp/Oculus-899-00183-02-Quest-2%E2%80%94%E5%AE%8C%E5%85%A8%E3%83%AF%E3%82%A4%E3%83%A4%E3%83%AC%E3%82%B9%E3%81%AE%E3%82%AA%E3%83%BC%E3%83%AB%E3%82%A4%E3%83%B3%E3%83%AF%E3%83%B3VR%E3%83%98%E3%83%83%E3%83%89%E3%82%BB%E3%83%83%E3%83%88%E2%80%94128GB/dp/B09B9F7439?__mk_ja_JP=%E3%82%AB%E3%82%BF%E3%82%AB%E3%83%8A&#038;crid=38ZWRKFCEI1RZ&#038;keywords=VR&#038;qid=1641284031&#038;sprefix=vr%2Caps%2C176&#038;sr=8-7&#038;linkCode=li2&#038;tag=monodon-22&#038;linkId=84a1b93fc4120eb10c80286fa343d241&#038;language=ja_JP&#038;ref_=as_li_ss_il" target="_blank" rel="noopener"><img decoding="async" border="0" src="//ws-fe.amazon-adsystem.com/widgets/q?_encoding=UTF8&#038;ASIN=B09B9F7439&#038;Format=_SL160_&#038;ID=AsinImage&#038;MarketPlace=JP&#038;ServiceVersion=20070822&#038;WS=1&#038;tag=monodon-22&#038;language=ja_JP" ></a><img loading="lazy" decoding="async" src="https://ir-jp.amazon-adsystem.com/e/ir?t=monodon-22&#038;language=ja_JP&#038;l=li2&#038;o=9&#038;a=B09B9F7439" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
<a href="https://www.amazon.co.jp/Oculus-899-00183-02-Quest-2%E2%80%94%E5%AE%8C%E5%85%A8%E3%83%AF%E3%82%A4%E3%83%A4%E3%83%AC%E3%82%B9%E3%81%AE%E3%82%AA%E3%83%BC%E3%83%AB%E3%82%A4%E3%83%B3%E3%83%AF%E3%83%B3VR%E3%83%98%E3%83%83%E3%83%89%E3%82%BB%E3%83%83%E3%83%88%E2%80%94128GB/dp/B09B9F7439?__mk_ja_JP=%E3%82%AB%E3%82%BF%E3%82%AB%E3%83%8A&#038;crid=38ZWRKFCEI1RZ&#038;keywords=VR&#038;qid=1641284031&#038;sprefix=vr%2Caps%2C176&#038;sr=8-7&#038;linkCode=li2&#038;tag=monodon-22&#038;linkId=84a1b93fc4120eb10c80286fa343d241&#038;language=ja_JP&#038;ref_=as_li_ss_il" target="_blank" rel="noopener"><img decoding="async" border="0" src="//ws-fe.amazon-adsystem.com/widgets/q?_encoding=UTF8&#038;ASIN=B09B9F7439&#038;Format=_SL160_&#038;ID=AsinImage&#038;MarketPlace=JP&#038;ServiceVersion=20070822&#038;WS=1&#038;tag=monodon-22&#038;language=ja_JP" ></a><img loading="lazy" decoding="async" src="https://ir-jp.amazon-adsystem.com/e/ir?t=monodon-22&#038;language=ja_JP&#038;l=li2&#038;o=9&#038;a=B09B9F7439" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
<a href="https://www.amazon.co.jp/HTC-VIVE-Pro-Eye-%E3%82%A2%E3%83%83%E3%83%97%E3%82%B0%E3%83%AC%E3%83%BC%E3%83%89%E3%82%AD%E3%83%83%E3%83%88/dp/B07RPPDJSN?__mk_ja_JP=%E3%82%AB%E3%82%BF%E3%82%AB%E3%83%8A&#038;crid=38ZWRKFCEI1RZ&#038;keywords=VR&#038;qid=1641284031&#038;sprefix=vr%2Caps%2C176&#038;sr=8-50&#038;linkCode=li2&#038;tag=monodon-22&#038;linkId=da7097921b222c204d06f948c136cdb0&#038;language=ja_JP&#038;ref_=as_li_ss_il" target="_blank" rel="noopener"><img decoding="async" border="0" src="//ws-fe.amazon-adsystem.com/widgets/q?_encoding=UTF8&#038;ASIN=B07RPPDJSN&#038;Format=_SL160_&#038;ID=AsinImage&#038;MarketPlace=JP&#038;ServiceVersion=20070822&#038;WS=1&#038;tag=monodon-22&#038;language=ja_JP" ></a><img loading="lazy" decoding="async" src="https://ir-jp.amazon-adsystem.com/e/ir?t=monodon-22&#038;language=ja_JP&#038;l=li2&#038;o=9&#038;a=B07RPPDJSN" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />



<p></p>



<p></p>
<p>投稿 <a href="https://sheltie-garage.xyz/2022/01/unity-vr-pc%e3%83%87%e3%82%a3%e3%82%b9%e3%83%97%e3%83%ac%e3%82%a4%e3%81%ab%e7%ac%ac%e4%b8%89%e8%80%85%e3%82%ab%e3%83%a1%e3%83%a9%e3%82%92%e8%a1%a8%e7%a4%ba/">Unity VR PCディスプレイに第三者カメラを表示</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>MixamoのモーションをUnityに適用する</title>
		<link>https://sheltie-garage.xyz/2021/12/mixamo%e3%81%ae%e3%83%a2%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92unity%e3%81%ab%e9%81%a9%e7%94%a8%e3%81%99%e3%82%8b/</link>
		
		<dc:creator><![CDATA[sheltie]]></dc:creator>
		<pubDate>Sun, 26 Dec 2021 12:58:49 +0000</pubDate>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Unity]]></category>
		<category><![CDATA[技術系]]></category>
		<guid isPermaLink="false">https://sheltie-garage.xyz/?p=3081</guid>

					<description><![CDATA[<p>Adobeが提供しているモーション配布サイト「Mixamo」のモーションをUnityに適用します。(適用方法をよく忘れてしまうため、個人的なメモです) Mixamoからモーションをダウンロード まずは「Mixamo」にア [&#8230;]</p>
<p>投稿 <a href="https://sheltie-garage.xyz/2021/12/mixamo%e3%81%ae%e3%83%a2%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92unity%e3%81%ab%e9%81%a9%e7%94%a8%e3%81%99%e3%82%8b/">MixamoのモーションをUnityに適用する</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></description>
										<content:encoded><![CDATA[
<p>Adobeが提供しているモーション配布サイト「Mixamo」のモーションをUnityに適用します。<br>(適用方法をよく忘れてしまうため、個人的なメモです)</p>



<h2 class="wp-block-heading">Mixamoからモーションをダウンロード</h2>



<p>まずは「Mixamo」にアクセスして利用したいモーションをダウンロードします。<br><a href="https://www.mixamo.com/" target="_blank" rel="noreferrer noopener">https://www.mixamo.com/</a></p>



<p>利用したいモーションを見つけたら、画面右のDownloadをクリック</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="476" src="https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-1-1-1024x476.png" alt="" class="wp-image-3082" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-1-1-1024x476.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-1-1-300x140.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-1-1-768x357.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-1-1-1536x715.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-1-1.png 1917w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>ダウンロードのセッティングが出てきます。自分の場合、以下のような設定でダウンロードしています。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="714" height="297" src="https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-2-1.png" alt="" class="wp-image-3083" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-2-1.png 714w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-2-1-300x125.png 300w" sizes="auto, (max-width: 714px) 100vw, 714px" /></figure>



<h2 class="wp-block-heading">モデルを準備</h2>



<p>まずはアニメーションを適用するキャラクターを準備します。<br><a rel="noreferrer noopener" href="https://booth.pm/ja/browse/3D%E3%82%AD%E3%83%A3%E3%83%A9%E3%82%AF%E3%82%BF%E3%83%BC" target="_blank">Booth</a>などでお気に入りのキャラクターを購入するのも良いですし、手っ取り早く試したければ<a rel="noreferrer noopener" href="https://unity-chan.com/" target="_blank">Unityちゃん</a>を利用するのも良いかと思います。<br>Misamoのアニメーションを適用する場合、キャラクターのRigが「<strong><span class="has-inline-color has-vivid-red-color">Humanoid</span></strong>」で設定されている必要があります。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="365" src="https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-4-1024x365.png" alt="" class="wp-image-3084" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-4-1024x365.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-4-300x107.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-4-768x274.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-4-1536x548.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-4.png 1556w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>今回はUnityちゃんを使用してみます</p>



<h2 class="wp-block-heading">MixamoのモーションをUnityに取り込む</h2>



<p>MixamoからダウンロードしたfbxファイルをUnityプロジェクトに追加し、fbxファイルのリグを「Humanoid」に変更します。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="567" height="282" src="https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-5.png" alt="" class="wp-image-3085" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-5.png 567w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-5-300x149.png 300w" sizes="auto, (max-width: 567px) 100vw, 567px" /></figure>



<h2 class="wp-block-heading">Unityちゃんに適用してみる</h2>



<p>あとは、MixamoのアニメーションをUnityちゃんに適用すれば完成です。</p>



<p>ヒエラルキーにUnitychan(Assets &gt; UnityChan &gt; Models &gt; unitychan)モデルを配置します</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="582" src="https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-6-1024x582.png" alt="" class="wp-image-3086" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-6-1024x582.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-6-300x170.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-6-768x436.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-6.png 1167w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>新規でアニメーションコントローラを作成し、ステートを追加、アニメーションにMixamoのアニメーションを割り当てます。以上の操作を行うと、画面はこんな感じになります</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="607" src="https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-7-1024x607.png" alt="" class="wp-image-3087" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-7-1024x607.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-7-300x178.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-7-768x455.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-7.png 1120w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>あとはunitychanに設定されているAnimator Controllerに、先ほど作成したAnimatorを設定すれば完了</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="423" src="https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-8-1024x423.png" alt="" class="wp-image-3088" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-8-1024x423.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-8-300x124.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-8-768x317.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-8-1536x634.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-8.png 1594w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading">以上！</h2>



<p>以上でMixamoのモーションをunity上で利用する方法は完了です。<br>再生ボタンを押せば、モーションが適用されたUnityちゃんが確認できると思います</p>



<figure class="wp-block-video"><video controls src="https://sheltie-garage.xyz/wp-content/uploads/2021/12/20211226_002.mp4"></video></figure>



<p>Mixamoには多くのアニメーションが用意されているので、うまく利用すればゲームの役に立てられそうですね!</p>
<p>投稿 <a href="https://sheltie-garage.xyz/2021/12/mixamo%e3%81%ae%e3%83%a2%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92unity%e3%81%ab%e9%81%a9%e7%94%a8%e3%81%99%e3%82%8b/">MixamoのモーションをUnityに適用する</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></content:encoded>
					
		
		<enclosure url="https://sheltie-garage.xyz/wp-content/uploads/2021/12/20211226_002.mp4" length="2638497" type="video/mp4" />

			</item>
		<item>
		<title>dアニメ検索サイトを作りました</title>
		<link>https://sheltie-garage.xyz/2021/12/d%e3%82%a2%e3%83%8b%e3%83%a1%e6%a4%9c%e7%b4%a2%e3%82%b5%e3%82%a4%e3%83%88%e3%82%92%e4%bd%9c%e3%82%8a%e3%81%be%e3%81%97%e3%81%9f/</link>
		
		<dc:creator><![CDATA[sheltie]]></dc:creator>
		<pubDate>Tue, 30 Nov 2021 23:03:45 +0000</pubDate>
				<category><![CDATA[アニメ]]></category>
		<category><![CDATA[技術系]]></category>
		<guid isPermaLink="false">https://sheltie-garage.xyz/?p=3069</guid>

					<description><![CDATA[<p>と言っても、現在は「お気に入り登録が多い順で作品を閲覧する」ことしか出来ませんが・・・サイトURLは以下になります。https://lab.sheltie-garage.xyz/d_anime/ 現状、dアニメデータの自 [&#8230;]</p>
<p>投稿 <a href="https://sheltie-garage.xyz/2021/12/d%e3%82%a2%e3%83%8b%e3%83%a1%e6%a4%9c%e7%b4%a2%e3%82%b5%e3%82%a4%e3%83%88%e3%82%92%e4%bd%9c%e3%82%8a%e3%81%be%e3%81%97%e3%81%9f/">dアニメ検索サイトを作りました</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></description>
										<content:encoded><![CDATA[
<p>と言っても、現在は「お気に入り登録が多い順で作品を閲覧する」ことしか出来ませんが・・・<br>サイトURLは以下になります。<br><a href="https://lab.sheltie-garage.xyz/d_anime/" target="_blank" rel="noreferrer noopener">https://lab.sheltie-garage.xyz/d_anime/</a></p>



<p>現状、dアニメデータの自動取得を組み込んでいないので、情報が古い &amp; データを外部に保存していないので、コンテナを落とすと全データが削除されるという大変漢らしい仕様でうごいています。</p>



<p>先日のエントリでSpringBoot + kotlin + elasticsearchでdアニメの検索サイトを作ってます　という内容を投稿しましたが、ひとまず本番でも動くようになったため公開しました。</p>



<p>現状、検索機能がなく、お気に入り登録順が多い順番での閲覧しか出来ませんが、今後機能を拡充して本家に負けないくらいの検索機能を追加していきたいです。</p>



<p>・・・というのは、建前で、「おっぱいが解禁されている回を探したい」というのが本音です。<br>だって、ちゃんと月額払っているのだから、そういうの、みたいもの。</p>



<p>今の所<a rel="noreferrer noopener" href="https://anime.dmkt-sp.jp/animestore/ci_pc?workId=23013&amp;partId=23013006" target="_blank">アズールレーンの第六話</a>くらいしかおっぱいが見れるアニメを知らないので、他にも色々探せるようにしたいのです。<br>でも当然ながらdアニメ側に「おっぱいが見える回」なんて属性もなく、R-15タグも当てにならないので、どうやって検索するかは要検討課題です。</p>



<p></p>
<p>投稿 <a href="https://sheltie-garage.xyz/2021/12/d%e3%82%a2%e3%83%8b%e3%83%a1%e6%a4%9c%e7%b4%a2%e3%82%b5%e3%82%a4%e3%83%88%e3%82%92%e4%bd%9c%e3%82%8a%e3%81%be%e3%81%97%e3%81%9f/">dアニメ検索サイトを作りました</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>kotlin + Springbootでelasticsearchを使ってみる</title>
		<link>https://sheltie-garage.xyz/2021/11/kotlin-springboot%e3%81%a7elasticsearch%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b/</link>
		
		<dc:creator><![CDATA[sheltie]]></dc:creator>
		<pubDate>Sun, 14 Nov 2021 12:41:22 +0000</pubDate>
				<category><![CDATA[ElasticSearch]]></category>
		<category><![CDATA[Kotlin]]></category>
		<category><![CDATA[技術系]]></category>
		<guid isPermaLink="false">https://sheltie-garage.xyz/?p=2975</guid>

					<description><![CDATA[<p>Dアニメを数ヶ月前に契約しました。月々500円位で最新作から懐かしのアニメまで好きな時間に見れるので重宝してます。欲を言えば、過激な作品はTV版と同じように規制がかかっているものがあるので、解除されていればより良かったの [&#8230;]</p>
<p>投稿 <a href="https://sheltie-garage.xyz/2021/11/kotlin-springboot%e3%81%a7elasticsearch%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b/">kotlin + Springbootでelasticsearchを使ってみる</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></description>
										<content:encoded><![CDATA[
<p>Dアニメを数ヶ月前に契約しました。月々500円位で最新作から懐かしのアニメまで好きな時間に見れるので重宝してます。欲を言えば、過激な作品はTV版と同じように規制がかかっているものがあるので、解除されていればより良かったのですが・・・</p>



<h2 class="wp-block-heading">ただ、検索機能に不満あり</h2>



<p>一般的なキーワードサーチ、あいうえお順、大まかな作品ジャンルは検索機能としてあるのですが、例えば人気順の並べ替えや、あらすじ内のキーワード検索、キャラクタの容姿 etcのような検索機能は、見た感じ準備されていません。</p>



<p>不思議なのは、内部的にデータを持っているので、もっといろいろな作品の見せ方ができるはずなのに、それをやっていないことです。</p>



<h2 class="wp-block-heading">なので、勉強がてら作り始めました</h2>



<p>Dアニメをもっと楽しみたいので自分仕様の検索機能を作ることにしました。<br>スクレイピングを行いDアニメの作品をelasticsearchに登録、kotlin + Springbootの構成で組むことにしました。</p>



<h2 class="wp-block-heading">SpringbootからElasticsearchに検索を行う</h2>



<p>ここからやっと本題です。Springbootからelasticsearchに対して検索をかけます。手順は以下の通り。</p>



<p><strong>依存関係に以下を追加</strong></p>



<pre class="crayon-plain-tag">dependencies {
	implementation(&quot;org.springframework.data:spring-data-elasticsearch:4.1.7&quot;)
	・・・
}</pre>



<p><strong>リポジトリクラスを作成</strong></p>



<pre class="crayon-plain-tag">package xyz.sheltiegarage.dAnimeApi.repository

import org.springframework.data.domain.PageRequest
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository
import xyz.sheltiegarage.dAnimeApi.data.DAnimeData

interface DAnimeRepository : ElasticsearchRepository&amp;lt;DAnimeData, Int&gt; {
}</pre>



<p><strong>データクラスを追加</strong></p>



<pre class="crayon-plain-tag">package xyz.sheltiegarage.dAnimeApi.data

import org.springframework.data.annotation.Id
import org.springframework.data.elasticsearch.annotations.Document
import org.springframework.data.elasticsearch.annotations.Field

@Document(indexName = &quot;d_anime&quot;)
data class DAnimeData(
    @Id
    @Field(name=&quot;work_id&quot;)
    val workId: Int,
    @Field(name=&quot;work_title&quot;)
    val workTitle: String,
    @Field(name=&quot;link&quot;)
    val link: String,
    @Field(name=&quot;main_key_visual_path&quot;)
    val mainKeyVisualPath: String,
    @Field(name=&quot;main_key_visual_alt&quot;)
    val mainKeyVisualAlt: String,
    @Field(name=&quot;my_list_count&quot;)
    val myListCount: Int,
    @Field(name=&quot;favorite_count&quot;)
    val favoriteCount: Int
)</pre>



<p><strong>サーチメソッドを呼び出し</strong></p>



<pre class="crayon-plain-tag">@RestController
class SearchController(val dAnimeRepository: DAnimeRepository) {

    @GetMapping(&quot;/search&quot;)
    fun getAll() :List&amp;lt;DAnimeData&gt; {

        val data: List&amp;lt;DAnimeData&gt; = dAnimeRepository.findAll(Sort.by(Sort.Order.desc(&quot;favorite_count&quot;))).toList()

        return data
    }
}</pre>



<p><strong>application.propertiesに設定を追加</strong></p>



<pre class="crayon-plain-tag">spring.elasticsearch.rest.uris=localhost:9200</pre>



<p>参考にしたのは以下のサイトです<br><a rel="noreferrer noopener" href="https://raphaeldelio.medium.com/how-to-connect-elasticsearch-to-kotlin-using-spring-boot-spring-data-and-ssl-f261a08727d8" target="_blank">https://raphaeldelio.medium.com/how-to-connect-elasticsearch-to-kotlin-using-spring-boot-spring-data-and-ssl-f261a08727d8</a></p>



<p>リポジトリクラスを作成することで自動的に「selectAll（全検索）」といった基本的な検索が行なえます。リポジトリクラスは「メソッド名に基づき検索を行う」ことができるため、メソッド名の規約さえ守れば、メソッドの実装を行わずに検索を行うことができるので便利ですね。詳細は以下からご確認ください。<br><a href="https://docs.spring.io/spring-data/elasticsearch/docs/current/reference/html/#elasticsearch.query-methods" target="_blank" rel="noreferrer noopener">https://docs.spring.io/spring-data/elasticsearch/docs/current/reference/html/#elasticsearch.query-methods</a></p>



<h2 class="wp-block-heading">複雑な検索はどうする？</h2>



<p>上記のクエリメソッドを利用すれば検索は行なえますが、例えば「お気に入りが1000以上、声優にに「長縄」を含む、配信終了間近の作品」といったような複雑な検索を行う場合、クエリメソッドの仕組みでは対応できないため、別の検索手段を探す必要があります。その方法は・・・只今調査中です。（https://docs.spring.io/spring-data/elasticsearch/docs/current/reference/html/#elasticsearch.operations.queries あたりを使えばできそうな気がするが・・・）</p>



<h2 class="wp-block-heading">以上</h2>



<p>雑な解説ですが、以上です。なぜなら自分もまだちゃんと理解していないから、きちんとした説明が行えないのです。とにかくkotlin + Springboot + elasticsearchの情報が少なく、何をするにも詰まってしまいますが、自分仕様の検索システムができるまでコツコツ開発は続けようと思っています。</p>



<p>お気に入り順に並び替えてみると「呪術廻戦」って「鬼滅の刃」超えのお気に入り登録数なのですね。無職転生やスライムなども人気が高いですね</p>



<a href="https://www.amazon.co.jp/%E9%AB%98%E9%80%9F%E3%82%B9%E3%82%B1%E3%83%BC%E3%83%A9%E3%83%96%E3%83%AB%E6%A4%9C%E7%B4%A2%E3%82%A8%E3%83%B3%E3%82%B8%E3%83%B3-ElasticSearch-Server-%E3%82%A2%E3%82%B9%E3%82%AD%E3%83%BC%E6%9B%B8%E7%B1%8D-%EF%BC%B2%EF%BD%81%EF%BD%86%EF%BD%81%EF%BD%8C-%EF%BC%AB%EF%BD%95%EF%BD%83-%EF%BC%88%EF%BD%8C%E3%81%AB%E3%82%B9%E3%83%88%E3%83%AD%E3%83%BC%E3%82%AF%E7%AC%A6%E5%8F%B7%E3%80%81%EF%BD%83%E3%81%AB%E3%82%A2%E3%82%AF%E3%82%B5%E3%83%B3%E3%83%BB%E3%83%86%E3%82%AE%E3%83%A5%E4%BB%98%E3%81%8F%EF%BC%89-ebook/dp/B00J4KDYZU?__mk_ja_JP=%E3%82%AB%E3%82%BF%E3%82%AB%E3%83%8A&#038;crid=3RRCD2YX6AYX3&#038;keywords=elasticsearch&#038;qid=1636893548&#038;sprefix=elasticsearch%2Caps%2C264&#038;sr=8-9&#038;linkCode=li2&#038;tag=monodon-22&#038;linkId=ca910045f31a6980d89ccefc8561d291&#038;language=ja_JP&#038;ref_=as_li_ss_il" target="_blank" rel="noopener"><img decoding="async" border="0" src="//ws-fe.amazon-adsystem.com/widgets/q?_encoding=UTF8&#038;ASIN=B00J4KDYZU&#038;Format=_SL160_&#038;ID=AsinImage&#038;MarketPlace=JP&#038;ServiceVersion=20070822&#038;WS=1&#038;tag=monodon-22&#038;language=ja_JP" ></a><img loading="lazy" decoding="async" src="https://ir-jp.amazon-adsystem.com/e/ir?t=monodon-22&#038;language=ja_JP&#038;l=li2&#038;o=9&#038;a=B00J4KDYZU" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
<a href="https://www.amazon.co.jp/%E5%9F%BA%E7%A4%8E%E3%81%8B%E3%82%89%E3%82%8F%E3%81%8B%E3%82%8B-Kotlin-%E5%AF%8C%E7%94%B0%E5%81%A5%E4%BA%8C-ebook/dp/B0956X1Z8Z?__mk_ja_JP=%E3%82%AB%E3%82%BF%E3%82%AB%E3%83%8A&#038;keywords=kotlin&#038;qid=1636893577&#038;sr=8-7&#038;linkCode=li2&#038;tag=monodon-22&#038;linkId=8aa2ff05f3055a1ee4577ba9272a9031&#038;language=ja_JP&#038;ref_=as_li_ss_il" target="_blank" rel="noopener"><img decoding="async" border="0" src="//ws-fe.amazon-adsystem.com/widgets/q?_encoding=UTF8&#038;ASIN=B0956X1Z8Z&#038;Format=_SL160_&#038;ID=AsinImage&#038;MarketPlace=JP&#038;ServiceVersion=20070822&#038;WS=1&#038;tag=monodon-22&#038;language=ja_JP" ></a><img loading="lazy" decoding="async" src="https://ir-jp.amazon-adsystem.com/e/ir?t=monodon-22&#038;language=ja_JP&#038;l=li2&#038;o=9&#038;a=B0956X1Z8Z" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
<a href="https://www.amazon.co.jp/Spring%E5%BE%B9%E5%BA%95%E5%85%A5%E9%96%80-Spring-Framework%E3%81%AB%E3%82%88%E3%82%8BJava%E3%82%A2%E3%83%97%E3%83%AA%E3%82%B1%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E9%96%8B%E7%99%BA-%E6%A0%AA%E5%BC%8F%E4%BC%9A%E7%A4%BENTT%E3%83%87%E3%83%BC%E3%82%BF-ebook/dp/B01IEWNLBU?__mk_ja_JP=%E3%82%AB%E3%82%BF%E3%82%AB%E3%83%8A&#038;keywords=spring+boot&#038;qid=1636893608&#038;sr=8-6&#038;linkCode=li2&#038;tag=monodon-22&#038;linkId=a326291cb2f22d72ff3fad684a0d977c&#038;language=ja_JP&#038;ref_=as_li_ss_il" target="_blank" rel="noopener"><img decoding="async" border="0" src="//ws-fe.amazon-adsystem.com/widgets/q?_encoding=UTF8&#038;ASIN=B01IEWNLBU&#038;Format=_SL160_&#038;ID=AsinImage&#038;MarketPlace=JP&#038;ServiceVersion=20070822&#038;WS=1&#038;tag=monodon-22&#038;language=ja_JP" ></a><img loading="lazy" decoding="async" src="https://ir-jp.amazon-adsystem.com/e/ir?t=monodon-22&#038;language=ja_JP&#038;l=li2&#038;o=9&#038;a=B01IEWNLBU" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
<p>投稿 <a href="https://sheltie-garage.xyz/2021/11/kotlin-springboot%e3%81%a7elasticsearch%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b/">kotlin + Springbootでelasticsearchを使ってみる</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>UnityでGooglePlay用ビルドを行う</title>
		<link>https://sheltie-garage.xyz/2021/09/unity%e3%81%a7googleplay%e7%94%a8%e3%83%93%e3%83%ab%e3%83%89%e3%82%92%e8%a1%8c%e3%81%86/</link>
		
		<dc:creator><![CDATA[sheltie]]></dc:creator>
		<pubDate>Sun, 26 Sep 2021 03:18:13 +0000</pubDate>
				<category><![CDATA[Unity]]></category>
		<category><![CDATA[技術系]]></category>
		<guid isPermaLink="false">https://sheltie-garage.xyz/?p=2888</guid>

					<description><![CDATA[<p>前回作成した「」から約2カ月、ひとまず新しいゲームが出来たのでGooglePlayに公開しようとしたらいろいろ変わっていたのでメモ この記事で伝えたいこと 2021年8月からGoogle Playに公開するアプリの条件が [&#8230;]</p>
<p>投稿 <a href="https://sheltie-garage.xyz/2021/09/unity%e3%81%a7googleplay%e7%94%a8%e3%83%93%e3%83%ab%e3%83%89%e3%82%92%e8%a1%8c%e3%81%86/">UnityでGooglePlay用ビルドを行う</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></description>
										<content:encoded><![CDATA[
<p>前回作成した「」から約2カ月、ひとまず新しいゲームが出来たのでGooglePlayに公開しようとしたらいろいろ変わっていたのでメモ</p>



<h2 class="wp-block-heading">この記事で伝えたいこと</h2>



<ul class="wp-block-list"><li>2021年8月からGoogle Playに公開するアプリの条件がいろいろ変更になった</li><li>KeyStoreをアップデートする必要があった(過去に作成したKeyStoreが使えなくなっていた)</li><li>APIレベルを30以上にする必要があった</li></ul>



<h2 class="wp-block-heading">アップするファイル形式がapk → aab に代わっていた</h2>



<p>今まで通りapk形式でビルドを行いアップロードしたら形式が違うと怒られました。アップするファイルの形式がapk → aabになったようで、aab形式でないとアップロードできなくなっていました。といってもUnity側で対応しているので、こちらはそこまで大きな問題ではありません。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="629" height="599" src="https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-2.png" alt="" class="wp-image-2891" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-2.png 629w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-2-300x286.png 300w" sizes="auto, (max-width: 629px) 100vw, 629px" /></figure>



<p>Build Setting に「Build App bundle(Google Play)」のチェックがあるので、項目にチェックを入れてビルドすればOKです。</p>



<h2 class="wp-block-heading">証明書の安全性が低い問題</h2>



<p>無事にaab形式でビルドが出来たのでアップロードしてみたら、今度は証明書の安全性が低いと言われてしまいましたので、こちらも対応します。</p>



<p><a href="https://support.google.com/googleplay/android-developer/answer/9842756?hl=ja">https://support.google.com/googleplay/android-developer/answer/9842756?hl=ja</a></p>



<p>公式ページによると、2021年8月を境に方法が変わったようで、前回のアプリリリースが2021年7月でしたので、まさか2カ月の間に方法が変わってしまうとは・・・</p>



<p>ということで、新規でKeyStoreを作りなおしてみます。<br>UnityのPlayer SettingからKeyStoreの作成が可能です。<br>ちなみに、利用しているUnityバージョンは「2021.1.22f」となります</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="882" height="584" src="https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-3.png" alt="" class="wp-image-2892" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-3.png 882w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-3-300x199.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-3-768x509.png 768w" sizes="auto, (max-width: 882px) 100vw, 882px" /></figure>



<p>Key Store Managerから新規Keyを作成して必要事項を入力します。<br>入力後、「作成したKeyStoreを現在のプロジェクトに適用するか」のダイアログが出てくるので、Yesを選択して反映しました。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="390" height="157" src="https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-4.png" alt="" class="wp-image-2893" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-4.png 390w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-4-300x121.png 300w" sizes="auto, (max-width: 390px) 100vw, 390px" /></figure>



<p>ビルド後、Google Playにアップロードします。</p>



<h2 class="wp-block-heading">今後はAPIレベルの問題ががが・・・</h2>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="268" src="https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-5-1024x268.png" alt="" class="wp-image-2894" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-5-1024x268.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-5-300x78.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-5-768x201.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-5.png 1396w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>無事アップロードが終わったら、今度はAPIレベルが足りないとのこと・・・</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="971" height="675" src="https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-6.png" alt="" class="wp-image-2895" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-6.png 971w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-6-300x209.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-6-768x534.png 768w" sizes="auto, (max-width: 971px) 100vw, 971px" /></figure>



<p>2021年8月以降にアプリを公開する場合、満たすべき条件が結構変わったようですね・・・<br>APIレベル30以降を対象とすると、結構なAndroidが切り捨てられそうな予感・・・<br>自分がテストで使っているNexus6も切り擦れられるのではなかろうか(今現在 バージョンがAndroid7.1.1なので)</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="674" height="141" src="https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-7.png" alt="" class="wp-image-2896" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-7.png 674w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-7-300x63.png 300w" sizes="auto, (max-width: 674px) 100vw, 674px" /></figure>



<p>とりあえず Pyayer Setting画面からAPIレベルを変更。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="379" src="https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-8-1024x379.png" alt="" class="wp-image-2897" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-8-1024x379.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-8-300x111.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-8-768x284.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-8-1536x569.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-8.png 1580w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>再ビルドを行ったものをアップしたら、正常に受け付けられました。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="324" src="https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-9-1024x324.png" alt="" class="wp-image-2898" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-9-1024x324.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-9-300x95.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-9-768x243.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-9-1536x486.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-9.png 1590w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>無事アプリ審査になりました。</p>



<h2 class="wp-block-heading">以上</h2>



<p>2021年8月を境に、Google Playのアプリ公開方法が結構変更されたようですね・・・<br>新規アプリはもちろんですが、既存アプリのアップデートにも影響が出そうなので、過去アプリをアップデートする必要が出てきたときに注意して作業しないとダメそうです。</p>



<figure class="wp-block-embed is-type-rich is-provider-amazon wp-block-embed-amazon"><div class="wp-block-embed__wrapper">
<iframe loading="lazy" title="Unityゲーム プログラミング・バイブル 2nd Generation" type="text/html" width="856" height="550" frameborder="0" allowfullscreen style="max-width:100%" src="https://read.amazon.com.au/kp/card?preview=inline&#038;linkCode=kpd&#038;ref_=k4w_oembed_LYDCB0D9vWjuOW&#038;asin=B097GBR2N3&#038;tag=kpembed-20"></iframe>
</div></figure>



<p></p>
<p>投稿 <a href="https://sheltie-garage.xyz/2021/09/unity%e3%81%a7googleplay%e7%94%a8%e3%83%93%e3%83%ab%e3%83%89%e3%82%92%e8%a1%8c%e3%81%86/">UnityでGooglePlay用ビルドを行う</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Elasticvueを使ってみる</title>
		<link>https://sheltie-garage.xyz/2021/09/elasticvue%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b/</link>
		
		<dc:creator><![CDATA[sheltie]]></dc:creator>
		<pubDate>Sat, 18 Sep 2021 10:36:23 +0000</pubDate>
				<category><![CDATA[ElasticSearch]]></category>
		<category><![CDATA[技術系]]></category>
		<guid isPermaLink="false">https://sheltie-garage.xyz/?p=2880</guid>

					<description><![CDATA[<p>前回でlaradockに付属しているelasticsearchを起動するところまでおこなてみました。が、やっぱりGUIで色々管理できたほうが便利ということで、elasticsearchのGUI管理ツールを探したところ「e [&#8230;]</p>
<p>投稿 <a href="https://sheltie-garage.xyz/2021/09/elasticvue%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b/">Elasticvueを使ってみる</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></description>
										<content:encoded><![CDATA[
<p>前回でlaradockに付属しているelasticsearchを起動するところまでおこなてみました。<br>が、やっぱりGUIで色々管理できたほうが便利ということで、elasticsearchのGUI管理ツールを探したところ<br>「elasticvue」というツールが見つかったので使ってみることにしました。</p>



<h2 class="wp-block-heading">Docker版を使ってみる</h2>



<p>公式ページにいろいろなタイプ（ブラウザエクステンション、Docker、バイナリなど）が提供されているので、お好きなものをどうぞ<br><a href="https://elasticvue.com/" target="_blank" rel="noreferrer noopener">https://elasticvue.com/</a></p>



<p>自分はDocker版を利用することにしました。</p>



<h2 class="wp-block-heading">起動からアクセスまで</h2>



<p>公式ページにDockerの起動コマンドが書いてあるので使用します<br>(自分の環境では8080ポートが使用されていたため、8880ポートで起動しています)</p>



<pre class="crayon-plain-tag">docker run -p 8880:8080 \
           -d cars10/elasticvue</pre>



<p>コンテナ起動後は「http://localhost:8880」で管理画面にアクセスできます</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="481" src="https://sheltie-garage.xyz/wp-content/uploads/2021/09/b79cfa052a5528238bf63d825409613a-1024x481.png" alt="" class="wp-image-2883" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/09/b79cfa052a5528238bf63d825409613a-1024x481.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/b79cfa052a5528238bf63d825409613a-300x141.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/b79cfa052a5528238bf63d825409613a-768x361.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/b79cfa052a5528238bf63d825409613a-1536x721.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/b79cfa052a5528238bf63d825409613a-2048x962.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading">CORSの設定が必要</h2>



<p>elasticvueのページにアクセスすると「最初にCORSの設定が必要」という注意書きが出てきますので、設定します。<br>設定先はlaradockのelasticsearchになります。elasticsearchもDockerで起動しているので、コンテナに入って作業します。</p>



<pre class="crayon-plain-tag">% docker-compose exec elasticsearch bash
-- ここからコンテナ内での操作 --
&amp;#91;root@1f4250529341 config]# pwd
/usr/share/elasticsearch/config
&amp;#91;root@1f4250529341 config]# vi elasticsearch.yml
  以下2行を追加
  http.cors.enabled: true
  http.cors.allow-origin: &quot;http://localhost:8880&quot;</pre>



<p>ファイル保存後、コンテナから抜けてdocker-composeからコンテナの再起動をかけました</p>



<pre class="crayon-plain-tag">% docker-compose restart</pre>



<p>再度 elasticvueの管理画面にアクセスし、TEST CONNECTIONをクリックします。<br>接続に成功すれば右下に「SUCCESS」を表示されます。<br>次に「CONNECT」ボタンを押してelasticsearchに接続します</p>



<h2 class="wp-block-heading">elasticvueでできること</h2>



<p>elasticsearchに接続できると、ノードやクラスターのヘルスやインデックス一覧が確認できます。<br>REST APIへアクセスするためのエディタも準備されており、簡単なドキュメントの管理もできそう</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="554" src="https://sheltie-garage.xyz/wp-content/uploads/2021/09/3c9f551fa1aa31796cd402cba149000c-1024x554.png" alt="" class="wp-image-2884" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/09/3c9f551fa1aa31796cd402cba149000c-1024x554.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/3c9f551fa1aa31796cd402cba149000c-300x162.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/3c9f551fa1aa31796cd402cba149000c-768x416.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/3c9f551fa1aa31796cd402cba149000c-1536x831.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/3c9f551fa1aa31796cd402cba149000c.png 1966w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="950" src="https://sheltie-garage.xyz/wp-content/uploads/2021/09/a9b6bd2a388ea333cbde6938098ccdca-1024x950.png" alt="" class="wp-image-2885" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/09/a9b6bd2a388ea333cbde6938098ccdca-1024x950.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/a9b6bd2a388ea333cbde6938098ccdca-300x278.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/a9b6bd2a388ea333cbde6938098ccdca-768x712.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/a9b6bd2a388ea333cbde6938098ccdca-1536x1425.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/a9b6bd2a388ea333cbde6938098ccdca.png 1962w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>ただ、GUIを使用してインデックスの追加や、マッピングの定義は行えないようで、それらの設定は自分でJSONを作ってREST API経由でリクエストを行う必要があるみたい・・・</p>



<h2 class="wp-block-heading">以上</h2>



<p>elasticvueの紹介でした。サクッとelasticseearchの状態を確認するには良さそうですが、本格的に管理/運用を行うなら、もう少し機能が充実したツールを探す必要がありそうですね。<br>自分の場合、あくまで個人開発なので、とりあえずelasticvueを使ってドキュメント作成や管理を進めていこうと思います</p>
<p>投稿 <a href="https://sheltie-garage.xyz/2021/09/elasticvue%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b/">Elasticvueを使ってみる</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>とりあえずElasticSearchを始めてみる</title>
		<link>https://sheltie-garage.xyz/2021/09/%e3%81%a8%e3%82%8a%e3%81%82%e3%81%88%e3%81%9aelasticsearch%e3%82%92%e5%a7%8b%e3%82%81%e3%81%a6%e3%81%bf%e3%82%8b/</link>
		
		<dc:creator><![CDATA[sheltie]]></dc:creator>
		<pubDate>Sun, 12 Sep 2021 05:53:54 +0000</pubDate>
				<category><![CDATA[ElasticSearch]]></category>
		<category><![CDATA[技術系]]></category>
		<guid isPermaLink="false">https://sheltie-garage.xyz/?p=2868</guid>

					<description><![CDATA[<p>全文検索エンジンにElasticSearchを使ってみます 今まで全文検索エンジンはSolr派だったのですが、トレンドでいうとElasticSearchのほうが世界的には人気のようで・・・　ということで勉強も兼ねて、今回 [&#8230;]</p>
<p>投稿 <a href="https://sheltie-garage.xyz/2021/09/%e3%81%a8%e3%82%8a%e3%81%82%e3%81%88%e3%81%9aelasticsearch%e3%82%92%e5%a7%8b%e3%82%81%e3%81%a6%e3%81%bf%e3%82%8b/">とりあえずElasticSearchを始めてみる</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">全文検索エンジンにElasticSearchを使ってみます</h2>



<p>今まで全文検索エンジンはSolr派だったのですが、トレンドでいうとElasticSearchのほうが世界的には人気のようで・・・　ということで勉強も兼ねて、今回は全文検索エンジンにElasticSearchを使ってみようと思います。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="782" src="https://sheltie-garage.xyz/wp-content/uploads/2021/09/d8977ae88245bf91b670f0227664d264-1024x782.png" alt="" class="wp-image-2869" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/09/d8977ae88245bf91b670f0227664d264-1024x782.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/d8977ae88245bf91b670f0227664d264-300x229.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/d8977ae88245bf91b670f0227664d264-768x587.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/d8977ae88245bf91b670f0227664d264-1536x1174.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/d8977ae88245bf91b670f0227664d264-2048x1565.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading">ElasticSearchにIndexを作成する</h2>



<p>Solrの場合、コマンドを実行することでコア(index)を作成しますが、ElasticSearcの場合、HTTP-APIにリクエストを投げて作るようなので、公式ページにある以下のコマンドを実行</p>



<pre class="crayon-plain-tag">% docker-compose up -d elasticsearch</pre>



<p>上記のコマンドでElasticSearchを起動して</p>



<pre class="crayon-plain-tag">curl -X PUT &quot;http://localhost:9200/d_anime&quot;</pre>



<p>上記のコマンドでコアを作成できます</p>



<h2 class="wp-block-heading">とりあえず動作確認</h2>



<pre class="crayon-plain-tag">http:&amp;#47;&amp;#47;localhost:9200/d_anime/</pre>



<p>結果</p>



<pre class="crayon-plain-tag">{
  &quot;d_anime&quot;: {
    &quot;aliases&quot;: {},
    &quot;mappings&quot;: {},
    &quot;settings&quot;: {
      &quot;index&quot;: {
        &quot;creation_date&quot;: &quot;1631425258572&quot;,
        &quot;number_of_shards&quot;: &quot;1&quot;,
        &quot;number_of_replicas&quot;: &quot;1&quot;,
        &quot;uuid&quot;: &quot;7jtaoMllRkGOpTKATtC2UA&quot;,
        &quot;version&quot;: {
          &quot;created&quot;: &quot;7090199&quot;
        },
        &quot;provided_name&quot;: &quot;d_anime&quot;
      }
    }
  }
}</pre>



<p>ひとまずインデックスは作成されました。<br>次は検索結果</p>



<pre class="crayon-plain-tag">http:&amp;#47;&amp;#47;localhost:9200/d_anime/_search</pre>



<p>結果</p>



<pre class="crayon-plain-tag">{
  &quot;took&quot;: 5,
  &quot;timed_out&quot;: false,
  &quot;_shards&quot;: {
    &quot;total&quot;: 1,
    &quot;successful&quot;: 1,
    &quot;skipped&quot;: 0,
    &quot;failed&quot;: 0
  },
  &quot;hits&quot;: {
    &quot;total&quot;: {
      &quot;value&quot;: 0,
      &quot;relation&quot;: &quot;eq&quot;
    },
    &quot;max_score&quot;: null,
    &quot;hits&quot;: &amp;#91;]
  }
}</pre>



<p>まだ中身が空っぽなのでデータの返却はないですが、人まずは検索が動いているようです。</p>



<h2 class="wp-block-heading">とりあえず以上です</h2>



<p>ひとまずElasticSearchが動いたところまで確認できました。本当はlogstashを利用したデータ取り込みまでやってみたかったのですが、理解が追いつかず、次回に持ち越しです・・・</p>



<a href="https://www.amazon.co.jp/Elasticsearch%E5%AE%9F%E8%B7%B5%E3%82%AC%E3%82%A4%E3%83%89-impress-top-gear%E3%82%B7%E3%83%AA%E3%83%BC%E3%82%BA-%E6%83%A3%E9%81%93-ebook/dp/B07DN87LQV?__mk_ja_JP=%E3%82%AB%E3%82%BF%E3%82%AB%E3%83%8A&amp;dchild=1&amp;keywords=elasticsearch&amp;qid=1631425960&amp;sr=8-5&amp;linkCode=li2&amp;tag=monodon-22&amp;linkId=093f495ec885eae571b135af178220eb&amp;language=ja_JP&amp;ref_=as_li_ss_il" target="_blank" rel="noopener"><img decoding="async" src="//ws-fe.amazon-adsystem.com/widgets/q?_encoding=UTF8&amp;ASIN=B07DN87LQV&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=monodon-22&amp;language=ja_JP" border="0"></a><img loading="lazy" decoding="async" src="https://ir-jp.amazon-adsystem.com/e/ir?t=monodon-22&amp;language=ja_JP&amp;l=li2&amp;o=9&amp;a=B07DN87LQV" alt="" style="border:none !important; margin:0px !important;" width="1" height="1" border="0">
<a href="https://www.amazon.co.jp/%E9%AB%98%E9%80%9F%E3%82%B9%E3%82%B1%E3%83%BC%E3%83%A9%E3%83%96%E3%83%AB%E6%A4%9C%E7%B4%A2%E3%82%A8%E3%83%B3%E3%82%B8%E3%83%B3-ElasticSearch-Server-%E3%82%A2%E3%82%B9%E3%82%AD%E3%83%BC%E6%9B%B8%E7%B1%8D-%EF%BC%B2%EF%BD%81%EF%BD%86%EF%BD%81%EF%BD%8C-%EF%BC%AB%EF%BD%95%EF%BD%83-%EF%BC%88%EF%BD%8C%E3%81%AB%E3%82%B9%E3%83%88%E3%83%AD%E3%83%BC%E3%82%AF%E7%AC%A6%E5%8F%B7%E3%80%81%EF%BD%83%E3%81%AB%E3%82%A2%E3%82%AF%E3%82%B5%E3%83%B3%E3%83%BB%E3%83%86%E3%82%AE%E3%83%A5%E4%BB%98%E3%81%8F%EF%BC%89-ebook/dp/B00J4KDYZU?__mk_ja_JP=%E3%82%AB%E3%82%BF%E3%82%AB%E3%83%8A&amp;dchild=1&amp;keywords=elasticsearch&amp;qid=1631425960&amp;sr=8-8&amp;linkCode=li2&amp;tag=monodon-22&amp;linkId=83424f105af6640cf57de6f47c1302c8&amp;language=ja_JP&amp;ref_=as_li_ss_il" target="_blank" rel="noopener"><img decoding="async" src="//ws-fe.amazon-adsystem.com/widgets/q?_encoding=UTF8&amp;ASIN=B00J4KDYZU&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=monodon-22&amp;language=ja_JP" border="0"></a><img loading="lazy" decoding="async" src="https://ir-jp.amazon-adsystem.com/e/ir?t=monodon-22&amp;language=ja_JP&amp;l=li2&amp;o=9&amp;a=B00J4KDYZU" alt="" style="border:none !important; margin:0px !important;" width="1" height="1" border="0">
<a href="https://www.amazon.co.jp/%E3%83%87%E3%83%BC%E3%82%BF%E5%88%86%E6%9E%90%E5%9F%BA%E7%9B%A4%E6%A7%8B%E7%AF%89%E5%85%A5%E9%96%80%EF%BC%BBFluentd%EF%BC%8CElasticsearch%EF%BC%8CKibana%E3%81%AB%E3%82%88%E3%82%8B%E3%83%AD%E3%82%B0%E5%8F%8E%E9%9B%86%E3%81%A8%E5%8F%AF%E8%A6%96%E5%8C%96%EF%BC%BD-%E9%88%B4%E6%9C%A8-%E5%81%A5%E5%A4%AA-ebook/dp/B075RTZ141?__mk_ja_JP=%E3%82%AB%E3%82%BF%E3%82%AB%E3%83%8A&amp;dchild=1&amp;keywords=elasticsearch&amp;qid=1631425960&amp;sr=8-9&amp;linkCode=li2&amp;tag=monodon-22&amp;linkId=a04e00899641daff17d8ccd8ee9ef891&amp;language=ja_JP&amp;ref_=as_li_ss_il" target="_blank" rel="noopener"><img decoding="async" src="//ws-fe.amazon-adsystem.com/widgets/q?_encoding=UTF8&amp;ASIN=B075RTZ141&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=monodon-22&amp;language=ja_JP" border="0"></a><img loading="lazy" decoding="async" src="https://ir-jp.amazon-adsystem.com/e/ir?t=monodon-22&amp;language=ja_JP&amp;l=li2&amp;o=9&amp;a=B075RTZ141" alt="" style="border:none !important; margin:0px !important;" width="1" height="1" border="0">
<p>投稿 <a href="https://sheltie-garage.xyz/2021/09/%e3%81%a8%e3%82%8a%e3%81%82%e3%81%88%e3%81%9aelasticsearch%e3%82%92%e5%a7%8b%e3%82%81%e3%81%a6%e3%81%bf%e3%82%8b/">とりあえずElasticSearchを始めてみる</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Macにkotlin開発環境を作ってみる</title>
		<link>https://sheltie-garage.xyz/2021/08/mac%e3%81%abkotlin%e9%96%8b%e7%99%ba%e7%92%b0%e5%a2%83%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b/</link>
		
		<dc:creator><![CDATA[sheltie]]></dc:creator>
		<pubDate>Sat, 21 Aug 2021 14:36:46 +0000</pubDate>
				<category><![CDATA[Kotlin]]></category>
		<category><![CDATA[技術系]]></category>
		<guid isPermaLink="false">https://sheltie-garage.xyz/?p=2855</guid>

					<description><![CDATA[<p>Go言語の次はkotlinの開発環境を作ってみたいと思います。 IntelliJ IDEA Communityをインストールする kotlinを開発したJetBrain謹製のIDE。これを利用するのが一番簡単そうでした。 [&#8230;]</p>
<p>投稿 <a href="https://sheltie-garage.xyz/2021/08/mac%e3%81%abkotlin%e9%96%8b%e7%99%ba%e7%92%b0%e5%a2%83%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b/">Macにkotlin開発環境を作ってみる</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></description>
										<content:encoded><![CDATA[
<p>Go言語の次はkotlinの開発環境を作ってみたいと思います。</p>



<h2 class="wp-block-heading">IntelliJ IDEA Communityをインストールする</h2>



<p>kotlinを開発したJetBrain謹製のIDE。これを利用するのが一番簡単そうでした。<br><a href="https://www.jetbrains.com/ja-jp/idea/download/" target="_blank" rel="noreferrer noopener">https://www.jetbrains.com/ja-jp/idea/download/</a></p>



<p>インストール後にアプリケーションを起動するとウェルカムダイアログが表示されます。<br>New Projectで新規プロジェクトを作成します。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="764" src="https://sheltie-garage.xyz/wp-content/uploads/2021/08/4e8eb2dd91001fb41c97d2375bcc2dca-1024x764.png" alt="" class="wp-image-2859" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/08/4e8eb2dd91001fb41c97d2375bcc2dca-1024x764.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/08/4e8eb2dd91001fb41c97d2375bcc2dca-300x224.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/08/4e8eb2dd91001fb41c97d2375bcc2dca-768x573.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/08/4e8eb2dd91001fb41c97d2375bcc2dca-1536x1147.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2021/08/4e8eb2dd91001fb41c97d2375bcc2dca.png 1594w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>kotlinコンソールアプリケーションを作成してみます。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="844" src="https://sheltie-garage.xyz/wp-content/uploads/2021/08/db4856bd7c1b2563e42e5dfc14d5dab6-1024x844.png" alt="" class="wp-image-2860" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/08/db4856bd7c1b2563e42e5dfc14d5dab6-1024x844.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/08/db4856bd7c1b2563e42e5dfc14d5dab6-300x247.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/08/db4856bd7c1b2563e42e5dfc14d5dab6-768x633.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/08/db4856bd7c1b2563e42e5dfc14d5dab6-1536x1267.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2021/08/db4856bd7c1b2563e42e5dfc14d5dab6.png 1984w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>JDKが未インストールの場合、Downloadを選択することで自動でJDKがダウンロードされます。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="540" src="https://sheltie-garage.xyz/wp-content/uploads/2021/08/7ab1808b4637d4f9eb192936801bdce9-1024x540.png" alt="" class="wp-image-2861" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/08/7ab1808b4637d4f9eb192936801bdce9-1024x540.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/08/7ab1808b4637d4f9eb192936801bdce9-300x158.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/08/7ab1808b4637d4f9eb192936801bdce9-768x405.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/08/7ab1808b4637d4f9eb192936801bdce9.png 1126w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>JDKダウンロード後、Nextボタンをクリックすることでプロジェクトが作成されます。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="844" src="https://sheltie-garage.xyz/wp-content/uploads/2021/08/304b3c04122d7a97c4d709bf10814db9-1024x844.png" alt="" class="wp-image-2865" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/08/304b3c04122d7a97c4d709bf10814db9-1024x844.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/08/304b3c04122d7a97c4d709bf10814db9-300x247.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/08/304b3c04122d7a97c4d709bf10814db9-768x633.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/08/304b3c04122d7a97c4d709bf10814db9-1536x1265.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2021/08/304b3c04122d7a97c4d709bf10814db9.png 1986w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading">早速プログラムを動かしてみる</h2>



<p>デフォルトでサンプルプログラムが作成されているので、エディタ右上のボタンから動かしてみます。<br>エディタ下部のコンソールにHello Worldが表示されるはずです。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="570" src="https://sheltie-garage.xyz/wp-content/uploads/2021/08/d9a888fb496deef687a1c80663bff59d-1024x570.png" alt="" class="wp-image-2863" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/08/d9a888fb496deef687a1c80663bff59d-1024x570.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/08/d9a888fb496deef687a1c80663bff59d-300x167.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/08/d9a888fb496deef687a1c80663bff59d-768x428.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/08/d9a888fb496deef687a1c80663bff59d-1536x855.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2021/08/d9a888fb496deef687a1c80663bff59d-2048x1140.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading">ひとまず以上です</h2>



<p>実際に行ったことはIntelliJ IDEAをインストールしただけですね・・・<br>Go言語と比較して、言語開発元からエディタが準備されている分、kotlinの方が環境構築は簡単な印象を受けました。<br>それに雰囲気もJavaに近いので、現在Javaメインで利用している自分としては、Goよりもkotlinの方がとっつきやすそうです。<br>(Kotlin一度挫折してますが・・・)</p>



<a href="https://www.amazon.co.jp/Kotlin%E3%82%B9%E3%82%BF%E3%83%BC%E3%83%88%E3%83%96%E3%83%83%E3%82%AF-%E6%96%B0%E3%81%97%E3%81%84Android%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0-%E9%95%B7%E6%BE%A4-%E5%A4%AA%E9%83%8E/dp/4865940391?__mk_ja_JP=%E3%82%AB%E3%82%BF%E3%82%AB%E3%83%8A&amp;dchild=1&amp;keywords=kotlin&amp;qid=1629556378&amp;sr=8-15&amp;linkCode=li2&amp;tag=monodon-22&amp;linkId=f70dc0d7924fe8bbeeac2409c8545ef1&amp;language=ja_JP&amp;ref_=as_li_ss_il" target="_blank" rel="noopener"><img decoding="async" src="//ws-fe.amazon-adsystem.com/widgets/q?_encoding=UTF8&amp;ASIN=4865940391&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=monodon-22&amp;language=ja_JP" border="0"></a><img loading="lazy" decoding="async" src="https://ir-jp.amazon-adsystem.com/e/ir?t=monodon-22&amp;language=ja_JP&amp;l=li2&amp;o=9&amp;a=4865940391" alt="" style="border:none !important; margin:0px !important;" width="1" height="1" border="0">
<a href="https://www.amazon.co.jp/Kotlin-Web%E3%82%A2%E3%83%97%E3%83%AA%E3%82%B1%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3-%E6%96%B0%E3%81%97%E3%81%84%E3%82%B5%E3%83%BC%E3%83%90%E3%82%B5%E3%82%A4%E3%83%89%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0-%E9%95%B7%E6%BE%A4-%E5%A4%AA%E9%83%8E/dp/4865940669?__mk_ja_JP=%E3%82%AB%E3%82%BF%E3%82%AB%E3%83%8A&amp;dchild=1&amp;keywords=kotlin&amp;qid=1629556378&amp;sr=8-26&amp;linkCode=li2&amp;tag=monodon-22&amp;linkId=417026e22ba68e0a2338e0a88a3d6ca8&amp;language=ja_JP&amp;ref_=as_li_ss_il" target="_blank" rel="noopener"><img decoding="async" src="//ws-fe.amazon-adsystem.com/widgets/q?_encoding=UTF8&amp;ASIN=4865940669&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=monodon-22&amp;language=ja_JP" border="0"></a><img loading="lazy" decoding="async" src="https://ir-jp.amazon-adsystem.com/e/ir?t=monodon-22&amp;language=ja_JP&amp;l=li2&amp;o=9&amp;a=4865940669" alt="" style="border:none !important; margin:0px !important;" width="1" height="1" border="0">
<a href="https://www.amazon.co.jp/%E5%9F%BA%E7%A4%8E%E3%81%8B%E3%82%89%E3%82%8F%E3%81%8B%E3%82%8B-Kotlin-%E5%AF%8C%E7%94%B0%E5%81%A5%E4%BA%8C-ebook/dp/B0956X1Z8Z?__mk_ja_JP=%E3%82%AB%E3%82%BF%E3%82%AB%E3%83%8A&amp;dchild=1&amp;keywords=kotlin&amp;qid=1629556378&amp;sr=8-7&amp;linkCode=li2&amp;tag=monodon-22&amp;linkId=fb0e1e6f9629e679cafbc85e8ae18e2d&amp;language=ja_JP&amp;ref_=as_li_ss_il" target="_blank" rel="noopener"><img decoding="async" src="//ws-fe.amazon-adsystem.com/widgets/q?_encoding=UTF8&amp;ASIN=B0956X1Z8Z&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=monodon-22&amp;language=ja_JP" border="0"></a><img loading="lazy" decoding="async" src="https://ir-jp.amazon-adsystem.com/e/ir?t=monodon-22&amp;language=ja_JP&amp;l=li2&amp;o=9&amp;a=B0956X1Z8Z" alt="" style="border:none !important; margin:0px !important;" width="1" height="1" border="0">
<p>投稿 <a href="https://sheltie-garage.xyz/2021/08/mac%e3%81%abkotlin%e9%96%8b%e7%99%ba%e7%92%b0%e5%a2%83%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b/">Macにkotlin開発環境を作ってみる</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
