<?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>雑記 &#8211; M. Yamaguchi Laboratory</title>
	<atom:link href="https://ba.sozo.ac.jp/myama/home/archives/category/misc/feed" rel="self" type="application/rss+xml" />
	<link>https://ba.sozo.ac.jp/myama/home</link>
	<description>豊橋創造大学　経営学部　経営学科　山口満研究室</description>
	<lastBuildDate>Sat, 13 Apr 2019 13:14:35 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.1</generator>
	<item>
		<title>例の暗号メッセージを生成してみる</title>
		<link>https://ba.sozo.ac.jp/myama/home/archives/2065</link>
		
		<dc:creator><![CDATA[山口]]></dc:creator>
		<pubDate>Tue, 29 Sep 2015 03:11:50 +0000</pubDate>
				<category><![CDATA[開発・サービス]]></category>
		<category><![CDATA[雑記]]></category>
		<category><![CDATA[プログラミング]]></category>
		<guid isPermaLink="false">http://ba.sozo.ac.jp/myama/home/?p=2065</guid>

					<description><![CDATA[説明するのもアレなので省略．最初に見たときに「すぐに作れるよね」と思っていたら，案の定すぐに作って公開した人がいるっぽい．いまさら感がありますがせっかくなので． 動機 ぱっと作れそうな感じだったので &#46;&#46;&#46;]]></description>
										<content:encoded><![CDATA[<p>説明するのもアレなので省略．最初に見たときに「すぐに作れるよね」と思っていたら，案の定すぐに作って公開した人がいるっぽい．いまさら感がありますがせっかくなので．</p>
<hr>
<h2>動機</h2>
<div class="myclass">
<ul>
<li>ぱっと作れそうな感じだったので</li>
<li>息抜き</li>
</ul>
</div>
<h2>目的</h2>
<div class="myclass">
<ul>
<li>明確な目的はなし．息抜き</li>
</ul>
</div>
<h2>暗号メッセージ？</h2>
<div class="myclass">
<ul>
<li>色付きの数字が，その色名（英語）の文字位置にある1文字を表している，というもの（一つの色付き数字が一つのアルファベットに対応する）</li>
</ul>
<p><div id="attachment_2090" style="width: 410px" class="wp-caption aligncenter"><a href="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/toyohashi.png" data-rel="lightbox-image-0" data-rl_title="" data-rl_caption="" title=""><img decoding="async" aria-describedby="caption-attachment-2090" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/toyohashi.png" alt="暗号例（この場合は toyohashi）" width="400" height="100" class="size-full wp-image-2090" srcset="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/toyohashi.png 400w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/toyohashi-300x75.png 300w" sizes="(max-width: 400px) 100vw, 400px" /></a><p id="caption-attachment-2090" class="wp-caption-text">暗号例（この場合は toyohashi）</p></div>
</div>
<h2>カラーネームについて</h2>
<div class="myclass">
Web standard 16 colors をベースに考えてみる．そのカラーネームにおいて，どの英文字がどの位置に現れるかを求めてみると次のような感じ（ExcelでFIND関数を使って整理）．</p>
<div id="attachment_2066" style="width: 882px" class="wp-caption aligncenter"><a href="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/colorname-characterpos.png" data-rel="lightbox-image-1" data-rl_title="" data-rl_caption="" title=""><img fetchpriority="high" decoding="async" aria-describedby="caption-attachment-2066" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/colorname-characterpos.png" alt="カラーネームと文字出現位置（今回はオレンジ塗りつぶしセルを採用）" width="872" height="398" class="size-full wp-image-2066" srcset="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/colorname-characterpos.png 872w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/colorname-characterpos-300x137.png 300w" sizes="(max-width: 872px) 100vw, 872px" /></a><p id="caption-attachment-2066" class="wp-caption-text">カラーネームと文字出現位置（今回はオレンジ塗りつぶしセルを採用）</p></div>
<ul>
<li>navy, teal, lime, aqua, fuchsia, olive, maroon は日本人にはピンとこない（わかりづらい）ので不採用．</li>
<li>gray と silver も判断に困るのでどちらか一択 → 今回は s と v を使いたいので silver を採用（gray の使用回避）．</li>
<li>結果的に，f, j, m, q, x, z を含むカラーがないので，これらの文字は暗号化されないことに．それ以外については，上表のオレンジで塗りつぶしたセルの値（とカラー）を使うことにする．</li>
</ul>
</div>
<h2>JavaScriptで書いてみる</h2>
<div class="myclass">
こんな感じでベタに書いてみる．<br />
今回はcanvasを使って描くことに．フォームに入力された文字列から1文字ずつ取り出して，事前に定義した変換（テーブル）ルールに従って出力する．f, j, m, q, x, z, スペースはそのまま出力する．フォントサイズや文字送り幅は適当に設定．</p>
<pre class="lang:js decode:true " data-url="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/colornamebasedencryption.js" ></pre>
<p>htmlソースはこんな感じでどうでしょう．</p>
<pre class="lang:default decode:true " >&lt;canvas id="cv" width="400" height="100" style="display:none;"&gt;&lt;/canvas&gt;

&lt;form name="myform"&gt;
	&lt;input type="text" id="inputtext" placeholder="半角英小文字とスペース" pattern="^[a-z\s]+$" title="半角英小文字とスペースを入力してください" size="15" maxlength="15"&gt;
	&lt;input type="button" value="暗号化" onclick="genImg();"&gt;
&lt;/form&gt;

&lt;div&gt;
&lt;img id="out"&gt;
&lt;div id="msg"&gt;&lt;/div&gt;
&lt;/div&gt;
</pre>
<p>canvasの描画内容を画像（PNG）として出力させることにした．<br />
（遊んでみたい人向けの注意！上記スクリプトはcanvasタグより後ろに記述 or 読み込むこと．）
</p></div>
<h2>結果</h2>
<div class="myclass">
<a href="https://ba.sozo.ac.jp/myama/home/develop/colornamebasedencryption">こちらのページからどうぞ．</a>
</div>
<h2>感想</h2>
<div class="myclass">
<ul>
<li>さあ仕事しよう</li>
</ul>
</div>
<hr>
<h2>参考サイト</h2>
<div class="myclass">
<ul>
<li><a href="http://www.w3.org/TR/html4/types.html#h-6.5" target="_blank" rel="noopener noreferrer">Basic HTML data types &#8211; 6.5 Colors</a></li>
</ul>
</div>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Huemanテーマの印刷スタイルを書く</title>
		<link>https://ba.sozo.ac.jp/myama/home/archives/1983</link>
					<comments>https://ba.sozo.ac.jp/myama/home/archives/1983#respond</comments>
		
		<dc:creator><![CDATA[山口]]></dc:creator>
		<pubDate>Wed, 27 May 2015 05:14:54 +0000</pubDate>
				<category><![CDATA[開発・サービス]]></category>
		<category><![CDATA[雑記]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">http://ba.sozo.ac.jp/myama/home/?p=1983</guid>

					<description><![CDATA[WordPress のテーマ Hueman はなかなか素敵．しかし印刷用のスタイルが定義されておらず，ページを印刷しようとしたらえらいことになる（本家サイトも対応していないし）．Web で調べてみても&#46;&#46;&#46;]]></description>
										<content:encoded><![CDATA[<p>WordPress のテーマ Hueman はなかなか素敵．しかし印刷用のスタイルが定義されておらず，ページを印刷しようとしたらえらいことになる（本家サイトも対応していないし）．Web で調べてみても，大して情報が出てこない．同じように困っている人がいることは確認．このテーマはそこそこ利用者が多い様子だけど，みんなこそっとカスタマイズして使ってるのかしら．</p>
<p>とりあえずページを印刷できないといろいろ困るので，スタイルを追加して最低限の情報をプリントできるようにする．参考までに</p>
<div class="myclass">
<blockquote><p>
Hueman<br />
<a href="http://alxmedia.se/themes/hueman/" target="_blank">http://alxmedia.se/themes/hueman/</a>
</p></blockquote>
</div>
<hr>
<h2>症状</h2>
<div class="myclass">
<ul>
<li>Hueman なサイトで記事（ページ）を印刷しようとすると，サイドバーの幅の影響で本文が表示されない．表示されたとしても，コンテンツ領域の幅が細く縦長に表示されてしまう．印刷できる状態でない．</li>
</ul>
</div>
<h2>目的</h2>
<div class="myclass">
<ul>
<li>Hueman なサイトでちゃんと記事（ページ）をしっかり印刷できるようにする</li>
</ul>
</div>
<h2>目標</h2>
<div class="myclass">
<ul>
<li>個別記事（ページ）の本文を印刷できるようにする</li>
<li>サイドバーやメニュー，ナビゲーション，関連記事等は印刷対象としない</li>
</ul>
</div>
<h2>環境</h2>
<div class="myclass">
<ul>
<li>WordPress 4.2.2-ja</li>
<li>Hueman 2.2.3</li>
<li>子テーマ（Hueman-Child）を作成してサイトデザイン・運営</li>
<li>Layout は 3 Column Middle（左サイドにPrimary，中央はメインコンテンツ，右サイドにSecondary）</li>
</ul>
<p>子テーマの style.css に印刷用の media query を定義し，元スタイルを上書きしていい感じに印刷できるようにする．子テーマを使わずに運用している人は，custom.css を有効にして追記すればよいかと
</p></div>
<hr>
<h2>何がいけないのか調べてみる</h2>
<div class="myclass">
Chrome のデベロッパーツールで見てみる．<br />
サイドバーの .s1 と .s2 クラスなオブジェクトのスタイルを単純に display:none; にすればできそう・・・だけど，印刷プレビューするとサイドバー分の空間が残ったまま（改善せず）．</p>
<p>原因は div の main-inner クラス要素の padding が効いてるからっぽい．</p>
<p><a href="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/huemantheme1.png" data-rel="lightbox-image-0" data-rl_title="" data-rl_caption="" title=""><img decoding="async" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/huemantheme1-300x205.png" alt="main-inner" width="300" height="205" class="aligncenter size-medium wp-image-1996" srcset="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/huemantheme1-300x205.png 300w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/huemantheme1.png 578w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p>具体的には，.col-3cm（3カラム設定でコンテンツ中央のときに適用されるクラス）の下の .main-inner（画像参照）．<br />
<a href="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/huemantheme2.png" data-rel="lightbox-image-1" data-rl_title="" data-rl_caption="" title=""><img loading="lazy" decoding="async" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/huemantheme2-217x300.png" alt=".col-3cm 下の .main-inner に padding" width="217" height="300" class="aligncenter size-medium wp-image-1995" srcset="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/huemantheme2-217x300.png 217w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/huemantheme2.png 224w" sizes="(max-width: 217px) 100vw, 217px" /></a></p>
<p>style.css の該当箇所を表示してみる．<br />
<a href="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/huemantheme3.png" data-rel="lightbox-image-2" data-rl_title="" data-rl_caption="" title=""><img loading="lazy" decoding="async" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/huemantheme3-300x120.png" alt="style.css の該当箇所" width="300" height="120" class="aligncenter size-medium wp-image-1994" srcset="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/huemantheme3-300x120.png 300w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/huemantheme3.png 878w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p>ということで，その padding 指定部分を print 時に 0 になるようにする．
</p></div>
<hr>
<h2>style.css にメディアクエリ print の記述を追加</h2>
<div class="myclass">
次のように style.css に追記．</p>
<pre class="trim-whitespace:false lang:css decode:true " >@media print {
/* ページ幅を適当に決めるとよいと思う．auto でもよい人はそうしたほうが */
body { width:960px; }

/* 印刷に含めないものたち */
#nav-topbar,
#nav-header,
#nav-footer,
#footer-widgets,
#comments,
.sidebar,
.post-nav,
.content h4.heading,
.related-posts,
.s1, .s2 { display: none !important; }

/* main 領域の幅をフルに，main-inner の余計な padding や margin を除く */
.col-3cm .main { background: none repeat-y right 0; width:100%; }
.col-3cm .main-inner { background: none repeat-y left 0; padding: 0px; margin:0px; }
}</pre>
</div>
<hr>
<h2>結果</h2>
<div class="myclass">
<ul>
<li>とりあえずは記事本文を印刷できるようになった</li>
<li>画像の大きさが気になる・・・けどとりあえずはOKとする</li>
<li>3 Column Middle（col-3cm）じゃない人は，他の Layout のクラスで同じようにすればできるだろうと予想（試してはいない）</li>
<li>誰かうまいこと print.css を作って</li>
<li>何かあればコメント欄にどうぞ</li>
</ul>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://ba.sozo.ac.jp/myama/home/archives/1983/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>WordPress 4.2～ 絵文字（画像）を無効にする</title>
		<link>https://ba.sozo.ac.jp/myama/home/archives/1952</link>
		
		<dc:creator><![CDATA[山口]]></dc:creator>
		<pubDate>Fri, 22 May 2015 01:54:53 +0000</pubDate>
				<category><![CDATA[雑記]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">http://ba.sozo.ac.jp/myama/home/?p=1952</guid>

					<description><![CDATA[WordPress 4.2から，記号などが勝手に絵文字（画像）に置き換わる現象が発生する．理由は「マルチバイト文字対応と絵文字の対応」をしたから，だそう．とりあえずメモ． 9ineBB &#8211;&#46;&#46;&#46;]]></description>
										<content:encoded><![CDATA[<p>WordPress 4.2から，記号などが勝手に絵文字（画像）に置き換わる現象が発生する．理由は「マルチバイト文字対応と絵文字の対応」をしたから，だそう．とりあえずメモ．</p>
<div class="myclass">
<blockquote><p>
9ineBB &#8211; WordPress 4.2 から絵文字を無効に(元に戻す)プラグイン「Disable Emojis」<br />
<a href="http://9-bb.com/wordpress-emoji/" target="_blank">http://9-bb.com/wordpress-emoji/</a>
</p></blockquote>
</div>
<hr>
<h2>絵文字有効の場合の表示</h2>
<div class="myclass">
<div id="attachment_1951" style="width: 310px" class="wp-caption aligncenter"><a href="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/emoji-enabled.png" data-rel="lightbox-image-0" data-rl_title="" data-rl_caption="" title=""><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1951" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/emoji-enabled-300x216.png" alt="絵文字有効" width="300" height="216" class="size-medium wp-image-1951" srcset="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/emoji-enabled-300x216.png 300w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/emoji-enabled.png 819w" sizes="(max-width: 300px) 100vw, 300px" /></a><p id="caption-attachment-1951" class="wp-caption-text">絵文字有効</p></div></p>
<p>ハートが突然真っ赤っかになってビックリ．
</p></div>
<hr>
<h2>絵文字を無効にするプラグインの導入</h2>
<div class="myclass">
&#8220;<a href="https://wordpress.org/plugins/disable-emojis/" target="_blank">Disable Emojis</a>&#8221; プラグインを導入して有効化する．</p>
<p><div id="attachment_1950" style="width: 310px" class="wp-caption aligncenter"><a href="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/plugin-disable-emojis.png" data-rel="lightbox-image-1" data-rl_title="" data-rl_caption="" title=""><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1950" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/plugin-disable-emojis-300x226.png" alt="Plugin: Disable Emojis" width="300" height="226" class="size-medium wp-image-1950" srcset="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/plugin-disable-emojis-300x226.png 300w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/plugin-disable-emojis.png 566w" sizes="(max-width: 300px) 100vw, 300px" /></a><p id="caption-attachment-1950" class="wp-caption-text">Plugin: Disable Emojis</p></div>
</div>
<hr>
<h2>絵文字無効化後の表示</h2>
<div class="myclass">
<div id="attachment_1949" style="width: 310px" class="wp-caption aligncenter"><a href="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/emoji-enabled2.png" data-rel="lightbox-image-2" data-rl_title="" data-rl_caption="" title=""><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1949" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/emoji-enabled2-300x214.png" alt="絵文字無効" width="300" height="214" class="size-medium wp-image-1949" srcset="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/emoji-enabled2-300x214.png 300w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/emoji-enabled2.png 825w" sizes="(max-width: 300px) 100vw, 300px" /></a><p id="caption-attachment-1949" class="wp-caption-text">絵文字無効</p></div>
</div>
<hr>
<h2>結果と感想</h2>
<div class="myclass">
<ul>
<li>すっきり</li>
<li>WordPress本体の設定で選択できるようにしてほしい</li>
</ul>
</div>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>”Word2013で保存して再度開くと見出しの段落番号が黒くなる”件</title>
		<link>https://ba.sozo.ac.jp/myama/home/archives/1919</link>
		
		<dc:creator><![CDATA[山口]]></dc:creator>
		<pubDate>Wed, 18 Mar 2015 14:56:49 +0000</pubDate>
				<category><![CDATA[雑記]]></category>
		<category><![CDATA[Word]]></category>
		<guid isPermaLink="false">http://ba.sozo.ac.jp/myama/home/?p=1919</guid>

					<description><![CDATA[Word2013 にて見出しを設定して保存し，再度文書を開くと見出し部分がまっ黒になることがある．学生の卒論の最終手直し中にぶち当たる．調べてみると，既知の問題で未だに修正されていない様子．参考にした&#46;&#46;&#46;]]></description>
										<content:encoded><![CDATA[<p>Word2013 にて見出しを設定して保存し，再度文書を開くと見出し部分がまっ黒になることがある．学生の卒論の最終手直し中にぶち当たる．調べてみると，既知の問題で未だに修正されていない様子．参考にしたのは次のページ．</p>
<div class="myclass">
<ul>
<li>WORD2013で保存して再度開くと見出しの段落番号が黒くなる &#8211; マイクロソフト コミュニティ<br /><a href="http://answers.microsoft.com/ja-jp/office/forum/office_2013_release-word/word2013%E3%81%A7%E4%BF%9D%E5%AD%98%E3%81%97/05c32ca5-4d32-4b14-b284-d816fb31f272?page=1" target="_blank">http://answers.microsoft.com/ja-jp/office/forum/office_2013_release-word/word2013%E3%81%A7%E4%BF%9D%E5%AD%98%E3%81%97/05c32ca5-4d32-4b14-b284-d816fb31f272?page=1</a></li>
<li>
Leveled Numbering list turns to black box after combining 3 documents in Word 2010<br />
<a href="https://social.technet.microsoft.com/Forums/office/en-US/447f7cac-1e6a-4990-be16-a823a437c0d4/leveled-numbering-list-turns-to-black-box-after-combining-3-documents-in-word-2010?forum=word" target="_blank">https://social.technet.microsoft.com/Forums/office/en-US/447f7cac-1e6a-4990-be16-a823a437c0d4/leveled-numbering-list-turns-to-black-box-after-combining-3-documents-in-word-2010?forum=word</a>
</li>
</ul>
</div>
<hr>
<h2>環境</h2>
<div class="myclass">
<ul>
<li>Word2013 (Windows 8.1 Pro)</li>
<li>卒論目次作成のため，Word の「見出し」スタイルを適用したときに発生</li>
</ul>
</div>
<p>上記のサイトに記載の次の手順で，とりあえずは解消できるみたい．手順をメモ</p>
<div class="myclass">
<blockquote><p>
This is definitely a bug. I succeeded in fixing it as follows:</p>
<ol>
<li>Put your cursor on the heading just right of the black box</li>
<li>Use the left arrow key on your keyboard to move left until the black box turns grey</li>
<li>Use the keyboard combination ctrl+shift+s, the dialog &#8220;Apply Styles&#8221; should appear</li>
<li>In this box, click &#8220;reapply&#8221;</li>
</ol>
</blockquote>
</div>
<hr>
<div class="myclass">
<h3>0. 見出しのはじめの部分がまっ黒になる</h3>
<p><div id="attachment_1911" style="width: 310px" class="wp-caption aligncenter"><a href="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/word2013-heading1.png" data-rel="lightbox-image-0" data-rl_title="" data-rl_caption="" title=""><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1911" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/word2013-heading1-300x200.png" alt="0. ファイルを開くと見出しのはじめの部分が黒くなってしまった" width="300" height="200" class="size-medium wp-image-1911" srcset="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/word2013-heading1-300x200.png 300w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/word2013-heading1.png 720w" sizes="(max-width: 300px) 100vw, 300px" /></a><p id="caption-attachment-1911" class="wp-caption-text">0. ファイルを開くと見出しのはじめの部分が黒くなってしまった</p></div>
</div>
<div class="myclass">
<h3>1. テキストをクリック</h3>
<p><div id="attachment_1913" style="width: 310px" class="wp-caption aligncenter"><a href="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/word2013-heading2.png" data-rel="lightbox-image-1" data-rl_title="" data-rl_caption="" title=""><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1913" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/word2013-heading2-300x200.png" alt="1. テキストをクリックする．マウスカーソルを図のような状態に" width="300" height="200" class="size-medium wp-image-1913" srcset="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/word2013-heading2-300x200.png 300w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/word2013-heading2.png 720w" sizes="(max-width: 300px) 100vw, 300px" /></a><p id="caption-attachment-1913" class="wp-caption-text">1. テキストをクリックする．マウスカーソルを図のような状態に</p></div>
</div>
<div class="myclass">
<h3>2. 矢印キーで左にカーソルを移動（グレーに反転するまで）</h3>
<p><div id="attachment_1914" style="width: 310px" class="wp-caption aligncenter"><a href="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/word2013-heading3.png" data-rel="lightbox-image-2" data-rl_title="" data-rl_caption="" title=""><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1914" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/word2013-heading3-300x200.png" alt="2. 左矢印キーを使って見出し部分までカーソルを移動させる．グレーに反転する．" width="300" height="200" class="size-medium wp-image-1914" srcset="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/word2013-heading3-300x200.png 300w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/word2013-heading3.png 720w" sizes="(max-width: 300px) 100vw, 300px" /></a><p id="caption-attachment-1914" class="wp-caption-text">2. 左矢印キーを使って見出し部分までカーソルを移動させる．グレーに反転する．</p></div>
</div>
<div class="myclass">
<h3>3. Ctrl + Shift + s で「スタイルの適用」ダイアログを表示</h3>
<p><div id="attachment_1915" style="width: 310px" class="wp-caption aligncenter"><a href="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/word2013-heading4.png" data-rel="lightbox-image-3" data-rl_title="" data-rl_caption="" title=""><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1915" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/word2013-heading4-300x200.png" alt="3. Ctrl+Shift+s で「スタイルの適用」ダイアログを表示させる" width="300" height="200" class="size-medium wp-image-1915" srcset="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/word2013-heading4-300x200.png 300w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/word2013-heading4.png 720w" sizes="(max-width: 300px) 100vw, 300px" /></a><p id="caption-attachment-1915" class="wp-caption-text">3. Ctrl+Shift+s で「スタイルの適用」ダイアログを表示させる</p></div>
</div>
<div class="myclass">
<h3>4. 目的のスタイルを選択して再適用</h3>
<p><div id="attachment_1916" style="width: 310px" class="wp-caption aligncenter"><a href="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/word2013-heading5.png" data-rel="lightbox-image-4" data-rl_title="" data-rl_caption="" title=""><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1916" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/word2013-heading5-300x200.png" alt="4. 再適用をクリックして目的のスタイルを適用" width="300" height="200" class="size-medium wp-image-1916" srcset="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/word2013-heading5-300x200.png 300w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/word2013-heading5.png 720w" sizes="(max-width: 300px) 100vw, 300px" /></a><p id="caption-attachment-1916" class="wp-caption-text">4. 再適用をクリックして目的のスタイルを適用</p></div>
</div>
<div class="myclass">
<h3>表示確認</h3>
<p><div id="attachment_1917" style="width: 310px" class="wp-caption aligncenter"><a href="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/word2013-heading6.png" data-rel="lightbox-image-5" data-rl_title="" data-rl_caption="" title=""><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1917" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/word2013-heading6-300x200.png" alt="正しく表示された" width="300" height="200" class="size-medium wp-image-1917" srcset="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/word2013-heading6-300x200.png 300w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/word2013-heading6.png 720w" sizes="(max-width: 300px) 100vw, 300px" /></a><p id="caption-attachment-1917" class="wp-caption-text">正しく表示された</p></div>
</div>
<div class="myclass">
<h3>注意：保存して閉じ，再度開くと若干スタイルがおかしくなっていることがある</h3>
<p><div id="attachment_1918" style="width: 310px" class="wp-caption aligncenter"><a href="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/word2013-heading7.png" data-rel="lightbox-image-6" data-rl_title="" data-rl_caption="" title=""><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1918" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/word2013-heading7-300x200.png" alt="保存して閉じ，再度開くと若干スタイルがおかしくなっていることあり（この例では，「第1章」に太字が適用されていない．もう一度太字に設定して保存すればOK）" width="300" height="200" class="size-medium wp-image-1918" srcset="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/word2013-heading7-300x200.png 300w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/word2013-heading7.png 720w" sizes="(max-width: 300px) 100vw, 300px" /></a><p id="caption-attachment-1918" class="wp-caption-text">保存して閉じ、再度開くと若干スタイルがおかしくなっていることあり（この例では，「第1章」に太字が適用されていない．もう一度太字に設定して保存すればOK）</p></div>
</div>
<hr>
<div class="myclass">
<h2>感想</h2>
<ul>
<li>マウス操作ではうまくいかないっぽい．キーボード操作するのがポイント</li>
<li>こんな不具合とっとと修正してほしい</li>
</ul>
</div>
<hr>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Nexus 7 (2013) + AVG で Device Provisoner がマルウェアとして検出される件</title>
		<link>https://ba.sozo.ac.jp/myama/home/archives/1868</link>
		
		<dc:creator><![CDATA[山口]]></dc:creator>
		<pubDate>Tue, 10 Mar 2015 14:09:04 +0000</pubDate>
				<category><![CDATA[雑記]]></category>
		<category><![CDATA[Nexus7]]></category>
		<guid isPermaLink="false">http://ba.sozo.ac.jp/myama/home/?p=1868</guid>

					<description><![CDATA[Nexus 7 (2013) + AVG で，Device Provisioner なるものが脅威として検出されるよう． 環境 Nexus 7 (2013) Android 5.0.2 AVG Ant&#46;&#46;&#46;]]></description>
										<content:encoded><![CDATA[<p>Nexus 7 (2013) + AVG で，Device Provisioner なるものが脅威として検出されるよう．</p>
<h2>環境</h2>
<div class="myclass">
<ul>
<li>Nexus 7 (2013)</li>
<li>Android 5.0.2</li>
<li>AVG AntiVirus FREE for Tablets, Version 4.2.1</li>
</ul>
</div>
<p><div id="attachment_1866" style="width: 198px" class="wp-caption aligncenter"><a href="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/2015-03-10-12.40.06.png" data-rel="lightbox-image-0" data-rl_title="" data-rl_caption="" title=""><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1866" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/2015-03-10-12.40.06-188x300.png" alt="Device Provisionerがマルウェア" width="188" height="300" class="size-medium wp-image-1866" srcset="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/2015-03-10-12.40.06-188x300.png 188w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/2015-03-10-12.40.06-640x1024.png 640w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/2015-03-10-12.40.06.png 1200w" sizes="(max-width: 188px) 100vw, 188px" /></a><p id="caption-attachment-1866" class="wp-caption-text">Device Provisionerがマルウェア</p></div><div id="attachment_1867" style="width: 198px" class="wp-caption aligncenter"><a href="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/2015-03-10-13.03.56.png" data-rel="lightbox-image-1" data-rl_title="" data-rl_caption="" title=""><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1867" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/2015-03-10-13.03.56-188x300.png" alt="Nexus 7 (2013) Android 5.0.2 + AVG" width="188" height="300" class="size-medium wp-image-1867" srcset="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/2015-03-10-13.03.56-188x300.png 188w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/2015-03-10-13.03.56-640x1024.png 640w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/2015-03-10-13.03.56.png 1200w" sizes="(max-width: 188px) 100vw, 188px" /></a><p id="caption-attachment-1867" class="wp-caption-text">Nexus 7 (2013) Android 5.0.2 + AVG</p></div></p>
<p>Web検索してみるものの，いまいち日本語ではっきりとした情報が出ていなかったようなので書いておこうかと．#某チエブクロが検索にヒットするっぽいけど，解決してないあたりがもうなんというかほんとに</p>
<hr>
<p>Web検索して上位にリストされる英語サイトをちゃんと読んでみる．</p>
<div class="myclass">
<ul>
<li>Nexus Help Forum &#8211; Device Provisioner<br /><a href="https://productforums.google.com/forum/m/#!topic/nexus/MjtCQd-pWMI" target="_blank">https://productforums.google.com/forum/m/#!topic/nexus/MjtCQd-pWMI</a></li>
<blockquote><p>
Peter, from reports I&#8217;ve read elsewhere, it really does appear that AVG&#8217;s report of malware in connection with Device Provisioner is indeed a False Positive. It&#8217;s a good idea to notify AVG whenever such things occur as they can then eliminate any False Positives from their database. In this particular instance it would appear you have nothing to worry about and shouldn&#8217;t attempt to delete DP at this time.
</p></blockquote>
<li>
Device Provisioner false positive malware?<br />
<a href="http://forum.xda-developers.com/google-nexus-5/help/device-provisioner-false-positive-t2991625/post57910003#post57910003" target="_blank">http://forum.xda-developers.com/google-nexus-5/help/device-provisioner-false-positive-t2991625/post57910003#post57910003</a>
</li>
</ul>
</div>
<p>結局はFalse Positiveとのこと．</p>
<p>ちなみに，上のフォーラムの中で &#8220;extra sensitive&#8221; に設定を変えてスキャンすれば引っかからないよ！って言っている人がいるので試してみるものの特に変わらず．</p>
<hr>
<p>False Positive ってなんなのよって人は検索して調べてください．</p>
<div class="myclass">
<ul>
<li>誤った判定 &#8211; 学校では教えてくれないバッドノウハウ英語 #13<br /><a href="http://0xcc.net/blog/archives/000176.html" target="_blank">http://0xcc.net/blog/archives/000176.html</a>
</li>
</ul>
</div>
<hr>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>新しい画像形式&#8221;BPG&#8221;を試す</title>
		<link>https://ba.sozo.ac.jp/myama/home/archives/1663</link>
		
		<dc:creator><![CDATA[山口]]></dc:creator>
		<pubDate>Thu, 25 Dec 2014 18:43:11 +0000</pubDate>
				<category><![CDATA[雑記]]></category>
		<guid isPermaLink="false">http://ba.sozo.ac.jp/myama/home/?p=1663</guid>

					<description><![CDATA[最近いろいろなサイトで紹介されている新画像フォーマット&#8221;BPG&#8221;を試してみる． BPG Image formathttp://bellard.org/bpg/ GIGAZINE&#46;&#46;&#46;]]></description>
										<content:encoded><![CDATA[<p><script type="text/javascript" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2014/12/bpgdec.js"></script></p>
<p>最近いろいろなサイトで紹介されている新画像フォーマット&#8221;BPG&#8221;を試してみる．</p>
<div class="myclass">
<blockquote><p>BPG Image format<br /><a href="http://bellard.org/bpg/" target="_blank">http://bellard.org/bpg/</a>
</p></blockquote>
<blockquote><p>
GIGAZINE &#8211; JPEG画像の約半分のファイルサイズで同品質のものを表示できる画像形式「BPG」が誕生、実際に使ってみるとこんな感じ<br />
<a href="http://gigazine.net/news/20141215-bpg/" target="_blank">http://gigazine.net/news/20141215-bpg/</a>
</p></blockquote>
</div>
<hr>
<h2>動機</h2>
<div class="myclass">
<ul>
<li>新しい画像形式ということで &#8220;BPG&#8221; が話題みたい</li>
<li>同品質のJPEG画像と比較するとファイルサイズを約半分以下に縮小できる，のだそう</li>
<li>ちなみにlosslessモードあり．photographic なPNG画像からの変換に効果がある，みたい（変換プログラム一式に同梱のREADMEにいろいろ書いてある）</li>
<li>ほんとですか，ということで</li>
</ul>
<p>※まあ，デモサイトで見てもらうのが一番かと<br />
→　<a href="http://xooyoozoo.github.io/yolo-octo-bugfixes/" target="_blank">http://xooyoozoo.github.io/yolo-octo-bugfixes/</a>
</div>
<hr>
<h2>流れ</h2>
<div class="myclass">
<ul>
<li>上記のサイトから変換プログラムをダウンロード</li>
<li>エンコーダbpgencはこんな感じで<br />
<div id="attachment_1672" style="width: 687px" class="wp-caption alignnone"><a href="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2014/12/bpgenc-usage.png" data-rel="lightbox-image-0" data-rl_title="" data-rl_caption="" title=""><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1672" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2014/12/bpgenc-usage.png" alt="bpgenc usage" width="677" height="493" class="size-full wp-image-1672" srcset="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2014/12/bpgenc-usage.png 677w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2014/12/bpgenc-usage-300x218.png 300w" sizes="(max-width: 677px) 100vw, 677px" /></a><p id="caption-attachment-1672" class="wp-caption-text">bpgenc usage</p></div>
</li>
<li>コマンドラインから変換実行　→　out.bpg ファイル出力</li>
<li>付属のデコーダ（JavaScript）を利用してブラウザで描画（canvasを使って描画）</li>
<li>※細かい話についてはいろんなサイトを参照してください</li>
</ul>
</div>
<hr>
<h2>比較</h2>
<div class="myclass">
<div id="attachment_1657" style="width: 490px" class="wp-caption alignnone"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1657" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2014/12/lion480x320.jpg" alt="JPEG（品質100，178KB）" width="480" height="320" /><p id="caption-attachment-1657" class="wp-caption-text">JPEG（品質100，178KB）</p></div> <div id="attachment_1658" style="width: 490px" class="wp-caption alignnone"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1658" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2014/12/lion480x320m.jpg" alt="JPEG（圧縮後，14.3KB）" width="480" height="320"  /><p id="caption-attachment-1658" class="wp-caption-text">JPEG（圧縮後，14.3KB）</p></div> <div id="attachment_1659" style="width: 490px" class="wp-caption alignnone"><img decoding="async" aria-describedby="caption-attachment-1659" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2014/12/lion480x320.bpg" alt="BPG（14.5KB）"  /><p id="caption-attachment-1659" class="wp-caption-text">BPG（14.5KB）</p></div></p>
<p><div id="attachment_1661" style="width: 490px" class="wp-caption alignnone"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1661" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2014/12/polarbear480x320.jpg" alt="JPEG（品質100，112KB）" width="480" height="320"  /><p id="caption-attachment-1661" class="wp-caption-text">JPEG（品質100，112KB）</p></div> <div id="attachment_1662" style="width: 490px" class="wp-caption alignnone"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1662" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2014/12/polarbear480x320m.jpg" alt="JPEG（圧縮後，9.35KB）" width="480" height="320"  /><p id="caption-attachment-1662" class="wp-caption-text">JPEG（圧縮後，9.35KB）</p></div> <div id="attachment_1660" style="width: 490px" class="wp-caption alignnone"><img decoding="async" aria-describedby="caption-attachment-1660" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2014/12/polarbear480x320.bpg" alt="BPG（8.25KB）"  /><p id="caption-attachment-1660" class="wp-caption-text">BPG（8.25KB）</p></div></p>
</div>
<hr>
<h2>結果と感想</h2>
<div class="myclass">
<ul>
<li>デフォルトの状態（オプション引数なし）で無圧縮JPEG（ソース）から変換すると，1/10以下のファイルサイズのBPGファイルが出力された</li>
<li>BPGファイルサイズと同程度のファイルサイズにしたJPEG画像と比較すると，確かにBPGのほうが良さそう</li>
<li>もうちょっと試したいけどブラウザ経由するの面倒・・・</li>
<li>早くOSやブラウザで標準サポートされるとよいですね</li>
</ul>
</div>
<hr>
<h2>参考サイト</h2>
<div class="myclass">
<ul>
<li>BPG Image format<br /><a href="http://bellard.org/bpg/" target="_blank">http://bellard.org/bpg/</a>
</li>
<li>
GIGAZINEJPEG画像の約半分のファイルサイズで同品質のものを表示できる画像形式「BPG」が誕生、実際に使ってみるとこんな感じ<br />
<a href="http://gigazine.net/news/20141215-bpg/" target="_blank">http://gigazine.net/news/20141215-bpg/</a>
</li>
</ul>
</div>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Ubuntu 12.04 LTS （wubi利用）から 14.04 LTS へのアップグレード後に正常起動できなくなる問題</title>
		<link>https://ba.sozo.ac.jp/myama/home/archives/1564</link>
		
		<dc:creator><![CDATA[山口]]></dc:creator>
		<pubDate>Sat, 04 Oct 2014 17:54:18 +0000</pubDate>
				<category><![CDATA[雑記]]></category>
		<guid isPermaLink="false">http://ba.sozo.ac.jp/myama/home/?p=1564</guid>

					<description><![CDATA[Ubuntu 12.04 LTS（wubiでインストール）をアップグレードしたときにハマったので参考までにお知らせ．日本語のちゃんとした情報が無さそう？だったのでメモ．ほとんどの人には役に立たない内容&#46;&#46;&#46;]]></description>
										<content:encoded><![CDATA[<p>Ubuntu 12.04 LTS（wubiでインストール）をアップグレードしたときにハマったので参考までにお知らせ．日本語のちゃんとした情報が無さそう？だったのでメモ．ほとんどの人には役に立たない内容．次のフォーラムのやりとりを参照のこと．</p>
<div class="myclass">
<blockquote><p>Ubuntu 14.04 won&#8217;t load after upgrade<br /><a href="http://ubuntuforums.org/showthread.php?t=2217829" target="_blank">http://ubuntuforums.org/showthread.php?t=2217829</a>
</p></blockquote>
</div>
<hr>
<h2>背景</h2>
<div class="myclass">
<ul>
<li>Ubuntu 12.04 LTS 32bit (wubi)　から 14.04 LTS へのアップグレードにて問題発生</li>
<li><a href="https://ba.sozo.ac.jp/myama/home/archives/1163" title="ARを試す">昨年準備した環境</a>を久々に起動して（何も考えずに）アップグレード実施したところ，再起動後エラーのため正常起動できずハマる．確かこんなエラーメッセージだったはず．</li>
<pre  class="toolbar:2 nums:false nums-toggle:false wrap:true show-plain-default:true lang:default decode:true " >mount: mounting ... failed: Invalid argument
mount: mounting /dev on /root/dev failed ...
mount: mounting /sys on /root/sys failed ...
mount: mounting /proc on /root/proc failed: ...
Target filesystem doesn't have requested /sbin/init
No init found. Try passing init= bootarg.

(initramfs)</pre>
</ul>
</div>
<hr>
<h2>対応－とりあえず正常起動させる</h2>
<div class="myclass">
<ul>
<li>GRUB画面でブート前に e を押す．e は edit the commands</li>
<li>emacs-likeなエディタが起動するので，次の箇所を修正する．ro から rw でマウントするように．</li>
<pre class="toolbar:2 nums:false nums-toggle:false wrap:true show-plain-default:true lang:default decode:true " >linux	/boot/vmlinuz-3.13.0-24-generic root=UUID=AAC884AC1F144321 loop=/ubuntu/disks/root.disk ro   quiet splash $vt_handoff

to:
linux	/boot/vmlinuz-3.13.0-24-generic root=UUID=AAC884AC1F144321 loop=/ubuntu/disks/root.disk rw   quiet splash $vt_handoff</pre>
<li>修正できたら F10 を押してブート</li>
</ul>
</div>
<hr>
<h2>対応－次回以降の起動への対応</h2>
<div class="myclass">
<ul>
<li>上の修正はtemporaryなものなので，permanent fixするには次のファイルの修正が必要</li>
<pre class="toolbar:2 nums:false nums-toggle:false wrap:true show-plain-default:true lang:default decode:true " >sudo vi /etc/grub.d/10_lupin</pre>
<li>ファイル中の次の箇所を修正．自分の環境では150行目が該当．</li>
<pre class="toolbar:2 nums:false nums-toggle:false wrap:true show-plain-default:true lang:default decode:true " >linux    $${rel_dirname}/${basename} root=${LINUX_HOST_DEVICE} loop=${loop_file_relative} ro ${args}

to:
linux    ${rel_dirname}/${basename} root=${LINUX_HOST_DEVICE} loop=${loop_file_relative} rw ${args}</pre>
<li>設定ファイル修正後，修正内容を反映させる．</li>
<pre class="toolbar:2 nums:false nums-toggle:false wrap:true show-plain-default:true lang:default decode:true " >sudo update-grub</pre>
</ul>
</div>
<div id="attachment_1563" style="width: 576px" class="wp-caption alignnone"><a href="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2014/10/Screenshot-from-2014-10-03-10_49_39-e1412444710500.png" data-rel="lightbox-image-0" data-rl_title="" data-rl_caption="" title=""><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1563" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2014/10/Screenshot-from-2014-10-03-10_49_39-e1412444710500.png" alt="sudo vi /etc/grub.d/10_lupin" width="566" height="362" class="size-full wp-image-1563" srcset="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2014/10/Screenshot-from-2014-10-03-10_49_39-e1412444710500.png 566w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2014/10/Screenshot-from-2014-10-03-10_49_39-e1412444710500-300x192.png 300w" sizes="(max-width: 566px) 100vw, 566px" /></a><p id="caption-attachment-1563" class="wp-caption-text">sudo vi /etc/grub.d/10_lupin</p></div>
<hr>
<h2>これでもうまくいかない場合</h2>
<div class="myclass">
残念．頑張って解決してください．</div>
<hr>
<h2>参考サイト</h2>
<div class="myclass">
<ul>
<li>Ubuntu 14.04 won&#8217;t load after upgrade<br /><a href="http://ubuntuforums.org/showthread.php?t=2217829" target="_blank">http://ubuntuforums.org/showthread.php?t=2217829</a></li>
</ul>
</div>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>MathJaxを試す</title>
		<link>https://ba.sozo.ac.jp/myama/home/archives/1494</link>
		
		<dc:creator><![CDATA[山口]]></dc:creator>
		<pubDate>Tue, 19 Aug 2014 17:08:04 +0000</pubDate>
				<category><![CDATA[雑記]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">http://ba.sozo.ac.jp/myama/home/?p=1494</guid>

					<description><![CDATA[WebページにLaTeX数式を書けるJavaScriptライブラリ MathJax を試してみる．このサイト（WordPress）で利用できるようにする． MathJaxhttp://www.math&#46;&#46;&#46;]]></description>
										<content:encoded><![CDATA[<p>WebページにLaTeX数式を書けるJavaScriptライブラリ MathJax を試してみる．このサイト（WordPress）で利用できるようにする．</p>
<div class="myclass">
<blockquote><p>MathJax<br /><a href="http://www.mathjax.org/" target="_blank">http://www.mathjax.org/</a><br />
MathJax-LaTeX<br /><a href="http://wordpress.org/plugins/mathjax-latex/" target="_blank">http://wordpress.org/plugins/mathjax-latex/</a>
</p></blockquote>
</div>
<hr>
<h2>動機</h2>
<div class="myclass">
<ul>
<li>たまたま見かけて衝撃を受けたのですぐに試さねばなるまいと</li>
</ul>
</div>
<hr>
<h2>TeXとは</h2>
<div class="myclass">
<ul>
<li>組版処理ソフトウェア．マークアップ言語処理系．</li>
<li>TeX上のマクロパッケージがLaTeX</li>
<li>理・工学系ではお馴染みというか論文執筆に使用必須</li>
<li>文系の人でも数学なんかの教科書でTeXで書かれたものを見てるはず</li>
<li>MathJaxはWeb上でもLaTeX数式をきれいに見せるためのJavaScriptライブラリ</li>
</ul>
</div>
<hr>
<h2>手順（WordPressプラグイン）</h2>
<div class="myclass">
<ul>
<li>プラグイン MathJax-LaTeX を検索してインストールするだけ</li>
<li>通常のサイトに設置する場合は，上記参考サイトの手順を参考に．</li>
</ul>
</div>
<hr>
<h2>使い方</h2>
<div class="myclass">
ShortCodeを使ってLaTeX数式をそのまんま書く．</p>
<p>例としてあのフィルタの伝達関数を書いてみると<br />
[latex]<br />
H(z)=1-z^{-N}<br />
[/latex]</p>
<pre class="lang:default decode:true " >[latex]
H(z)=1-z^{-N}
[/latex]
</pre>
<p>あの変換も書いてみると<br />
[latex]<br />
X(k)=\sum_{n=0}^{N-1}x(n)\exp\left(-j\frac{2\pi}{N}kn\right)<br />
[/latex]</p>
<pre class="lang:default decode:true " >[latex]
X(k)=\sum_{n=0}^{N-1}x(n)\exp\left(-j\frac{2\pi}{N}kn\right)
[/latex]</pre>
<p>ついでに array を試しながらデルタ関数<br />
[latex]<br />
\int_{-\infty}^{\infty}\delta(t)dt = 1 \\<br />
\delta(t)=\left\{<br />
\begin{array}{ll}<br />
\infty, &#038; t=0 \\<br />
0, &#038; t\neq 0<br />
\end{array}<br />
\right.<br />
[/latex]</p>
<pre class="lang:default decode:true " >[latex]
\int_{-\infty}^{\infty}\delta(t)dt = 1 \\
\delta(t)=\left\{
\begin{array}{ll}
\infty, &amp; t=0 \\
0, &amp; t\neq 0
\end{array}
\right.
[/latex]</pre>
</div>
<hr>
<h2>感想</h2>
<div class="myclass">
感激．<br />
プロジェクトは2009年にスタートしているそう．まったく知らず．<br />
数式左寄せはスタイルを修正する必要がありそう．<br />
インラインで挿入する場合はバックスラッシュ＋カッコでくくる．<br />
こんな感じになる．\(\rightarrow x(t)\)</p>
<pre class="lang:default decode:true " >こんな感じになる．\(\rightarrow x(t)\)</pre>
</div>
<hr>
<h2>参考サイト</h2>
<div class="myclass">
<ul>
<li>MathJax<br /><a href="http://www.mathjax.org/" target="_blank">http://www.mathjax.org/</a></li>
<li>MathJax-LaTeX<br /><a href="http://wordpress.org/plugins/mathjax-latex/" target="_blank">http://wordpress.org/plugins/mathjax-latex/</a></li>
</ul>
</div>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Three.jsでWebGLを体験してみる（1）</title>
		<link>https://ba.sozo.ac.jp/myama/home/archives/1468</link>
		
		<dc:creator><![CDATA[山口]]></dc:creator>
		<pubDate>Mon, 28 Jul 2014 14:47:16 +0000</pubDate>
				<category><![CDATA[雑記]]></category>
		<category><![CDATA[プログラミング]]></category>
		<guid isPermaLink="false">http://ba.sozo.ac.jp/myama/home/?p=1468</guid>

					<description><![CDATA[※ デバイスやブラウザによっては↓表示されませんのでご注意を ※ 表示までに時間がかかることがあるのでご注意を Three.js &#8211; WebGL Three.jsを利用してWebGLを体験&#46;&#46;&#46;]]></description>
										<content:encoded><![CDATA[<p>※ デバイスやブラウザによっては↓表示されませんのでご注意を<br />
※ 表示までに時間がかかることがあるのでご注意を</p>
<p><iframe loading="lazy" src="https://ba.sozo.ac.jp/myama/three/kumadae.html" width="620" height="350"><br />
Three.js &#8211; WebGL<br />
</iframe></p>
<p>Three.jsを利用してWebGLを体験してみる．<br />
ライブラリ同梱のサンプルファイルを少し修正しただけ．</p>
<div class="myclass">
<blockquote><p>three.js<br /><a href="http://threejs.org/" target="_blank">http://threejs.org/</a>
</p></blockquote>
</div>
<hr>
<h2>動機</h2>
<div class="myclass">
<ul>
<li>気分転換に</li>
</ul>
</div>
<hr>
<h2>手順</h2>
<div class="myclass">
<ul>
<li>上記参考サイト（three.js）からファイルをダウンロードしてサーバにアップ，展開（設置）</li>
<li>サンプルファイルをコピーして編集．今回は webgl_loader_collada.html を使って，<a href="https://ba.sozo.ac.jp/myama/home/archives/1163" title="ARを試す">以前にもらったホッキョクグマ</a>を読み込ませて表示させてみる</li>
<li>スクリプトのパスの変更（環境に合わせて）を忘れずに</li>
</ul>
</div>
<hr>
<h2>感想</h2>
<div class="myclass">
iOSなデバイスも早くWebGLに対応するとよいね．<br />
もう少し余裕が出来たら真剣に遊ぶことにします．
</div>
<hr>
<h2>参考サイト</h2>
<div class="myclass">
<ul>
<li>three.js<br /><a href="http://threejs.org/" target="_blank">http://threejs.org/</a></li>
</ul>
</div>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>テキスト比較ツール（difff）を設置してみる</title>
		<link>https://ba.sozo.ac.jp/myama/home/archives/1375</link>
					<comments>https://ba.sozo.ac.jp/myama/home/archives/1375#respond</comments>
		
		<dc:creator><![CDATA[山口]]></dc:creator>
		<pubDate>Thu, 13 Mar 2014 02:56:54 +0000</pubDate>
				<category><![CDATA[開発・サービス]]></category>
		<category><![CDATA[雑記]]></category>
		<category><![CDATA[プログラミング]]></category>
		<guid isPermaLink="false">http://ba.sozo.ac.jp/myama/home/?p=1375</guid>

					<description><![CDATA[difff を設置してみる．参考にしたサイトは次のとおり． difff は修正BSDライセンスで配布されている．裏で動いているのは通常のdiff． meso-cacase / difffhttps:/&#46;&#46;&#46;]]></description>
										<content:encoded><![CDATA[<p>difff を設置してみる．参考にしたサイトは次のとおり．<br />
difff は修正BSDライセンスで配布されている．裏で動いているのは通常のdiff．</p>
<div class="myclass">
<blockquote><p>meso-cacase / difff<br /><a href="https://github.com/meso-cacase/difff" target="_blank">https://github.com/meso-cacase/difff</a>
</p></blockquote>
</div>
<hr>
<h2>動機</h2>
<div class="myclass">
<ul>
<li>息抜きに</li>
</ul>
</div>
<hr>
<h2>手順</h2>
<div class="myclass">
<ul>
<li>上記参考サイト（GitHub）からファイルをダウンロードして設置</li>
<li>perl, diff, 作業ディレクトリのパス等を編集</li>
<li>設置ディレクトリに .htaccess を置くなりして必要な設定を実施（ExecCGI とか DirectoryIndex とか）</li>
</ul>
</div>
<hr>
<h2>公開場所</h2>
<div class="myclass">
<a href="https://ba.sozo.ac.jp/myama/difff/" title="difff for Sozo" target="_blank">こちらから</a><br />
ただし学内からのアクセス限定
</div>
<hr>
<h2>感想</h2>
<div class="myclass">
便利．感謝．
</div>
<hr>
<h2>参考サイト</h2>
<div class="myclass">
<ul>
<li>meso-cacase / difff<br /><a href="https://github.com/meso-cacase/difff" target="_blank">https://github.com/meso-cacase/difff</a></li>
</ul>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://ba.sozo.ac.jp/myama/home/archives/1375/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
