<?xml version="1.0" encoding="UTF-8" ?>
<rss version="0.91">
  <channel>
    <title>ききひじ</title>
    <description>いろんなことを、思うままに…</description>
    <link>http://kikihijidarake.blog.shinobi.jp/</link>
    <language>ja</language>
    <copyright>Copyright (C) NINJATOOLS ALL RIGHTS RESERVED.</copyright>

    <item>
      <title>OpenCVをCMake使ってでビルドするならfind_packageに丸投げするだけではいけない</title>
      <description>&lt;h2&gt;起きたこと&lt;/h2&gt;
&lt;p&gt;今まで上手くビルドできていたのに、別プログラムをビルドしようとしたらむっちゃ怒られた。上手く動かないのである。&lt;/p&gt;
&lt;h2&gt;環境&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Windows 10 64bit&lt;/li&gt;
&lt;li&gt;cmake version 3.16.0&lt;/li&gt;
&lt;li&gt;MSVC 19.24.28314.0&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;詳細&lt;/h2&gt;
今まで~/testcode/hello/main.cppをビルドしていた。 ここで別の実装を試したくなり、~/testcode/next/main2.cppを実装。ビルドをしようとすると、怒られまくる。具体的には、未定義のコードを参照しようとしているみたいなことを書かれた。（実際のエラーは記録してませんでした。載せられず申し訳ない。） エラーを見る限り明らかに自分が記述したところではなかったが、念のためmain.cppを~/testcode/next/に持ってきてビルドを試みるも結果は変わらず。加えて~/testcode/hello/main.cppのビルドは上手くいくのである。困った。&lt;br /&gt;
以下に概略図を示す。汚い手書きですまない。&lt;br /&gt;
&lt;img src=&quot;http://file.kikihijidarake.blog.shinobi.jp/Fig1.PNG&quot; alt=&quot;概略図&quot; /&gt;
&lt;h2&gt;原因&lt;/h2&gt;
&lt;p&gt;cmakeを実行したときの出力とにらめっこしていると、MSVC向けにビルドしているにもかかわらずMinGW用のOpenCVを使おうとしていた。&lt;br /&gt;
（私の環境に入っているOpenCVはMSVC用のとMinGW用の2種類がある。）&lt;br /&gt;
CmakeLists.txtは全く同じものを利用していたため予想だにしていなかったが、CmakeLists.txt中のfind_package(OpenCV REQUIRED)は状況によって異なる OpenCVConfig.cmake・opencv-config.cmakeを見つけてくるらしい。&lt;br /&gt;
（OpenCVConfig.cmakeやopencv-config.cmakeはOpenCVの利用に必要なものを記述したもの...だと思う。）&lt;/p&gt;
&lt;h2&gt;解決方法&lt;/h2&gt;
&lt;p&gt;CmakeLists.txtに次の一文を追加した。&lt;/p&gt;
&lt;code&gt;set(OpenCV_DIR &quot;使いたい方のOpenCVに付属したOpenCVConfig.cmakeやopencv-config.cmakeを含むディレクトリ&quot;)&lt;/code&gt;&lt;br /&gt;

&lt;p&gt;つまり、使いたい方のOpenCVに付属したOpenCVConfig.cmakeやopencv-config.cmakeを含むディレクトリを&lt;code&gt;OpenCV_DIR&lt;/code&gt;という変数に設定したのである。&lt;/p&gt;
&lt;p&gt;これは一度MinGW用のOpenCVを消去してcmakeコマンドを実行したときに出た以下のメッセージをみて知った方法である。&lt;/p&gt;
&lt;code&gt;&lt;code&gt; Add the installation prefix of &quot;OpenCV&quot; to CMAKE_PREFIX_PATH or set&lt;/code&gt;&lt;/code&gt;
&lt;div&gt;&amp;nbsp; &quot;OpenCV_DIR&quot; to a directory containing one of the above files.&lt;/div&gt;
&lt;h2&gt;結論&lt;/h2&gt;
&lt;p&gt;OpenCVをCMakeからビルドするときには&lt;code&gt;OpenCV_DIR&lt;/code&gt;変数を設定することでパッケージの探索先を明示的に示そう。&lt;/p&gt;</description> 
      <link>http://kikihijidarake.blog.shinobi.jp/cpp/opencv_cmake_unbildable</link> 
    </item>
    <item>
      <title>TeXを入れる</title>
      <description>パソコンにTeXを導入したときのメモ。&lt;br /&gt;

&lt;h2&gt;環境&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Windows10&lt;/li&gt;
&lt;/ul&gt;
&lt;!-- +++++++++++++++++++++++++++++++++++++++++ --&gt;
&lt;h2&gt;TeX Liveのインストール&lt;/h2&gt;
&lt;ol&gt;
&lt;li class=&quot;lidesign10&quot;&gt;ISOイメージのダウンロード。
&lt;div class=&quot;indent-2&quot;&gt;&lt;a href=&quot;http://www.tug.org/texlive/acquire-iso.html&quot;&gt;Acquiring TeX Live as an ISO image&lt;/a&gt; の download from a nearby CTAN mirrorへ。&lt;br /&gt;
texlive2019.iso をクリックしてダウンロードする。&lt;br /&gt;
ISOイメージを使う方法以外もある。&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;lidesign10&quot;&gt;ダブルクリックによりマウント。&lt;/li&gt;
&lt;li class=&quot;lidesign10&quot;&gt;install-tl-windows.bat をダブルクリック。&lt;/li&gt;
&lt;li class=&quot;lidesign10&quot;&gt;適当に設定してインストール開始。
&lt;ul style=&quot;list-style-type: disc;&quot;&gt;
&lt;li&gt;インストール先は変更した。&lt;br /&gt;
&amp;rarr;プログラミング言語のコンパイラ等を入れているディレクトリと同じ場所にした。&lt;br /&gt;
　　雰囲気近そうだからね。&lt;/li&gt;
&lt;li&gt;TeX Worksはインストールしない。&lt;br /&gt;
　代わりにTexStudioを導入するため。&lt;/li&gt;
&lt;li&gt;詳細設定&amp;rarr;コレクションを選択していらないものを除く。
&lt;div class=&quot;indent-1&quot;&gt;ゲーム組版, 音楽パッケージ&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li class=&quot;lidesign10&quot;&gt;インストールの完了を確認してコンピュータの再起動を行う。&lt;/li&gt;
&lt;li class=&quot;lidesign10&quot;&gt;パッケージのアップデート。
&lt;div class=&quot;indent-2&quot;&gt;「TeX Live 2019」&amp;rarr;「TeX Live Manager」によってアップデートが可能...らしい&lt;br /&gt;
私は以下のコマンドを使用&lt;br /&gt;
　&lt;em&gt;tlmgr update --self --all&lt;/em&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;lidesign10&quot;&gt;埋め込む日本語フォントの設定(未)
&lt;div class=&quot;indent-2&quot;&gt;&lt;a href=&quot;https://qiita.com/nijuiti/items/6aa83f35d8f4398ce0a5&quot;&gt;ここ&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;indent-1&quot;&gt;参考
&lt;div class=&quot;indent-1&quot;&gt;&lt;a href=&quot;https://texwiki.texjp.org/?TeX%20Live%2FWindows#t70745b0&quot;&gt; TeX Wiki TeX Live / Windows&lt;br /&gt;
&lt;/a&gt;&lt;a href=&quot;https://qiita.com/Tats_U_/items/01d48eb70a8b359b0d95&quot;&gt;はじめてTeXを使う人が知っておくといいことまとめ&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --&gt;
&lt;h2&gt;TeXstudioのインストール&lt;/h2&gt;
&lt;ol&gt;
&lt;li class=&quot;lidesign10&quot;&gt;ダウンロードする
&lt;div class=&quot;indent-2&quot;&gt;&lt;a href=&quot;https://www.texstudio.org/#download&quot;&gt;TeXstudioの公式ダウンロードページ&lt;/a&gt;へ行く。&lt;br /&gt;
WindowsのType Installerをクリックする。&lt;br /&gt;
今回はインストーラを用いた。zip版もあると思われる。&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;lidesign10&quot;&gt;実行&lt;/li&gt;
&lt;li class=&quot;lidesign10&quot;&gt;設定&lt;ol&gt;
&lt;li class=&quot;lidesign10&quot;&gt;ビルド
&lt;div class=&quot;indent-1&quot;&gt;DVI-&amp;gt;pdfチェーン&lt;br /&gt;
LaTeX&lt;br /&gt;
PDFビューア&lt;br /&gt;
組み込みPDFビューア&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;lidesign10&quot;&gt;コマンド（変更したものを以下に示す。元は&lt;a href=&quot;https://texwiki.texjp.org/?cmd=read&amp;amp;page=TeXstudio%2F%E8%A8%AD%E5%AE%9A%2FWindows&quot;&gt;ここから&lt;/a&gt;）
&lt;div class=&quot;indent-1&quot;&gt;LaTeX
&lt;div class=&quot;indent-1&quot;&gt;uplatex.exe -no-guess-input-enc -kanji=utf8 -synctex=1 -interaction=nonstopmode %.tex&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;indent-1&quot;&gt;PdfLaTeX
&lt;div class=&quot;indent-1&quot;&gt;pdflatex.exe -synctex=1 -interaction=nonstopmode %.tex&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;indent-1&quot;&gt;XeLaTeX
&lt;div class=&quot;indent-1&quot;&gt;xelatex.exe -synctex=1 -interaction=nonstopmode %.tex&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;indent-1&quot;&gt;LuaLaTeX
&lt;div class=&quot;indent-1&quot;&gt;lualatex.exe -synctex=1 -interaction=nonstopmode %.tex&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;indent-1&quot;&gt;外部PDFビューア
&lt;div class=&quot;indent-1&quot;&gt;&quot;&lt;em&gt;後述のPDFの実行ファイルとパス&lt;/em&gt;&quot; -reuse-instance -inverse-search &quot;&quot;&quot;&quot;&lt;em&gt;TeXstudioの実行ファイルとパス&lt;/em&gt;&quot;&quot;&quot; &quot;&quot;&quot;%%f&quot;&quot;&quot; -line %%l&quot; &quot;?am.pdf&quot; -forward-search &quot;?c:am.tex&quot; @&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;indent-1&quot;&gt;DviPs
&lt;div class=&quot;indent-1&quot;&gt;ruby.exe -e &quot;cmd='dvips -Ppdf -z -f '+0x22.chr+'?am.dvi'+0x22.chr+' '+0x7c.chr+' '+'convbkmk -u'+' '+0x3e.chr+' '+0x22.chr+'?am.ps'+0x22.chr;system(cmd)&quot;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;indent-1&quot;&gt;BibTeX
&lt;div class=&quot;indent-1&quot;&gt;upbibtex.exe %&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;indent-1&quot;&gt;Biber
&lt;div class=&quot;indent-1&quot;&gt;biber.exe --bblencoding=utf8 -u -U --output_safechars %&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;indent-1&quot;&gt;Makeindex
&lt;div class=&quot;indent-1&quot;&gt;upmendex.exe %.idx&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;indent-1&quot;&gt;Metapost
&lt;div class=&quot;indent-1&quot;&gt;upmpost.exe -interaction=nonstopmode ?me)&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;indent-1&quot;&gt;Asymptote
&lt;div class=&quot;indent-1&quot;&gt;asy.exe %m*.asy&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;indent-1&quot;&gt;Ghostscript
&lt;div class=&quot;indent-1&quot;&gt;rungs.exe&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;indent-1&quot;&gt;Latexmk
&lt;div class=&quot;indent-1&quot;&gt;latexmk.exe -e &quot;$latex=q/uplatex %%O -kanji=utf8 -no-guess-input-enc -synctex=1 -interaction=nonstopmode %%S/&quot; -e &quot;$bibtex=q/upbibtex %%O %%B/&quot; -e &quot;$biber=q/biber %%O --bblencoding=utf8 -u -U --output_safechars %%B/&quot; -e &quot;$makeindex=q/upmendex %%O -o %%D %%S/&quot; -e &quot;$dvipdf=q/dvipdfmx %%O -o %%D %%S/&quot; -norc -gg -pdfdvi -silent %&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;indent-1&quot;&gt;SVN
&lt;div class=&quot;indent-1&quot;&gt;svn.exe&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;indent-1&quot;&gt;SVNADMIN
&lt;div class=&quot;indent-1&quot;&gt;svnadmin.exe&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;lidesign10&quot;&gt;エディタ
&lt;div class=&quot;indent-1&quot;&gt;インラインチェックを外す。(日本語文書だとこれが必要らしい)&lt;br /&gt;
フォントファミリーは変更した方がいいかもしれない。&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;lidesign10&quot;&gt;高度なオプションの表示（左下）にチェックを入れる&lt;/li&gt;
&lt;li class=&quot;lidesign10&quot;&gt;詳細なエディタの設定
&lt;div class=&quot;indent-1&quot;&gt;「ハック/回避策」&amp;rArr;「最適なディスプレイオプションの選択」のチェックを外し、「描画モード」を「QT」に変更する。
&lt;div class=&quot;indent-2&quot;&gt;日本語の場合、これをしないとカーソルのずれといった問題に直面することになるらしい。&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;indent-1&quot;&gt;一番上にある「行番号を表示」を「すべての行番号」に設定する。
&lt;div class=&quot;indent-2&quot;&gt;これにより、行番号が表示される。&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;indent-1&quot;&gt;※設定ファイルについて
&lt;div class=&quot;indent-1&quot;&gt;&lt;a href=&quot;https://texwiki.texjp.org/?TeXstudio%2F%E8%A8%AD%E5%AE%9A&quot;&gt;ここ&lt;/a&gt;のサイトに、各OSにおける設定ファイルの保管場所が記載されている。アンインストール時には、これを消すことも忘れないようにする。&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;indent-1&quot;&gt;参考
&lt;div class=&quot;indent-1&quot;&gt;&lt;a href=&quot;https://texwiki.texjp.org/?TeXstudio%2F%E8%A8%AD%E5%AE%9A&quot;&gt;TeX Wiki TeXstudio/設定&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://texwiki.texjp.org/?cmd=read&amp;amp;page=TeXstudio%2F%E8%A8%AD%E5%AE%9A%2FWindows&quot;&gt;TeX Wiki TeXstudio/設定/Windows&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://www.tsuruo5388.jp/tech-latex-win-setting/#toc3&quot;&gt;【環境構築】WindowsでLaTeX2019が使えるようになるまで&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --&gt;
&lt;h2&gt;PDFビューア&lt;/h2&gt;
&lt;div class=&quot;indent-1&quot;&gt;SumatraPDFを使用。&lt;br /&gt;
これを使うにはTeXstudioで設定を変更する必要がある。&lt;/div&gt;
&lt;br /&gt;

&lt;div class=&quot;indent-1&quot;&gt;参考
&lt;div class=&quot;indent-1&quot;&gt;&lt;a href=&quot;https://qiita.com/Tats_U_/items/01d48eb70a8b359b0d95#pdf%E3%83%93%E3%83%A5%E3%83%BC%E3%82%A2&quot;&gt;はじめてTeXを使う人が知っておくといいことまとめ&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --&gt;
&lt;h2&gt;関係ないけれど&lt;/h2&gt;
&lt;p&gt;源ノ明朝, 源ノゴシックのJP Subset OTFsを導入した。&lt;br /&gt;
　元のデータは取り敢えず/usr/usrname/document/font/の下に置く。&lt;/p&gt;
&lt;!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --&gt;
&lt;h2&gt;Note&lt;/h2&gt;
&lt;div class=&quot;indent-1&quot;&gt;DVI-&amp;gt;pdfチェーン&lt;br /&gt;
LaTeX&lt;br /&gt;
PDFビューア&lt;br /&gt;
組み込みPDFビューア&lt;br /&gt;
dvipdfmx&lt;br /&gt;
&lt;br /&gt;

&lt;p&gt;・tlmgrとは&lt;br /&gt;
　TeX Liveのパッケージ管理ソフト&lt;/p&gt;
&lt;p&gt;・tlmgrのアクセス先は変更できる。&lt;br /&gt;
　参考：http://www.fugenji.org/~thomas/tori-tex/node15.html&lt;/p&gt;
&lt;p&gt;・自分で処理をすることもできる&lt;br /&gt;
　　platex hoge.tex&lt;br /&gt;
　　dvipdfmx hoge.dvi&lt;br /&gt;
　のような手順で hoge.tex から hoge.pdfを作ることができる。&lt;/p&gt;
&lt;p&gt;・パッケージの文書（技術文書）を表示することができる。&lt;br /&gt;
　　texdoc &lt;em&gt;パッケージ名&lt;/em&gt;&lt;br /&gt;
　参考：&lt;a href=&quot;http://www.fugenji.org/~thomas/tori-tex/node21.html&quot;&gt;ここ&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;・\documentclass[a4j]{jsarticle}　が上手くいかない。&lt;br /&gt;
　&amp;rarr;\documentclass[uplatex, a4j]{jsarticle}　にする。&lt;br /&gt;
　　jsarticleなどは、そのままではupLaTeXで使うことができない。&lt;br /&gt;
　　参考:&lt;a href=&quot;https://texwiki.texjp.org/?%E3%82%88%E3%81%8F%E3%81%82%E3%82%8B%E8%B3%AA%E5%95%8F#p2c0bcc3&quot; title=&quot;&quot;&gt;ここ&lt;br /&gt;
&lt;/a&gt; 　&amp;rarr;或いは \documentclass[a4j]{ujarticle}　にする。&lt;/p&gt;
&lt;p&gt;・LaTeXドキュメントをHTML二変換したい場合&lt;br /&gt;
　&lt;a href=&quot;https://texwiki.texjp.org/?LaTeX2HTML&quot;&gt;ここ&lt;/a&gt;とか使えそう。&lt;/p&gt;
&lt;br /&gt;
便利&lt;br /&gt;
&lt;a href=&quot;https://qiita.com/zr_tex8r/items/a924be192ecea7e6bbe4&quot;&gt;https://qiita.com/zr_tex8r/items/a924be192ecea7e6bbe4&lt;br /&gt;
&lt;/a&gt;&lt;/div&gt;
&lt;!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --&gt;
&lt;h2&gt;Linuxに入れたくなった時のために&lt;/h2&gt;
&lt;div class=&quot;indent-1&quot;&gt;以下のリンクを(片っ端から)参照&lt;br /&gt;
https://user.ecc.u-tokyo.ac.jp/users/user-15826/wiki/?TeX/Install&lt;/div&gt;</description> 
      <link>http://kikihijidarake.blog.shinobi.jp/tex/tex_install</link> 
    </item>
    <item>
      <title>今後調査・研究すること</title>
      <description>完全なる備忘録&lt;br /&gt;
下記について、オヌヌメのサイトなどあればコメントで教えてください。&lt;br /&gt;
&lt;br /&gt;
・重複の除去&lt;br /&gt;
&lt;a href=&quot;https://qiita.com/ysk24ok/items/30ae72f4f1060b088588&quot;&gt;https://qiita.com/ysk24ok/items/30ae72f4f1060b088588&lt;br /&gt;
&lt;br /&gt;
&lt;/a&gt;・std::set（上とも関連）&lt;br /&gt;
http://vivi.dyndns.org/tech/cpp/set.html&lt;br /&gt;
&lt;br /&gt;
・Union-Find木&lt;br /&gt;
&lt;a href=&quot;https://qiita.com/ofutonfuton/items/c17dfd33fc542c222396&quot;&gt;https://qiita.com/ofutonfuton/items/c17dfd33fc542c222396&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
・&lt;a href=&quot;http://vivi.dyndns.org/tech/cpp/set.html&quot;&gt;&lt;/a&gt;</description> 
      <link>http://kikihijidarake.blog.shinobi.jp/compro/%E4%BB%8A%E5%BE%8C%E8%AA%BF%E6%9F%BB%E3%83%BB%E7%A0%94%E7%A9%B6%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8</link> 
    </item>
    <item>
      <title>ABC001-010まとめ</title>
      <description>&lt;p&gt;AtCoderBeginnerContestの各問題におけるミソを&lt;strong&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;自分用に&lt;/span&gt;&lt;/strong&gt;まとめた記事。&lt;br /&gt;
その001-010。&lt;br /&gt;
リンク先はそのミソについてまとめられた（まとめた）記事になっています。&lt;/p&gt;
&lt;br /&gt;

&lt;h3&gt;&lt;a href=&quot;https://atcoder.jp/contests/abc001/&quot; title=&quot;&quot; target=&quot;_blank&quot;&gt;ABC001&lt;/a&gt;&lt;/h3&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;A問題　なし&lt;/p&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;B問題　なし&lt;/p&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;C問題&lt;br /&gt;
&lt;span style=&quot;margin-left: 10px;&quot;&gt;小数の計算誤差。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;margin-left: 10px;&quot;&gt;&lt;a href=&quot;http://kikihijidarake.blog.shinobi.jp/nocategory/avoidcalcerror&quot; title=&quot;&quot; target=&quot;_blank&quot;&gt;http://kikihijidarake.blog.shinobi.jp/nocategory/avoidcalcerror&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;margin-left: 10px;&quot;&gt;一般には私がまとめたのより、こちらのサイトの方が詳しいし良いかも。&lt;/span&gt;&lt;span style=&quot;margin-left: 10px;&quot;&gt;&lt;a href=&quot;http://d.hatena.ne.jp/komiyam/20111210/1323503019&quot; title=&quot;&quot; target=&quot;_blank&quot;&gt;http://d.hatena.ne.jp/komiyam/20111210/1323503019&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;D問題&lt;/p&gt;
&lt;br /&gt;

&lt;h3&gt;&lt;a href=&quot;https://atcoder.jp/contests/abc002/&quot; title=&quot;&quot; target=&quot;_blank&quot;&gt;ABC002&lt;/a&gt;&lt;/h3&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;A問題　なし&lt;/p&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;B問題　なし&lt;/p&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;C問題&lt;br /&gt;
&lt;span style=&quot;margin-left: 10px;&quot;&gt;小数の計算誤差。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;margin-left: 10px;&quot;&gt;同上&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;D問題&lt;/p&gt;
&lt;br /&gt;

&lt;h3&gt;&lt;a href=&quot;https://atcoder.jp/contests/abc003/&quot; title=&quot;&quot; target=&quot;_blank&quot;&gt;ABC003&lt;/a&gt;&lt;/h3&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;A問題&lt;br /&gt;
&lt;span style=&quot;margin-left: 10px;&quot;&gt;計算順序とかもっといい方法があった。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;margin-left: 10px;&quot;&gt;詳細はいずれ。（書かないかも）&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;B問題&lt;br /&gt;
&lt;span style=&quot;margin-left: 10px;&quot;&gt;別解：文字に点数をつけて、その合計点を見ることで条件を満たすか否かを判別する方法。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;margin-left: 10px;&quot;&gt;文字と点数の結びつけは連想配列で。C++ならstd::mapとか。&lt;/span&gt; &lt;br /&gt;
&lt;span style=&quot;margin-left: 10px;&quot;&gt;&amp;rarr;連想配列の詳細&amp;nbsp;&lt;a href=&quot;http://vivi.dyndns.org/tech/cpp/map.html&quot; title=&quot;&quot; target=&quot;_blank&quot;&gt;http://vivi.dyndns.org/tech/cpp/map.html&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;margin-left: 10px;&quot;&gt;詳細はいずれ。（書かないかも）&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;C問題&lt;br /&gt;
&lt;span style=&quot;margin-left: 10px;&quot;&gt;組み合わせが膨大な問題に対してどう取り組むか。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;margin-left: 10px;&quot;&gt;詳細はいずれ。（書かないかも）&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;D問題&lt;/p&gt;
&lt;br /&gt;

&lt;h3&gt;&lt;a href=&quot;https://atcoder.jp/contests/abc004/&quot; title=&quot;&quot; target=&quot;_blank&quot;&gt;ABC004&lt;/a&gt;&lt;/h3&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;A問題　なし&lt;/p&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;B問題&lt;br /&gt;
&lt;span style=&quot;margin-left: 10px;&quot;&gt;マスをどうやって回転させるか。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;margin-left: 10px;&quot;&gt;&amp;rarr;c[i][j]とc[3-i][3-j]をswapすればよい。&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;C問題&lt;br /&gt;
&lt;span style=&quot;margin-left: 10px;&quot;&gt;膨大な計算をどう削減するか。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;margin-left: 10px;&quot;&gt;&amp;rarr;今回は繰り返し（規則性）の発見。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;margin-left: 10px;&quot;&gt;&amp;rarr;やっている計算も同じようなことを繰り返しているだけだしね。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;margin-left: 10px;&quot;&gt;詳細はなし。&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;D問題&lt;/p&gt;
&lt;br /&gt;

&lt;h3&gt;&lt;a href=&quot;https://atcoder.jp/contests/abc005/&quot; title=&quot;&quot; target=&quot;_blank&quot;&gt;ABC005&lt;/a&gt;&lt;/h3&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;A問題　なし&lt;/p&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;B問題　ソートするか入力段階でmin値を更新していくか。&lt;/p&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;C問題　別解の二部グラフってなに。調べたら追記。&lt;/p&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;D問題&lt;/p&gt;
&lt;br /&gt;

&lt;h3&gt;&lt;a href=&quot;https://atcoder.jp/contests/abc006/&quot; title=&quot;&quot; target=&quot;_blank&quot;&gt;ABC006&lt;/a&gt;&lt;/h3&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;A問題　なし&lt;/p&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;B問題　なし&lt;/p&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;C問題　1変数の固定とか、3変数のうち既に求めた2変数を用いて残りの1変数を導出するとか。&lt;/p&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;D問題&lt;/p&gt;
&lt;br /&gt;

&lt;h3&gt;&lt;a href=&quot;https://atcoder.jp/contests/abc007&quot; title=&quot;&quot; target=&quot;_blank&quot;&gt;ABC007&lt;/a&gt;&lt;/h3&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;A問題　なし&lt;/p&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;B問題　なし&lt;/p&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;C問題　幅優先探索の例題&lt;/p&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;D問題&lt;/p&gt;
&lt;br /&gt;

&lt;h3&gt;&lt;a href=&quot;https://atcoder.jp/contests/abc008&quot; title=&quot;&quot; target=&quot;_blank&quot;&gt;ABC008&lt;/a&gt;&lt;/h3&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;A問題　なし&lt;/p&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;B問題　なし&lt;/p&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;C問題&lt;/p&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;D問題&lt;/p&gt;
&lt;br /&gt;

&lt;h3&gt;&lt;a href=&quot;https://atcoder.jp/contests/abc009&quot; title=&quot;&quot; target=&quot;_blank&quot;&gt;ABC009&lt;/a&gt;&lt;/h3&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;A問題　なし&lt;/p&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;B問題　降順ソートのやり方&lt;br /&gt;
&lt;a href=&quot;http://kikihijidarake.blog.shinobi.jp/Entry/8/&quot; title=&quot;&quot; target=&quot;_blank&quot;&gt;http://kikihijidarake.blog.shinobi.jp/Entry/8/&lt;/a&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;C問題&lt;/p&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;D問題&lt;/p&gt;
&lt;br /&gt;

&lt;h3&gt;&lt;a href=&quot;https://atcoder.jp/contests/abc010&quot; title=&quot;&quot; target=&quot;_blank&quot;&gt;ABC010&lt;/a&gt;&lt;/h3&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;A問題　なし&lt;/p&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;B問題　なし&lt;/p&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;C問題&lt;br /&gt;
&lt;span style=&quot;margin-left: 10px;&quot;&gt;小数の計算誤差。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;margin-left: 10px;&quot;&gt;ABC001 C問題と同じ&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;D問題&lt;/p&gt;
&lt;p style=&quot;margin-left: 10px;&quot;&gt;&lt;span style=&quot;margin-left: 10px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;margin-left: 10px;&quot;&gt;&lt;/span&gt;&lt;/p&gt;</description> 
      <link>http://kikihijidarake.blog.shinobi.jp/compro/abstractabc001010</link> 
    </item>
    <item>
      <title>小数計算の誤差を回避する</title>
      <description>ききひじの競プロ備忘録
&lt;p&gt;割り算の結果が小数になる場合、その誤差が時に問題を生じさせる。&lt;br /&gt;
特に比較をするときなどは顕著だろう。&lt;br /&gt;
その解決策である。&lt;br /&gt;
&lt;br /&gt;
因みに私は記事を書いてなおよくわかっていない。&lt;/p&gt;
&lt;h2&gt;回避策1：少しだけ小さい数を足す&lt;/h2&gt;
&lt;p&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;割られる数が整数などの場合&lt;/span&gt;、計算結果に、例えば0.00001のような小さめの値を足すという方法がある。&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;double ans = 241 / 60 + 0.00001;&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;

&lt;p&gt;「少しだけ」が曖昧なので、妥当な数字がどれくらいかを考えるのは難しい気がする。&lt;br /&gt;
また割られる数が小数以下の細かい数字の場合、この方法をとることが出来ない。&lt;/p&gt;
&lt;br /&gt;

&lt;h2&gt;回避策2：10のn乗倍してから、整数として計算する。&lt;/h2&gt;
&lt;p&gt;整数xを整数yで割る。このとき、商を10^-nの精度で求めたいとする。&lt;br /&gt;
解決策2では、xを先に10^n倍してyで割るのだ。そして計算結果を10^-n倍すればよい。&lt;/p&gt;
&lt;p&gt;もし計算結果をそのまま出力するとか、文字にするのならば10^-n倍しないことも可能だろう。こうすると完全にずれはなくなる&amp;hellip;気がする。&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// n = 1, y=2 のとき
const int a = 何かしらの値1
const int b = 何かしらの値2

cin&amp;gt;&amp;gt;x;
x = x * 10 / 2;
cout&amp;lt;&amp;lt; x / 10 &amp;lt;&amp;lt; '.' &amp;lt;&amp;lt; x % 10 &amp;lt;&amp;lt; flush;
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;

&lt;p&gt;また、計算が続くのならば、すべての計算が終わった段階で10^-n倍するとよいかもしれない。 この方法で注意すべきは、変数のオーバーフローである。特に計算が長く続き、かつ最後に10^-n倍をする場合、その計算途中で桁が溢れる危険があるので使う際には留意されたし。&lt;/p&gt;
&lt;br /&gt;

&lt;h2&gt;回避策3：そもそも計算しない&lt;/h2&gt;
&lt;p&gt;そもそも小数を扱わなければいけないような計算をしなければいい。&lt;/p&gt;
&lt;p&gt;例えば、入力xについて、xを７で割った商で条件分岐する場合を考える。 &lt;br /&gt;
このとき、境目となる値を先に7倍し、7倍された値とxを比較すればよいのだ。&lt;/p&gt;
before
&lt;pre&gt;&lt;code&gt;// a &amp;gt; b
const double a = 何かしらの値1
const double b = 何かしらの値2

cin&amp;gt;&amp;gt;x;
double quotient = x/7;
if(quotient &amp;gt; a){
  //何かしらの処理
}
else if(quotient &amp;gt; b){
  //何かしらの処理
}
else{
  //何かしらの処理
}&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
after AやBは可能なら先に自分で計算をしておくとよりよい（のだろうか）。&lt;br /&gt;

&lt;pre&gt;&lt;code&gt;// a &amp;gt; b
const double A = 何かしらの値1*7
const double B = 何かしらの値2*7

cin&amp;gt;&amp;gt;x;
if(x &amp;gt; A){
  //何かしらの処理
}
else if(x &amp;gt; B){
  //何かしらの処理
}
else{
  //何かしらの処理
}&lt;/code&gt;&lt;/pre&gt;</description> 
      <link>http://kikihijidarake.blog.shinobi.jp/compro/avoidcalcerror</link> 
    </item>
    <item>
      <title>Fatal error in launcher: Unable to create process using "" (English)</title>
      <description>日本語記事は&lt;span style=&quot;color: #3366ff;&quot;&gt;&lt;a href=&quot;http://kikihijidarake.blog.shinobi.jp/python/python__pip_error&quot; title=&quot;日本語版&quot; target=&quot;_self&quot;&gt;&lt;span style=&quot;color: #3366ff;&quot;&gt;こちら&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
I could not run some pip commands...
&lt;h2&gt;・Caution&lt;/h2&gt;
&lt;p&gt;I am not professional, so what I will tell you may be incorrect. I recommend you to check what you read are really correct comparing with other sources (and if you find any mistakes, please tell me about it).&lt;/p&gt;
&lt;h2&gt;・Background&lt;/h2&gt;
&lt;p&gt;I was installing Python and pip to my desktop PC. First I installed Python3. After a short time, I realized that Python2 were also needed in my use, so I installed it.&lt;/p&gt;
&lt;p&gt;Unfortunately, after that, some articles on the Internet says that if not install Python2 before installation of Python3, I cannot control Python version. (Perhaps, there are other ways.)&lt;/p&gt;
&lt;p&gt;Therefore, I uninstalled Python2 and Python3 through Control Panel, and reinstalled in the order of Python2 and Python3. In this way, I succesed installation of them.&lt;/p&gt;
&lt;p&gt;However, when I tried to run pip command via command prompt to make sure that installation was succeed, some pip command did not work and the following error message was shown.&lt;br /&gt;
　　&lt;em&gt;Fatal error in launcher: Unable to create process using &quot;&quot; &quot;&quot;　　&lt;/em&gt;&lt;br /&gt;
This message was displayed when I use the command like&lt;br /&gt;
　　pip &lt;em&gt;&quot;something&quot;&lt;/em&gt;&lt;br /&gt;
If pip command work correctly, it is predicted that pip3 (pip of Python3) will run, but it didn't, though commands like&lt;br /&gt;
　　py -m pip &lt;em&gt;&quot;something&quot;&lt;/em&gt;&lt;br /&gt;
worked...&lt;/p&gt;
&lt;h2&gt;・Environment&lt;/h2&gt;
&lt;p&gt;Windows10 Pro&lt;br /&gt;
Python3.7.1&lt;br /&gt;
python2.7.15&lt;/p&gt;
&lt;h2&gt;・What I Did.&lt;/h2&gt;
&lt;p&gt;First, I made sure that the path was set correctly. If you have never checked the path, you should do that referencing other article.&lt;/p&gt;
&lt;p&gt;Second, I checked the path in Python and I confirmed that &quot;bad path&quot; did not exited. (*1) &lt;br /&gt;
&lt;span style=&quot;color: #c0c0c0;&quot; data-mce-mark=&quot;1&quot;&gt;I heard there is a path in Python, but I do not know well about it. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Moreover, I tried to update pip using the command below.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;em&gt;py -m pip install -U pip　&lt;/em&gt;&lt;br /&gt;
To my disappointment, it told me that the version of pip was latest.&lt;/p&gt;
&lt;p&gt;Finally, I did reinstall Python further again and I did it&amp;nbsp; strictly. It solved the problem...&lt;br /&gt;
I uninstalled both Pythons and deleted all remaining files exited in the directory where Python were. In addition, I also deleted data related to pip which were in C:\Users\&quot;UserName&quot;\AppData\Local. After that, I install python2 followed by python3.&lt;/p&gt;
&lt;h3&gt;*1&lt;/h3&gt;
&lt;p&gt;I do not think that checking it has meaning, but I write how did I check it just in case.&lt;br /&gt;
Via command prompt, I started Python and typed the next codes.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;C:\******&amp;gt; python&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; import sys&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; sys.path&lt;/p&gt;
&lt;p&gt;After that, some directories were shown and I checked them.&lt;/p&gt;</description> 
      <link>http://kikihijidarake.blog.shinobi.jp/python/python_pip_error_eng</link> 
    </item>
    <item>
      <title>ソートと降順（逆順）ソート　~~ C++ ~~</title>
      <description>ききひじの競プロ備忘録
&lt;h2&gt;・ソート&lt;/h2&gt;
必要なヘッダファイルは&lt;span style=&quot;text-decoration: underline;&quot;&gt;&amp;lt;algorithm&amp;gt;&lt;/span&gt; &lt;br /&gt;
以下の方法で、データを昇順（小&amp;rarr;大）にすることができる。&lt;br /&gt;
処理としてはクイックソートを行っているはず。 &lt;br /&gt;
例えばvectorをソートするならば、 &lt;br /&gt;
&lt;br /&gt;

&lt;pre&gt;&lt;code&gt;#include &amp;lt;algorithm&amp;gt;
#include &amp;lt;iostream&amp;gt;

int main() {
  vector&amp;lt;int&amp;gt; A(5);
  for (int i = 0; i &amp;lt; 5; ++i) {
    cin&amp;gt;&amp;gt;A[i];
  }

  //肝心のソート部
  sort(A.begin(), A.end());
  for (int i = 0; i &amp;lt; 5; ++i) {
    cout&amp;lt;&amp;lt;A[i]&amp;lt;&amp;lt;&quot; &quot;;
  }
  cout&amp;lt;&amp;lt;endl;
}&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;span&gt; 例えば上記のコードで&lt;br /&gt;
　　7 3 4 1 9&lt;br /&gt;
と入力すれば、&lt;br /&gt;
　　1 3 4 7 9&lt;br /&gt;
と結果が出力される。&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;
&lt;h2&gt;・降順ソート&lt;/h2&gt;
先のソートでは昇順でソートされた。&lt;br /&gt;
これを降順（大&amp;rarr;小）でソートするにはどうすればいいか。&lt;br /&gt;
ヘッダファイルは上記の&amp;lt;algorithm&amp;gt;に加えて&lt;span style=&quot;text-decoration: underline;&quot;&gt;&amp;lt;functional&amp;gt;&lt;/span&gt;も必要となる。&lt;br /&gt;

&lt;pre&gt;&lt;code&gt;#include &amp;lt;algorithm&amp;gt;
#include &amp;lt;functional&amp;gt;  //これが必要
#include &amp;lt;iostream&amp;gt;

int main() {
  vector&amp;lt;int&amp;gt; A(5);
  for (int i = 0; i &amp;lt; 5; ++i) {
    cin&amp;gt;&amp;gt;A[i];
  }

  //肝心のソート部
  sort(A.begin(), A.end(), greater&amp;lt;int&amp;gt;());
&lt;br /&gt;

for (int i = 0; i &amp;lt; 5; ++i) {
    cout&amp;lt;&amp;lt;A[i]&amp;lt;&amp;lt;&quot; &quot;;
  }
  cout&amp;lt;&amp;lt;endl;
}&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;span&gt; 例えば上記のコードで&lt;br /&gt;
　　7 3 4 1 9&lt;br /&gt;
と入力すれば、&lt;br /&gt;
　　9 7 4 3 1&lt;br /&gt;
と結果が出力される。&lt;br /&gt;
&lt;/span&gt; &lt;br /&gt;

&lt;h4&gt;降順ソート別解&lt;/h4&gt;
&lt;span&gt; 以下の方法でも逆順ソートは達成できる。&lt;br /&gt;
またこの場合は&amp;lt;functional&amp;gt;は不要となる。&lt;br /&gt;
ただ、実行速度はこちらの方が劣るとか。 &lt;/span&gt;
&lt;pre&gt;&lt;code&gt;#include &amp;lt;algorithm&amp;gt;
#include &amp;lt;iostream&amp;gt;

int main() {
  vector&amp;lt;int&amp;gt; A(5);
  for (int i = 0; i &amp;lt; 5; ++i) {
    cin&amp;gt;&amp;gt;A[i];
  }

  //肝心のソート部
  sort(A.rbegin(), A.rend());&lt;br /&gt;


  for (int i = 0; i &amp;lt; 5; ++i) {
    cout&amp;lt;&amp;lt;A[i]&amp;lt;&amp;lt;&quot; &quot;;
  }
  cout&amp;lt;&amp;lt;endl;
}&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;

&lt;h3&gt;・因みに&amp;hellip;&lt;/h3&gt;
&lt;sapn&gt; std::sort() &lt;br /&gt;
std::greater&amp;lt;Type&amp;gt;()&lt;br /&gt;
とstdです。&lt;/sapn&gt;</description> 
      <link>http://kikihijidarake.blog.shinobi.jp/compro/sortanddescendingsort</link> 
    </item>
    <item>
      <title>Ubuntu 18.04.1 LTSのインストール（Note）</title>
      <description>&lt;p&gt;※やったことを備忘録的に列挙していくページです。&lt;br /&gt;
　わかりやすさは他のwebページの方が優れているかと思います。うっかりこのページにたどり着いた方は、最下部の参考にあるサイト等を参照した方がわかりやすいでしょう。&lt;/p&gt;
&lt;h2&gt;用意したもの&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;ノートPC&lt;/li&gt;
&lt;li&gt;USB&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;やったこと&lt;/h2&gt;
①「Ubuntu 18.04.1 LTS」のダウンロード&lt;br /&gt;
　&lt;a href=&quot;http://jp.releases.ubuntu.com/18.04.1/&quot; title=&quot;&quot; target=&quot;_blank&quot;&gt;http://jp.releases.ubuntu.com/18.04.1/&lt;/a&gt;&amp;nbsp;より&lt;br /&gt;
　ノートPCに導入予定のため、デスクトップ版をダウンロード&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
②「Rufus」をダウンロード&lt;br /&gt;
　&lt;a href=&quot;https://rufus.ie/&quot; title=&quot;&quot; target=&quot;_blank&quot;&gt;https://rufus.ie/&lt;/a&gt;&amp;nbsp;より&lt;br /&gt;
　「Rufus」は、
&lt;blockquote&gt;&lt;em&gt;起動可能なISOファイル（Windows、Linux、UEFIなど）からUSBインストールメディアを作成するとき &lt;/em&gt;&lt;br /&gt;
出典：&amp;nbsp;&lt;a href=&quot;https://rufus.ie/&quot; title=&quot;&quot; target=&quot;_blank&quot;&gt;https://rufus.ie/&lt;/a&gt;&lt;/blockquote&gt;
　などに使えるソフト。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
③上記ソフトを利用し、用意したUSBをUbuntuのインストールメディアにする。&lt;br /&gt;
　ソフトは直感的に使えた。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
④Ubuntuをインストールするパソコンに、③で作成したUSBインストールメディアを指し、電源を入れて&lt;span style=&quot;text-decoration: line-through;&quot;&gt;BIOSかUEFIを起動。&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;text-decoration-line: line-through;&quot;&gt;今回用いたPCではF2キーを連打。&lt;/span&gt;&lt;br /&gt;

&lt;p style=&quot;padding-left: 1em;&quot;&gt;&amp;rarr;BIOSの起動は間に合わなかったorz。こんな時は、再度コンピューターの電源を落として再起動させればもう一度挑戦できる。&lt;br /&gt;
&lt;br /&gt;
&amp;rarr;もともと入っていたWindows 7が起動すると予想したが、普通にUSBからUbuntuが起動。おそらくBIOSの設定で、OSはHDDよりもUSBメディアを優先するようになっていたのだろう。&lt;/p&gt;
&lt;br /&gt;
&lt;br /&gt;
⑤「ようこそ」画面の設定&lt;br /&gt;
・言語は「日本語」を選択&lt;br /&gt;
・「Ubuntuをインストール」をクリック&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
⑥「キーボードレイアウト」の設定&lt;br /&gt;
・左右どちらも「日本語」を設定&lt;br /&gt;
　（日本語キーボードを使っていない場合は環境に合わせる？）&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
⑦「無線」の設定&lt;br /&gt;
・「wi-fiネットワークに今すぐには接続しない」を選択&lt;br /&gt;
　有線でつないでいるから&lt;br /&gt;
&lt;span style=&quot;text-decoration: line-through;&quot;&gt;　（有線でつないでいなくても、とりあえずこの選択でOK?）&lt;/span&gt;
&lt;p style=&quot;padding-left: 1em;&quot;&gt;&amp;rarr;⑧でUbuntuのインストール中にアップデートをダウンロードする」を選ぶならwi-fiの設定はした方がいいかも&lt;/p&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
⑧「アップデートと他のソフトウェア」の設定&lt;br /&gt;
・「最小インストール」を選択&lt;br /&gt;
　　自分の用途を考えると、不要なソフトはなるべく省きたい&lt;br /&gt;
・「Ubuntuのインストール中にアップデートをダウンロードする」をチェック&lt;br /&gt;
　　自分でやるのは面倒くさいからね&lt;br /&gt;
・「グラフィックスとwi-fiハードウェアと&amp;hellip;」をチェック&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
⑨「インストールの種類」の設定&lt;br /&gt;
・「ディスクを消去してUbuntuをインストール」を選択&lt;br /&gt;
　　既に入っているWindows 7は消去するつもりのため。&lt;br /&gt;
・「安全のため新しいUbuntuのインストールを暗号化する」のチェックは入れない&lt;br /&gt;
　　後から出来そう&lt;br /&gt;
・「新しいUbuntuのインストールにLVMを使用する」&lt;br /&gt;
　　同上&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
⑩インストールが終わるのを待ち再起動&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
以上&lt;br /&gt;
ソフトのインストール等は別の記事で&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;

&lt;h2&gt;参考&lt;/h2&gt;
Linux Fan (2018/08/27) :&amp;nbsp;Ubuntu 18.04 LTSインストールガイド【スクリーンショットつき解説】&lt;br /&gt;
https://linuxfan.info/ubuntu-18-04-install-guide (2019-01-11 参照)&lt;br /&gt;
kledgeb (2018/4/30) :Ubuntu 18.04 インストール準備 その1 - Ubuntu 18.04をインストールする前に・Ubuntuのライブメディアを作成してUbuntuを起動する&lt;br /&gt;
https://kledgeb.blogspot.com/2018/04/ubuntu-1804-1-ubuntu-1804ubuntuubuntu.html&amp;nbsp;(2019-01-11 参照)&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;text-decoration: line-through;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;</description> 
      <link>http://kikihijidarake.blog.shinobi.jp/ubuntu/install_ubuntu_18_04_1_lts_note</link> 
    </item>
    <item>
      <title>Fatal error in launcher: Unable to create process using ""</title>
      <description>The same article written in English is &lt;span style=&quot;color: #3366ff;&quot;&gt;&lt;a href=&quot;http://kikihijidarake.blog.shinobi.jp/python/python_pip_error_eng&quot; title=&quot;English ver.&quot; target=&quot;_self&quot;&gt;&lt;span style=&quot;color: #3366ff;&quot;&gt;here&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;.&lt;br /&gt;
pipの実行がうまくいかない
&lt;h2&gt;・症状&lt;/h2&gt;
&lt;p&gt;Pythonとpipのインストール時に、これらがうまくできたかを確認するため、コマンドプロンプトからそれぞれのコマンドを実行して確認していた。&lt;/p&gt;
&lt;p&gt;だがpipコマンドの実行がうまくいかない。下記のようなエラーが出てしまうのだ。&lt;/p&gt;
&lt;p&gt;　　Fatal error in launcher: Unable to create process using &quot;&quot; &quot;&quot;　　&lt;/p&gt;
&lt;p&gt;これを解決したい。&lt;/p&gt;
&lt;h2&gt;・諸注意&lt;/h2&gt;
&lt;p&gt;素人が備忘録的に書いている記事です。必ずしも正しいわけではないので、鵜呑みにせずよく確認してください。&lt;/p&gt;
&lt;h2&gt;・環境&lt;/h2&gt;
&lt;p&gt;Windows10 Pro&lt;br /&gt;
Python3.7.1&lt;br /&gt;
python2.7.15&lt;/p&gt;
&lt;h2&gt;・背景&lt;/h2&gt;
&lt;p&gt;諸事情により、私は自宅のデスクトップパソコンへPythonを入れることになった。それもPython2とPython3の両方である。&lt;/p&gt;
&lt;p&gt;はじめにPython3をいれた...のだが、ここでPython2を入れる必要があることに気が付く。そこでPython2を入れた。だがどうもネットで検索していると、先にPython2を入れ、そのあとPython3を入れないとうまくバージョン管理ができないらしい。（他にやりようはあるのかもしれないが。）&lt;br /&gt;
そこでそれぞれをコントロールパネルからアンインストール。Python2-&amp;gt;Python3の順にインストールをし直したのだ。こうしてPython2とPython3はうまくインストールできたのである。だがpipコマンドの確認段階でつまずいてしまった。&lt;br /&gt;
　　pip コマンド　&lt;br /&gt;
等の形で実行されるはずの、&lt;span style=&quot;text-decoration: underline;&quot;&gt;Python3の&lt;/span&gt;pipがうまく実行できないのである。&lt;br /&gt;
　　py -m pip コマンド　&lt;br /&gt;
では実行できるのに...。&lt;/p&gt;
&lt;h2&gt;・解決まで&lt;/h2&gt;
&lt;p&gt;まず初めに、正しくPathが通っているかを調べ、問題がないことを確認した。人によってはこの段階で原因を発見できると思うが、詳しい説明は他のブログやサイトを参照してほしい。&lt;/p&gt;
&lt;p&gt;次にPython内のPathである。&lt;span style=&quot;text-decoration: underline;&quot;&gt;存在するらしい&lt;/span&gt;。これを調べることに意味はなさそうだが、余計なところにPathが通っていないことを確認した。（注１）&lt;/p&gt;
&lt;p&gt;またpipのアップデートも試みた。&lt;br /&gt;
　　py -m pip install -U pip　&lt;br /&gt;
である。だが最新版であるという結果に。&lt;/p&gt;
&lt;p&gt;そして最後にやったのがPython3の再インストールである。&lt;/p&gt;
&lt;p&gt;まずPythonをアンインストールする。そして、もともとPythonがインストールされていたディレクトリ以下に残っているファイルを全て消去。さらにC:\Users\ユーザ名\AppData\Local以下にあるpipのデータも消去しておいた。その上でPythonを再度インストールするのである。私の場合はこれで解決した。&lt;/p&gt;
&lt;h3&gt;注１&lt;/h3&gt;
&lt;p&gt;これに関しては的外れだと思うが、一応私が確認した方法について。&lt;br /&gt;
まず　Python　でPythonを実行。　import sys　と　sys.path　で出力されたディレクトリを確認した。&lt;/p&gt;</description> 
      <link>http://kikihijidarake.blog.shinobi.jp/python/python__pip_error</link> 
    </item>
    <item>
      <title>C言語（avr-gcc下）のシフトの上限について</title>
      <description>------------------------------------------------------------------------------------------------------------------&lt;br /&gt;

&lt;h3&gt;- 結論 -&lt;br /&gt;
C言語(avr-gcc)のシフトの上限は15まで&lt;/h3&gt;
&lt;h4&gt;※他の言語, コンパイラは不明、c++やjsでは31までという記述を確認&lt;br /&gt;
※AVR8bitマイコンです&lt;/h4&gt;
------------------------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
注、ソースはstack overflow。以前調べた際に見つけたページのリンクが見つからず&amp;hellip;申し訳ない。&lt;br /&gt;
&lt;br /&gt;

&lt;p&gt;日本語サイトでこの事に触れているサイトが見つからなかったので一応ここに&amp;hellip;&lt;br /&gt;
常識過ぎて書かれていないなんてことはないと信じたい。&lt;/p&gt;
&lt;br /&gt;

&lt;p&gt;以前とある理由でめちゃくちゃシフトしたくなることがありまして、以下の様な感じのプログラム &lt;br /&gt;
&lt;br /&gt;
unsigned long hoge;&lt;br /&gt;
hoge |= 1&amp;lt;&amp;lt;24;&lt;br /&gt;
&lt;br /&gt;
を書いたわけですが、「変数に対して値が大きすぎる」みたいな警告（エラーだったか）が出てしまいまい、実際にうまくいきませんでした。&lt;br /&gt;
変数の大きさはコンパイラによって変わったりするものなので、念の為にlong型の大きさを確認してみましたが4byteで問題ない。で、調べたわけですがどうやらシフト出来る大きさにも上限があるらしく、その上限がavr-gccの場合「15」だそうです。&lt;br /&gt;
まあそんなわけで私は実装の仕方を変えて解決したわけですが、シフト数を変数などで指定する場合はうっかり上限を超えてしまったりするのでお気をつけを。特に変数で上限を超えてしまった場合などはそのことに気が付きにくいと思うので。&lt;/p&gt;</description> 
      <link>http://kikihijidarake.blog.shinobi.jp/electronicwork/avr_gcc_bitshift_limitation</link> 
    </item>

  </channel>
</rss>