<?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>もがろぐ</title>
	<atom:link href="https://mogachan.net/feed/" rel="self" type="application/rss+xml" />
	<link>https://mogachan.net</link>
	<description>プログラミングを学習する人を応援します</description>
	<lastBuildDate>Sat, 30 Apr 2022 02:02:26 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://mogachan.net/wp-content/uploads/2020/07/cropped-Logo-scaled-1-32x32.jpg</url>
	<title>もがろぐ</title>
	<link>https://mogachan.net</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>学んでみたいプログラミング言語ランキング2022</title>
		<link>https://mogachan.net/programlangrank2022/</link>
					<comments>https://mogachan.net/programlangrank2022/#respond</comments>
		
		<dc:creator><![CDATA[もがちゃん]]></dc:creator>
		<pubDate>Sat, 30 Apr 2022 02:00:37 +0000</pubDate>
				<category><![CDATA[プログラミング学習]]></category>
		<category><![CDATA[2022]]></category>
		<category><![CDATA[プログラム言語]]></category>
		<category><![CDATA[ランキング]]></category>
		<guid isPermaLink="false">https://mogachan.net/?p=2295</guid>

					<description><![CDATA[<p><img src="https://mogachan.net/wp-content/uploads/2022/04/ProgramingLanguageRankings2022-520x300.png" class="webfeedsFeaturedVisual" width="520" height="300" /></p>NEXERが運営しているアンケートサイト「ボイスノート」において実施したプログラミング言語に関するランキング調査結果の記事がマイナビニュース「学んでみたいプログラミング言語、第2位はPython – 第1位は？」に掲載さ ... ]]></description>
										<content:encoded><![CDATA[<p><img src="https://mogachan.net/wp-content/uploads/2022/04/ProgramingLanguageRankings2022-520x300.png" class="webfeedsFeaturedVisual" width="520" height="300" /></p>
<p>NEXERが運営しているアンケートサイト「ボイスノート」において実施したプログラミング言語に関するランキング調査結果の記事がマイナビニュース「<a rel="noreferrer noopener" href="https://news.mynavi.jp/techplus/article/20220429-2333086/" target="_blank">学んでみたいプログラミング言語、第2位はPython – 第1位は？</a>」に掲載されていました。</p>



<p>アンケートによる調査で有効回答者数が550名ということなので、偏りがあるのかもしれませんが記事を見たときにちょっと驚きました。</p>



<h2 class="wp-block-sgb-headings sgb-heading" id="i-0"><span class="sgb-heading__inner hh hh9" style="font-size:1.2em"><span class="sgb-heading__text">ランキング第1位　C/C++</span></span></h2>



<p>ランキング第1位は、C/C++言語で106票の得票を得ていました。<br>最近、私の周りでC/C++で開発している人は見かけないのでちょっと驚きです。<br>関わっている業界というか業種的なものもあるのかも知れませんけど、今でも使用されている所は多いんですかね。<br>組込み系とかなんでしょうか。</p>



<h2 class="wp-block-sgb-headings sgb-heading" id="i-1"><span class="sgb-heading__inner hh hh9" style="font-size:1.2em"><span class="sgb-heading__text">ランキング第2位　Python/Java</span></span></h2>



<p>この結果のPythonとJavaという言語については、上位にランクインして当然だと思います。<br>ランキング結果を最初に見たとき、PythonとJavaが1つに纏められて記載していたので、あれっと思ったのですが、次の順位が4位だったので、獲得票が82票ということで同位だったのですね。<br>Pythonは、色々なところでAIの言葉を耳にしますからね。<br>Javaの方は、私の周りでもJavaを使用して開発しているプロジェクトが多いので納得です。</p>



<h2 class="wp-block-sgb-headings sgb-heading" id="i-2"><span class="sgb-heading__inner hh hh9" style="font-size:1.2em"><span class="sgb-heading__text">ランキング第4位　JavaScript</span></span></h2>



<p>これもある程度納得です。Web系ではまだまだ使用されていますからね。<br>ただ、第5位にHTML/CSSがあるので、どちらかというとHTML/CSS/JavaScriptの1セットで実は1位なのではという感じです。JavaScriptとHTML//CSSを区別しているのは、デザイン系と動作系を区別してのことなんでしょうか？<br>HTML/CSS/JavaScriptのスキルがあれば、現場では重宝されそうです。</p>



<h2 class="wp-block-sgb-headings sgb-heading" id="i-3"><span class="sgb-heading__inner hh hh9" style="font-size:1.2em"><span class="sgb-heading__text">感想</span></span></h2>



<p>1位になったC/C++言語を独学で学ぶとしたら、手軽に試したりするための環境を構築するには他の言語よりハードルが高くて苦労しそうです。<br>2位のPythonについては、学ぶための環境を構築するには簡単でYouTube動画もたくさんあるので独学でもある程度までは学ぶことができそうです。<br>Javaについては、Pythonほど手軽ではないけど、C/C++と比べれば簡単に試したりする環境は作れるので言語自体は簡単に学べますが、フレームワークとか言語以外のことも知らないとスキルとしては不十分かもしれません。<br>4位のJavaScriptは、ブラウザがあれば簡単に試すことができるので1番学習するのが簡単かもしれません。</p>



<p>ちなみに<br>もし私が、若くてこれからプログラミング言語を学習しようとしている前提なら、私個人の順位は、以下ですね。<br>1位は、HTML/CSS/JavaScript<br>2位は、Python<br>3位は、Java<br>4位は、C/C++<br></p>
]]></content:encoded>
					
					<wfw:commentRss>https://mogachan.net/programlangrank2022/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【備忘録】M1 MacBook AirでEDC-GUA3Hを使用する</title>
		<link>https://mogachan.net/edcgua3h/</link>
					<comments>https://mogachan.net/edcgua3h/#respond</comments>
		
		<dc:creator><![CDATA[もがちゃん]]></dc:creator>
		<pubDate>Sat, 11 Dec 2021 04:14:39 +0000</pubDate>
				<category><![CDATA[雑記]]></category>
		<category><![CDATA[Air]]></category>
		<category><![CDATA[EDC-GUA3H]]></category>
		<category><![CDATA[ELECOM]]></category>
		<category><![CDATA[m1]]></category>
		<category><![CDATA[MacBook]]></category>
		<guid isPermaLink="false">https://mogachan.net/?p=2274</guid>

					<description><![CDATA[つい先日、インターネット回線を光回線に切り替えたので際、ひかり電話ルーターの設定変更が必要になり、M1 MacBook Airで設定しようと思い、手元にあったELECOMのEDC-GUA3Hを使用して、有線LANに接続し ... ]]></description>
										<content:encoded><![CDATA[
<p>つい先日、インターネット回線を光回線に切り替えたので際、ひかり電話ルーターの設定変更が必要になり、M1 MacBook Airで設定しようと思い、手元にあったELECOMのEDC-GUA3Hを使用して、有線LANに接続しようとしたのですが、USBハブに接続しただけでは使用できなかったので今回は、使用できるようにするまでの手順を備忘録として記載しておきます。</p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="768" src="https://mogachan.net/wp-content/uploads/2021/12/ELECOM-EDC-GUA3H-B-1024x768.jpg" alt="" class="wp-image-2276" srcset="https://mogachan.net/wp-content/uploads/2021/12/ELECOM-EDC-GUA3H-B-1024x768.jpg 1024w, https://mogachan.net/wp-content/uploads/2021/12/ELECOM-EDC-GUA3H-B-300x225.jpg 300w, https://mogachan.net/wp-content/uploads/2021/12/ELECOM-EDC-GUA3H-B-768x576.jpg 768w, https://mogachan.net/wp-content/uploads/2021/12/ELECOM-EDC-GUA3H-B-1536x1152.jpg 1536w, https://mogachan.net/wp-content/uploads/2021/12/ELECOM-EDC-GUA3H-B-2048x1536.jpg 2048w, https://mogachan.net/wp-content/uploads/2021/12/ELECOM-EDC-GUA3H-B-940x705.jpg 940w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption>ELECOM EDC-GUA3H</figcaption></figure></div>



<!-- START MoshimoAffiliateEasyLink --><script type="text/javascript">(function(b,c,f,g,a,d,e){b.MoshimoAffiliateObject=a;b[a]=b[a]||function(){arguments.currentScript=c.currentScript||c.scripts[c.scripts.length-2];(b[a].q=b[a].q||[]).push(arguments)};c.getElementById(a)||(d=c.createElement(f),d.src=g,d.id=a,e=c.getElementsByTagName("body")[0],e.appendChild(d))})(window,document,"script","//dn.msmstatic.com/site/cardlink/bundle.js?20210203","msmaflink");msmaflink({"n":"エレコム 有線LANアダプタ USB3.0 ギガビット対応 USBハブ3ポート付 ブラック EDC-GUA3H-B","b":"エレコム","t":"EDC-GUA3H-B","d":"https:\/\/m.media-amazon.com","c_p":"\/images\/I","p":["\/41ig+Dqv0AL._SL500_.jpg","\/41yyd0JHPHL._SL500_.jpg","\/41cdAN3ZUTL._SL500_.jpg","\/417r0M9+MfL._SL500_.jpg","\/51oCfw5gBjL._SL500_.jpg","\/51uwYzQZxfL._SL500_.jpg","\/41DfP7QqcFL._SL500_.jpg"],"u":{"u":"https:\/\/www.amazon.co.jp\/dp\/B074J9QL56","t":"amazon","r_v":""},"v":"2.1","b_l":[{"id":1,"u_tx":"Amazonで見る","u_bc":"#f79256","u_url":"https:\/\/www.amazon.co.jp\/dp\/B074J9QL56","a_id":2070632,"p_id":170,"pl_id":27060,"pc_id":185,"s_n":"amazon","u_so":1},{"id":2,"u_tx":"楽天市場で見る","u_bc":"#f76956","u_url":"https:\/\/search.rakuten.co.jp\/search\/mall\/%E3%82%A8%E3%83%AC%E3%82%B3%E3%83%A0%20%E6%9C%89%E7%B7%9ALAN%E3%82%A2%E3%83%80%E3%83%97%E3%82%BF%20USB3.0%20%E3%82%AE%E3%82%AC%E3%83%93%E3%83%83%E3%83%88%E5%AF%BE%E5%BF%9C%20USB%E3%83%8F%E3%83%963%E3%83%9D%E3%83%BC%E3%83%88%E4%BB%98%20%E3%83%96%E3%83%A9%E3%83%83%E3%82%AF%20EDC-GUA3H-B\/","a_id":2051715,"p_id":54,"pl_id":27059,"pc_id":54,"s_n":"rakuten","u_so":2},{"id":3,"u_tx":"Yahoo!ショッピングで見る","u_bc":"#66a7ff","u_url":"https:\/\/shopping.yahoo.co.jp\/search?first=1\u0026p=%E3%82%A8%E3%83%AC%E3%82%B3%E3%83%A0%20%E6%9C%89%E7%B7%9ALAN%E3%82%A2%E3%83%80%E3%83%97%E3%82%BF%20USB3.0%20%E3%82%AE%E3%82%AC%E3%83%93%E3%83%83%E3%83%88%E5%AF%BE%E5%BF%9C%20USB%E3%83%8F%E3%83%963%E3%83%9D%E3%83%BC%E3%83%88%E4%BB%98%20%E3%83%96%E3%83%A9%E3%83%83%E3%82%AF%20EDC-GUA3H-B","a_id":2070634,"p_id":1225,"pl_id":27061,"pc_id":1925,"s_n":"yahoo","u_so":3}],"eid":"sPwBT","s":"s"});</script><div id="msmaflink-sPwBT">リンク</div><!-- MoshimoAffiliateEasyLink END -->



<h2 class="wp-block-sgb-headings sgb-heading" id="i-0"><div class="sgb-heading__inner hh hh7" style="font-size:1.2em"><span class="sgb-heading__text">USB機器として認識されているかを確認</span></div></h2>



<p>しばらく使用していなかったので、壊れているのかもと思いシステムレポートからUSB機器として認識されているかを確認したところ、無事に認識はされていました。</p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="720" src="https://mogachan.net/wp-content/uploads/2021/12/ELECOM-EDC-GUA3H-B-USB-1024x720.jpg" alt="" class="wp-image-2278" srcset="https://mogachan.net/wp-content/uploads/2021/12/ELECOM-EDC-GUA3H-B-USB-1024x720.jpg 1024w, https://mogachan.net/wp-content/uploads/2021/12/ELECOM-EDC-GUA3H-B-USB-300x211.jpg 300w, https://mogachan.net/wp-content/uploads/2021/12/ELECOM-EDC-GUA3H-B-USB-768x540.jpg 768w, https://mogachan.net/wp-content/uploads/2021/12/ELECOM-EDC-GUA3H-B-USB-1536x1080.jpg 1536w, https://mogachan.net/wp-content/uploads/2021/12/ELECOM-EDC-GUA3H-B-USB-940x661.jpg 940w, https://mogachan.net/wp-content/uploads/2021/12/ELECOM-EDC-GUA3H-B-USB.jpg 2030w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption>システムレポート画面</figcaption></figure></div>



<p>この情報からイーサネットアダプタは、AX88179ということがわかったので、「AX88179 mac」のキーワードでgoogle検索したところ、手動でドライバをインストールしてあげないと使用できないことがわかりました。</p>



<h2 class="wp-block-sgb-headings sgb-heading" id="i-1"><div class="sgb-heading__inner hh hh7" style="font-size:1.2em"><span class="sgb-heading__text">ASIX AX88179のドライバダウンロード</span></div></h2>



<p>ドライバは、以下のasixのページからダウンロード出来るようだったので最新版をダウンロードしました。</p>



<p><a href="https://www.asix.com.tw/en/product/USBEthernet/Super-Speed_USB_Ethernet/AX88179" target="_blank" rel="noreferrer noopener">https://www.asix.com.tw/en/product/USBEthernet/Super-Speed_USB_Ethernet/AX88179</a></p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><a href="https://www.asix.com.tw/en/product/USBEthernet/Super-Speed_USB_Ethernet/AX88179" target="_blank" rel="noopener"><img decoding="async" loading="lazy" width="1024" height="565" src="https://mogachan.net/wp-content/uploads/2021/12/AX88179-DriverDownloadPage-1024x565.jpg" alt="" class="wp-image-2283" srcset="https://mogachan.net/wp-content/uploads/2021/12/AX88179-DriverDownloadPage-1024x565.jpg 1024w, https://mogachan.net/wp-content/uploads/2021/12/AX88179-DriverDownloadPage-300x166.jpg 300w, https://mogachan.net/wp-content/uploads/2021/12/AX88179-DriverDownloadPage-768x424.jpg 768w, https://mogachan.net/wp-content/uploads/2021/12/AX88179-DriverDownloadPage-1536x848.jpg 1536w, https://mogachan.net/wp-content/uploads/2021/12/AX88179-DriverDownloadPage-2048x1131.jpg 2048w, https://mogachan.net/wp-content/uploads/2021/12/AX88179-DriverDownloadPage-940x519.jpg 940w" sizes="(max-width: 1024px) 100vw, 1024px"></a><figcaption>ドライバダウンロードページ</figcaption></figure></div>



<h2 class="wp-block-sgb-headings sgb-heading" id="i-2"><div class="sgb-heading__inner hh hh7" style="font-size:1.2em"><span class="sgb-heading__text">ドライバのインストール</span></div></h2>



<p>ダウンロードしたファイルの中にインストーラが入っているのでインストール実施</p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="313" src="https://mogachan.net/wp-content/uploads/2021/12/AX88179-Driver-Files-1024x313.jpg" alt="" class="wp-image-2284" srcset="https://mogachan.net/wp-content/uploads/2021/12/AX88179-Driver-Files-1024x313.jpg 1024w, https://mogachan.net/wp-content/uploads/2021/12/AX88179-Driver-Files-300x92.jpg 300w, https://mogachan.net/wp-content/uploads/2021/12/AX88179-Driver-Files-768x235.jpg 768w, https://mogachan.net/wp-content/uploads/2021/12/AX88179-Driver-Files-940x287.jpg 940w, https://mogachan.net/wp-content/uploads/2021/12/AX88179-Driver-Files.jpg 1060w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption>ダウンロードしたファイルの中身</figcaption></figure></div>



<p>インストーラを起動すると以下のような警告画面も表示されますが、インストール終了するまでそのまま進みます。<br>最後は、再起動してドライバインストールを完了させます。</p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="699" src="https://mogachan.net/wp-content/uploads/2021/12/AX88179-Installer-Files-1024x699.jpg" alt="" class="wp-image-2285" srcset="https://mogachan.net/wp-content/uploads/2021/12/AX88179-Installer-Files-1024x699.jpg 1024w, https://mogachan.net/wp-content/uploads/2021/12/AX88179-Installer-Files-300x205.jpg 300w, https://mogachan.net/wp-content/uploads/2021/12/AX88179-Installer-Files-768x525.jpg 768w, https://mogachan.net/wp-content/uploads/2021/12/AX88179-Installer-Files-940x642.jpg 940w, https://mogachan.net/wp-content/uploads/2021/12/AX88179-Installer-Files.jpg 1136w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption>インストーラ</figcaption></figure></div>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="778" src="https://mogachan.net/wp-content/uploads/2021/12/AX88179-Install-warning1-1024x778.jpg" alt="" class="wp-image-2286" srcset="https://mogachan.net/wp-content/uploads/2021/12/AX88179-Install-warning1-1024x778.jpg 1024w, https://mogachan.net/wp-content/uploads/2021/12/AX88179-Install-warning1-300x228.jpg 300w, https://mogachan.net/wp-content/uploads/2021/12/AX88179-Install-warning1-768x583.jpg 768w, https://mogachan.net/wp-content/uploads/2021/12/AX88179-Install-warning1-940x714.jpg 940w, https://mogachan.net/wp-content/uploads/2021/12/AX88179-Install-warning1.jpg 1464w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption>警告その1</figcaption></figure></div>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="778" src="https://mogachan.net/wp-content/uploads/2021/12/AX88179-Install-warning2-1024x778.jpg" alt="" class="wp-image-2287" srcset="https://mogachan.net/wp-content/uploads/2021/12/AX88179-Install-warning2-1024x778.jpg 1024w, https://mogachan.net/wp-content/uploads/2021/12/AX88179-Install-warning2-300x228.jpg 300w, https://mogachan.net/wp-content/uploads/2021/12/AX88179-Install-warning2-768x583.jpg 768w, https://mogachan.net/wp-content/uploads/2021/12/AX88179-Install-warning2-940x714.jpg 940w, https://mogachan.net/wp-content/uploads/2021/12/AX88179-Install-warning2.jpg 1464w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption>警告その2</figcaption></figure></div>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="728" src="https://mogachan.net/wp-content/uploads/2021/12/AX88179-Install-finish-1024x728.jpg" alt="" class="wp-image-2288" srcset="https://mogachan.net/wp-content/uploads/2021/12/AX88179-Install-finish-1024x728.jpg 1024w, https://mogachan.net/wp-content/uploads/2021/12/AX88179-Install-finish-300x213.jpg 300w, https://mogachan.net/wp-content/uploads/2021/12/AX88179-Install-finish-768x546.jpg 768w, https://mogachan.net/wp-content/uploads/2021/12/AX88179-Install-finish-940x668.jpg 940w, https://mogachan.net/wp-content/uploads/2021/12/AX88179-Install-finish.jpg 1232w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption>インストール完了</figcaption></figure></div>



<h2 class="wp-block-sgb-headings sgb-heading" id="i-3"><div class="sgb-heading__inner hh hh7" style="font-size:1.2em"><span class="sgb-heading__text">インストール終わったら</span></div></h2>



<p>インストールが終了すると、アプリケーションにASIX_USB_Device_App.appがインストールされているので、<meta charset="utf-8">ASIX_USB_Device_Appを起動してASIX USB Ethernet ControllerをアクティブにするとEDC-GUA3Hを使用できるようになりました。</p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="332" height="296" src="https://mogachan.net/wp-content/uploads/2021/12/ASIX_USB_Device_App.jpg" alt="" class="wp-image-2289" srcset="https://mogachan.net/wp-content/uploads/2021/12/ASIX_USB_Device_App.jpg 332w, https://mogachan.net/wp-content/uploads/2021/12/ASIX_USB_Device_App-300x267.jpg 300w" sizes="(max-width: 332px) 100vw, 332px"><figcaption><meta charset="utf-8">ASIX_USB_Device_App.ap</figcaption></figure></div>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="885" src="https://mogachan.net/wp-content/uploads/2021/12/ASIX-USB-Ethernet-Controller-1024x885.jpg" alt="" class="wp-image-2290" srcset="https://mogachan.net/wp-content/uploads/2021/12/ASIX-USB-Ethernet-Controller-1024x885.jpg 1024w, https://mogachan.net/wp-content/uploads/2021/12/ASIX-USB-Ethernet-Controller-300x259.jpg 300w, https://mogachan.net/wp-content/uploads/2021/12/ASIX-USB-Ethernet-Controller-768x664.jpg 768w, https://mogachan.net/wp-content/uploads/2021/12/ASIX-USB-Ethernet-Controller-940x812.jpg 940w, https://mogachan.net/wp-content/uploads/2021/12/ASIX-USB-Ethernet-Controller.jpg 1250w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption><meta charset="utf-8">ASIX USB Ethernet Controller</figcaption></figure></div>



<h2 class="wp-block-sgb-headings sgb-heading" id="i-4"><div class="sgb-heading__inner hh hh7" style="font-size:1.2em"><span class="sgb-heading__text">最後に</span></div></h2>



<p>ここ最近ドライバをインストールする事もなくなっていたので、昔懐かしい感じがしました。<br>Windowsが出始めた頃とかは大体ドライバが付属していてインストールしてましたから<br>とりあえず、無事使えることがわかってよかったです。</p>



<p>最初は、使えないものと思い M1 MacBookAirで使えるものをAmazonで探して購入してしまいました。<br>ドライバをインストールすれば使えるのがわかってたら、購入しなかったかも…..</p>



<p>ちなみに購入した商品は、こちらの商品です。<br>この商品なら、M1 MacBook AirのUSB-Cポートに差すだけでUSBハブとしても外部ディスプレイ接続も有線LAN接続も可能なので便利な一品です。</p>



<!-- START MoshimoAffiliateEasyLink --><script type="text/javascript">(function(b,c,f,g,a,d,e){b.MoshimoAffiliateObject=a;b[a]=b[a]||function(){arguments.currentScript=c.currentScript||c.scripts[c.scripts.length-2];(b[a].q=b[a].q||[]).push(arguments)};c.getElementById(a)||(d=c.createElement(f),d.src=g,d.id=a,e=c.getElementsByTagName("body")[0],e.appendChild(d))})(window,document,"script","//dn.msmstatic.com/site/cardlink/bundle.js?20210203","msmaflink");msmaflink({"n":"usb ハブ Vilcome type-c 8in1 ドッキング 4K HDMI出力 変換 アダプタ PD 充電対応 LAN イーサネット SD\/Micro SD\/TF カードリーダー \/ USB 3.0 USB 2.0 拡張 増設 高速データ転送\/ Thunderbolt 3 タイプC ウルトラスリム MacBook Pro\/ MacBook Air\/ iPad Pro 2018 2020\/ Dell XPS 15 13 \/ Surface Go \/ Huawei Matebook およびその他のType Cデバイス対応可能なタイプ C ハブ テレワーク リモート 在宅勤務 ウェブ会議対応","b":"Vilcome","t":"8in1","d":"https:\/\/m.media-amazon.com","c_p":"\/images\/I","p":["\/41SJqG-W4WL._SL500_.jpg","\/41Mz3kp6lrL._SL500_.jpg","\/51uA2MB9rnL._SL500_.jpg","\/418qvWeTPmL._SL500_.jpg","\/51I6i1qa11L._SL500_.jpg","\/51gyCK46dqL._SL500_.jpg","\/51UYLvSERYL._SL500_.jpg","\/41UwLVe7+3L._SL500_.jpg"],"u":{"u":"https:\/\/www.amazon.co.jp\/dp\/B07YHJV74T","t":"amazon","r_v":""},"v":"2.1","b_l":[{"id":1,"u_tx":"Amazonで見る","u_bc":"#f79256","u_url":"https:\/\/www.amazon.co.jp\/dp\/B07YHJV74T","a_id":2070632,"p_id":170,"pl_id":27060,"pc_id":185,"s_n":"amazon","u_so":1},{"id":2,"u_tx":"楽天市場で見る","u_bc":"#f76956","u_url":"https:\/\/search.rakuten.co.jp\/search\/mall\/usb%20%E3%83%8F%E3%83%96%20Vilcome%20type-c%208in1%20%E3%83%89%E3%83%83%E3%82%AD%E3%83%B3%E3%82%B0%204K%20HDMI%E5%87%BA%E5%8A%9B%20%E5%A4%89%E6%8F%9B%20%E3%82%A2%E3%83%80%E3%83%97%E3%82%BF%20PD%20%E5%85%85%E9%9B%BB%E5%AF%BE%E5%BF%9C%20LAN%20%E3%82%A4%E3%83%BC%E3%82%B5%E3%83%8D%E3%83%83%E3%83%88%20SD%2FMicro%20SD%2FTF%20%E3%82%AB%E3%83%BC%E3%83%89%E3%83%AA%E3%83%BC%E3%83%80%E3%83%BC%20%2F%20USB%203.0%20USB%202.0%20%E6%8B%A1%E5%BC%B5%20%E5%A2%97%E8%A8%AD%20%E9%AB%98%E9%80%9F%E3%83%87%E3%83%BC%E3%82%BF%E8%BB%A2%E9%80%81%2F%20Thunderbolt%203%20%E3%82%BF%E3%82%A4%E3%83%97C%20%E3%82%A6%E3%83%AB%E3%83%88%E3%83%A9%E3%82%B9%E3%83%AA%E3%83%A0%20MacBook%20Pro%2F%20MacBook%20Air%2F%20iPad%20Pro%202018%202020%2F%20Dell%20XPS%2015%2013%20%2F%20Surface%20Go%20%2F%20Huawei%20Matebook%20%E3%81%8A%E3%82%88%E3%81%B3%E3%81%9D%E3%81%AE%E4%BB%96%E3%81%AEType%20C%E3%83%87%E3%83%90%E3%82%A4%E3%82%B9%E5%AF%BE%E5%BF%9C%E5%8F%AF%E8%83%BD%E3%81%AA%E3%82%BF%E3%82%A4%E3%83%97%20C%20%E3%83%8F%E3%83%96%20%E3%83%86%E3%83%AC%E3%83%AF%E3%83%BC%E3%82%AF%20%E3%83%AA%E3%83%A2%E3%83%BC%E3%83%88%20%E5%9C%A8%E5%AE%85%E5%8B%A4%E5%8B%99%20%E3%82%A6%E3%82%A7%E3%83%96%E4%BC%9A%E8%AD%B0%E5%AF%BE%E5%BF%9C\/","a_id":2051715,"p_id":54,"pl_id":27059,"pc_id":54,"s_n":"rakuten","u_so":2},{"id":3,"u_tx":"Yahoo!ショッピングで見る","u_bc":"#66a7ff","u_url":"https:\/\/shopping.yahoo.co.jp\/search?first=1\u0026p=usb%20%E3%83%8F%E3%83%96%20Vilcome%20type-c%208in1%20%E3%83%89%E3%83%83%E3%82%AD%E3%83%B3%E3%82%B0%204K%20HDMI%E5%87%BA%E5%8A%9B%20%E5%A4%89%E6%8F%9B%20%E3%82%A2%E3%83%80%E3%83%97%E3%82%BF%20PD%20%E5%85%85%E9%9B%BB%E5%AF%BE%E5%BF%9C%20LAN%20%E3%82%A4%E3%83%BC%E3%82%B5%E3%83%8D%E3%83%83%E3%83%88%20SD%2FMicro%20SD%2FTF%20%E3%82%AB%E3%83%BC%E3%83%89%E3%83%AA%E3%83%BC%E3%83%80%E3%83%BC%20%2F%20USB%203.0%20USB%202.0%20%E6%8B%A1%E5%BC%B5%20%E5%A2%97%E8%A8%AD%20%E9%AB%98%E9%80%9F%E3%83%87%E3%83%BC%E3%82%BF%E8%BB%A2%E9%80%81%2F%20Thunderbolt%203%20%E3%82%BF%E3%82%A4%E3%83%97C%20%E3%82%A6%E3%83%AB%E3%83%88%E3%83%A9%E3%82%B9%E3%83%AA%E3%83%A0%20MacBook%20Pro%2F%20MacBook%20Air%2F%20iPad%20Pro%202018%202020%2F%20Dell%20XPS%2015%2013%20%2F%20Surface%20Go%20%2F%20Huawei%20Matebook%20%E3%81%8A%E3%82%88%E3%81%B3%E3%81%9D%E3%81%AE%E4%BB%96%E3%81%AEType%20C%E3%83%87%E3%83%90%E3%82%A4%E3%82%B9%E5%AF%BE%E5%BF%9C%E5%8F%AF%E8%83%BD%E3%81%AA%E3%82%BF%E3%82%A4%E3%83%97%20C%20%E3%83%8F%E3%83%96%20%E3%83%86%E3%83%AC%E3%83%AF%E3%83%BC%E3%82%AF%20%E3%83%AA%E3%83%A2%E3%83%BC%E3%83%88%20%E5%9C%A8%E5%AE%85%E5%8B%A4%E5%8B%99%20%E3%82%A6%E3%82%A7%E3%83%96%E4%BC%9A%E8%AD%B0%E5%AF%BE%E5%BF%9C","a_id":2070634,"p_id":1225,"pl_id":27061,"pc_id":1925,"s_n":"yahoo","u_so":3}],"eid":"uMu8n","s":"s"});</script><div id="msmaflink-uMu8n">リンク</div><!-- MoshimoAffiliateEasyLink END -->
]]></content:encoded>
					
					<wfw:commentRss>https://mogachan.net/edcgua3h/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【開発環境（java）】M1 Macでeclipseの設定する</title>
		<link>https://mogachan.net/m1eclipse/</link>
					<comments>https://mogachan.net/m1eclipse/#respond</comments>
		
		<dc:creator><![CDATA[もがちゃん]]></dc:creator>
		<pubDate>Sun, 05 Dec 2021 12:27:58 +0000</pubDate>
				<category><![CDATA[プログラミング学習]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[m1]]></category>
		<category><![CDATA[mac]]></category>
		<guid isPermaLink="false">https://mogachan.net/?p=2256</guid>

					<description><![CDATA[<p><img src="https://mogachan.net/wp-content/uploads/2021/12/m1mac-eclipse-title-520x300.jpg" class="webfeedsFeaturedVisual" width="520" height="300" /></p>こんにちは、もがちゃんです。久しぶりの投稿になります。最近、衝動買いで Apple MacBook Air（M1 chip mem 8gb ssd 256gb）を家電量販店で購入したので、今更ですが javaの勉強でもし ... ]]></description>
										<content:encoded><![CDATA[<p><img src="https://mogachan.net/wp-content/uploads/2021/12/m1mac-eclipse-title-520x300.jpg" class="webfeedsFeaturedVisual" width="520" height="300" /></p>
<h2 class="wp-block-sgb-headings sgb-heading" id="i-0"><div class="sgb-heading__inner hh hh7" style="font-size:1.2em"><span class="sgb-heading__text">はじめに</span></div></h2>



<p>こんにちは、もがちゃんです。久しぶりの投稿になります。<br>最近、衝動買いで Apple MacBook Air（M1 chip mem 8gb ssd 256gb）を家電量販店で購入したので、今更ですが javaの勉強でもしようと思いましてeclipseの環境構築をしてみました。</p>



<h2 class="wp-block-sgb-headings sgb-heading" id="i-1"><div class="sgb-heading__inner hh hh7" style="font-size:1.2em"><span class="sgb-heading__text">eclipse日本語版のダウンロード</span></div></h2>



<p>Windows環境で javaの開発を行う際は、よくeclipseを使用しているので、M1用のeclipseがあれば快適に使えるかと思いましたが、残念ながらM1用のeclipseはないようです。</p>



<p>M1 Mac用のeclipseは無いようですが、Intel版Mac用のeclipseは、Windows環境の時にお世話になっている以下のサイトにありました。<br><a href="https://mergedoc.osdn.jp/" target="_blank" rel="noreferrer noopener">統合開発環境 Eclipse 日本語化プロジェクト</a></p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="560" src="https://mogachan.net/wp-content/uploads/2021/12/ff07cc14204ef353f3150b608a367613-1024x560.jpg" alt="Pleiades All in One Eclipse（リリース 2021-12）" class="wp-image-2265" srcset="https://mogachan.net/wp-content/uploads/2021/12/ff07cc14204ef353f3150b608a367613-1024x560.jpg 1024w, https://mogachan.net/wp-content/uploads/2021/12/ff07cc14204ef353f3150b608a367613-300x164.jpg 300w, https://mogachan.net/wp-content/uploads/2021/12/ff07cc14204ef353f3150b608a367613-768x420.jpg 768w, https://mogachan.net/wp-content/uploads/2021/12/ff07cc14204ef353f3150b608a367613-1536x839.jpg 1536w, https://mogachan.net/wp-content/uploads/2021/12/ff07cc14204ef353f3150b608a367613-2048x1119.jpg 2048w, https://mogachan.net/wp-content/uploads/2021/12/ff07cc14204ef353f3150b608a367613-940x514.jpg 940w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption>Pleiades All in One Eclipse（リリース 2021-12）</figcaption></figure></div>



<p>今回は、リリース 2021-12からMac用のJava Full Editioinをダウンロードしました。<br>ダウンロードしたファイルは、pleiades-2021-12-java-mac-jre_20211204.dmg</p>



<h2 class="wp-block-sgb-headings sgb-heading" id="i-2"><div class="sgb-heading__inner hh hh7" style="font-size:1.2em"><span class="sgb-heading__text">eclipse日本語版のインストール</span></div></h2>



<p>ダウンロードしたファイル（pleiades-2021-12-java-mac-jre_20211204.dmg）からインストールします。</p>



<p>ダウンロードファイルをダブルクリックすると以下のような画面が表示されるので、あとは指示通りドラッグ＆ドロップでアプリケーションフォルダにコピーするだけでインストールは終了です。簡単ですね。</p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="799" src="https://mogachan.net/wp-content/uploads/2021/12/eclipse-installer-1024x799.png" alt="eclipse インストーラ画面" class="wp-image-2267" srcset="https://mogachan.net/wp-content/uploads/2021/12/eclipse-installer-1024x799.png 1024w, https://mogachan.net/wp-content/uploads/2021/12/eclipse-installer-300x234.png 300w, https://mogachan.net/wp-content/uploads/2021/12/eclipse-installer-768x600.png 768w, https://mogachan.net/wp-content/uploads/2021/12/eclipse-installer-1536x1199.png 1536w, https://mogachan.net/wp-content/uploads/2021/12/eclipse-installer-940x734.png 940w, https://mogachan.net/wp-content/uploads/2021/12/eclipse-installer.png 1824w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption>eclipse インストーラ画面</figcaption></figure></div>



<h2 class="wp-block-sgb-headings sgb-heading" id="i-3"><div class="sgb-heading__inner hh hh7" style="font-size:1.2em"><span class="sgb-heading__text">eclpse日本語版の起動確認</span></div></h2>



<p>アプリケーションフォルダにインストールした、Eclipse_2021-12.appアイコンをダブルクリックして起動します。<br>ワークスペースの場所は、ホームディレクトリ配下の書類(Documents)ディレクトリにとりあえずworkspaceを作成して使用します。</p>



<p>ワークスペースの場所を指定して起動すると、以下の画面が表示されたので無事起動することができました。あとは適宜必要な設定をしながら使っていくことにします。</p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="651" src="https://mogachan.net/wp-content/uploads/2021/12/welcome-to-Eclipse-1024x651.png" alt="ようこそ画面" class="wp-image-2269" srcset="https://mogachan.net/wp-content/uploads/2021/12/welcome-to-Eclipse-1024x651.png 1024w, https://mogachan.net/wp-content/uploads/2021/12/welcome-to-Eclipse-300x191.png 300w, https://mogachan.net/wp-content/uploads/2021/12/welcome-to-Eclipse-768x488.png 768w, https://mogachan.net/wp-content/uploads/2021/12/welcome-to-Eclipse-1536x977.png 1536w, https://mogachan.net/wp-content/uploads/2021/12/welcome-to-Eclipse-2048x1302.png 2048w, https://mogachan.net/wp-content/uploads/2021/12/welcome-to-Eclipse-940x598.png 940w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption>ようこそ画面</figcaption></figure></div>



<p>ちなみに、プロセスを確認すると当然ながら種類の列は Intel が表示されています。</p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="524" src="https://mogachan.net/wp-content/uploads/2021/12/eclipse-process-1024x524.png" alt="eclipseのプロセス" class="wp-image-2271" srcset="https://mogachan.net/wp-content/uploads/2021/12/eclipse-process-1024x524.png 1024w, https://mogachan.net/wp-content/uploads/2021/12/eclipse-process-300x153.png 300w, https://mogachan.net/wp-content/uploads/2021/12/eclipse-process-768x393.png 768w, https://mogachan.net/wp-content/uploads/2021/12/eclipse-process-1536x785.png 1536w, https://mogachan.net/wp-content/uploads/2021/12/eclipse-process-2048x1047.png 2048w, https://mogachan.net/wp-content/uploads/2021/12/eclipse-process-940x481.png 940w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption>eclipseのプロセス</figcaption></figure></div>



<h2 class="wp-block-sgb-headings sgb-heading" id="i-4"><div class="sgb-heading__inner hh hh7" style="font-size:1.2em"><span class="sgb-heading__text">まとめ</span></div></h2>



<p>M1 Macでもeclipse日本語版を使用することは出来ます。但し、M1チップ用に最適化されたバージョンでは無いので少し重いような感じがします。（まだ軽くしか使用していないのですが、レインボーカーソルが表示されることはないようです）</p>



<p>M1チップ用に最適化されたバージョンが使えるようになれば良いのですが。（Visual Studio Codeのように）</p>



<p>M1チップのMacBook Airですが、軽くてバッテリー持ちも良いので色々なところに気軽に持ち歩くのには最適なので、ちょっとした空き時間などに勉強することが出来そうです。<br></p>
]]></content:encoded>
					
					<wfw:commentRss>https://mogachan.net/m1eclipse/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【開発環境】Visual Studio Codeの設定（C/C++言語）</title>
		<link>https://mogachan.net/vscode_no2/</link>
					<comments>https://mogachan.net/vscode_no2/#respond</comments>
		
		<dc:creator><![CDATA[もがちゃん]]></dc:creator>
		<pubDate>Sat, 12 Jun 2021 12:23:22 +0000</pubDate>
				<category><![CDATA[プログラミング学習]]></category>
		<category><![CDATA[C++言語]]></category>
		<category><![CDATA[C言語]]></category>
		<category><![CDATA[開発環境]]></category>
		<guid isPermaLink="false">https://mogachan.net/?p=2184</guid>

					<description><![CDATA[<p><img src="https://mogachan.net/wp-content/uploads/2021/06/f527152353237e0fa2c9da4959b7a938-520x300.png" class="webfeedsFeaturedVisual" width="520" height="300" /></p>こんにちは、もがちゃんです。前回に続いてVisual Studio Codeの設定方法の紹介になります。今回は、Visual Studio CodeでC/C++のコンパイル・デバッグが行るように環境設定します。これから、 ... ]]></description>
										<content:encoded><![CDATA[<p><img src="https://mogachan.net/wp-content/uploads/2021/06/f527152353237e0fa2c9da4959b7a938-520x300.png" class="webfeedsFeaturedVisual" width="520" height="300" /></p>
<p>こんにちは、もがちゃんです。<br>前回に続いてVisual Studio Codeの設定方法の紹介になります。<br>今回は、Visual Studio CodeでC/C++のコンパイル・デバッグが行るように環境設定します。<br>これから、C/C++を学習しようとしている人には簡単に設定できるのでオススメします。</p>



<h2 class="wp-block-sgb-headings sgb-heading" id="i-0"><div class="sgb-heading__inner hh hh7" style="font-size:1.2em"><span class="sgb-heading__text">コンパイル環境<strong>（コンパイラ・リンカ・デバッガ）</strong>の設定</span></div></h2>



<p>Windowsで使用できる主なコンパイルラとしては、Microsoft C++コンパイラ（MSVC）とgcc（GNU Compiler Collection）があります。</p>



<p>今回は、Windows環境以外でも使用できるgccを使用したいと思います。<br>Windowsでgccを使用するために必要となるコマンドやヘッダファイル、ライブラリ等がまとめられた<a href="http://mingw-w64.org/doku.php/start" data-type="URL" data-id="http://mingw-w64.org/doku.php/start" target="_blank" rel="noreferrer noopener">Mingw-w64</a>が存在するので、これをインストールします。</p>



<h3 class="wp-block-sgb-headings sgb-heading" id="i-1"><div class="sgb-heading__inner sgb-heading--type1 with-icon" style="background-color:transparent;border-color:transparent;font-size:1.2em"><i class="fa fa-check" style="color:#5ba9f7"></i><span class="sgb-heading__text" style="color:#333">インストーラのダウンロード</span></div></h3>



<p>Mingw-w64のインストーラは、以下のサイトからダウンロードすることが出来ます。<br><a rel="noreferrer noopener" href="https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/installer/mingw-w64-install.exe/download" data-type="URL" data-id="https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/installer/mingw-w64-install.exe/download" target="_blank">https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/installer/mingw-w64-install.exe/download</a></p>



<h3 class="wp-block-sgb-headings sgb-heading" id="i-2"><div class="sgb-heading__inner sgb-heading--type1 with-icon" style="background-color:transparent;border-color:transparent;font-size:1.2em"><i class="fa fa-check" style="color:#5ba9f7"></i><span class="sgb-heading__text" style="color:#333">インストール</span></div></h3>



<p>ダウンロードしたmingw-w64-install.exeを実行して次のようにインストールします。<br>インストーラを実行した際、「この不明な発行元からのアプリがデバイスに変更を加えることを許可しますか？」の確認ダイアログが表示されますが、「はい」を選択してインストールを進めます。</p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large is-resized"><img decoding="async" loading="lazy" src="https://mogachan.net/wp-content/uploads/2021/06/mingw-w64-install1.jpg" alt="mingw-w64-install-step1" class="wp-image-2190" width="527" height="386" srcset="https://mogachan.net/wp-content/uploads/2021/06/mingw-w64-install1.jpg 527w, https://mogachan.net/wp-content/uploads/2021/06/mingw-w64-install1-300x220.jpg 300w" sizes="(max-width: 527px) 100vw, 527px"><figcaption>mingw-w64-install-step1</figcaption></figure></div>



<p></p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="527" height="386" src="https://mogachan.net/wp-content/uploads/2021/06/mingw-w64-install2.jpg" alt="mingw-w64-install-step2" class="wp-image-2191" srcset="https://mogachan.net/wp-content/uploads/2021/06/mingw-w64-install2.jpg 527w, https://mogachan.net/wp-content/uploads/2021/06/mingw-w64-install2-300x220.jpg 300w" sizes="(max-width: 527px) 100vw, 527px"><figcaption>mingw-w64-install-step2</figcaption></figure></div>



<p></p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="527" height="386" src="https://mogachan.net/wp-content/uploads/2021/06/mingw-w64-install3.jpg" alt="mingw-w64-install-step3" class="wp-image-2192" srcset="https://mogachan.net/wp-content/uploads/2021/06/mingw-w64-install3.jpg 527w, https://mogachan.net/wp-content/uploads/2021/06/mingw-w64-install3-300x220.jpg 300w" sizes="(max-width: 527px) 100vw, 527px"><figcaption>mingw-w64-install-step3</figcaption></figure></div>



<p></p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="527" height="386" src="https://mogachan.net/wp-content/uploads/2021/06/mingw-w64-install4.jpg" alt="mingw-w64-install-step4" class="wp-image-2193" srcset="https://mogachan.net/wp-content/uploads/2021/06/mingw-w64-install4.jpg 527w, https://mogachan.net/wp-content/uploads/2021/06/mingw-w64-install4-300x220.jpg 300w" sizes="(max-width: 527px) 100vw, 527px"><figcaption>mingw-w64-install-step4</figcaption></figure></div>



<p></p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="527" height="386" src="https://mogachan.net/wp-content/uploads/2021/06/mingw-w64-install5.jpg" alt="mingw-w64-install-step5" class="wp-image-2195" srcset="https://mogachan.net/wp-content/uploads/2021/06/mingw-w64-install5.jpg 527w, https://mogachan.net/wp-content/uploads/2021/06/mingw-w64-install5-300x220.jpg 300w" sizes="(max-width: 527px) 100vw, 527px"><figcaption>mingw-w64-install-step5</figcaption></figure></div>



<div class="wp-block-sgb-message"><div class="memo sng-shadow-0" style="border-radius:0px;background-color:#fff9e6;color:#ffb36b"><div class="memo_ttl dfont"><span class="sng-box-msg__icon" style="background:#ffb36b"><i class="fas fa-pencil-alt"></i></span><div class="sng-box-msg__title">アンインストールするには</div></div><div class="sng-box-msg__contents">
<p>このインストーラには、アンインストール機能は無いのでアンインストールしたい場合は、次の環境設定で設定した内容を削除して、インストール先のディレクトリを削除します。</p>



<p>私がインストールした際のデフォルトのインストール先は、C:\Program Files\mingw-w64になっていました。</p>
</div></div></div>



<h3 class="wp-block-sgb-headings sgb-heading" id="i-3"><div class="sgb-heading__inner sgb-heading--type1 with-icon" style="background-color:transparent;border-color:transparent;font-size:1.2em"><i class="fa fa-check" style="color:#5ba9f7"></i><span class="sgb-heading__text" style="color:#333">環境設定</span></div></h3>



<p>インストールが終わったら、ユーザー環境変数のPathにインストールディレクトリ内にあるbinディレクトリのパスを追加します。</p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="345" height="635" src="https://mogachan.net/wp-content/uploads/2021/06/mingw-w64-setting1.jpg" alt="環境変数を編集" class="wp-image-2196" srcset="https://mogachan.net/wp-content/uploads/2021/06/mingw-w64-setting1.jpg 345w, https://mogachan.net/wp-content/uploads/2021/06/mingw-w64-setting1-163x300.jpg 163w" sizes="(max-width: 345px) 100vw, 345px"><figcaption>環境変数を編集</figcaption></figure></div>



<p>スタートメニューの隣にある検索ボックスに「環境変数を編集」と入力して検索結果からコントロールパネルの環境変数を編集を選択します。</p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="618" height="585" src="https://mogachan.net/wp-content/uploads/2021/06/mingw-w64-setting2.jpg" alt="環境変数" class="wp-image-2197" srcset="https://mogachan.net/wp-content/uploads/2021/06/mingw-w64-setting2.jpg 618w, https://mogachan.net/wp-content/uploads/2021/06/mingw-w64-setting2-300x284.jpg 300w" sizes="(max-width: 618px) 100vw, 618px"><figcaption>環境変数</figcaption></figure></div>



<p>ユーザーの環境変数部分のPathを選択し、編集(E)ボタンをクリックします。</p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="527" height="501" src="https://mogachan.net/wp-content/uploads/2021/06/mingw-w64-setting3.jpg" alt="" class="wp-image-2198" srcset="https://mogachan.net/wp-content/uploads/2021/06/mingw-w64-setting3.jpg 527w, https://mogachan.net/wp-content/uploads/2021/06/mingw-w64-setting3-300x285.jpg 300w" sizes="(max-width: 527px) 100vw, 527px"></figure></div>



<p>新規(N)ボタンをクリックして、mingw-w64インストールディレクトリ内にあるbinディレクトリのパスを追加して「OK」ボタンをクリックします。<br>私の場合は、C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\binでした。</p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="594" height="501" src="https://mogachan.net/wp-content/uploads/2021/06/mingw-w64-setting4.jpg" alt="環境変数名の編集" class="wp-image-2199" srcset="https://mogachan.net/wp-content/uploads/2021/06/mingw-w64-setting4.jpg 594w, https://mogachan.net/wp-content/uploads/2021/06/mingw-w64-setting4-300x253.jpg 300w" sizes="(max-width: 594px) 100vw, 594px"><figcaption>環境変数名の編集</figcaption></figure></div>



<div class="wp-block-sgb-message"><div class="memo sng-shadow-0" style="border-radius:0px;background-color:#fff9e6;color:#ffb36b"><div class="memo_ttl dfont"><span class="sng-box-msg__icon" style="background:#ffb36b"><i class="fas fa-pencil-alt"></i></span><div class="sng-box-msg__title">コンピュータを使用する人全てが利用できるようにするには</div></div><div class="sng-box-msg__contents">
<p>「システム環境変数の編集」を検索してコントロールパネルのシステム環境変数の編集からシステム環境変数のPathにmingw-w64インストールディレクトリ内にあるbinディレクトリのパスを追加します。</p>
</div></div></div>



<h2 class="wp-block-sgb-headings sgb-heading" id="i-4"><div class="sgb-heading__inner hh hh7" style="font-size:1.2em"><span class="sgb-heading__text">機能拡張（C/C++ for Visual Studio Code）インストール</span></div></h2>



<p>Visual Studio Codeを起動し、機能拡張の検索ボックスにcを入力して検索を行い、インストールします。</p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="768" src="https://mogachan.net/wp-content/uploads/2021/06/C-C-for-Visual-Studio-Code-install.jpg" alt="C/C++ for Visual Studio Code install" class="wp-image-2202" srcset="https://mogachan.net/wp-content/uploads/2021/06/C-C-for-Visual-Studio-Code-install.jpg 1024w, https://mogachan.net/wp-content/uploads/2021/06/C-C-for-Visual-Studio-Code-install-300x225.jpg 300w, https://mogachan.net/wp-content/uploads/2021/06/C-C-for-Visual-Studio-Code-install-768x576.jpg 768w, https://mogachan.net/wp-content/uploads/2021/06/C-C-for-Visual-Studio-Code-install-940x705.jpg 940w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption>C/C++ for Visual Studio Code install</figcaption></figure></div>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="768" src="https://mogachan.net/wp-content/uploads/2021/06/C-C-for-Visual-Studio-Code-installed.jpg" alt="C/C++ for Visual Studio Code installed" class="wp-image-2203" srcset="https://mogachan.net/wp-content/uploads/2021/06/C-C-for-Visual-Studio-Code-installed.jpg 1024w, https://mogachan.net/wp-content/uploads/2021/06/C-C-for-Visual-Studio-Code-installed-300x225.jpg 300w, https://mogachan.net/wp-content/uploads/2021/06/C-C-for-Visual-Studio-Code-installed-768x576.jpg 768w, https://mogachan.net/wp-content/uploads/2021/06/C-C-for-Visual-Studio-Code-installed-940x705.jpg 940w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption>C/C++ for Visual Studio Code installed</figcaption></figure></div>



<h2 class="wp-block-sgb-headings sgb-heading" id="i-5"><div class="sgb-heading__inner hh hh7" style="font-size:1.2em"><span class="sgb-heading__text">Hello Worldを出力するプログラムを作ってみる</span></div></h2>



<h3 class="wp-block-sgb-headings sgb-heading" id="i-6"><div class="sgb-heading__inner sgb-heading--type1 with-icon" style="background-color:transparent;border-color:transparent;font-size:1.2em"><i class="fa fa-check" style="color:#5ba9f7"></i><span class="sgb-heading__text" style="color:#333">エクスプローラからフォルダを開く</span></div></h3>



<div class="wp-block-image is-style-sango-with-border"><figure class="alignright size-large"><img decoding="async" loading="lazy" width="1024" height="768" src="https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step1.jpg" alt="フォルダーを開く" class="wp-image-2208" srcset="https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step1.jpg 1024w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step1-300x225.jpg 300w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step1-768x576.jpg 768w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step1-940x705.jpg 940w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption>フォルダーを開く</figcaption></figure></div>



<p></p>



<p>今回はHello Worldフォルダーを作成し選択しました。</p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="768" src="https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step2.jpg" alt="Hello Worldフォルダー" class="wp-image-2209" srcset="https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step2.jpg 1024w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step2-300x225.jpg 300w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step2-768x576.jpg 768w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step2-940x705.jpg 940w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption>Hello Worldフォルダー</figcaption></figure></div>



<h3 class="wp-block-sgb-headings sgb-heading" id="i-7"><div class="sgb-heading__inner sgb-heading--type1 with-icon" style="background-color:transparent;border-color:transparent;font-size:1.2em"><i class="fa fa-check" style="color:#5ba9f7"></i><span class="sgb-heading__text" style="color:#333">ソースファイルを新規作成する</span></div></h3>



<figure class="wp-block-image size-large is-style-sango-with-border"><img decoding="async" loading="lazy" width="1024" height="768" src="https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step3.jpg" alt="" class="wp-image-2211" srcset="https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step3.jpg 1024w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step3-300x225.jpg 300w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step3-768x576.jpg 768w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step3-940x705.jpg 940w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption>新しいファイルを追加する</figcaption></figure>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="768" src="https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step4.jpg" alt="Hello World.c" class="wp-image-2235" srcset="https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step4.jpg 1024w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step4-300x225.jpg 300w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step4-768x576.jpg 768w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step4-940x705.jpg 940w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption>Hello World.c</figcaption></figure></div>



<p></p>



<h3 class="wp-block-sgb-headings sgb-heading" id="i-8"><div class="sgb-heading__inner sgb-heading--type1 with-icon" style="background-color:transparent;border-color:transparent;font-size:1.2em"><i class="fa fa-check" style="color:#5ba9f7"></i><span class="sgb-heading__text" style="color:#333">Hello Worldのソースを書いて保存する</span></div></h3>



<pre class="wp-block-code"><code>#include &lt;stdio.h&gt;

void main(int argc, char* argv[]) {
    printf("Hello World!");
}</code></pre>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="768" src="https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step5.jpg" alt="Hello Worldのソースを書いて保存" class="wp-image-2222" srcset="https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step5.jpg 1024w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step5-300x225.jpg 300w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step5-768x576.jpg 768w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step5-940x705.jpg 940w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption>Hello Worldのソースを書いて保存</figcaption></figure></div>



<h2 class="wp-block-sgb-headings sgb-heading" id="i-9"><div class="sgb-heading__inner hh hh7" style="font-size:1.2em"><span class="sgb-heading__text">Hello Worldをデバッグ実行してみる</span></div></h2>



<h3 class="wp-block-sgb-headings sgb-heading" id="i-10"><div class="sgb-heading__inner sgb-heading--type1 with-icon" style="background-color:transparent;border-color:transparent;font-size:1.2em"><i class="fa fa-check" style="color:#5ba9f7"></i><span class="sgb-heading__text" style="color:#333">構成の追加</span></div></h3>



<p>実行(R)メニューから構成の追加を選択する</p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="768" src="https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step6.jpg" alt="構成の追加" class="wp-image-2225" srcset="https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step6.jpg 1024w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step6-300x225.jpg 300w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step6-768x576.jpg 768w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step6-940x705.jpg 940w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption>構成の追加</figcaption></figure></div>



<h3 class="wp-block-sgb-headings sgb-heading" id="i-11"><div class="sgb-heading__inner sgb-heading--type1 with-icon" style="background-color:transparent;border-color:transparent;font-size:1.2em"><i class="fa fa-check" style="color:#5ba9f7"></i><span class="sgb-heading__text" style="color:#333">環境の選択</span></div></h3>



<p>環境の選択では、今回Mingw-w64（gcc）を使用するので、G++（GDB/LLDB）を選択します。</p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="768" src="https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step7.jpg" alt="環境の選択" class="wp-image-2227" srcset="https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step7.jpg 1024w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step7-300x225.jpg 300w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step7-768x576.jpg 768w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step7-940x705.jpg 940w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption>環境の選択</figcaption></figure></div>



<h3 class="wp-block-sgb-headings sgb-heading" id="i-12"><div class="sgb-heading__inner sgb-heading--type1 with-icon" style="background-color:transparent;border-color:transparent;font-size:1.2em"><i class="fa fa-check" style="color:#5ba9f7"></i><span class="sgb-heading__text" style="color:#333">構成の選択</span></div></h3>



<p>構成の選択では、gcc.exeを選択します。（表示されているパスは、Mingw-w64をインストールしたパスになっていると思います。）</p>



<figure class="wp-block-image size-large is-style-sango-with-border"><img decoding="async" loading="lazy" width="1024" height="768" src="https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step8.jpg" alt="構成の選択" class="wp-image-2230" srcset="https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step8.jpg 1024w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step8-300x225.jpg 300w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step8-768x576.jpg 768w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step8-940x705.jpg 940w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption>構成の選択</figcaption></figure>



<p>構成の選択が終わると以下のようなjsonファイルが自動的に作成され、プログラムも実行されます。</p>



<pre class="wp-block-code"><code>{
    // IntelliSense を使用して利用可能な属性を学べます。
    // 既存の属性の説明をホバーして表示します。
    // 詳細情報は次を確認してください: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "gcc.exe - アクティブ ファイルのビルドとデバッグ",
            "type": "cppdbg",
            "request": "launch",
            "program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
            "args": [],
            "stopAtEntry": false,
            "cwd": "${fileDirname}",
            "environment": [],
            "externalConsole": false,
            "MIMode": "gdb",
            "miDebuggerPath": "C:\\Program Files\\mingw-w64\\x86_64-8.1.0-posix-seh-rt_v6-rev0\\mingw64\\bin\\gdb.exe",
            "setupCommands": [
                {
                    "description": "gdb の再フォーマットを有効にする",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                }
            ],
            "preLaunchTask": "C/C++: gcc.exe アクティブなファイルのビルド"
        }
    ]
}</code></pre>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="768" src="https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step9.jpg" alt="launch.json" class="wp-image-2232" srcset="https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step9.jpg 1024w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step9-300x225.jpg 300w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step9-768x576.jpg 768w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step9-940x705.jpg 940w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption>launch.json</figcaption></figure></div>



<p>launch.jsonのタブは、特に編集の必要がないので×印の所をクリックして閉じます。</p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="768" src="https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step10.jpg" alt="launch.jsonを閉じる" class="wp-image-2237" srcset="https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step10.jpg 1024w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step10-300x225.jpg 300w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step10-768x576.jpg 768w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step10-940x705.jpg 940w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption>launch.jsonを閉じる</figcaption></figure></div>



<h3 class="wp-block-sgb-headings sgb-heading" id="i-13"><div class="sgb-heading__inner sgb-heading--type1 with-icon" style="background-color:transparent;border-color:transparent;font-size:1.2em"><i class="fa fa-check" style="color:#5ba9f7"></i><span class="sgb-heading__text" style="color:#333">デバッグ実行</span></div></h3>



<p>ブレークポイントを設定するには、ソースの行番号付近をクリックすることで設定できます。（解除する場合は、ブレークポイントが設定されている行番号付近（赤丸部分）をクリックすることで解除できます。（赤丸が消えます）<br>下の画像では、printf文の所にブレークポイントを設定しました。</p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="768" src="https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step11.jpg" alt="ブレークポイントの設定" class="wp-image-2241" srcset="https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step11.jpg 1024w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step11-300x225.jpg 300w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step11-768x576.jpg 768w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step11-940x705.jpg 940w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption>ブレークポイントの設定</figcaption></figure></div>



<p>実行(R)メニューのデバッグの開始を選択するか、F5キーを押下することでデバッグ実行されます。<br>下の画像は、ブレークポイントで停止している画像になります。</p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="768" src="https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step12.jpg" alt="ブレークポイントで停止" class="wp-image-2250" srcset="https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step12.jpg 1024w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step12-300x225.jpg 300w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step12-768x576.jpg 768w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step12-940x705.jpg 940w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption>ブレークポイントで停止</figcaption></figure></div>



<p>F5キーを押下して、処理を継続してプログラムの実行が終了</p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="768" src="https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step13.jpg" alt="デバッグ実行終了" class="wp-image-2252" srcset="https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step13.jpg 1024w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step13-300x225.jpg 300w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step13-768x576.jpg 768w, https://mogachan.net/wp-content/uploads/2021/06/vscode_hello-world_step13-940x705.jpg 940w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption>デバッグ実行終了</figcaption></figure></div>



<div class="memo safe"><div class="memo_ttl dfont">デバッグ時に良く使用するショートカットキー</div>
<ul><li>続行（F5）<br>ブレークポイントで停止した場合、処理を続行する場合に使用します。</li><li>ステップオーバー（F10）<br>ブレークポイントで停止した状態からステップ実行する場合に使用します。</li><li>ステップイン（F11）<br>関数内に入ってステップ実行したい場合に使用します。</li><li>ステップアウト（Shift + F11）<br>関数内から呼び出し元へ戻りたい場合に使用します。</li><li>再起動（Ctrl + Shift + F5）</li><li>停止（Shift + F5）</li></ul>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://mogachan.net/vscode_no2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【開発環境】Visual Studio Codeの設定その１</title>
		<link>https://mogachan.net/vscode_no1/</link>
					<comments>https://mogachan.net/vscode_no1/#respond</comments>
		
		<dc:creator><![CDATA[もがちゃん]]></dc:creator>
		<pubDate>Tue, 08 Jun 2021 14:19:05 +0000</pubDate>
				<category><![CDATA[プログラミング学習]]></category>
		<category><![CDATA[開発環境]]></category>
		<guid isPermaLink="false">https://mogachan.net/?p=2161</guid>

					<description><![CDATA[<p><img src="https://mogachan.net/wp-content/uploads/2021/06/fd89a91f4a310472e34d38c7a28090c1-520x300.png" class="webfeedsFeaturedVisual" width="520" height="300" /></p>こんにちは、もがちゃんです。今回は、重くなくて色々な言語のコード開発も行える、Visual Studio Codeの設定を紹介したいと思います。 Microsoftが開発しているWindows、Linux、macOSで使 ... ]]></description>
										<content:encoded><![CDATA[<p><img src="https://mogachan.net/wp-content/uploads/2021/06/fd89a91f4a310472e34d38c7a28090c1-520x300.png" class="webfeedsFeaturedVisual" width="520" height="300" /></p>
<p>こんにちは、もがちゃんです。<br>今回は、重くなくて色々な言語のコード開発も行える、Visual Studio Codeの設定を紹介したいと思います。</p>



<h2 class="wp-block-sgb-headings sgb-heading" id="i-0"><div class="sgb-heading__inner hh hh7" style="font-size:1.2em"><span class="sgb-heading__text">Visual Studio Codeとは</span></div></h2>



<p>Microsoftが開発しているWindows、Linux、macOSで使用することが出来るソースコードエディタです。<br>機能を拡張するための拡張機能をインストールすることで、C/C++、Java、Pythonなどのデバッグなども行えます。<br>Javaの開発環境として良く利用されているeclipseと比較すると動作速度の面でも優れているようです。</p>



<h2 class="wp-block-sgb-headings sgb-heading" id="i-1"><div class="sgb-heading__inner hh hh7" style="font-size:1.2em"><span class="sgb-heading__text">Visual Studio Codeのダウンロード</span></div></h2>



<p>Visual Studio Codeは、以下のサイトからダウンロードすることが出来ます。<br><a rel="noreferrer noopener" href="https://code.visualstudio.com/download" data-type="URL" data-id="https://code.visualstudio.com/download" target="_blank">Download Visual Studio Code</a><br><br>Windows用の場合、以下の３つのインストール媒体が存在し<br>それぞれ、64bit,32bit,ARM版が存在します。</p>



<ul class="is-style-sango-list-main-color"><li>ログインしているユーザーだけで使用するUser Installer</li><li>PCを使用するユーザー全てが使用できるSystem Installer</li><li>圧縮されたファイルを任意の場所に解凍してインストールするzip</li></ul>



<h2 class="wp-block-sgb-headings sgb-heading" id="i-2"><div class="sgb-heading__inner hh hh7" style="font-size:1.2em"><span class="sgb-heading__text">Visual Studio Codeのインストール</span></div></h2>



<p>Installerの場合は、簡単でダウンロードしたInstallerを実行して指示に従っていくだけになります。</p>



<p>User Installerの場合は、以下の手順になります。</p>



<h3 class="wp-block-sgb-headings sgb-heading" id="i-3"><div class="sgb-heading__inner sgb-heading--type1 with-icon" style="background-color:transparent;border-color:transparent;font-size:1.2em"><i class="fa fa-check" style="color:#5ba9f7"></i><span class="sgb-heading__text" style="color:#333">使用許諾契約書の同意</span></div></h3>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="598" height="464" src="https://mogachan.net/wp-content/uploads/2021/06/vscode_install1.jpg" alt="使用許諾契約書の同意" class="wp-image-2165" srcset="https://mogachan.net/wp-content/uploads/2021/06/vscode_install1.jpg 598w, https://mogachan.net/wp-content/uploads/2021/06/vscode_install1-300x233.jpg 300w" sizes="(max-width: 598px) 100vw, 598px"><figcaption>使用許諾契約書の同意</figcaption></figure></div>



<h3 class="wp-block-sgb-headings sgb-heading" id="i-4"><div class="sgb-heading__inner sgb-heading--type1 with-icon" style="background-color:transparent;border-color:transparent;font-size:1.2em"><i class="fa fa-check" style="color:#5ba9f7"></i><span class="sgb-heading__text" style="color:#333">インストール先の指定</span></div></h3>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="598" height="464" src="https://mogachan.net/wp-content/uploads/2021/06/vscode_install2.jpg" alt="インストール先の指定" class="wp-image-2166" srcset="https://mogachan.net/wp-content/uploads/2021/06/vscode_install2.jpg 598w, https://mogachan.net/wp-content/uploads/2021/06/vscode_install2-300x233.jpg 300w" sizes="(max-width: 598px) 100vw, 598px"><figcaption><strong>インストール先の指定</strong></figcaption></figure></div>



<h3 class="wp-block-sgb-headings sgb-heading" id="i-5"><div class="sgb-heading__inner sgb-heading--type1 with-icon" style="background-color:transparent;border-color:transparent;font-size:1.2em"><i class="fa fa-check" style="color:#5ba9f7"></i><span class="sgb-heading__text" style="color:#333">スタートメニューフォルダーの指定</span></div></h3>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="598" height="464" src="https://mogachan.net/wp-content/uploads/2021/06/vscode_install3.jpg" alt="スタートメニューフォルダーの指定" class="wp-image-2167" srcset="https://mogachan.net/wp-content/uploads/2021/06/vscode_install3.jpg 598w, https://mogachan.net/wp-content/uploads/2021/06/vscode_install3-300x233.jpg 300w" sizes="(max-width: 598px) 100vw, 598px"><figcaption><strong>スタートメニューフォルダーの指定</strong></figcaption></figure></div>



<h3 class="wp-block-sgb-headings sgb-heading" id="i-6"><div class="sgb-heading__inner sgb-heading--type1 with-icon" style="background-color:transparent;border-color:transparent;font-size:1.2em"><i class="fa fa-check" style="color:#5ba9f7"></i><span class="sgb-heading__text" style="color:#333">追加タスクの選択</span></div></h3>



<p>私の場合、デスクトップ上にアイコンを作成するとコンテキストメニューに[Codeで開く]アクションを追加するに追加でチェックを入れました。</p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="598" height="464" src="https://mogachan.net/wp-content/uploads/2021/06/vscode_install4.jpg" alt="追加タスクの選択" class="wp-image-2168" srcset="https://mogachan.net/wp-content/uploads/2021/06/vscode_install4.jpg 598w, https://mogachan.net/wp-content/uploads/2021/06/vscode_install4-300x233.jpg 300w" sizes="(max-width: 598px) 100vw, 598px"><figcaption><strong>追加タスクの選択</strong></figcaption></figure></div>



<h3 class="wp-block-sgb-headings sgb-heading" id="i-7"><div class="sgb-heading__inner sgb-heading--type1 with-icon" style="background-color:transparent;border-color:transparent;font-size:1.2em"><i class="fa fa-check" style="color:#5ba9f7"></i><span class="sgb-heading__text" style="color:#333">インストール準備完了</span></div></h3>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="598" height="464" src="https://mogachan.net/wp-content/uploads/2021/06/vscode_install5.jpg" alt="インストール準備完了" class="wp-image-2170" srcset="https://mogachan.net/wp-content/uploads/2021/06/vscode_install5.jpg 598w, https://mogachan.net/wp-content/uploads/2021/06/vscode_install5-300x233.jpg 300w" sizes="(max-width: 598px) 100vw, 598px"><figcaption>インストール準備完了</figcaption></figure></div>



<h3 class="wp-block-sgb-headings sgb-heading" id="i-8"><div class="sgb-heading__inner sgb-heading--type1 with-icon" style="background-color:transparent;border-color:transparent;font-size:1.2em"><i class="fa fa-check" style="color:#5ba9f7"></i><span class="sgb-heading__text" style="color:#333">インストール状況</span></div></h3>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="598" height="464" src="https://mogachan.net/wp-content/uploads/2021/06/vscode_install6.jpg" alt="インストール状況" class="wp-image-2171" srcset="https://mogachan.net/wp-content/uploads/2021/06/vscode_install6.jpg 598w, https://mogachan.net/wp-content/uploads/2021/06/vscode_install6-300x233.jpg 300w" sizes="(max-width: 598px) 100vw, 598px"><figcaption><strong>インストール状況</strong></figcaption></figure></div>



<h3 class="wp-block-sgb-headings sgb-heading" id="i-9"><div class="sgb-heading__inner sgb-heading--type1 with-icon" style="background-color:transparent;border-color:transparent;font-size:1.2em"><i class="fa fa-check" style="color:#5ba9f7"></i><span class="sgb-heading__text" style="color:#333">Visual Studio Code セットアップウィザードの完了</span></div></h3>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="598" height="464" src="https://mogachan.net/wp-content/uploads/2021/06/vscode_install7.jpg" alt="Visual Studio Code セットアップウィザードの完了" class="wp-image-2173" srcset="https://mogachan.net/wp-content/uploads/2021/06/vscode_install7.jpg 598w, https://mogachan.net/wp-content/uploads/2021/06/vscode_install7-300x233.jpg 300w" sizes="(max-width: 598px) 100vw, 598px"><figcaption><strong>Visual Studio Code セットアップウィザードの完了</strong></figcaption></figure></div>



<h3 class="wp-block-sgb-headings sgb-heading" id="i-10"><div class="sgb-heading__inner sgb-heading--type1 with-icon" style="background-color:transparent;border-color:transparent;font-size:1.2em"><i class="fa fa-check" style="color:#5ba9f7"></i><span class="sgb-heading__text" style="color:#333">Visual Studio Codeの画面</span></div></h3>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="768" src="https://mogachan.net/wp-content/uploads/2021/06/2021-06-08_22h42_18.jpg" alt="Visual Studio Codeの画面" class="wp-image-2175" srcset="https://mogachan.net/wp-content/uploads/2021/06/2021-06-08_22h42_18.jpg 1024w, https://mogachan.net/wp-content/uploads/2021/06/2021-06-08_22h42_18-300x225.jpg 300w, https://mogachan.net/wp-content/uploads/2021/06/2021-06-08_22h42_18-768x576.jpg 768w, https://mogachan.net/wp-content/uploads/2021/06/2021-06-08_22h42_18-940x705.jpg 940w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption><strong>Visual Studio Codeの画面</strong></figcaption></figure></div>



<p>zipの場合は、任意の場所に解凍するだけなのでこちらも簡単にインストールできます。</p>



<h2 class="wp-block-sgb-headings sgb-heading" id="i-11"><div class="sgb-heading__inner hh hh7" style="font-size:1.2em"><span class="sgb-heading__text">Visual Studio Codeの日本語化</span></div></h2>



<p>インストールした状態では、日本語化されていません。<br>日本語化するには、拡張機能をインストールして日本語化します。</p>



<p>具体的には、以下の手順で拡張機能をインストールします。</p>



<h3 class="wp-block-sgb-headings sgb-heading" id="i-12"><div class="sgb-heading__inner sgb-heading--type1 with-icon" style="background-color:transparent;border-color:transparent;font-size:1.2em"><i class="fa fa-check" style="color:#5ba9f7"></i><span class="sgb-heading__text" style="color:#333">拡張機能表示（Ctrl + Shift + X）</span></div></h3>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="768" src="https://mogachan.net/wp-content/uploads/2021/06/vscode_japanese1.jpg" alt="拡張機能表示" class="wp-image-2177" srcset="https://mogachan.net/wp-content/uploads/2021/06/vscode_japanese1.jpg 1024w, https://mogachan.net/wp-content/uploads/2021/06/vscode_japanese1-300x225.jpg 300w, https://mogachan.net/wp-content/uploads/2021/06/vscode_japanese1-768x576.jpg 768w, https://mogachan.net/wp-content/uploads/2021/06/vscode_japanese1-940x705.jpg 940w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption><strong>拡張機能表示</strong></figcaption></figure></div>



<h3 class="wp-block-sgb-headings sgb-heading" id="i-13"><div class="sgb-heading__inner sgb-heading--type1 with-icon" style="background-color:transparent;border-color:transparent;font-size:1.2em"><i class="fa fa-check" style="color:#5ba9f7"></i><span class="sgb-heading__text" style="color:#333">日本語化拡張機能検索</span></div></h3>



<p>検索ボックスのjapaneseと入力します。</p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="768" src="https://mogachan.net/wp-content/uploads/2021/06/vscode_japanese2.jpg" alt="日本語化拡張機能検索" class="wp-image-2178" srcset="https://mogachan.net/wp-content/uploads/2021/06/vscode_japanese2.jpg 1024w, https://mogachan.net/wp-content/uploads/2021/06/vscode_japanese2-300x225.jpg 300w, https://mogachan.net/wp-content/uploads/2021/06/vscode_japanese2-768x576.jpg 768w, https://mogachan.net/wp-content/uploads/2021/06/vscode_japanese2-940x705.jpg 940w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption><strong>日本語化拡張機能検索</strong></figcaption></figure></div>



<h3 class="wp-block-sgb-headings sgb-heading" id="i-14"><div class="sgb-heading__inner sgb-heading--type1 with-icon" style="background-color:transparent;border-color:transparent;font-size:1.2em"><i class="fa fa-check" style="color:#5ba9f7"></i><span class="sgb-heading__text" style="color:#333">Japanese Language Pack for VS Codeインストール</span></div></h3>



<p>Installをクリックするとインストールされ、インストールが終わると以下のような画面が表示されます。</p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="768" src="https://mogachan.net/wp-content/uploads/2021/06/vscode_japanese3.jpg" alt="Japanese Language Pack for VS Codeインストール" class="wp-image-2179" srcset="https://mogachan.net/wp-content/uploads/2021/06/vscode_japanese3.jpg 1024w, https://mogachan.net/wp-content/uploads/2021/06/vscode_japanese3-300x225.jpg 300w, https://mogachan.net/wp-content/uploads/2021/06/vscode_japanese3-768x576.jpg 768w, https://mogachan.net/wp-content/uploads/2021/06/vscode_japanese3-940x705.jpg 940w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption><strong>Japanese Language Pack for VS Codeインストール</strong></figcaption></figure></div>



<h3 class="wp-block-sgb-headings sgb-heading" id="i-15"><div class="sgb-heading__inner sgb-heading--type1 with-icon" style="background-color:transparent;border-color:transparent;font-size:1.2em"><i class="fa fa-check" style="color:#5ba9f7"></i><span class="sgb-heading__text" style="color:#333"><strong>Visual Studio Code</strong>再起動</span></div></h3>



<p>上の画面右下にあるRestart部分をクリックして、再起動すると下の画面のようにメニューなど日本語で表示されます。</p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="768" src="https://mogachan.net/wp-content/uploads/2021/06/vscode_japanese4.jpg" alt="Visual Studio Code再起動後の画面" class="wp-image-2180" srcset="https://mogachan.net/wp-content/uploads/2021/06/vscode_japanese4.jpg 1024w, https://mogachan.net/wp-content/uploads/2021/06/vscode_japanese4-300x225.jpg 300w, https://mogachan.net/wp-content/uploads/2021/06/vscode_japanese4-768x576.jpg 768w, https://mogachan.net/wp-content/uploads/2021/06/vscode_japanese4-940x705.jpg 940w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption><strong>Visual Studio Code再起動後の画面</strong></figcaption></figure></div>



<p>以上で、Visual Studio Codeをインストールして日本語化まで終わりました。<br>あとは開発言語毎の機能拡張をインストールしてソースのコンパイルやデバッグなどを行えるようにして行きます。<br>今回は、ここまで<br>次回は、C言語のコンパイル・デバッグが行えるように設定する方法を紹介したいと思います。<br></p>
]]></content:encoded>
					
					<wfw:commentRss>https://mogachan.net/vscode_no1/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【C言語入門】removeの使い方</title>
		<link>https://mogachan.net/clangremove/</link>
					<comments>https://mogachan.net/clangremove/#respond</comments>
		
		<dc:creator><![CDATA[もがちゃん]]></dc:creator>
		<pubDate>Sun, 13 Dec 2020 03:00:00 +0000</pubDate>
				<category><![CDATA[プログラミング学習]]></category>
		<category><![CDATA[C言語入門]]></category>
		<category><![CDATA[使い方]]></category>
		<guid isPermaLink="false">https://mogachan.net/?p=2138</guid>

					<description><![CDATA[<p><img src="https://mogachan.net/wp-content/uploads/2020/12/c9aa0d61fd891788b22f20c5d3d36972-520x300.jpg" class="webfeedsFeaturedVisual" width="520" height="300" /></p>こんにちは、もがちゃんです。 今回は、C言語でファイルを削除する際に使用するremoveの使い方を簡単なサンプルプログラムとともに説明します。 removeの構文 removeの説明 removeは、filenameが指 ... ]]></description>
										<content:encoded><![CDATA[<p><img src="https://mogachan.net/wp-content/uploads/2020/12/c9aa0d61fd891788b22f20c5d3d36972-520x300.jpg" class="webfeedsFeaturedVisual" width="520" height="300" /></p>
<p>こんにちは、もがちゃんです。</p>



<p>今回は、C言語でファイルを削除する際に使用するremoveの使い方を簡単なサンプルプログラムとともに説明します。</p>



<h2 class="hh7 wp-block-heading" id="i-0">removeの構文</h2>



<pre class="wp-block-code pre_hscroll"><code>#include &lt;stdio.h&gt;
int remove(const char *filename);</code></pre>



<h2 class="hh7 wp-block-heading" id="i-1">removeの説明</h2>



<p>removeは、filenameが指すファイル名を削除します。</p>



<blockquote class="wp-block-quote"><p>remove関数は、filenameが指す文字列を名前とするファイルへの、その名前によるアクセスを不可能にする。remove関数の呼出し後は、その名前のファイルを再び生成しない限り、同じ名前を使ったファイルのオープンは、失敗する。そのファイルがオープンされているときのremove関数の動作は、処理系定義とする。</p><cite><a rel="noreferrer noopener" href="https://www.jisc.go.jp/app/jis/general/GnrJISNumberNameSearchList?show&amp;jisStdNo=X3010" target="_blank">JISX3010 プログラム言語Ｃ</a></cite></blockquote>



<div class="p-box p-blue"><span class="p-box-title">filename</span>
<p>削除したいファイル名の文字列ポインタを指定します。</p>
</div>



<div class="p-box p-blue"><span class="p-box-title">返却値</span>
<p>ファイル削除に<br><span class="keiko_green">成功した場合、0を返します。</span><br><span class="keiko_red">失敗した場合、0以外を返します。</span></p>
</div>



<h2 class="hh7 wp-block-heading" id="i-2">removeの使い方サンプル</h2>



<p>removeを使ってファイルを削除する簡単なサンプルプログラムを紹介します。</p>



<div class="p-box p-blue"><span class="p-box-title">サンプルプログラムとその実行結果</span>
<pre class="wp-block-code pre_hscroll"><code>#include &lt;stdio.h&gt;
#include &lt;errno.h&gt;
#include &lt;string.h&gt;

int main(void) {
    /* グローバル変数のerrnoをクリア */
    errno = 0;

    /* 空のファイルを作成する */
    FILE *fp = fopen("dummy.txt", "w");
    if (fp != NULL) {
        fclose(fp);
        fprintf(stdout, "fopen success fp=[%lx]\n", (long)fp);

        // 作成したファイルを削除する
        int rc = remove("dummy.txt");
        fprintf(stdout, "remove rc=[%d]\n", rc);
        if(rc == 0) {
            // 削除したファイルをOpenしてみる
            fp = fopen("dummy.txt", "r");
            if (fp != NULL) {
                fprintf(stdout, "why open success?\n");
                fclose(fp);
            } else {
                fprintf(stdout, "file open error![%s]\n", strerror(errno));
                // 削除したファイルを削除してみる
                rc = remove("dummy.txt");
                if(rc == 0) {
                    fprintf(stdout, "why remove success?\n");
                } else {
                    fprintf(stdout, "file remove error![%s]\n", strerror(errno));
                }
            }
        } else {
            fprintf(stdout, "remove error![%s]\n", strerror(errno));
        }
    } else {
        fprintf(stdout, "file create error![%s]\n", strerror(errno));
    }
}
</code></pre>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="472" height="136" src="https://mogachan.net/wp-content/uploads/2020/12/6e8e482a948e278a9c873a9233d62b87.jpg" alt="removeを使ったサンプルプログラムの実行結果" class="wp-image-2144" srcset="https://mogachan.net/wp-content/uploads/2020/12/6e8e482a948e278a9c873a9233d62b87.jpg 472w, https://mogachan.net/wp-content/uploads/2020/12/6e8e482a948e278a9c873a9233d62b87-300x86.jpg 300w" sizes="(max-width: 472px) 100vw, 472px"><figcaption>removeを使ったサンプルプログラムの実行結果</figcaption></figure></div>
</div>



<h2 class="hh7 wp-block-heading" id="i-3">removeの使い方まとめ</h2>



<ul class="is-style-sango-list-main-color"><li>filenameには、削除したい相対・絶対パス付きファイル名を指定します。</li><li>ファイル削除が成功した場合は、返却値として 0 が返される。</li><li><span class="keiko_yellow">removeが成功した後、ファイルを戻すことは出来ないのでremoveの使用には十分に注意すること。</span></li></ul>
]]></content:encoded>
					
					<wfw:commentRss>https://mogachan.net/clangremove/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【Amazon】ブラックフライデー＆サイバーマンデーももうすぐ終わり</title>
		<link>https://mogachan.net/amazon_5daysbigsale/</link>
					<comments>https://mogachan.net/amazon_5daysbigsale/#respond</comments>
		
		<dc:creator><![CDATA[もがちゃん]]></dc:creator>
		<pubDate>Sat, 28 Nov 2020 15:16:07 +0000</pubDate>
				<category><![CDATA[雑記]]></category>
		<guid isPermaLink="false">https://mogachan.net/?p=2129</guid>

					<description><![CDATA[<p><img src="https://mogachan.net/wp-content/uploads/2020/11/7ffc5c1ed86d4e875cb42d8a59639d93-520x300.jpg" class="webfeedsFeaturedVisual" width="520" height="300" /></p>こんにちは、もがちゃんです。 Amazonで現在開催されている5日間のビッグセールそう、「ブラックフライデー＆サイバーマンデー」が12月1日（火）23:59で終了してしまいますね。 Amazonのビッグセール中に私が購入 ... ]]></description>
										<content:encoded><![CDATA[<p><img src="https://mogachan.net/wp-content/uploads/2020/11/7ffc5c1ed86d4e875cb42d8a59639d93-520x300.jpg" class="webfeedsFeaturedVisual" width="520" height="300" /></p>
<p>こんにちは、もがちゃんです。</p>



<p>Amazonで現在開催されている5日間のビッグセール<br>そう、「ブラックフライデー＆サイバーマンデー」が<br>12月1日（火）23:59で終了してしまいますね。</p>



<h2 class="hh7 wp-block-heading" id="i-0">Amazonのビッグセール中に私が購入したもの</h2>



<p>この記事を書いている（2020.11.28）時点で私が購入した商品は、以下の商品になります。商品はまだ届いていませんが</p>



<h3 class="wp-block-heading" id="i-1">ledバーライト30cm キッチンライト5V照明器具 昼白色0.7cm超薄型USBライト ledマグネット付きライト</h3>



<p>パソコンを使うとき手元が暗くてなんかライトが欲しいと思ってて<br>USB電源だし、バー型なので場所も取らなくて良いかなと思ってポチりました。</p>



<a href="//af.moshimo.com/af/c/click?a_id=2074404&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062&amp;url=https%3A%2F%2Fwww.amazon.co.jp%2Fdp%2FB07Z8TG3PZ" rel="nofollow"><img decoding="async" src="https://images-fe.ssl-images-amazon.com/images/I/41WO27Q+r3L._SL160_.jpg" alt="" style="border: none;"><br>【最新モデル＆タッチセンサー式】ベッドサイドランプ テーブルランプ ナイトライト 調光調色 昼白色/暖かい黄/電球色 寝室用ルームライト 記憶＆タイマー機能付き RGB変換ライト インテリア 常夜灯 連続照明 目に優しい 授乳灯 おしゃれ プレゼント 日本語説明書＆18ヶ月品質保証付き</a><img decoding="async" loading="lazy" src="//i.moshimo.com/af/i/impression?a_id=2074404&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062" alt="" width="1" height="1" style="border: 0px;">



<h3 class="wp-block-heading" id="i-2">【最新モデル＆タッチセンサー式】ベッドサイドランプ テーブルランプ ナイトライト 調光調色 昼白色/暖かい黄/電球色 寝室用ルームライト</h3>



<p>寝室で横になって寝るまでの間に使うライトがあったらなと感じてて<br>ちょうどビッグセール期間中だし、何かないかなと探してたらいい感じかなと思いこれもポチリました。</p>



<a href="//af.moshimo.com/af/c/click?a_id=2074404&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062&amp;url=https%3A%2F%2Fwww.amazon.co.jp%2Fdp%2FB07BFTJ8HS" rel="nofollow"><img decoding="async" src="https://images-fe.ssl-images-amazon.com/images/I/318Xocs6cYL._SL160_.jpg" alt="" style="border: none;"><br>ledバーライト30cm キッチンライト5V照明器具 昼白色0.7cm超薄型USBライト ledマグネット付きライト 6000Ｋ無段調光メタルラックライト棚下 車中泊 台所ライトACアダプタ付き工事必要</a><img decoding="async" loading="lazy" src="//i.moshimo.com/af/i/impression?a_id=2074404&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062" alt="" width="1" height="1" style="border: 0px;">



<h2 class="hh7 wp-block-heading" id="i-3">Amazonのビッグセール中に私が購入したかったもの</h2>



<h3 class="wp-block-heading" id="i-4">I-O DATA 4K モニター 27インチ 4K(60Hz) PS4 Pro HDR ADSパネル HDMI×3 DP×1 3年保証 EX-LD4K271DB</h3>



<p>ビッグセール前にFire TV Stickを購入していて<br>いま使用しているディスプレイのHDMI端子は1つしかないので<br>HDMI端子が複数あるディスプレイが欲しかったのですが<br>この記事を書いている時点でまだ、ポチる勇気が無くてポチれてません。</p>



<a href="//af.moshimo.com/af/c/click?a_id=2074404&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062&amp;url=https%3A%2F%2Fwww.amazon.co.jp%2Fdp%2FB07F2ZHFLL" rel="nofollow"><img decoding="async" src="https://images-fe.ssl-images-amazon.com/images/I/51jP-5j6SFL._SL160_.jpg" alt="" style="border: none;"><br>I-O DATA 4K モニター 27インチ 4K(60Hz) PS4 Pro HDR ADSパネル HDMI×3 DP×1 3年保証 EX-LD4K271DB</a><img decoding="async" loading="lazy" src="//i.moshimo.com/af/i/impression?a_id=2074404&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062" alt="" width="1" height="1" style="border: 0px;">



<h3 class="wp-block-heading" id="i-5">Echo Dot (エコードット)第3世代 – スマートスピーカー with Alexa</h3>



<p>ビッグセール前にFire TV StickとEcho Showを購入して使用してみた感じ<br>ほんのちょっとした事なのですが便利かなと感じてて<br>ビックセール中で普段より安く買えるので買っちゃおうかなぁ的な<br>とはいえ、そんなにAlexa増やしてどうするって感じもしてポチれてません</p>



<a href="//af.moshimo.com/af/c/click?a_id=2074404&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062&amp;url=https%3A%2F%2Fwww.amazon.co.jp%2Fdp%2FB07PFFMQ64" rel="nofollow"><img decoding="async" src="https://images-fe.ssl-images-amazon.com/images/I/41jhkggC-aL._SL160_.jpg" alt="" style="border: none;"><br>Echo Dot (エコードット)第3世代 – スマートスピーカー with Alexa、チャコール</a><img decoding="async" loading="lazy" src="//i.moshimo.com/af/i/impression?a_id=2074404&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062" alt="" width="1" height="1" style="border: 0px;">



<h2 class="hh7 wp-block-heading" id="i-6">Amazonのビッグセール前に購入してしまったもの</h2>



<h3 class="wp-block-heading" id="i-7">新登場 Fire TV Stick – Alexa対応音声認識リモコン付属 | ストリーミングメディアプレーヤー</h3>



<p>普段地上波のTVはほとんど見てなくて<br>YouTubeやVODサービスの動画を観ているので前から気になってて<br>ブラックフライデー＆サイバーマンデーがすぐ始まることを知らなくて<br>ポチってしまってました。ビッグセール中にポチればお安く買えたのに</p>



<a href="//af.moshimo.com/af/c/click?a_id=2074404&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062&amp;url=https%3A%2F%2Fwww.amazon.co.jp%2Fdp%2FB07ZZY2DFW" rel="nofollow"><img decoding="async" src="https://images-fe.ssl-images-amazon.com/images/I/31t0m3cPrXL._SL160_.jpg" alt="" style="border: none;"><br>新登場 Fire TV Stick – Alexa対応音声認識リモコン付属 | ストリーミングメディアプレーヤー</a><img decoding="async" loading="lazy" src="//i.moshimo.com/af/i/impression?a_id=2074404&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062" alt="" width="1" height="1" style="border: 0px;">



<h3 class="wp-block-heading" id="i-8">Echo Show 5 (エコーショー5) スマートディスプレイ with Alexa</h3>



<p>目覚まし時計を新しくしたいと思ってて<br>YouTube動画も観れて、Radikoも聴けるなんて最高だなと思いポチリました<br>これもビッグセール中にポチればと</p>



<a href="//af.moshimo.com/af/c/click?a_id=2074404&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062&amp;url=https%3A%2F%2Fwww.amazon.co.jp%2Fdp%2FB07KD87NCM" rel="nofollow"><img decoding="async" src="https://images-fe.ssl-images-amazon.com/images/I/41U5B8Ik7jL._SL160_.jpg" alt="" style="border: none;"><br>Echo Show 5 (エコーショー5) スマートディスプレイ with Alexa、チャコール</a><img decoding="async" loading="lazy" src="//i.moshimo.com/af/i/impression?a_id=2074404&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062" alt="" width="1" height="1" style="border: 0px;">



<h3 class="wp-block-heading" id="i-9">Amazon純正 スマートプラグ (Works with Alexa認定)</h3>



<p>これは、あまり用途を考えずに何かに使えるかなと思って<br>お試し感覚でポチリました。<br>現在は、充電器とセットで使用しています。（タイマー設定で家にいない時間帯は電源OFFになるように設定して使用してます）</p>



<a href="//af.moshimo.com/af/c/click?a_id=2074404&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062&amp;url=https%3A%2F%2Fwww.amazon.co.jp%2Fdp%2FB07V1PZFXY" rel="nofollow"><img decoding="async" src="https://images-fe.ssl-images-amazon.com/images/I/21ViQoJ+FKL._SL160_.jpg" alt="" style="border: none;"><br>Amazon純正 スマートプラグ (Works with Alexa認定)</a><img decoding="async" loading="lazy" src="//i.moshimo.com/af/i/impression?a_id=2074404&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062" alt="" width="1" height="1" style="border: 0px;">



<h3 class="wp-block-heading" id="i-10">GGMM Echo Show 5用 バッテリーベース スタンド ポータブル対応 10000mAh充電式 磁気アシスタント エコーショー5 専用充電台 ES5 (Echo Show 5含まず)</h3>



<p>これは、まだ商品が届いてないですが<br>Echo Show 5は、コンセントに差し込んでないと使用できないのは<br>いまいちだなぁと思ってたらこの商品を見つけて速攻ポチリました。<br>商品が届くのが待ち遠しい。<br>ポチった時はすぐ届くと思ってたのですが、コメント見てたら海外から発送されるみたいで届くのが待ち遠しいです。</p>



<a href="//af.moshimo.com/af/c/click?a_id=2074404&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062&amp;url=https%3A%2F%2Fwww.amazon.co.jp%2Fdp%2FB08P3D3LQC" rel="nofollow"><img decoding="async" src="https://images-fe.ssl-images-amazon.com/images/I/41ihbpjCRqL._SL160_.jpg" alt="" style="border: none;"><br>GGMM Echo Show 5用 バッテリーベース スタンド ポータブル対応 10000mAh充電式 磁気アシスタント エコーショー5 専用充電台 ES5 (Echo Show 5含まず) (ホワイト)</a><img decoding="async" loading="lazy" src="//i.moshimo.com/af/i/impression?a_id=2074404&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062" alt="" width="1" height="1" style="border: 0px;">
]]></content:encoded>
					
					<wfw:commentRss>https://mogachan.net/amazon_5daysbigsale/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【C言語入門】strerrorの使い方</title>
		<link>https://mogachan.net/clangstrerror/</link>
					<comments>https://mogachan.net/clangstrerror/#respond</comments>
		
		<dc:creator><![CDATA[もがちゃん]]></dc:creator>
		<pubDate>Sat, 21 Nov 2020 12:55:00 +0000</pubDate>
				<category><![CDATA[プログラミング学習]]></category>
		<guid isPermaLink="false">https://mogachan.net/?p=2118</guid>

					<description><![CDATA[<p><img src="https://mogachan.net/wp-content/uploads/2020/11/80a0484411b41c6db9fd05d97b1e6c36-520x300.jpg" class="webfeedsFeaturedVisual" width="520" height="300" /></p>こんにちは、もがちゃんです。 今回は、C言語でエラーが発生した時、発生したエラー（errno）に対応するメッセージを取得する際に使用するstrerrorの使い方を簡単なサンプルプログラムとともに説明します。 strerr ... ]]></description>
										<content:encoded><![CDATA[<p><img src="https://mogachan.net/wp-content/uploads/2020/11/80a0484411b41c6db9fd05d97b1e6c36-520x300.jpg" class="webfeedsFeaturedVisual" width="520" height="300" /></p>
<p>こんにちは、もがちゃんです。</p>



<p>今回は、C言語でエラーが発生した時、発生したエラー（errno）に対応するメッセージを取得する際に使用するstrerrorの使い方を簡単なサンプルプログラムとともに説明します。</p>



<h2 class="hh7 wp-block-heading" id="i-0">strerrorの構文</h2>



<pre class="wp-block-code pre_hscroll"><code>#include &lt;string.h&gt;
char *strerror(int errnum); </code></pre>



<h2 class="hh7 wp-block-heading" id="i-1">strerrorの説明</h2>



<p>strerrorは、errnumで指定されたエラー番号に対応するメッセージ文字列の先頭を指すのポインタを返します。</p>



<blockquote class="wp-block-quote"><p>strerror関数は、errnumに入っている番号をメッセージ文字列に対応付ける。典型的にはerrnumの値は、errnoが使われるが、strerror関数はint型のすべての値に対してメッセージを割り当てなければならない。</p><cite><a rel="noreferrer noopener" href="https://www.jisc.go.jp/app/jis/general/GnrJISNumberNameSearchList?show&amp;jisStdNo=X3010" target="_blank">JISX3010 プログラム言語Ｃ</a></cite></blockquote>



<div class="p-box p-blue"><span class="p-box-title">errnum</span>
<p>エラーメッセージを取得したいエラー番号を指定します。</p>
</div>



<div class="p-box p-blue"><span class="p-box-title">返却値</span>
<p>errnumで指定されたエラー番号に対応するエラーメッセージ文字列の先頭を指すポインタを返します。</p>
</div>



<h2 class="hh7 wp-block-heading" id="i-2">strerrorの使い方サンプル</h2>



<p>strerrorを使ってエラーメッセージを取得し出力する簡単なサンプルプログラムとその実行結果を紹介します。</p>



<div class="p-box p-blue"><span class="p-box-title">サンプルプログラムとその実行結果</span>
<pre class="wp-block-code pre_hscroll"><code>#include &lt;stdio.h&gt;
#include &lt;errno.h&gt;
#include &lt;string.h&gt;

int main(void) {
	/* グローバル変数のerrnoをクリア */
	errno = 0;
	fprintf(stdout, "1.errno[%d]\n", errno);

	/* わざと存在しないファイルをOpenしてエラーを発生させる */
	FILE *fp = fopen("dummy.txt", "r");
	if (fp == NULL) {
		/* errnoの値を確認 */
		fprintf(stdout, "2.errno[%d]\n", errno);
		fprintf(stdout, "3.strerror(%d):%s\n", errno, strerror(errno));
	} else {
		fclose(fp);
	}

	/*
	 #define EPERM 1
	 #define ENOENT 2
	 #define ENOFILE ENOENT
	 #define ESRCH 3
	 #define EINTR 4
	 #define EIO 5
	 :
	 */
	/* 試しに 1～5のエラー文字列を取得して出力してみる */
	fprintf(stdout, "4.strerror(%d):%s\n", EPERM, strerror(EPERM));
	fprintf(stdout, "5.strerror(%d):%s\n", ENOENT, strerror(ENOENT));
	fprintf(stdout, "6.strerror(%d):%s\n", ESRCH, strerror(ESRCH));
	fprintf(stdout, "7.strerror(%d):%s\n", EINTR, strerror(EINTR));
	fprintf(stdout, "8.strerror(%d):%s\n", EIO, strerror(EIO));
}
</code></pre>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="550" height="254" src="https://mogachan.net/wp-content/uploads/2020/11/6e8e482a948e278a9c873a9233d62b87-3.jpg" alt="strerrorを使った簡単なサンプルプログラムの実行結果" class="wp-image-2125" srcset="https://mogachan.net/wp-content/uploads/2020/11/6e8e482a948e278a9c873a9233d62b87-3.jpg 550w, https://mogachan.net/wp-content/uploads/2020/11/6e8e482a948e278a9c873a9233d62b87-3-300x139.jpg 300w" sizes="(max-width: 550px) 100vw, 550px"><figcaption>strerrorを使った簡単なサンプルプログラムの実行結果</figcaption></figure></div>
</div>



<h2 class="hh7 wp-block-heading" id="i-3">strerrorの使い方まとめ</h2>



<p>エラーが発生した場合のエラーメッセージを取得したい場合に、strerrorを使用することでエラーメッセージを取得することが出来る。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://mogachan.net/clangstrerror/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【Python入門】WindowsにPython環境を構築する方法（続編）</title>
		<link>https://mogachan.net/langpython_miniconda2/</link>
					<comments>https://mogachan.net/langpython_miniconda2/#respond</comments>
		
		<dc:creator><![CDATA[もがちゃん]]></dc:creator>
		<pubDate>Sat, 14 Nov 2020 14:55:00 +0000</pubDate>
				<category><![CDATA[プログラミング学習]]></category>
		<category><![CDATA[Python入門]]></category>
		<category><![CDATA[開発環境]]></category>
		<guid isPermaLink="false">https://mogachan.net/?p=2082</guid>

					<description><![CDATA[<p><img src="https://mogachan.net/wp-content/uploads/2020/11/0e6467e7846119f80696452158207371-520x300.jpg" class="webfeedsFeaturedVisual" width="520" height="300" /></p>こんにちは、もがちゃんです。 今回は、前回の「【Python入門】WindowsにPython環境を構築する方法」の続きで、Pythonで対話式にコードが実行できる環境を作成したいと思います。今回インストールするのは、J ... ]]></description>
										<content:encoded><![CDATA[<p><img src="https://mogachan.net/wp-content/uploads/2020/11/0e6467e7846119f80696452158207371-520x300.jpg" class="webfeedsFeaturedVisual" width="520" height="300" /></p>
<p>こんにちは、もがちゃんです。</p>



<p>今回は、前回の「【Python入門】WindowsにPython環境を構築する方法」の続きで、Pythonで対話式にコードが実行できる環境を作成したいと思います。<br>今回インストールするのは、Jupyter Notebook（ジュピター・ノートブック）になります。</p>



<h2 class="hh7 wp-block-heading" id="i-0">前回インストールしたMinicondaの確認</h2>



<p>前回インストールしたMinicondaですが、インストールされているパッケージの確認とPythonのバージョン確認を行います。</p>



<p>インストールされているパッケージの確認は、まずAnaconda Promptを起動します。</p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="264" height="106" src="https://mogachan.net/wp-content/uploads/2020/11/03e3d8751332e21c5b7d70aaebc9d5fd.jpg" alt="" class="wp-image-2087"><figcaption>Anaconda Prompt起動</figcaption></figure></div>



<p>そして以下のコマンドを実行することで確認できます。</p>



<pre class="wp-block-code"><code>conda list</code></pre>



<p>実行した結果が以下の画像になります。</p>



<figure class="wp-block-image size-large is-style-sango-with-border"><img decoding="async" loading="lazy" width="651" height="694" src="https://mogachan.net/wp-content/uploads/2020/11/057018a8003741c981b1b94cf8b2087c.jpg" alt="conda listの実行結果" class="wp-image-2085" srcset="https://mogachan.net/wp-content/uploads/2020/11/057018a8003741c981b1b94cf8b2087c.jpg 651w, https://mogachan.net/wp-content/uploads/2020/11/057018a8003741c981b1b94cf8b2087c-281x300.jpg 281w" sizes="(max-width: 651px) 100vw, 651px"><figcaption>conda listの実行結果</figcaption></figure>



<p>続いて、Pythonのバージョン確認は、以下のコマンドを実行することで確認できます。</p>



<pre class="wp-block-code"><code>python --version</code></pre>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="453" height="70" src="https://mogachan.net/wp-content/uploads/2020/11/d2d23532620d9cb28fca5f7ab876fd57.jpg" alt="pythonのバージョン確認結果" class="wp-image-2090" srcset="https://mogachan.net/wp-content/uploads/2020/11/d2d23532620d9cb28fca5f7ab876fd57.jpg 453w, https://mogachan.net/wp-content/uploads/2020/11/d2d23532620d9cb28fca5f7ab876fd57-300x46.jpg 300w" sizes="(max-width: 453px) 100vw, 453px"><figcaption>pythonのバージョン確認結果</figcaption></figure></div>



<h2 class="hh7 wp-block-heading" id="i-1">Jupyter Notebookとは</h2>



<p>Jupyter Notebook（ジュピター・ノートブック）とは、OSSのWebアプリケーションで、プログラミングコードを含むドキュメントで、このJupyter Notebookを利用すると対話形式でコードの実行とノートブック形式のドキュメント作成が行えるようです。私も今回初めて知りました。<br><br>詳しく知りたい方は、以下のJupyterプロジェクトの公式ページを参照してください。</p>



<p><a href="https://jupyter.org/index.html" target="_blank" rel="noreferrer noopener">https://jupyter.org/index.html</a></p>



<div class="memo safe"><div class="memo_ttl dfont">OSS</div>
<p>オープンソースソフトウェア（Open Source Software）の略です。<br>作成者がソースコードを無償で公開していて、利用や改変、再配布が自由に許可されているソフトウェアのことです。</p>
</div>



<h2 class="hh7 wp-block-heading" id="i-2">Jupyter Notebookのインストール</h2>



<p>Jupyter Notebookのインストールは、以下のコマンドを使用します。（参考：<a rel="noreferrer noopener" href="https://jupyter.org/install.html" target="_blank">https://jupyter.org/install.html</a>）</p>



<pre class="wp-block-code"><code>conda install -c conda-forge notebook</code></pre>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="513" height="84" src="https://mogachan.net/wp-content/uploads/2020/11/a95ef4f61ef7fb0a61f7e771a8b3ee1f.jpg" alt="インストールコマンドの入力" class="wp-image-2095" srcset="https://mogachan.net/wp-content/uploads/2020/11/a95ef4f61ef7fb0a61f7e771a8b3ee1f.jpg 513w, https://mogachan.net/wp-content/uploads/2020/11/a95ef4f61ef7fb0a61f7e771a8b3ee1f-300x49.jpg 300w" sizes="(max-width: 513px) 100vw, 513px"><figcaption>インストールコマンドの入力</figcaption></figure></div>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="979" height="512" src="https://mogachan.net/wp-content/uploads/2020/11/d427a0c9d852006d8e785fad2d0bcf8a.jpg" alt="実行確認でy入力" class="wp-image-2097" srcset="https://mogachan.net/wp-content/uploads/2020/11/d427a0c9d852006d8e785fad2d0bcf8a.jpg 979w, https://mogachan.net/wp-content/uploads/2020/11/d427a0c9d852006d8e785fad2d0bcf8a-300x157.jpg 300w, https://mogachan.net/wp-content/uploads/2020/11/d427a0c9d852006d8e785fad2d0bcf8a-768x402.jpg 768w, https://mogachan.net/wp-content/uploads/2020/11/d427a0c9d852006d8e785fad2d0bcf8a-940x492.jpg 940w" sizes="(max-width: 979px) 100vw, 979px"><figcaption>実行確認でy入力</figcaption></figure></div>



<div class="wp-block-image"><figure class="aligncenter size-large is-resized"><img decoding="async" loading="lazy" src="https://mogachan.net/wp-content/uploads/2020/11/0a1cb9e75a979cbf7098a2e9b424fc2e.jpg" alt="doneが出力されてインストール完了" class="wp-image-2098" width="389" height="91" srcset="https://mogachan.net/wp-content/uploads/2020/11/0a1cb9e75a979cbf7098a2e9b424fc2e.jpg 389w, https://mogachan.net/wp-content/uploads/2020/11/0a1cb9e75a979cbf7098a2e9b424fc2e-300x70.jpg 300w" sizes="(max-width: 389px) 100vw, 389px"><figcaption>doneが出力されてインストール完了</figcaption></figure></div>



<h2 class="hh7 wp-block-heading" id="i-3">Jupyter Notebookの起動</h2>



<p>Jupyter Notebookを使用するには、以下のコマンドを入力することで起動することが出来ます。</p>



<pre class="wp-block-code"><code>jupyter notebook</code></pre>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="979" height="512" src="https://mogachan.net/wp-content/uploads/2020/11/7af12ff22f8bd78170ad3b9aebc3c8eb.jpg" alt="" class="wp-image-2100" srcset="https://mogachan.net/wp-content/uploads/2020/11/7af12ff22f8bd78170ad3b9aebc3c8eb.jpg 979w, https://mogachan.net/wp-content/uploads/2020/11/7af12ff22f8bd78170ad3b9aebc3c8eb-300x157.jpg 300w, https://mogachan.net/wp-content/uploads/2020/11/7af12ff22f8bd78170ad3b9aebc3c8eb-768x402.jpg 768w, https://mogachan.net/wp-content/uploads/2020/11/7af12ff22f8bd78170ad3b9aebc3c8eb-940x492.jpg 940w" sizes="(max-width: 979px) 100vw, 979px"><figcaption>jupyter notebook起動</figcaption></figure></div>



<p>起動するとブラウザに以下のページが表示されます。<br>（URLは、http://localhost:8888/treeになってます）</p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="657" src="https://mogachan.net/wp-content/uploads/2020/11/e80350b4f9a5f2b74e2df9469fe3521f-1024x657.jpg" alt="jupyter notebook画面" class="wp-image-2101" srcset="https://mogachan.net/wp-content/uploads/2020/11/e80350b4f9a5f2b74e2df9469fe3521f-1024x657.jpg 1024w, https://mogachan.net/wp-content/uploads/2020/11/e80350b4f9a5f2b74e2df9469fe3521f-300x193.jpg 300w, https://mogachan.net/wp-content/uploads/2020/11/e80350b4f9a5f2b74e2df9469fe3521f-768x493.jpg 768w, https://mogachan.net/wp-content/uploads/2020/11/e80350b4f9a5f2b74e2df9469fe3521f-940x603.jpg 940w, https://mogachan.net/wp-content/uploads/2020/11/e80350b4f9a5f2b74e2df9469fe3521f.jpg 1444w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption>jupyter notebook画面</figcaption></figure></div>



<p>無事にJupyter Notebookを起動することが出来ました。</p>



<h2 class="hh7 wp-block-heading" id="i-4">Jupyter NotebookでHello World</h2>



<p>Jupyter Notebookを使用してHello Worldを出力してみたいと思います。</p>



<p>［手順１］NewメニューからPython 3を選択します。</p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="232" height="221" src="https://mogachan.net/wp-content/uploads/2020/11/c6ebc5f1d091e93c810d034239d1d43b.jpg" alt="Python 3を選ぶ" class="wp-image-2104"><figcaption>Python 3を選ぶ</figcaption></figure></div>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="657" src="https://mogachan.net/wp-content/uploads/2020/11/b91c7d1d7174a8eba923e84f19a00469-1024x657.jpg" alt="新しいノートブック画面" class="wp-image-2105" srcset="https://mogachan.net/wp-content/uploads/2020/11/b91c7d1d7174a8eba923e84f19a00469-1024x657.jpg 1024w, https://mogachan.net/wp-content/uploads/2020/11/b91c7d1d7174a8eba923e84f19a00469-300x193.jpg 300w, https://mogachan.net/wp-content/uploads/2020/11/b91c7d1d7174a8eba923e84f19a00469-768x493.jpg 768w, https://mogachan.net/wp-content/uploads/2020/11/b91c7d1d7174a8eba923e84f19a00469-940x603.jpg 940w, https://mogachan.net/wp-content/uploads/2020/11/b91c7d1d7174a8eba923e84f19a00469.jpg 1444w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption>新しいノートブック画面</figcaption></figure></div>



<p>［手順２］Hello Worldを出力するコードを入力します。</p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="161" src="https://mogachan.net/wp-content/uploads/2020/11/Hello-World-1024x161.jpg" alt="Hello Worldを出力するコードを入力" class="wp-image-2107" srcset="https://mogachan.net/wp-content/uploads/2020/11/Hello-World-1024x161.jpg 1024w, https://mogachan.net/wp-content/uploads/2020/11/Hello-World-300x47.jpg 300w, https://mogachan.net/wp-content/uploads/2020/11/Hello-World-768x121.jpg 768w, https://mogachan.net/wp-content/uploads/2020/11/Hello-World-940x148.jpg 940w, https://mogachan.net/wp-content/uploads/2020/11/Hello-World.jpg 1440w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption>Hello Worldを出力するコードを入力</figcaption></figure></div>



<p>［手順３］コードを実行します。</p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="149" src="https://mogachan.net/wp-content/uploads/2020/11/37d533fc096702af415132b0fe82d0d9-1024x149.jpg" alt="Runボタンを押して実行" class="wp-image-2109" srcset="https://mogachan.net/wp-content/uploads/2020/11/37d533fc096702af415132b0fe82d0d9-1024x149.jpg 1024w, https://mogachan.net/wp-content/uploads/2020/11/37d533fc096702af415132b0fe82d0d9-300x44.jpg 300w, https://mogachan.net/wp-content/uploads/2020/11/37d533fc096702af415132b0fe82d0d9-768x112.jpg 768w, https://mogachan.net/wp-content/uploads/2020/11/37d533fc096702af415132b0fe82d0d9-940x137.jpg 940w, https://mogachan.net/wp-content/uploads/2020/11/37d533fc096702af415132b0fe82d0d9.jpg 1436w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption>Runボタンを押して実行</figcaption></figure></div>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="207" src="https://mogachan.net/wp-content/uploads/2020/11/eeb34debba65e9e05b0f6f9264550847-1024x207.jpg" alt="" class="wp-image-2111" srcset="https://mogachan.net/wp-content/uploads/2020/11/eeb34debba65e9e05b0f6f9264550847-1024x207.jpg 1024w, https://mogachan.net/wp-content/uploads/2020/11/eeb34debba65e9e05b0f6f9264550847-300x61.jpg 300w, https://mogachan.net/wp-content/uploads/2020/11/eeb34debba65e9e05b0f6f9264550847-768x156.jpg 768w, https://mogachan.net/wp-content/uploads/2020/11/eeb34debba65e9e05b0f6f9264550847-940x190.jpg 940w, https://mogachan.net/wp-content/uploads/2020/11/eeb34debba65e9e05b0f6f9264550847.jpg 1437w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption>Hello World実行結果（水色部分）</figcaption></figure></div>



<p>無事、Hello Worldを出力することが出来ました。</p>



<h2 class="hh7 wp-block-heading" id="i-5">Jupyter Notebookの終了</h2>



<p>Jupyter Notebook（サービス）を終了するには、jupyter notebookコマンドを実行しているコンソールでコントロール + Cを入力することで終了できます。</p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://mogachan.net/langpython_miniconda2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【Python入門】WindowsにPython環境を構築する方法</title>
		<link>https://mogachan.net/langpython_miniconda1/</link>
					<comments>https://mogachan.net/langpython_miniconda1/#respond</comments>
		
		<dc:creator><![CDATA[もがちゃん]]></dc:creator>
		<pubDate>Sun, 08 Nov 2020 14:00:16 +0000</pubDate>
				<category><![CDATA[プログラミング学習]]></category>
		<category><![CDATA[Python入門]]></category>
		<category><![CDATA[開発環境]]></category>
		<guid isPermaLink="false">https://mogachan.net/?p=2056</guid>

					<description><![CDATA[<p><img src="https://mogachan.net/wp-content/uploads/2020/11/542bebd6789ee34db0dbaf8e302ea4ab-520x300.jpg" class="webfeedsFeaturedVisual" width="520" height="300" /></p>こんにちは、もがちゃんです。 今回は、Windows10上にPythonの学習をするための環境の構築方法を紹介したいと思います。Windows10上でPythonが使えるようにするためには幾つか方法があるようですが、今回 ... ]]></description>
										<content:encoded><![CDATA[<p><img src="https://mogachan.net/wp-content/uploads/2020/11/542bebd6789ee34db0dbaf8e302ea4ab-520x300.jpg" class="webfeedsFeaturedVisual" width="520" height="300" /></p>
<p>こんにちは、もがちゃんです。</p>



<p>今回は、Windows10上にPythonの学習をするための環境の構築方法を紹介したいと思います。<br>Windows10上でPythonが使えるようにするためには幾つか方法があるようですが、今回はMinicondaをインストールして環境を構築したいと思います。</p>



<h2 class="hh7 wp-block-heading" id="i-0">Minicondaとは</h2>



<p>Minicondaは、Python + Conda + 最小限のパッケージを１つにまとめたものになります。<br>Condaとは、パッケージマネージャと呼ばれる、パッケージのインストールや環境整理などを行うためのプログラムになります。<br>Pythonは、人工知能（機械学習や深層学習）などの分野で活用されている言語なのです。機械学習などを行う場合は、必要となるパッケージを準備する必要があるので、Minicondaをインストールする事で、パッケージの追加が必要となった場合でも簡単にパッケージの追加で出来るようになります。</p>



<p>ちなみにMinicondaの他に、Anacondaと呼ばれるものもあります。<br>Anacondaの方は、Python + R言語 + Conda + 1000以上の関連パッケージ + 実行環境等多くのものがまとめられたものになります。そのため、インストールするためには多くの容量（数ギガ）が必要となります。</p>



<h2 class="wp-block-heading" id="i-1">Minicondaの入手方法は</h2>



<p>Miniconda公式ページ（<a rel="noreferrer noopener" href="https://conda.io/miniconda.html" target="_blank">https://conda.io/miniconda.html</a>）からWindows用のインストーラを入手します。<br>Python 2.7と3.8のインストーラが存在しますが、Python 2.7の方は今後サポートされないのでPython 3.8の方をインストーラをダウンロードします。（32bit版と64bit版があるので使用しているOSに合わせてダウンロードしましょう）</p>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="881" height="273" src="https://mogachan.net/wp-content/uploads/2020/11/Miniconda-Windows-installers.jpg" alt="Windows用インストーラのダウンロード" class="wp-image-2060" srcset="https://mogachan.net/wp-content/uploads/2020/11/Miniconda-Windows-installers.jpg 881w, https://mogachan.net/wp-content/uploads/2020/11/Miniconda-Windows-installers-300x93.jpg 300w, https://mogachan.net/wp-content/uploads/2020/11/Miniconda-Windows-installers-768x238.jpg 768w" sizes="(max-width: 881px) 100vw, 881px"><figcaption>Windows用インストーラのダウンロード</figcaption></figure></div>



<h2 class="wp-block-heading" id="i-2">Minicondaのインストール</h2>



<p>ダウンロードしたインストーラを起動して、以下画像のようにインストールを進めていけばインストールが終了します。</p>



<h3 class="wp-block-heading" id="i-3">ステップ１</h3>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="499" height="388" src="https://mogachan.net/wp-content/uploads/2020/11/install_step1.jpg" alt="Nextボタンをクリック" class="wp-image-2062" srcset="https://mogachan.net/wp-content/uploads/2020/11/install_step1.jpg 499w, https://mogachan.net/wp-content/uploads/2020/11/install_step1-300x233.jpg 300w" sizes="(max-width: 499px) 100vw, 499px"><figcaption>Nextボタンをクリック</figcaption></figure></div>



<h3 class="wp-block-heading" id="i-4">ステップ２</h3>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="499" height="388" src="https://mogachan.net/wp-content/uploads/2020/11/install_step2.jpg" alt="I Agreeボタンをクリック" class="wp-image-2064" srcset="https://mogachan.net/wp-content/uploads/2020/11/install_step2.jpg 499w, https://mogachan.net/wp-content/uploads/2020/11/install_step2-300x233.jpg 300w" sizes="(max-width: 499px) 100vw, 499px"><figcaption>I Agreeボタンをクリック</figcaption></figure></div>



<h3 class="wp-block-heading" id="i-5">ステップ３</h3>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="499" height="388" src="https://mogachan.net/wp-content/uploads/2020/11/install_step3.jpg" alt="利用者を選択しNextボタンをクリック" class="wp-image-2066" srcset="https://mogachan.net/wp-content/uploads/2020/11/install_step3.jpg 499w, https://mogachan.net/wp-content/uploads/2020/11/install_step3-300x233.jpg 300w" sizes="(max-width: 499px) 100vw, 499px"><figcaption>利用者を選択しNextボタンをクリック</figcaption></figure></div>



<h3 class="wp-block-heading" id="i-6">ステップ４</h3>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="499" height="388" src="https://mogachan.net/wp-content/uploads/2020/11/install_step4.jpg" alt="インストール先を指定しNextボタンクリック" class="wp-image-2068" srcset="https://mogachan.net/wp-content/uploads/2020/11/install_step4.jpg 499w, https://mogachan.net/wp-content/uploads/2020/11/install_step4-300x233.jpg 300w" sizes="(max-width: 499px) 100vw, 499px"><figcaption>インストール先を指定しNextボタンクリック</figcaption></figure></div>



<h3 class="wp-block-heading" id="i-7">ステップ５</h3>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="499" height="388" src="https://mogachan.net/wp-content/uploads/2020/11/install_step5.jpg" alt="環境変数PATHの設定にチェックを入れてInstallボタンクリック" class="wp-image-2070" srcset="https://mogachan.net/wp-content/uploads/2020/11/install_step5.jpg 499w, https://mogachan.net/wp-content/uploads/2020/11/install_step5-300x233.jpg 300w" sizes="(max-width: 499px) 100vw, 499px"><figcaption>環境変数PATHの設定にチェックを入れてInstallボタンクリック</figcaption></figure></div>



<p>環境変数PATHの設定は、推奨されていませんがコマンドプロンプトを使用する時にPATH設定されていないと面倒くさいかなと思ってチェックを入れてインストールしました。（アンインストールする際に忘れずPATHの設定から削除しないようにしないとw）</p>



<h3 class="wp-block-heading" id="i-8">ステップ６</h3>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="499" height="388" src="https://mogachan.net/wp-content/uploads/2020/11/install_step6.jpg" alt="インストールが終わったらNextボタンクリック" class="wp-image-2073" srcset="https://mogachan.net/wp-content/uploads/2020/11/install_step6.jpg 499w, https://mogachan.net/wp-content/uploads/2020/11/install_step6-300x233.jpg 300w" sizes="(max-width: 499px) 100vw, 499px"><figcaption>インストールが終わったらNextボタンクリック</figcaption></figure></div>



<h3 class="wp-block-heading" id="i-9">ステップ７</h3>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="499" height="388" src="https://mogachan.net/wp-content/uploads/2020/11/install_step7.jpg" alt="Finishボタンクリック" class="wp-image-2075" srcset="https://mogachan.net/wp-content/uploads/2020/11/install_step7.jpg 499w, https://mogachan.net/wp-content/uploads/2020/11/install_step7-300x233.jpg 300w" sizes="(max-width: 499px) 100vw, 499px"><figcaption>Finishボタンクリック</figcaption></figure></div>



<p>ここまでくればMinicondaのインストール自体は終了です。</p>



<h3 class="wp-block-heading" id="i-10">ステップ８</h3>



<div class="wp-block-image is-style-sango-with-border"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="752" src="https://mogachan.net/wp-content/uploads/2020/11/install_step8-1024x752.jpg" alt="Account作成ページ" class="wp-image-2077" srcset="https://mogachan.net/wp-content/uploads/2020/11/install_step8-1024x752.jpg 1024w, https://mogachan.net/wp-content/uploads/2020/11/install_step8-300x220.jpg 300w, https://mogachan.net/wp-content/uploads/2020/11/install_step8-768x564.jpg 768w, https://mogachan.net/wp-content/uploads/2020/11/install_step8-940x691.jpg 940w, https://mogachan.net/wp-content/uploads/2020/11/install_step8.jpg 1252w" sizes="(max-width: 1024px) 100vw, 1024px"><figcaption>Account作成ページ</figcaption></figure></div>



<p>アカウント作成のほか、チュートリアルやクイックスタートガイドを見ることができますが、今回は、ここまでで終わりにします。<br><br>この続きは、次回紹介したいと思います。</p>



<p><br></p>
]]></content:encoded>
					
					<wfw:commentRss>https://mogachan.net/langpython_miniconda1/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
