<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>STACK STACK STACK!</title>
    <link rel="alternate" type="text/html" href="http://stack3.com/" />
    <link rel="self" type="application/atom+xml" href="http://stack3.com/atom.xml" />
    <id>tag:stack3.com,2009-08-05://1</id>
    <updated>2010-02-08T17:35:14Z</updated>
    <subtitle>movabletype、ネットショップ、プログラム、データーベース、SEO、デザインなど</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.3-ja</generator>

<entry>
    <title>{LESS} 変数や構造化でコードをすっきり記述できるCSSの拡張</title>
    <link rel="alternate" type="text/html" href="http://stack3.com/html_css/less_css.html" />
    <id>tag:stack3.com,2010://1.30</id>

    <published>2010-02-08T16:23:29Z</published>
    <updated>2010-02-08T17:35:14Z</updated>

    <summary> LESS　http://lesscss.org/ CSS記述時のフラストレーシ...</summary>
    <author>
        <name>taku_nagai</name>
        <uri>http://nagaishouten.com</uri>
    </author>
    
        <category term="HTML&amp;CSS" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="ツール" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="css" label="CSS" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="html" label="HTML" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="less" label="LESS" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="mac" label="Mac" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="インストール" label="インストール" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="レス" label="レス" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="日本語" label="日本語" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://stack3.com/">
        <![CDATA[<!--{LESS} 変数や入れ子構造でコードをすっきり記述できるCSS拡張-->
<p class="align-center"><img src="../2010/02/less_0.png" width="190" height="116" alt="less" /><br />
LESS　<a href="http://lesscss.org/" target="_blank">http://lesscss.org/</a></p>

<p>CSS記述時のフラストレーションを、劇的に軽減してくれそうな仕組みが登場しました。<br/>
	CSSを拡張した「LESS」です。</p>

<p class="attention">
半年以上前から存在するようです。下記サイトの説明が、非常にわかりやすいです。<br />
<a href="http://blog.kmxs.net/?p=281">extends CSS ? LESS - Learner CSS（の和訳）- kmxslog</a>
</p>

<p>
	LESS を使えば、変数や入れ子構造で CSSコードをすっきり記述できます。<br />
	CSSが書ける人は、いくつかのルールを覚えるだけで、すぐにLESSのコードを書けるでしょう。<br/>
	CSS3もサポート。Mac、Windows、Linux、いずれでも使えるようです。</p>
<p>主なメリットは・・・</p>
<ul>
	<li>変数が使える。複数箇所で使う文字列などを変数にすると使い回しできてスッキリ。</li>
	<li>構造化して記述できる（特定のセレクタの指定を別のセレクタ内の記述に埋め込んだり、入れ子構造で書けたり）。</li>
</ul>
<p>WEBブラウザは LESS のコードを解釈できません。<br />
	LESSのコード を CSS にコンパイルする必要があります。</p>
<p>文章の説明だけだとイメージしにくいと思いますので、
	実際のコードで見てみましょう。</p>
	
<p>次は、LESSのコードです。コード内のコメントに説明を書いています。</p>
<pre><code>

/* - - - - LESS - - - - */
/* コンパイル後、コメントは消える */


/* - - - - - - - - - - - - -  - - - 
  変数
 - - - - - - - - - - - - - -  - - */
@brand_color: #4D926F; /*変数は頭に&quot;@&quot;を付ける*/
#header { color: @brand_color; } /*コンパイルすると変数が代入される*/
h2 { color: @brand_color; } /*同上*/


/* - - - - - - - - - - - - - - - -  
  特定セレクタの設定を使い回す
 - - - - - - - - - - - - - - - - */
/*クラス bordred の設定を使い回す例 */
.bordered {
  border-top: dotted 1px black;
  border-bottom: solid 2px black;
}


#menu a {
  color: #111;
  .bordered; /*コンパイルすると .bordered のプロパティと値が展開される*/
}
.post a {
  color: red;
  .bordered; /*同上*/
}


/* - - - - - - - - - - - - - 
  入れ子構造
 - - - - - - - - - - - - - */
/* インデントを入れると一目で構造がわかる */
#header {
  color: black;

  .navigation { /*コンパイルすると #header .navigation に変換*/
    font-size: 12px;
  }
  .logo { /*コンパイルすると #header .logo に変換*/
    width: 300px;
    :hover { text-decoration: none }
  }
}
	
</code></pre>
<p>上記コードに拡張子「.less」を付け保存した後、コンパイルすると、下記の CSSファイルが生成されます。</p>
<pre><code>
	
/* - - - - CSS（実際はこのコメントはない。説明用） - - - - */


#header, h2 { color: #4d926f; }
.bordered {
  border-top: dotted 1px black;
  border-bottom: solid 2px black;
}
#menu a {
  color: #111111;
  border-top: dotted 1px black;
  border-bottom: solid 2px black;
}
.post a {
  color: red;
  border-top: dotted 1px black;
  border-bottom: solid 2px black;
}
#header { color: black; }
#header .navigation { font-size: 12px; }
#header .logo { width: 300px; }
#header .logo:hover { text-decoration: none; }
	
</code></pre>

<p>見事にCSSに変換されます。<br />
	ショートハンド記述にできるものは、ショートハンド記述にしてくれるようです。	<br />
	LESS ファイルを保存するとき自動で CSS にコンパイルする機能も付いていますので、WEBブラウザや Dreamweaver や Coda などでプレビューを確認しながらの作業も大丈夫です。</p>
<h2>LESSコンパイラ のインストール</h2>
<p>コンパイルには、Ruby と Rubyのライブラリ管理ツール「RubyGems（コマンド名はgem）」を使うため、事前にインストールが必要です。</p>
<ol>
	<li>Ruby と RubyGems をインストール。Mac OSX には標準で入ってます。</li>
	<li>LESS のインストール。Mac の場合、ターミナルでコマンド &quot;sudo gem install less&quot;。以上でコマンドラインからコンパイルできるようになります。<br /><img src="../2010/02/less_3.png" width="558" height="415" alt="LESSのインストール" /></li>
</ol>
<h3>「LESS.app For Mac OSX」のインストール（Mac OSXの場合）</h3>
<p>Mac OSX には、ドラッグ＆ドロップで LESS を CSS にコンパイルしてくれるアプリケーション「<a href="http://incident57.com/less/" target="_blank">LESS.app For Mac OSX</a>」が用意されています。ダウンロードして解凍すると、アプリケーション本体ができるので、アプリケーションフォルダに移動してください。</p>
<h2>コンパイルの仕方</h2>
<h3>ターミナルからのコマンドライン入力</h3>
<pre><code>$ lessc ファイル名　例）$ lessc style.less</code></pre>
<p>その他のコマンドは<a href="http://lesscss.org/docs.html" target="_blank">こちら</a>を参考にしてください。</p>
<h3>「LESS.app For Mac OSX」を使ってコンパイル（Mac OSXのみ）</h3>
<ol>
	<li>
		アプリケーションを起動し、lessファイルを含むフォルダをパネルにドラッグ＆ドロップします。<br />
		<img src="../2010/02/less_1.png" width="558" height="215" alt="LESS Mac OSX_1" />
	</li>
	<li>コンパイル画面に切り替えてボタンを押すと、CSSファイルを生成してくれます。「Automatically compile files when saved」にチェックを付けておくことで、LESS ファイルを保存するときに自動で CSS にコンパイルしてくれます。<br />
		<img src="../2010/02/less_2.png" width="558" height="220" alt="LESS Mac OSX_2" />
	</li>
</ol>

<p>Twitterで「神からWEBデベロッパーへのギフト」という賞賛の声もありました。<br />
	この記事では紹介していませんが、変数を使って計算したり、名前空間できめ細かい指定をしたりと高機能です。<br />
	本当に業務で使えるものかどうか、実際使って試してみようと思っています。</p>
<h2>本家サイトへのリンク</h2>
<ul>
	<li><a href="http://lesscss.org/" target="_blank">LESS</a></li>
	<li><a href="http://lesscss.org/docs.html" target="_blank">LESS Documentation（説明）</a></li>
	<li><a href="http://incident57.com/less/" target="_blank">LESS.app For Mac OSX（Mac用アプリのダウンロード）</a></li>
</ul>]]>
        
    </content>
</entry>

<entry>
    <title>仕事や勉強の効率を高める9つの習慣（まとめ）</title>
    <link rel="alternate" type="text/html" href="http://stack3.com/tools/for_efficient_work.html" />
    <id>tag:stack3.com,2010://1.29</id>

    <published>2010-02-06T14:31:23Z</published>
    <updated>2010-02-06T15:03:51Z</updated>

    <summary> 今までに見てきた仕事効率化関連の情報まとめ。 	他におすすめがあれば教えていた...</summary>
    <author>
        <name>taku_nagai</name>
        <uri>http://nagaishouten.com</uri>
    </author>
    
        <category term="ツール" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="仕事術" label="仕事術" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="効率アップ" label="効率アップ" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="効率化" label="効率化" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://stack3.com/">
        <![CDATA[<!--仕事や勉強の効率を高める9つの習慣（まとめ）-->
<p>今までに見てきた仕事効率化関連の情報まとめ。<br />
	他におすすめがあれば教えていただけると嬉しいです。</p>
<h2>起床・就寝・睡眠</h2>
<ul>
	<li>朝は同じ時間に起床</li>
	<li>朝の光をたっぷりと浴びる。体内時計が調整され、睡眠に好影響</li>
	<li>自分に合った睡眠時間を知る。眠りの周期は1.5時間単位なので、4.5時間、6時間、7.5時間を目安に</li>
	<li>入浴して体を温めると眠りに就きやすい。体温が下がる時眠くなる</li>
	<li>寝る前はPCモニタの輝度を下げる。できれば見ない方がいい</li>
	<li>寝る前に解決したい問題に関する本や資料を読む。寝ている間に脳が働き閃く</li>
	<li>寝る前に興奮することをしない（喧嘩、メールチェックなど）前項目と矛盾？</li>
	<li>寝れないときは自律訓練法。リラックスし、右手が重たい→右手が重たい→両手→右足→両手と右足→左足→左足と両足が重たい（同様に「温かい」も）と自己暗示</li>
</ul>
<h2>生活習慣</h2>
<ul>
	<li>起きたらまず音読したり、歩くなどの運動系神経を使う。思考系が活性化する</li>
	<li>1日30分以上歩くと脳内で「セロトニン」が活性化。効果を高めるためには１ヶ月以上続けることと、歩くという行為に集中すること（ながらはダメ）</li>
	<li>脳トレ（音読、単純計算）で脳を活性化</li>
	<li>趣味や勉強の時間はあらかじめ決めておく<br/>
	</li>
</ul>
<h2>食べ物</h2>
<ul>
	<li>食事は腹八分目に。腹いっぱい食べると頭が鈍る</li>
	<li>頭脳労働の合間にブドウ糖。ブドウ糖は頭脳労働の唯一のエネルギー<br/>
	</li>
	<li>ガムを噛む。噛むことで記憶をつかさどる海馬が活性化</li>
	<li>煮干に酢をかけると脳に良い。健康のために「無塩」のものがオススメ</li>
</ul>
<h2>薬</h2>
<ul>
	<li>グリシン。深い眠りで、起きたら頭スッキリ</li>
	<li>エビオス錠。健康は胃腸から。栄養も豊富。（尿酸値が上がる。痛風持ちの人は注意）</li>
	<li>カフェイン錠。目が覚める。（胃腸に負担。胃腸が弱い人は注意）</li>
</ul>
<h2>集中力を高めるために</h2>
<ul>
	<li>時間制限。<a href="http://stack3.com/tools/pomodoro_technique.html">ポモドーロ・テクニック</a>なども効果的</li>
	<li>気が散る時は、場所移動や体を動かすことで脳に変化を与える</li>
	<li>三角帽子メソッド（とんがり帽子のてっぺんに帽子を乗せ落とさないイメージで作業開始）</li>
	<li>音楽（個人的にはテクノ系がいい気がする）</li>
</ul>
<h2>やる気を出すために</h2>
<ul>
	<li>やる気がでないのは、前頭葉の体力が落ちているから</li>
	<li>日々の雑用をしっかりこなす（片付けを習慣化）</li>
	<li><font>仕事場まわりを居心地の良くしておく。整理整頓はもちろん、良い椅子にしたり、好きなものを置いたり、良い香りで満たしたり</font><br/>
	</li>
	<li>着実にできるタスクを<br/>
	</li>
	<li>さりげなく見える場所に目標を書いておく。無意識に脳は見ていてモチベーションに影響</li>
	<li>自分へのご褒美を決めて頑張る。褒美の喜びは「テグメンタ」という脳部位を活性化、快楽物質ドーパミンを出す</li>
	<li>成功のイメージを具体的に描き、その自分に「なりきる」<br/>
	</li>
	<li>社会性を必要とするような活動を始める。人と話す機会が増え、停滞していた脳機能が活性化<br/>
	</li>
</ul>
<h2>アイデアを生むために</h2>
<ul>
	<li>煮詰まった脳は、思考が固定され堂々巡り状態。脳の同じ部位のみ稼働している状態なので、別の部位を動かすような行動をする</li>
	<li>目のフォーカスをダイナミックに切り替える。遠くを見たり、細かいものを見たり</li>
	<li>散歩に行く。PCの前で考えていても脳への変化は少ないのでダメ</li>
	<li>1.データ集め→2.咀嚼→3.データの組合せ→一旦離脱＆リラックス→4.ユーレカ（発見した！）の瞬間→5.アイデアのチェック（「アイデアのつくりかた」より）<br/>
	</li>
</ul>
<h2>記憶力を高めるために</h2>
<ul>
	<li>人に話す、ブログに書くなど、アウトプットする機会を多く作る</li>
	<li>他者から聞いた話も頭の中で整理して言葉として発すると定着する<br/>
	</li>
	<li>天声人語の音読（能力低下を防ぐための最低限のアウトプット）</li>
	<li>体験を情報と関連付けて覚えるのが効率的（経験記憶）</li>
</ul>
<h2>継続するために</h2>
<ul>
	<li>続かず自己嫌悪に陥ったときは、問題点を紙に書き顕在化。感情の不安定化をストップさせる</li>
	<li>基礎からすることが効率的。定着にはある程度の時間が必要なことを認識しておく</li>
	<li>最低３度の復習。４時間で記憶の半分は消える</li>
	<li>最初は苦痛でもとにかく続ける。ルーティンワーク化されると楽になる<br/>
	</li>
	<li>目標は小さくしつつ、腹八分目でやめるというのがおすすめ<br/>
	</li>
</ul>


<hr />

<h2>参考サイト&amp;書籍</h2>
<ul>
	<li><a href="http://president.jp.reuters.com/article/2008/11/24/36C8ADB8-B538-11DD-BFD5-09293F99CD51.php" target="_blank">プレジデント 2008.8.4 「最新脳医学」眠った力が目覚める７の習慣</a></li>
	<li><a href="http://president.jp.reuters.com/article/2009/08/04/67CE7D84-7C25-11DE-AEA0-FDE93E99CD51.php" target="_blank">「脳とやる気」1秒で勉強意欲に火がつく法</a></li>
	<li><a href="http://president.jp.reuters.com/article/2009/08/22/5C3BDA46-8569-11DE-9EC7-25B93E99CD51.php" target="_blank">池谷裕二が指南！やる気が出る「脳」のだまし方</a></li>
	<li><a href="http://careerzine.jp/article/detail/925" target="_blank">睡り博士に聞く！ビジネスパーソンに最適な眠りの方法</a></li>
	<li><a href="http://www.amazon.co.jp/アイデアのつくり方-ジェームス-W-ヤング/dp/4484881047" target="_blank">歩けば脳が活性化する</a></li>
	<li><a href="http://www.amazon.co.jp/歩けば脳が活性化する-WAC-BUNKO-有田秀穂/dp/4898316123/" target="_blank">アイデアのつくり方（ジェームス W.ヤング）</a></li>
	<li><a href="http://www.amazon.co.jp/脳を鍛える大人の音読ドリル―名作音読・漢字書き取り60日-川島-隆太/dp/4774307262/ref=pd_sim_b_5" target="_blank">川島隆太教授の脳を鍛える大人の音読ドリル―名作音読・漢字書き取り60日</a></li>
	<li><a href="http://www.amazon.co.jp/脳を鍛える大人の計算ドリル―単純計算60日-川島-隆太/dp/4774307254/ref=pd_bxgy_b_img_b" target="_blank">川島隆太教授の脳を鍛える大人の計算ドリル―単純計算60日</a></li>
</ul>]]>
        
    </content>
</entry>

<entry>
    <title>価格表示は「円」または「￥（全角）」で。「￥（半角）」は使わないのが無難。</title>
    <link rel="alternate" type="text/html" href="http://stack3.com/html_css/en_mojibake.html" />
    <id>tag:stack3.com,2009://1.28</id>

    <published>2009-12-16T00:31:34Z</published>
    <updated>2009-12-16T00:53:13Z</updated>

    <summary> 	ECサイトには必須の価格表示について。 	基本のキホンですが、円記号が文字化...</summary>
    <author>
        <name>taku_nagai</name>
        <uri>http://nagaishouten.com</uri>
    </author>
    
        <category term="HTML&amp;CSS" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="ネットショップ" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="ec" label="EC" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="ネットショップ" label="ネットショップ" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://stack3.com/">
        <![CDATA[<!--価格表示は「円」または「￥（全角）」で。「￥（半角）」は使わないのが吉。-->

<p>
	ECサイトには必須の価格表示について。<br />
	基本のキホンですが、円記号が文字化けしてるサイトを時々見かけるので投稿しました。
</p>
<p>
	通貨単位表示は「円」「￥（全角）」にしておくのが無難です。「￥（半角）」は避けましょう。<br />
	そのまま使うと、Macなどで見たときに「／（半角スラッシュ）」に文字化けします。
	Linux や GoogleCromeOS などUNIX系のOSでも同様でしょう。<br />
</p>
<p>
	ちなみに、大手のECサイトをざっと調べてみると下記の通りでした。<br />
	ベルメゾンネットは、半角の￥を使っているのでMacで見ると「￥」と表示されるべき部分が「／」になっています（下記画像参照）。
</p>

<p><img src="../2009/12/en_slash.png" width="540" height="169" alt="円の文字化け" /></p>

<p>もっと詳しく知りたい方は、<a href="http://ja.wikipedia.org/wiki/円記号" target="_blank">Wikipedia 円記号</a> の「日本語用文字コードにおける円記号」の部分をご参考ください。</p>


<h3>大手ECサイトの価格表示方法</h3>

<dl>
	<dt>ベルメゾンネット</dt>
		<dd>／2,990（半角￥が半角スラッシュに文字化け）</dd>

	<dt>amazon</dt>
		<dd>￥ 2,806（全角￥）</dd>

	<dt>楽天市場</dt>
		<dd>51,900円</dd>

	<dt>Yahoo!ショッピング</dt>
		<dd>6,800円 </dd>

	<dt>ビッダーズ</dt>
		<dd>5,250円</dd>

	<dt>フェリシモ</dt>
		<dd>￥4,900（全角￥）</dd>

	<dt>ヨドバシ.com</dt>
		<dd>￥598,000（全角￥）</dd>

	<dt>Apple Store</dt>
		<dd>￥98,800（全角￥）</dd>

	<dt>ナチュラム</dt>
		<dd>29900円</dd>
</dl>


<p>
	Windowsではちゃんと「￥」と表示されるので、別の環境でブラウザチェックしないと気付かないでしょう。<br />
	一括置換すれば一瞬で対応できるので、半角の￥を使ってる方はぜひ対応を。
</p>]]>
        
    </content>
</entry>

<entry>
    <title>「Google ウェブ履歴」から履歴を削除し、以後残さないようにする方法</title>
    <link rel="alternate" type="text/html" href="http://stack3.com/tools/google_webhistory_off.html" />
    <id>tag:stack3.com,2009://1.27</id>

    <published>2009-12-15T14:45:39Z</published>
    <updated>2009-12-15T15:04:28Z</updated>

    <summary> 「Google ウェブ履歴」って知ってますか？ 	知らなくても、Googleア...</summary>
    <author>
        <name>taku_nagai</name>
        <uri>http://nagaishouten.com</uri>
    </author>
    
        <category term="ツール" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="google" label="Google" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="webサービス" label="WEBサービス" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://stack3.com/">
        <![CDATA[<!--「Google ウェブ履歴」から履歴を削除し、以後残さないようにする方法-->

<p>「Google ウェブ履歴」って知ってますか？<br />
	知らなくても、Googleアカウントを持っている人は、知らないうちに使っている状態になっています。<br />
	僕もそうでした。</p>
<p>Googleアカウントを持っている人がGoogle検索を使うと、<br />
	<strong>ログインの有無に関わらず</strong>、Googleは検索キーワードの履歴を記録しています。<br />
	この履歴データは、<a href="http://www.google.com/history/?hl=ja" target="_blank" class="external">Googleウェブ履歴</a>で参照できます。<br />
また、Googleで検索したときの検索結果にも少し（大きな影響ではない。20%程度？）影響するらしいです。</p>
<p>初期設定でそのようになっており、<br />
	履歴をクリアして記録しないようにするには、手動で操作する必要があります。<br />
	やり方はとても簡単。手順は下記の通りです。</p>
	
<ol>
	<li><a href="http://www.google.com/history/?hl=ja" target="_blank">Gooleウェブ履歴</a>にアクセス（未ログインならIDとパスワードを入力）。</li>
	<li>
		右メニューの「アイテムを削除」をクリック。<br />
		<img src="../2009/12/google_rireki_off_1.png" width="560" height="320" alt="Google 履歴削除 1" />
	</li>
	<li>
		「すべてのウェブ履歴を消去してもよろしいですか？」という画面になるので、「履歴をクリア」ボタンを押す。<br />
		<img src="../2009/12/google_rireki_off_2.png" width="560" height="316" alt="Google 履歴削除 2" />
	</li>
</ol>


<p>以上の操作で検索履歴が記録されないようになります。<br />
再び履歴を有効に戻したい場合は、右メニューの「再開」をクリックします。</p>]]>
        
    </content>
</entry>

<entry>
    <title>「juietter」でTwitterのタイムラインをページに組込み表示する。</title>
    <link rel="alternate" type="text/html" href="http://stack3.com/javascript/juietter.html" />
    <id>tag:stack3.com,2009://1.24</id>

    <published>2009-10-23T06:02:04Z</published>
    <updated>2009-10-23T06:50:50Z</updated>

    <summary> juietter　http://juitter.com/ 「juietter」...</summary>
    <author>
        <name>taku_nagai</name>
        <uri>http://nagaishouten.com</uri>
    </author>
    
        <category term="HTML&amp;CSS" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="JavaScript" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="ツール" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="juitter" label="juitter" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="movabletype" label="movabletype" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="twitter" label="twitter" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="タイムライン" label="タイムライン" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="組込む" label="組込む" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="表示" label="表示" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://stack3.com/">
        <![CDATA[<!--juietterでTwitterのタイムラインをページに組込み表示する方法。-->
<p><img src="../2009/10/juietter_0.png" width="253" height="90" alt="juietter" /><br />
juietter　<a href="http://juitter.com/" target="_blank">http://juitter.com/</a></p>

<p>「juietter」を使えば、Twitterのタイムライン表示を簡単に自分のサイトに組込めます。検索ワードやハッシュタグ、ユーザーでの絞り込みも可能。MovableTypeなどのCSMを使えば、ページの内容に関連するつぶやきを表示することもできます。jQueryを利用したもので、現在はβ版です（2009/10/23）。
</p>

<p class="align-center"><img src="../2009/10/juietter_1.png" width="453" height="350" alt="juietter_twitter_タイムライン" /></p>

<h2>設定は簡単！</h2>
<ol>
	<li>juietterの<a href="http://juitter.com/" target="_blank">juietter本家サイト</a>でダウンロード（右上の緑のボタン）。</li>
	<li>ダウンロードした圧縮ファイルを解凍すると「juietter100」というフォルダができる。「juietter」とリネーム。</li>
	<li>
		サイトのスクリプトを置いているディレクトリに移動。<br />
		例）ルート/js/juietter<br />
		すでにjQuelyを組込んでいる場合は、本体はそれを使えばいいと思います。
	</li>
	<li>
		設置するページの&lt;head&gt;に下記コードを埋め込む。<br />
		<pre><code>&lt;script language=&quot;javascript&quot; src=&quot;juietterディレクトリ/jquery-1.3.1.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;<br />&lt;script language=&quot;javascript&quot; src=&quot;juietterディレクトリ/jquery.juitter.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;<br />&lt;script language=&quot;javascript&quot; src=&quot;juietterディレクトリ/system.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</code></pre>
	</li>
	<li>
		Twitterタイムラインを表示したい箇所に以下のタグを設置。<br />
		<pre><code>&lt;div id=&quot;juitterContainer&quot;&gt;&lt;/div&gt;</code></pre>
	</li>
	<li>
		既存のスタイルシートに、以下CSSを追加記述。<br />
		デザイン変更も自由です。<br />
		<span class="notes">（本家サイトからダウンロードしたものだと４行以上の表示になったときに崩れるので修正。）</span>


<pre><code>
/*JUITTER PLUGIN CSS
-------------------------------------------*/

#juitterContainer{margin-bottom: 20px} /*Juitter container*/
#juitterContainer .twittList{margin:0;padding:0;} /* UL that will contain the list of tweets */

/* Bellow the list of tweets "&lt;li&gt;" */
#juitterContainer .twittLI{list-style:none;background:#EEFDEA;margin:0;padding:5px 0 0 0;border-bottom:dashed 1px #CAF8C9;padding:3px;clear:both;} 
#juitterContainer .twittList SPAN.time{color:#777;font-size:0.9em}
#juitterContainer .twittList A{color:#006600;} /*Links inside the tweets list */

/* Bellow the CSS for the avatar image  */
#juitterContainer .juitterAvatar{float:left;border:solid 1px #D3EECA;background:#FFF;margin-right:5px;padding:2px;width:48px;height:48px;}

#juitterContainer .jRM{float:right;clear:both} /*read it on twitter link*/
#juitterContainer .extLink{} /*CSS for the external links*/
#juitterContainer .hashLink{} /*CSS for the hash links*/

/* clearfix */
#juitterContainer .twittLI:after{clear: both;height: 0;visibility: hidden;display: block;content: ".";}
#juitterContainer .twittLI{display: inline-block;}
* html #juitterContainer .twittLI{height: 1%;}
#juitterContainer .twittLI{display: block;}
/* */

/*end of Juitter CSS*/
</code></pre>


	</li>
</ol>

<p>以上。これだけで、とりあえず動きます。<br />デフォルトでは「iPhone」「apple」「iPod」で検索をかけた結果が出ます。</p>


<h2>juietterのカスタマイズ</h2>
<p>絞り込みや表示件数の設定は system.js 内の上の方にある行の記述を変更することで行います。<br />
設定変更の前に、文字化けを防ぐため、system.js の文字コードを「UTF8」にします。<br />
（※タイムラインを表示させるHTMLの文字コードが「UTF-8」であることを前提に説明しています）</p>
<ol>
	<li>
		searchType: <span class="attention">searchWord</span>,<br />
		//searchWord は語句での絞り込み、fromUser はユーザーの絞りこみ、toUser は指定ユーザー宛のリプライを表示。
		//ハッシュタグを指定するときは、"#" を "%23" と記述する。（例：#web → %23web）
	</li>
	<li>
		searchObject:"<span class="attention">iPhone,apple,ipod</span>", <br />
		//キーワード名、ユーザー名の指定。複数はカンマで区切ること。 
	</li>
	<li>
		lang:"<span class="attention">all</span>",<br />
		//言語の設定。「ja」だと、取りこぼしがあるとのことです。
	</li>
	<li>
		live:"live-<span class="attention">60</span>"<br />
		//更新間隔秒の指定。デフォルトは60なので１分おきに更新。
	</li>
	<li>
		total: <span class="attention">15</span>, <br />
		//表示件数。
	</li>
	<li>
		readMore: "<span class="attention">Read it on Twitter</span>",<br />
		Twitter本家サイトに飛ばすリンクのテキスト内容。
	</li>
	<li>
		nameUser:"<span class="attention">image</span>",<br />
		image でアバター画像、text で名前を表示。
	</li>
	<li>
		openExternalLinks:"<span class="attention">newWindow</span>",<br />
		//newWindow リンクを押したとき、新しいウインドウで開く。sameWindow 同じ画面で開く。
	</li>
	<li>
		filter:"<span class="attention">sex->*BAD word*,porn->*BAD word*,fuck->*BAD word*,shit->*BAD word*</span>"<br />
		//特定の文字を、指定の文字列に置き換える。表示させたくない文字を指定。
	</li>
</ol>


<h2>ページの内容に合わせたつぶやきを表示させる（MovableTypeを使用した例）</h2>
<p>MovableTypeを使用したサンプルです。</p>
<ol>
	<li>
		キーワード（半角カンマ区切りで入力）またはタグ、もしくはカスタムフィールドでjuitter用のフィールド（半角カンマ区切りで入力）を作り、絞り込みキーワードを指定します。
	</li>
	<li>
		HTML中に、IDを付けてDOMで１つに特定できるようにした状態でHTML内に設置します。<br />
		見せたくない場合は、CSSで「display: none;」で表示しないようにします。<br />

<pre><code>キーワードを使う場合：
&lt;div id=&quot;juitter-words&quot;&gt;&lt;p&gt;&lt;$mt:EntryKeywords&gt;&lt;/p&gt;&lt;/div&gt;<br />
タグを使う場合：
&lt;div id=&quot;juitter-words&quot;&gt;&lt;p&gt;&lt;mt:EntryTags glue=','&gt;&lt;$mt:TagName$&gt;&lt;/mt:EntryTags&gt;&lt;/p&gt;&lt;/div&gt;<br />
カスタムフィールドを使う場合：
&lt;div id=&quot;juitter-words&quot;&gt;&lt;p&gt;&lt;mt:テンプレートタグ名&gt;&lt;/p&gt;&lt;/div&gt;</code></pre>

	</li>
	<li>
		system.js で、２行目の赤字の部分を追加挿入。<br />
		前ステップで設置したキーワード（body閉じタグの上）を変数に読み込ませます。<br />
		そして、searchObject:＿＿＿ の部分で、その変数を指定します。<br />
		
<pre><code>$(document).ready(function() {
	<span class="attention">var juitterWords = $("#juitter-words p").html();</span>
	$.Juitter.start({
		searchType:"searchWord",
		searchObject:<span class="attention">juitterWords</span>, ・・・以下続く
</code></pre>

	</li>
</ol>

<p>以上の設定で、指定したキーワードで絞り込まれたTwitterタイムラインをページに表示させることができます。</p>


<h2>参考サイト</h2>
<ul>
	<li><a href="http://juitter.com/" target="_blank">juietter本家サイト</a></li>
	<li><a href="http://www.geekpage.jp/blog/?id=2009/9/12/1" target="_blank">Juitterを使って勉強会とTwitterを繋ぐ　Geekなページ</a></li>
	<li><a href="http://woorkup.com/" target="_blank">woork up - A Fresh Charge of Creativity</a></li>
</ul>]]>
        
    </content>
</entry>

<entry>
    <title>PageLime　極めて簡単に使える無料のCMS</title>
    <link rel="alternate" type="text/html" href="http://stack3.com/tools/pagelime_cms.html" />
    <id>tag:stack3.com,2009://1.23</id>

    <published>2009-10-20T01:57:10Z</published>
    <updated>2009-10-20T02:28:26Z</updated>

    <summary> PageLime　http://www.pagelime.com/ ユーザー、...</summary>
    <author>
        <name>taku_nagai</name>
        <uri>http://nagaishouten.com</uri>
    </author>
    
        <category term="ツール" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="cms" label="CMS" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="pagelime" label="PageLime" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="webサービス" label="WEBサービス" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://stack3.com/">
        <![CDATA[<!--PageLime　極めて簡単に使える無料のCMS-->
<p><img src="../2009/10/pagelime_0.png" width="303" height="88" alt="pagelime" /><br />
PageLime　<a href="http://www.pagelime.com/" target="_blank">http://www.pagelime.com/</a></p>

<p>ユーザー、WEB制作者ともに、極めて簡単に使える無料でインストール不要のお手軽CMS。<br />
ブラウザ上で実際のWEBページを見ながら“直感的”に編集＆更新ができます。</p>
<p>新規ページを作成したときなどに共通パーツ（メニューなど）も自動で更新してくれるわけではないので、使い方を考える必要はあります。しかし驚くほど簡単に編集機能を組み込める（HTMLタグにクラスを追加するだけ）ので、“ちょっとした”更新機能が欲しい場合や、MovableType や WordpressなどのCMSで構築する必要性が少ないと思われる小規模サイトの案件に使えそうです。また、WEB制作のフローの中で、クライアントに文章を作ってもらうステップに使用するのもいいかもしれません。<br />
</p>

<h2>設定は簡単！</h2>
<p><a href="http://www.pagelime.com/about/demo-video/" target="_blank">PageLimeの説明ビデオ（英語）</a>を見れば、おおよそわかると思います。</p>

<h3>初期設定</h3>
<ol>
	<li>アカウントを作成（twitter, Google, OpenID, facebookなどのアカウントが使える）<br />
	<img src="../2009/10/pagelime_01.png" width="500" height="312" alt="pagelime1" />	</li>
	<li>初期設定でサイトの情報を入力。ちなみに「Publish Passkey」とは、FTP接続のパスワードを暗号化するものなので、セキュリティを高めるために設定しておいた方が良い。FTP接続のたびに入力が必要なので、覚えやすいパスキーを設定しておく。<br />
	<img src="../2009/10/pagelime_03.png" width="500" height="236" alt="pagelime2" />	<br />
	<img src="../2009/10/pagelime_02.png" width="500" height="279" alt="pagelime3" />	</li>
	<li>編集可能にしたい部分を囲むHTMLタグに「cms-editable（変更可）」というクラスを指定（※その要素にはidの指定も必須）。<br />
	<pre><code>&lt;h2 id=&quot;page-title&quot; class=&quot;cms-editable&quot;&gt;PageLime　極めて簡単に使える無料のCMS&lt;/h2&gt;</code></pre></li>
</ol>

<p>以上。</p>

<p>これだけで、あなたもあなたのクライアントも、インターネット接続環境とWEBブラウザさえあればWEBページを編集することができるようになります。<br />
<img src="../2009/10/pagelime_4.png" width="500" height="346" alt="pagelime4" /></p>

<p>さらに Google Analytics と連携させたり、画像編集ができたりと色んな機能があります。</p>

<h2>問題点？（2009年10月20日時点）</h2>
<ul>
	<li>バージョン管理機能も付いているとのことですが、試してみたところ更新前の状態に復元することはできないようです。</li>
	<li>メタタグ Discription や Keywords の編集もできますが、日本語は文字化けしてしまいます。</li>
	<li>動作が重いときがある。</li>
</ul>

<h2>参考サイト</h2>
<ul>
	<li><a href="http://www.pagelime.com/" target="_blank">PageLime 本家サイト（英語）</a></li>
	<li><a href="http://woorkup.com/2009/10/19/pagelime-flat-file-hosted-cms-for-designers-and-developers/" target="_blank">PageLime: Flat File Hosted CMS for Designers and Developers　woorkup.com</a></li>
</ul>]]>
        
    </content>
</entry>

<entry>
    <title>「Pomodoro Technique（ポモドーロ・テクニック）」25分単位で集中する時間管理術</title>
    <link rel="alternate" type="text/html" href="http://stack3.com/tools/pomodoro_technique.html" />
    <id>tag:stack3.com,2009://1.22</id>

    <published>2009-10-12T09:09:31Z</published>
    <updated>2009-11-13T14:21:59Z</updated>

    <summary> 	 	「Pomodoro Technique（ポモドーロ・テクニック or ポ...</summary>
    <author>
        <name>taku_nagai</name>
        <uri>http://nagaishouten.com</uri>
    </author>
    
        <category term="Mac&amp;Linux" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="ツール" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="pomodorotechnique" label="Pomodoro Technique" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="ポモドーロテクニック" label="ポモドーロテクニック" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="ポモドーロ法" label="ポモドーロ法" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="仕事術" label="仕事術" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="時間管理" label="時間管理" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="時間管理術" label="時間管理術" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://stack3.com/">
        <![CDATA[<!--「Pomodoro Technique（ポモドーロ・テクニック）」25分単位で集中する時間管理術-->

<p>
	<img class="article-img" src="../2009/10/pomodoro_logo.png" width="221" height="176">
	「Pomodoro Technique（ポモドーロ・テクニック or ポモドーロ法）」という時間管理術があります。実践してみたところ自分と相性が良いようで、劇的に集中できる時間が増えました（今まで集中できなさ過ぎたのですが ^_^;）。とにかくタイマーを作動させチクタク音の中作業にとりかかれば、自然と集中できるのです。25分という時間設定も絶妙です。私は使ってませんが、Twitterと連携できるMac用のアプリケーションもあります。モチーフが「トマト」とかわいいのも◎です。
</p>

<p>
	チートシートの説明を訳し、自分なりにポモドーロ・テクニックの使い方をまとめてみました。ここで紹介している方法は、主にチートシートを参考にした簡略なものなので正式な方法と比べると抜けている部分がありますが、それでも私には十分役に立ってくれています。完全な内容を知りたい方は、<a href="http://www.pomodorotechnique.com/resources/cirillo/ThePomodoroTechnique_v1-3.pdf" target="_blank" class="external">約50ページある説明PDF</a>が本家サイトにて無料配布されていますので、それをご参照ください。
</p>

<p>（※ 2009/11/13 少し修正しました。）</p>

<h2>Pomodoro Technique（ポモドーロ・テクニック）とは</h2>
<p>
	Pomodoro Technique（ポモドーロ・テクニック or ポモドーロ法）とは、Francesco Cirillo氏が1992年、自身の勉強効率を上げるために考案した時間管理術。25分を単位「１ポモドーロ」とし、その間集中してタスクを片付けます。本家サイトは<a href="http://www.pomodorotechnique.com/" target="_blank" class="external">こちら</a>。
</p>

<h2>前準備</h2>
<p>始める前に、以下のものを用意しておきます。</p>
<ul>
	<li>シート（紙 or ノート or <a href="http://www.pomodorotechnique.com/downloads/pomodoro_todo.pdf" target="_blank" class="external">ワークシート“To Do Today”（本家サイトからDownload）</a>）</li>
	<li>鉛筆と消しゴム</li>
	<li>キッチンタイマー（トマト型が気分が盛り上がる？） or タイマーアプリ（事項参照）。</li>
</ul>


<h2>無料のポモドーロタイマー アプリケーション</h2>
<p>25分計れるタイマーならどんなタイマーでも良いのですが、Windows、Mac、iPhoneともにポモロード法用に作られたアプリケーションがあります。さして重要ではありませんが、私はリアルのキッチンタイマー（ひねってタイマーをセット、カチカチ音がする。トマト型）が気に入っています。本物のカチカチ音やベル音は、周囲の空気が振動する感じで一番緊迫感が出ます。</p>
<h3>「<a href="http://code.google.com/p/pomodorotimer/" target="_blank" class="external">pomodorotimer</a>」Windows用</h3>
<p>ダウンロードしアイコンをダブルクリックすると、タスクバーにトマトのマークが現れます。クリックでスタート、右クリックで各種設定ができます。</p>
<h3>「<a href="http://pomodoro.ugolandini.com/pages/downloads.html" target="_blank" class="external">Pomodoro 0.28</a>」Mac用</h3>
<p>最新版をダウンロードし、アプリケーションフォルダに移動。Dockに入れておくと便利です。実行するとメニューバー（時計の左の方）にトマトのアイコンと残り時間が表示されます。<br />
タイマーをスタートさせると「Ready Set Go!」と声（声質選択も可能）がして、カウントが始まります。「カチッ、カチッ」の音付きですが、カウント音が不要なら消すこともできます。こなしたタスクのログや統計も記録してくれる優れもの。Twitterと連携もできます（後述）。</p>
<h3>「<a href="http://itunes.apple.com/jp/app/pomodoro-time-management-lite/id323224845?mt=8" target="_blank" class="external">Pomodoro Time Management</a>」iPhone用</h3>
<p><img class="article-img" src="../2009/10/pomodoro_iphone.jpg" width="160" height="240" alt="Pomodoro Time Management">無料版と有料版（115円）がありますが、無料版で十分だと思います。ポモドーロ・テクニック用のiPhone用アプリは、他にも「pomodoro timer」「pomodoro」「iPomodoro」などありますが、基本は単純なタイマーなので好みで選べば良いでしょう。タスクの記録機能が付いたものなどもあります。</p>


<h2>ポモドーロ テクニックの手順</h2>
<ol>
	<li>25分 = 1ポモドーロ と呼ぶ。今日やるべきタスクを25分刻み（１ポモドーロ）に分割し、ワークシートに早く片付けるべきタスクから書き込む。ポモドーロ数分の「□（チェックボックス）」をタスク名の横に書く（例えば50分かかる作業なら2ポモドーロなので、２つのチェックボックスを書く。短時間で完了するタスクは合わせて25分になるようグループ化し、１ポモドーロにする。</li>
	<li>タイマーを25分（1ポモドーロ）にセットして開始。タイマーが鳴るまで他のことは一切しない。選択したタスクに集中する。</li>
	<li>タスクが完了したら、シート上の完了したタスク横のチェックボックスに×印を付ける。</li>
	<li>3〜5分の小休憩をとる。</li>
	<li>ステップ3〜5を繰り返す。4ポモドーロ（約2時間）ごとに、長い休憩（15〜30分）を取る。</li>
	<li>上記を繰り返す。</li>
</ol>

<h2>ポモドーロ テクニックのルール</h2>
<ul>
	<li>予定外や急ぎの割り込みタスクが入った場合は、その場でリストの最下部に記録。現在進行中のポモドーロ（=タスク）が完了次第処理する。</li>
	<li>実行中のポモドーロを中断しなければならないくらい急ぎの場合は，現在のポモドーロ（=タスク）を中断して無効にする。</li>
	<li>5〜7ポモドーロ以上かかるタスクは、途中で分割する。</li>
	<li>いったんポモドーロが始まれば、終了のベルが鳴るまで集中すること。</li>
	<li>ポモドーロ・テクニックは自由時間には使わない方がいい。自由時間は自由に楽しむこと。</li>
	<li>
		内的要因による中断（集中できないなど）
		<ul>
			<li>席を立って何か飲み食いしたり、ネット閲覧をして気分転換する。</li>
			<li>ワークシートのチェックボックスに「 '（アポストロフィ）」を付け、タスクを阻害したものを明記する。</li>
			<li>差し迫っていて先送りできないタスクなら、タスクリストの下に付け加えて再度実行する。</li>
			<li>一旦アポストロフィを記入したタスクの再実行中は、完了する意思を強く持つこと。終了のベルがなるまで続ける。</li>
		</ul>
	</li>
	<li>
		外的要因による中断（同僚の質問などの社会的な要因）
		<ul>
			<li>シートに「 - （ダッシュ）」を付け、タスクを阻害したものを明記しておく。</li>
			<li>シートは後で（関係する人との）交渉材料とする。</li>
		</ul>
	</li>
</ul>

<h2>Twitterとの連携</h2>
<p>Mac OSX（snow leopardも対応）のフリーソフト「<a href="http://pomodoro.ugolandini.com/pages/downloads.html" target="_blank" class="external">Pomodoro</a>」には、Twitterと連携できる機能が付いてます。設定（Preference）はとても簡単で、Twitterアカウントとパスワードを入力するだけ。ツイートのカスタマイズ（日本語対応）も可能です。</p>
<p><img src="../2009/10/pomodoro_twitter.png" width="539" height="509" alt="Pomodoro for MacOSX" /></p>

<p>
	訳に自身がない部分があるので、その場合はご指摘いただけると嬉しいです。他に和訳されている方もいらっしゃいますので（下の参考サイト参照）、合わせて読むとわかりやすいと思います。
</p>



<h2>参考サイト</h2>
<ul>
	<li><a href="http://www.pomodorotechnique.com/" target="_blank">Pomodoro Technique 本家サイト</a></li>
	<li><a href="http://www.pomodorotechnique.com/downloads/pomodoro_cheat_sheet.pdf" target="_blank">Pomodoro Technique Cheat Sheet（チートシート）</a></li>
	<li><a href="http://www.makeuseof.com/tag/6-apps-to-help-you-focus-be-productive-mac/" target="_blank">6 Apps To Help You Focus & Be Productive [Mac]</a></li>
	<li><a href="http://d.hatena.ne.jp/bash0C7/" target="_blank">Pomodoro Technique Cheat Sheetの和訳　koeだめ</a></li>
	<li><a href="http://www.infoq.com/jp/news/2009/10/Pomodoro" target="_blank">Pomodoro - 時間管理へのアジャイル的アプローチ　InfoQ</a></li>
	<li><a href="http://d.hatena.ne.jp/kent4989/20091007/p1" target="_blank">Pomodoro Technique　4989</a></li>
	<li><a href="http://homepage3.nifty.com/leopanda/chuudoku.html" target="_blank">経験則的、「twitter 中毒」　の治し方！ LEOPANDAさん</a></li>
</ul>]]>
        
    </content>
</entry>

<entry>
    <title>MovableType5（MT5）コメントのカスタムフィールドを追加する</title>
    <link rel="alternate" type="text/html" href="http://stack3.com/movabletype/mt5_comment_custom_field.html" />
    <id>tag:stack3.com,2009://1.21</id>

    <published>2009-10-04T09:37:35Z</published>
    <updated>2009-10-04T13:04:56Z</updated>

    <summary> 	MovableType5は、標準でコメントのカスタムフィールドが使えるように...</summary>
    <author>
        <name>taku_nagai</name>
        <uri>http://nagaishouten.com</uri>
    </author>
    
        <category term="movabletype" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="mt5" label="MT5" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="movabletype5" label="MovableType5" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="カスタマイズ" label="カスタマイズ" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="カスタムフィールド" label="カスタムフィールド" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="コメント" label="コメント" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://stack3.com/">
        <![CDATA[<!--MovableType5（MT5）コメントのカスタムフィールドを追加する-->
<p>
	MovableType5は、標準でコメントのカスタムフィールドが使えるようになっています。<br />
	その設置方法です。<br />
	※MT4でコメントにカスタムフィールドを追加したい方は、小粋空間様の「<a href="http://www.koikikukan.com/archives/2009/08/14-025555.php" target="_blank">CommentCustomField プラグイン</a>」をお使いください。
</p>

<h2>1. 新規カスタムフィールドの作成</h2>
<p>
	新規カスタムフィールドを追加します。読み込み時の規定値は後で指定します。<br />
	ベースネームがかぶったりしないよう、また後で見てもすぐに把握できるよう、カスタムフィールドはきちんと管理しておくことをオススメします。
</p>
<p><img src="../2009/10/comment_custom_field_01.png" width="560" height="475" alt="mt5_コメントカスタムフィールドの新規作成" /></p>

<h2>2. エントリーアーカイブテンプレート（=ブログ記事）の修正</h2>
<p>コメント入力フォーム部分と、コメント表示部分の２カ所に手を入れます。<br />
今回は、全ての種類のフォームを設置してみました。</p>
<ol>
	<li>
		まずはコメント入力フォーム部分。<br />
		コメントのformタグ内に、下記コードを挿入。<br />
<pre><code>&lt;mt:Ignore&gt;コメントのカスタムフィールド&lt;/mt:Ignore&gt;<br />&lt;div id=&quot;comment-form-custom&quot;&gt;<br />	&lt;input type=&quot;hidden&quot; name=&quot;blog_id&quot; value=&quot;&lt;MTBlogID&gt;&quot; /&gt;<br />	&lt;input type=&quot;hidden&quot; name=&quot;customfield_beacon&quot; value=&quot;1&quot; id=&quot;customfield_beacon&quot; /&gt;<br />	&lt;mt:CommentCustomFields&gt;<br />	&lt;mt:SetVarBlock name=&quot;custom_field_name&quot;&gt;&lt;$mt:CustomFieldName$&gt;&lt;/mt:SetVarBlock&gt;<br />	&lt;mt:SetVarBlock name=&quot;field-content&quot;&gt;&lt;$mt:CustomFieldHTML$&gt;&lt;/mt:SetVarBlock&gt;<br />	&lt;mt:SetVarBlock name=&quot;custom_field_id&quot;&gt;profile_&lt;$mt:CustomFieldName dirify=&quot;1&quot;$&gt;&lt;/mt:SetVarBlock&gt;<br />	&lt;$mt:Include module=&quot;フォームフィールド&quot; id=&quot;$custom_field_id&quot; class=&quot;&quot; label=&quot;$custom_field_name&quot;$&gt;<br />	&lt;/mt:CommentCustomFields&gt;<br />&lt;/div&gt;</code></pre>
	</li>
	<li>
		そして、コメント表示部分。<br />
		表示したい部分に先ほどコピーしておいたMTタグをペーストします。
<pre><code>&lt;!--以下、説明用のサンプル--&gt;
&lt;mt:If tag=&quot;commentdatasample07&quot;&gt;<br />	sample07_ラジオボタン: &lt;mt:commentdatasample07&gt;<br />&lt;/mt:If&gt;</code></pre>
	</li>
	<li>テンプレートを保存して、再構築。</li>
</ol>

<h2>3. 結果確認</h2>
<p>
	コメント入力フォームに、作成したカスタムフィールドが追加されました。<br />
	数字順に並べたいのに順番がバラバラになっています。作成順か？解決方法は現時点でわかりません。<br />
	また、ラジオボタンの直後に余計な改行が入っていたりとレイアウト的にまずいので、CSSで調整する必要があります。</p>
<p>
	とりあえず問題点は置いといて、適当に入力して投稿してみます。<br />
	日付は「yyyy-mm-dd」「hh:mm:ss」形式で入力する必要があります。 <br />
	埋め込みオブジェクトのフォームには、YouTubeの埋め込み用タグをコピペしました。</p>
<p>一通り入力したら、「投稿」ボタンを押します。</p>

<h3>コメント入力フォーム</h3>
<p><img src="../2009/10/comment_custom_field_02.png" width="560" height="905" alt="mt5_コメントカスタムフィールドへ入力" />
</p>

<h3>コメント表示部分</h3>
<p>
	投稿済コメントの表示部分に反映されました。
</p>
<p><img src="../2009/10/comment_custom_field_03.png" width="560" height="629" alt="mt5_コメントカスタムフィールドの表示" /></p>

<h3>コメント入力フォームのカスタムフィールド部分のHTMLタグ</h3>
<pre><code>&lt;div id=&quot;profile_sample01_-field&quot; class=&quot;field-top-label field pkg &quot;&gt;
	&lt;div class=&quot;field-inner&quot;&gt;
		&lt;div class=&quot;field-header&quot;&gt;
			&lt;label type=&quot;text&quot; id=&quot;profile_sample01_-label&quot; for=&quot;profile_sample01_&quot;&gt;sample01_テキスト&lt;/label&gt;
		&lt;/div&gt;
		&lt;div class=&quot;field-content &quot;&gt;
			&lt;input type=&quot;text&quot; name=&quot;customfield_sample01&quot; id=&quot;customfield_sample01&quot; value=&quot;&quot; class=&quot;full-width ti&quot; /&gt;
		&lt;/div&gt;
	&lt;/div&gt;
&lt;/div&gt;

&lt;div id=&quot;profile_-field&quot; class=&quot;field-top-label field pkg &quot;&gt;
	&lt;div class=&quot;field-inner&quot;&gt;
		&lt;div class=&quot;field-header&quot;&gt;
			&lt;label type=&quot;text&quot; id=&quot;profile_-label&quot; for=&quot;profile_&quot;&gt;sample02_テキスト（複数行）&lt;/label&gt;
		&lt;/div&gt;
		&lt;div class=&quot;field-content &quot;&gt;
			&lt;textarea name=&quot;customfield_sample02&quot; id=&quot;customfield_sample02&quot; class=&quot;full-width ta&quot; rows=&quot;3&quot; cols=&quot;72&quot;&gt;&lt;/textarea&gt;
		&lt;/div&gt;
	&lt;/div&gt;
&lt;/div&gt;

&lt;div id=&quot;profile_sample03_-field&quot; class=&quot;field-top-label field pkg &quot;&gt;
	&lt;div class=&quot;field-inner&quot;&gt;
		&lt;div class=&quot;field-header&quot;&gt;
			&lt;label type=&quot;text&quot; id=&quot;profile_sample03_-label&quot; for=&quot;profile_sample03_&quot;&gt;sample03_チェックボックス&lt;/label&gt;
		&lt;/div&gt;
		&lt;div class=&quot;field-content &quot;&gt;
			&lt;input type=&quot;hidden&quot; name=&quot;customfield_sample03_cb_beacon&quot; value=&quot;1&quot; /&gt;
			&lt;input type=&quot;checkbox&quot; name=&quot;customfield_sample03&quot; value=&quot;1&quot; id=&quot;customfield_sample03&quot; checked=&quot;checked&quot; class=&quot;cb&quot; /&gt;
			&lt;label class=&quot;hint&quot; for=&quot;customfield_sample03&quot;&gt;チェックボックスのサンプルです。&lt;/label&gt;
		&lt;/div&gt;
	&lt;/div&gt;
&lt;/div&gt;

&lt;div id=&quot;profile_sample04_url-field&quot; class=&quot;field-top-label field pkg &quot;&gt;
	&lt;div class=&quot;field-inner&quot;&gt;
		&lt;div class=&quot;field-header&quot;&gt;
			&lt;label type=&quot;text&quot; id=&quot;profile_sample04_url-label&quot; for=&quot;profile_sample04_url&quot;&gt;sample04_URL&lt;/label&gt;
		&lt;/div&gt;
		&lt;div class=&quot;field-content &quot;&gt;
			&lt;input type=&quot;text&quot; name=&quot;customfield_sample04&quot; id=&quot;customfield_sample04&quot; value=&quot;&quot; class=&quot;full-width ti&quot; /&gt;
		&lt;/div&gt;
	&lt;/div&gt;
&lt;/div&gt;

&lt;div id=&quot;profile_-field&quot; class=&quot;field-top-label field pkg &quot;&gt;
	&lt;div class=&quot;field-inner&quot;&gt;
		&lt;div class=&quot;field-header&quot;&gt;
			&lt;label type=&quot;text&quot; id=&quot;profile_-label&quot; for=&quot;profile_&quot;&gt;sample05_日付と時刻&lt;/label&gt;
		&lt;/div&gt;
		&lt;div class=&quot;field-content &quot;&gt; &lt;span class=&quot;date-time-fields&quot;&gt;
			&lt;input type=&quot;text&quot; id=&quot;d_customfield_sample05&quot; class=&quot;entry-date text-date&quot; name=&quot;d_customfield_sample05&quot; value=&quot;&quot; /&gt;
			&lt;input type=&quot;text&quot; class=&quot;entry-time&quot; name=&quot;t_customfield_sample05&quot; value=&quot;&quot; /&gt;
		&lt;/span&gt;&lt;/div&gt;
	&lt;/div&gt;
&lt;/div&gt;

&lt;div id=&quot;profile_-field&quot; class=&quot;field-top-label field pkg &quot;&gt;
	&lt;div class=&quot;field-inner&quot;&gt;
		&lt;div class=&quot;field-header&quot;&gt;
			&lt;label type=&quot;text&quot; id=&quot;profile_-label&quot; for=&quot;profile_&quot;&gt;sample06_ドロップダウン&lt;/label&gt;
		&lt;/div&gt;
		&lt;div class=&quot;field-content &quot;&gt;
			&lt;select name=&quot;customfield_sample06&quot; id=&quot;customfield_sample06&quot; class=&quot;se&quot; mt:watch-change=&quot;1&quot;&gt;
				&lt;option value=&quot;項目１&quot;&gt;項目１&lt;/option&gt;
				&lt;option value=&quot;項目２&quot;&gt;項目２&lt;/option&gt;
				&lt;option value=&quot;項目３&quot;&gt;項目３&lt;/option&gt;
			&lt;/select&gt;
		&lt;/div&gt;
	&lt;/div&gt;
&lt;/div&gt;

&lt;div id=&quot;profile_sample08_-field&quot; class=&quot;field-top-label field pkg &quot;&gt;
	&lt;div class=&quot;field-inner&quot;&gt;
		&lt;div class=&quot;field-header&quot;&gt;
			&lt;label type=&quot;text&quot; id=&quot;profile_sample08_-label&quot; for=&quot;profile_sample08_&quot;&gt;sample08_埋め込みオブジェクト&lt;/label&gt;
		&lt;/div&gt;
		&lt;div class=&quot;field-content &quot;&gt;
			&lt;textarea name=&quot;customfield_sample08&quot; id=&quot;customfield_sample08&quot; class=&quot;full-width ta&quot; rows=&quot;3&quot; cols=&quot;72&quot;&gt;&lt;/textarea&gt;
		&lt;/div&gt;
	&lt;/div&gt;
&lt;/div&gt;

&lt;div id=&quot;profile_sample07_-field&quot; class=&quot;field-top-label field pkg &quot;&gt;
	&lt;div class=&quot;field-inner&quot;&gt;
		&lt;div class=&quot;field-header&quot;&gt;
			&lt;label type=&quot;text&quot; id=&quot;profile_sample07_-label&quot; for=&quot;profile_sample07_&quot;&gt;sample07_ラジオボタン&lt;/label&gt;
		&lt;/div&gt;
		&lt;div class=&quot;field-content &quot;&gt;
			&lt;ul class=&quot;custom-field-radio-list&quot;&gt;
				&lt;li&gt;
					&lt;input type=&quot;radio&quot; name=&quot;customfield_sample07&quot; value=&quot;項目１&quot; id=&quot;customfield_sample07_1&quot; checked=&quot;checked&quot; class=&quot;rb&quot; /&gt;
					&lt;label for=&quot;customfield_sample07_1&quot;&gt;項目１&lt;/label&gt;
				&lt;/li&gt;
				&lt;li&gt;
					&lt;input type=&quot;radio&quot; name=&quot;customfield_sample07&quot; value=&quot;項目２&quot; id=&quot;customfield_sample07_2&quot; class=&quot;rb&quot; /&gt;
					&lt;label for=&quot;customfield_sample07_2&quot;&gt;項目２&lt;/label&gt;
				&lt;/li&gt;
				&lt;li&gt;
					&lt;input type=&quot;radio&quot; name=&quot;customfield_sample07&quot; value=&quot;項目３&quot; id=&quot;customfield_sample07_3&quot; class=&quot;rb&quot; /&gt;
					&lt;label for=&quot;customfield_sample07_3&quot;&gt;項目３&lt;/label&gt;
				&lt;/li&gt;
			&lt;/ul&gt;
		&lt;/div&gt;
	&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<h2>参考サイト</h2>
<ul>
	<li><a href="http://www.movabletype.jp/documentation/mt5/design/template/mt5-tags.html" target="_blank">MT5で追加されるMTタグの利用方法（MT本家サイト）</a></li>
</ul>
]]>
        
    </content>
</entry>

<entry>
    <title>MovableType5（MT5）β版の初期設定の手順のまとめ</title>
    <link rel="alternate" type="text/html" href="http://stack3.com/movabletype/mt5_beta1_install2.html" />
    <id>tag:stack3.com,2009://1.20</id>

    <published>2009-09-02T15:06:55Z</published>
    <updated>2009-09-13T21:20:00Z</updated>

    <summary>MovableType5（MT5）β版のインストール手順のまとめの続きの記事です...</summary>
    <author>
        <name>taku_nagai</name>
        <uri>http://nagaishouten.com</uri>
    </author>
    
        <category term="movabletype" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="movabletype5" label="movabletype5" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="mt5" label="mt5" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="インストール" label="インストール" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="手順" label="手順" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="設定" label="設定" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://stack3.com/">
        <![CDATA[<p><a href="http://stack3.com/movabletype/mt5_beta1_install.html">MovableType5（MT5）β版のインストール手順のまとめ</a>の続きの記事です。</p>

<p>必要なデータをサーバーにアップした後の、MovableType5の設定手順です。確認した環境は、サーバーは Xserver。WebブラウザはMacOSX10.6 のSafari4。ダイナミックパブリッシング（動的にページ生成）は使用しない設定です。ちなみに2009年9月30日まで、MT5書籍のプレゼントキャンペーンが実施されています。</p>

<h2>MovableType5初期設定の手順</h2>
<p>インストールをスムースに進めるため、事前の準備をします。</p>
<ol>
	<li>http://admin.サイト名/ にアクセスします。（サブドメイン設定により サイト名/admin/index.htmlでアクセス）</li>
	<li>
		言語選択の画面になるので、「日本語」を選び、サインインボタンを押します。
		<p class="align-center"><img src="../2009/09/mt5_start_05_install_start.png" alt="MovableType5の設定手順1" width="408" height="460" /></p>
	</li>
	<li>
		Static web path 欄にmt-staticディレクトリのパスを入力します。ルート直下に配置しているので、相対パスで「/mt-static」とします。Static file path 欄は、合っているのでそのまま。開始ボタンを押します。
		<p class="align-center"><img src="../2009/09/mt5_start_06_install_set_path.png" alt="MovableType5の設定手順2" width="500" height="483" /></p>
	</li>
	<li>システムチェック。「必要なPerlモジュールは揃っています。」と出るので、次へボタン。</li>
	<li>
		データベース設定。MySQLを選び、MySQLの設定を入力する。「接続テスト」ボタンを押すと、データベースの設定を完了しました。とでるので「次へ」ボタンをクリック。
		<p class="align-center"><img src="../2009/09/mt5_start_07_set_database.png" alt="MovableType5の設定手順3" width="500" height="486" /></p>
	</li>
	<li>
		メールの設定。ここではSendmailを選ぶ。sendmailのパス（例えばXserverなら/usr/sbin/sendmail）を設定。テストメールが送られるメールアドレスに自分のメールアドレスを、送信元メールアドレスに適当なメールアドレスを入れ、テストメールを送信ボタンを押す。設定した自分のメールアドレスにメールが届いてるかチェック。届いてたらオッケーなので、次へボタンを押す。
		<p class="align-center"><img src="../2009/09/mt5_start_08_set_sendmail.png" alt="MovableType5の設定手順4" width="500" height="411" /></p>
	</li>
	<li>mt-config.cgiが作成される。次へボタンを押す。</li>
	<li>
		アカウントの作成。ユーザー名、メールやログインパスワードを設定し次へボタン。後で変更可。
		<p class="align-center"><img src="../2009/09/mt5_start_09_set_account.png" alt="MovableType5の設定手順5" width="500" height="544" /></p>
	</li>
	<li>
		最初のウェブサイトの設定。ウェブサイトURLは、ルートで公開するなら「http://ドメイン名/」とする。公開パスもサイトルートに設定。テーマを選ぶ。
		<p class="align-center"><img src="../2009/09/mt5_start_10_set_site.png" alt="MovableType5の設定手順6" width="500" height="475" /></p>
	</li>
	<li>
		データベースの初期化が始まる。完了後、MovableTypeにサインインボタンを押す。以上でインストールは完了！
		<p class="align-center"><img src="../2009/09/mt5_start_11_screen_post.png" alt="MovableType5の設定手順7" width="540" height="393" /></p>
	</li>
</ol>


<h2>MovableType5 本家サイト</h2>
<ul>
	<li><a href="http://www.movabletype.jp/documentation/mt5/" target="_blank">Movable Type 5 BETA ドキュメント</a></li>
</ul>]]>
        
    </content>
</entry>

<entry>
    <title>MovableType5（MT5）β版のインストール手順のまとめ</title>
    <link rel="alternate" type="text/html" href="http://stack3.com/movabletype/mt5_beta1_install.html" />
    <id>tag:stack3.com,2009://1.19</id>

    <published>2009-09-02T13:22:12Z</published>
    <updated>2009-11-29T07:19:18Z</updated>

    <summary>MovableType本家サイトのインストール方法は、サーバーのroot権限を持...</summary>
    <author>
        <name>taku_nagai</name>
        <uri>http://nagaishouten.com</uri>
    </author>
    
        <category term="movabletype" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="movabletype5" label="movabletype5" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="mt5" label="mt5" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="インストール" label="インストール" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="モジュール" label="モジュール" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="手順" label="手順" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="方法" label="方法" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://stack3.com/">
        <![CDATA[<p>MovableType本家サイトのインストール方法は、サーバーのroot権限を持っていることを前提に書かれているので、一般のレンタルサーバーにインストールする手順を書き留めておきます。また、DreamWeaverで作業することを前提に、後々作業しやすい環境を作りながら進めます。確認した環境は、サーバーは Xserver。WebブラウザはMacOSX10.6 のSafari4。文字コードはUTF8で統一。ダイナミックパブリッシング（動的にページ生成）は使用しない設定です。ちなみに2009年9月30日まで、MT5書籍のプレゼントキャンペーンが実施されています。</p>

<h2>事前の準備</h2>
<p>インストールをスムースに進めるため、事前の準備をします。</p>
<ol>
	<li>MySQLが使えるサーバ<s>（現時点でSQLiteやPostgreSQLは未対応。設定画面で出てくるので後々対応するんでしょう）</s><br />
		※藤本さん（The blog of H.Fujimoto）によれば、<a href="http://www.h-fj.com/blog/archives/2009/09/03-095704.php" target="_blank">SQLiteでもインスールはできた</a>とのこと。また、シックスアパートによるとMovableType5で使うDBは、今後もMySQLメインで考えているとのことです（2009/9/3 大阪で開催された「Movable Type 5 最新情報 &amp; 圧倒的コストパフォーマンスのハイエンドCMS体感セミナー」にてSixApartの方が回答されていた）。</li>
	<li>Perl5.81以上のPerlが使えるサーバ（Perl5.8は不具合が出る可能性あり）</li>
	<li>MySQLのユーザー接続ホスト名、ユーザーID、パスワード（データベースと権限を持つユーザーを作成しておく。文字コードはUTF8で）<br />
	レンタルサーバーなら、設定ツールが付いていることが多い。コマンドラインとphpMyAdminによる設定方法は<a href="http://www.movabletype.jp/documentation/mt5/install/db/mysql.html" target="_blank">MT本家サイト</a>にあります。</li>
	<li>Perlのパスの確認（/usr/bin/perl や /usr/local/bin/perl が多い）</li>
	<li>サイトの絶対パス（後の手順でもチェックできます。mt-check.cgi）</li>
	<li>sendmailのパス（サーバー会社のサイトで確認）</li>
	<li>
		ディレクトリ構成を決めておく<br />
		<table border="1">
	<caption>
	ディレクトリ構成のサンプル
	</caption>
	<tr>
		<th scope="col">種類</th>
		<th scope="col">ディレクトリパス</th>
		<th scope="col">公開URL</th>
	</tr>
	<tr>
		<td>アプリケーションディレクトリ</td>
		<td>サイトルートまでの絶対パス/admin</td>
		<td>http://admin.ドメイン名/<br />
			（http://ドメイン名/admin/）</td>
	</tr>
	<tr>
		<td>スタティックディレクトリ</td>
		<td>サイトルートまでの絶対パス/mt-static</td>
		<td>http://ドメイン名/mt-static</td>
	</tr>
	<tr>
		<td>ブログディレクトリ</td>
		<td>サイトルートまでの絶対パス/blog</td>
		<td>http://ドメイン名/blog/</td>
	</tr>
	<tr>
		<td>データベースディレクトリ</td>
		<td>データベースへのパス（レンタルサーバーの管理画面で作成）</td>
		<td>&nbsp;</td>
	</tr>
</table>
	</li>
</ol>


<h2>MovableType5のインストール手順</h2>
<ol>
	<li>
		<h3>MovableType5のダウンロード</h3>
		<p><a href="http://www.movabletype.jp/beta/50/" target="_blank">MT本家サイト</a>から、日本語版をダウンロード＆解凍。解凍してできた「MT-5.0b1-ja」フォルダを「admin」とリネーム。 </p>
	</li>
	<li>
		<h3>必要ならPerlのパスの変更</h3>
		<p>adminフォルダ内のcgiファイルはデフォルトで「/usr/bin/perl」となっている。サーバーのPerlのパスが異なる場合は、拡張子に.cgiの付いたファイルをテキストエディタで開き、Perlのパスを変更する。ちなみに、サーバー側で「/usr/bin/perl」「/usr/local/bin/perl」のどちらでも動くように設定してあるレンタルサーバーが多い。</p>
	</li>
	<li>
		<h3>ディレクトリの作成（上のディレクトリ構成サンプル参照）</h3>
		<p>ローカルで作業フォルダ（サイトルート）を作り、その中にadminフォルダを移動します。また、blogフォルダとdbフォルダを作ります。</p>
		<p><img src="../2009/09/mt5_start_01_set_folders.png" width="560" height="376" alt="MovableType5のインストール手順1" /></p>
		<p>adminフォルダを新しいウインドウで開き、中にある mt-static フォルダをルート（adminフォルダと同階層）に移動します。</p>
		<p><img src="../2009/09/mt5_start_02_set_folders_2.png" width="560" height="379" alt="MovableType5のインストール手順2" /></p>
	</li>
	<li>
		<h3>アップロード</h3>
		<p>FTPソフトで作業フォルダ内を丸ごとアップロードします。</p>
		<p><img src="../2009/09/mt5_start_03_upload.png" width="560" height="194" alt="MovableType5のインストール手順2" /></p>
	</li>
	<li>
		<h3>サーバー環境のチェック</h3>
		<p>mt-check.cgiの権限を755に変更、サイトURL/admin/mt-check.cgiにアクセスします。<br />
		「Movable Typeの構成ファイルが見つかりませんでした」と表示されますが、構成ファイルとはmt-config.cgiのことで、後の手順で自動生成されるので気にせず作業をすすめます。このとき、絶対パス（現在のディレクトリで表示）やPerlのバージョンも確認できます。「cgiwrapまたはsuexec環境下で動作していると思われます。」と表示があるかも確認しておきます。<br />
		MovableType5に必要なモジュールのリストも表示されます。インストールされていないモジュール（黄色の背景）の説明を読み、必要なものがあればインストールします。（下記手順参考）</p>
	</li>
	<li>
		<h3>足りないPerlモジュールのインストール（例：Mail::Sendmailモジュール）</h3>
		<p>コマンドラインでインストールできる方は、<a href="http://www.movabletype.jp/documentation/mt5/install/mt-check.html" target="_blank">MT本家の説明</a>を参照ください。</p>
		<ol>
			<li>
				<p><a href="http://search.cpan.org/" target="_blank">CPANの検索欄</a>にモジュール名（ここではMail::Sendmail）を入れ検索。該当モジュールをダウンロードして、解凍します。</p>
				<p><img src="../2009/09/mt5_start_04_cpan.png" width="560" height="344" alt="MovableType5のインストール手順2" /></p>
			</li>
			<li>adminフォルダ内の extlib フォルダの中にMailフォルダを新規作成。</li>
			<li>Mail-Sendmail-0.79フォルダ内の Sendmail.pm をMailフォルダに移動。（ディレクトリ構成がMail/Sendmail.pmになる）</li>
			<li>サーバーにアップロード。再びmt-check.cgi にアクセスすると、インストール済になっている。</li>
		</ol>
	</li>
	<li>
		<h3>パーミッションの設定</h3>
		<p>下記ディレクトリとファイルの権限を変更します。mt-check.cgiの画面で「cgiwrapまたはsuexec環境下で動作していると思われます。」と表示がある場合はセキュリティ高めの設定ができます。</p>
		<table border="1">
			<tr>
				<th scope="col">&nbsp;</th>
				<th scope="col">表示あり</th>
				<th scope="col">表示なし</th>
			</tr>
			<tr>
				<td>mtディレクトリ内の拡張子が「.cgi」の全てのファイル</td>
				<td>700</td>
				<td>755</td>
			</tr>
			<tr>
				<td>mt-staticディレクトリ内の supportディレクトリ</td>
				<td>705</td>
				<td>777</td>
			</tr>
		</table>
	</li>
	<li>
		<h3>サブドメインの設定</h3>
		<ol>
			<li>サーバーでサブドメインを設定。adminをサブドメインに設定することでMT管理画面のURLを http://admin.ドメイン名/mt.cgi でアクセスできるようにする。バージョンアップ作業などの管理がしやすくなるらしい。</li>
			<li>
				サブドメインのアクセスのみを許可して、ドメインでのアクセスを禁止する設定をする。たとえば、http://admin.abc.jp/ でアクセスできるように設定場合、通常 http://abc.jp/admin/ でもアクセスが可能だが、下記.htaccess をルートに設置すれば、後者でのアクセスを拒否できる。<br />
				
<pre><code>#.htaccessサンプル
SetEnvIf Host "^admin.abc.jp$" host
order deny,allow
deny from all
allow from env=host</code></pre>
			</li>
		</ol>
	</li>
	<li>
		<h3>Apacheがsuexecで動作している場合は、mt.cfg に必要な記述を追記</h3>
		<p>エックスサーバーなど、Apacheがsuexecで動作している場合には下記記述をMTのコンフィグファイルに追記する。</p>
		
<pre><code>#======== Apacheがsuexecで動作している場合の追記 =====
DBUmask 0022
HTMLUmask 0022
UploadUmask 0022
DirUmask 0022t</code></pre>

	</li>
	
</ol>

<p>以上、MovableType5のインストールの手順でした。<br />
続けて、MTの管理画面での設定をします。</p>
<p><a href="mt5_beta1_install2.html">&gt;&nbsp;MovableType5（MT5）β版の初期設定の手順のまとめ</a></p>


<h2>参考サイト</h2>
<ul>
	<li><a href="http://www.movabletype.jp/documentation/mt5/" target="_blank">Movable Type 5 BETA ドキュメント</a></li>
	<li><a href="http://www.h-fj.com/blog/archives/2009/09/03-095704.php" target="_blank">Movable Type 5 β1レビュー（動作環境とインストール）【The blog of H.Fujimoto】</a></li>
	<li>環境設定ファイルmt-config.cgiの設定</li>
</ul>
]]>
        
    </content>
</entry>

<entry>
    <title>Mac OSX Snow Leopard で動かなくなるアプリケーション一覧</title>
    <link rel="alternate" type="text/html" href="http://stack3.com/mac_linux/snow_leopard_no_run.html" />
    <id>tag:stack3.com,2009://1.18</id>

    <published>2009-09-01T00:58:46Z</published>
    <updated>2009-09-02T03:54:08Z</updated>

    <summary>Snow Leopardにアップグレードしたときに動かなくなるアプリケーションを...</summary>
    <author>
        <name>taku_nagai</name>
        <uri>http://nagaishouten.com</uri>
    </author>
    
        <category term="Mac&amp;Linux" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="106" label="10.6" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="mac" label="Mac" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="snowleopard" label="snow leopard" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="アプリケーション" label="アプリケーション" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="動かない" label="動かない" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="動かなくなった" label="動かなくなった" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://stack3.com/">
        <![CDATA[<p>Snow Leopardにアップグレードしたときに動かなくなるアプリケーションをまとめてみました。他にあれば教えていただければ追加します。</p>
<p class="attention">※ 動作を保証するものではありません。実際の導入にはメーカーのサイトやネット上での情報をよくお調べになるなど、十分慎重になさってください。</p>

<h2>Snow Leopardで動かないアプリケーション</h2>
<ul>
	<li>Buan's iMandMap Ver.3 (メーカー対応予定なし)</li>
	<li>Parallels Desktop.app 3.0</li>
	<li>InsomniaX</li>
	<li>Quicksilver</li>
	<li>WideMail</li>
	<li>1Password</li>
	<li>KeRemap4MacBook</li>
	<li>SmartScrollX</li>
	<li>twitter pod</li>
	<li>ManyCam</li>
	<li>ATOK2007</li>
	<li>Radio Shark 2(?)</li>
</ul>

<h2>Snow Leopardで動くアプリケーション</h2>
<ul>
	<li>Logic Pro 8</li>
	<li>FireControl</li>
	<li>Opera</li>
	<li>Firefox</li>
	<li>Skype</li>
	<li>mi</li>
	<li>MAMP</li>
	<li>FileMaker9</li>
	<li>OpenOfficeOrg</li>
	<li>NetNewsWire3.2</li>
	<li>VMware Fusion</li>
	<li>Adobe Dreamweaver CS4</li>
	<li>Adobe Photoshop CS4</li>
	<li>Adobe Illustrator CS4</li>
	<li>Photoshop Elements 6</li>
	<li>Toast Titanium 8.0.5</li>
	<li>ステアーマウス</li>
	<li>iWork '08のソフト群</li>
	<li>Adium</li>
	<li>InsomniaX 1.3.3</li>
	<li>CarbonEmacs</li>
	<li>夜フクロウ</li>
	<li>Parallels Desktop 4</li>
	<li>SafariStand (Safariの情報を見るで「32ビットモードで開く」でOK.)</li>
	<li>Glims (Safariの情報を見るで「32ビットモードで開く」でOK.)</li>
	<li>Cyberduck (Snow Leopard対応の最新版3.3b1あり)</li>
	<li>Google Picasa</li>
</ul>

<h2>参考にさせていただいたサイト</h2>
<ul>
	<li><a href="http://cage0.blog62.fc2.com/blog-entry-274.html" target="_blank">Apple Mac OS X Snow Leopard の使い心地</a>【cageのhogehogeな日々】</li>
	<li>Twitterのつぶやき</li>
</ul>]]>
        
    </content>
</entry>

<entry>
    <title>Mac OSX10.6 Snow Leopard を３日使った感想</title>
    <link rel="alternate" type="text/html" href="http://stack3.com/mac_linux/snow_leopard_install.html" />
    <id>tag:stack3.com,2009://1.17</id>

    <published>2009-08-31T15:10:35Z</published>
    <updated>2009-08-31T15:20:32Z</updated>

    <summary>新しいもの好きなもので、発売日にさっそくSnow Leopard にアップグレー...</summary>
    <author>
        <name>taku_nagai</name>
        <uri>http://nagaishouten.com</uri>
    </author>
    
        <category term="Mac&amp;Linux" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="106" label="10.6" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="osx" label="OSX" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="mac" label="mac" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="snowleopard" label="snow leopard" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="アップグレード" label="アップグレード" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://stack3.com/">
        <![CDATA[<p>新しいもの好きなもので、発売日にさっそくSnow Leopard にアップグレード。使えなくなるアプリケーションが出るんじゃないかと少し懸念したが、外付けHDにバックアップも取ってあるし、トラブルが起きたらそのとき考えようと楽観的にインストール。アクティビティモニタを見ると、OS標準付属のアプリケーションが、確かに64bitになってます。</p>


<p>手順通りインストールした直後、アップグレードできてないんじゃないかと不安になるくらい、変化を感じませんでした。しかし、触っているうちに変わった箇所が見つかります。特に便利だなと思った変更点をリストアップしてみました。</p>


<h2>Snow Leopard いいなと思った新機能4つ</h2>

<h3>PC画面動画キャプチャできる「QuickTime X」</h3>
<p>収録後、ドラッグで起点を終点を合わせるだけで簡単にトリミングできる（iPhone 3GSと同じ操作方法らしい）。
iSightによる録画や音声録音も可能。</p>

<h3>快速な「Safari」</h3>
<p>Safari4も64bit対応になったわけだが、早くなったような気がする。
Google Mapsが驚くほど速い！とあったので、試した見たところ確かに早い。</p>

<h3>快適操作の「エクスポゼ」</h3>
<p>Dockのアプリケーションアイコンをしばらく押しっぱなしにすると、そのアプリケーションのウインドウに絞ったエクスポゼ画面になる。
また、ファイルをDockのアイコンにドラッグして、そのまましばらく待つと、そのアプリケーションのウインドウに絞ったエクスポゼ画面になり、任意のウインドウを選択できる。いいかも。</p>

<h3>ウィンドウ分割が可能な「ターミナル」</h3>
<p>右端のスクロールバー上のアイコンをクリックするだけで、ターミナルのページ分割ができる。</p><br />

<p>今のところ、アップグレードしたら使えなくなったアプリケーションは「Buzan's iMindMap Ver.3」のみ。Adobe製品を始め色々入れてるが特に問題なしと思われる。</p>

<p>基本重くなるのは好まないので、今回のような洗練する方向性のアップグレードは大歓迎だ。3,300と低価格なのも嬉しい。やっておいて損はないアップグレードだと思います。</p>

<h2>参考にしたサイト様</h2>
<ul>
	<li><a href="http://plusd.itmedia.co.jp/pcuser/articles/0908/28/news014.html" target="_blank">これは便利！ 「Snow Leopard」を実際に使って感じた新機能“トップ20”</a></li>
</ul>]]>
        
    </content>
</entry>

<entry>
    <title>floatなしのグリッドレイアウトCSSフレームワーク「The Golden Grid」</title>
    <link rel="alternate" type="text/html" href="http://stack3.com/html_css/golden_grid.html" />
    <id>tag:www.stack3.com,2009://1.16</id>

    <published>2009-08-24T01:00:16Z</published>
    <updated>2009-08-24T01:14:51Z</updated>

    <summary>「The Golden Grid」は、floatなしでグリッドレイアウトを実現す...</summary>
    <author>
        <name>taku_nagai</name>
        <uri>http://nagaishouten.com</uri>
    </author>
    
        <category term="HTML&amp;CSS" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="960px" label="960px" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="css" label="CSS" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="goldengrid" label="Golden Grid" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="グリッドレイアウト" label="グリッドレイアウト" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="フレームワーク" label="フレームワーク" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://stack3.com/">
        <![CDATA[<p>「<a href="http://www.vcarrer.com/2009/02/golden-grid.html" target="_blank">The Golden Grid</a>」は、floatなしでグリッドレイアウトを実現するCSSフレームワーク。作者はイタリアのVladimir Carrer氏。ダウンロードは<a href="http://code.google.com/p/the-golden-grid/" target="_blank">こちら</a>。作者による説明ページは<a href="http://www.vcarrer.com/2009/02/golden-grid.html" target="_blank">こちら</a>。（※2009/8/24現在はβ版です）<br />
</p>

<p>960px幅固定で、160px幅のカラム×6列または、80px幅カラム×12列でレイアウトを組む仕様。同様のフレームワークに「<a href="http://960.gs/" target="_blank">960 Grid System</a>」があるが、floatを使わずclear用の空DIVタグを使用している「The Golden Grid」の方が、DIVタグのネストが少ないためHTMLコードがシンプルだ。また、クラス名でカラム幅がわかるため、直感的にレイアウトを組むことができる。</p>

<h2>使用例</h2>

<p>事前準備：head内にgolden.cssへのリンクを設置、または既存のCSSにコピー＆ペースト。</p>

<h3>左にマージンをとる場合</h3>
<p>ml000クラスとg000クラスを使用。トータル960になるように組む。</p>
<pre><code>&lt;div class=&quot;ml800 g160&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;clear&quot;&gt;&amp;nbsp;&lt;/div&gt;

&lt;div class=&quot;g320 ml640&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;clear&quot;&gt;&amp;nbsp;&lt;/div&gt;</code></pre>

<p><img src="../2009/08/images/goldengrid1.png" width="560" height="79" alt="The Golden Grid" /></p>

<h3>多段組の場合</h3>
<p>ml000クラスのDIVタグを段数分組み合わせる。トータル960になるように。</p>
<pre><code>&lt;div class=&quot;g480&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;g480&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;clear&quot;&gt;&amp;nbsp;&lt;/div&gt;

&lt;div class=&quot;g320&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;g320&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;g320&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;clear&quot;&gt;&amp;nbsp;&lt;/div&gt;</code></pre>

<p><img src="../2009/08/images/goldengrid2.png" width="560" height="81" alt="The Golden Grid" /></p>

<h2>関連サイト</h2>
<ul>
	<li></li>
	<li></li>
</ul>]]>
        
    </content>
</entry>

<entry>
    <title>retweet数が表示されるretweetボタン「tweetmeme」の設置</title>
    <link rel="alternate" type="text/html" href="http://stack3.com/tools/set_tweetmeme.html" />
    <id>tag:www.stack3.com,2009://1.15</id>

    <published>2009-08-23T23:51:23Z</published>
    <updated>2009-08-23T23:58:26Z</updated>

    <summary>←これです。 retweet数が表示されるretweetボタン tweetmem...</summary>
    <author>
        <name>taku_nagai</name>
        <uri>http://nagaishouten.com</uri>
    </author>
    
        <category term="ツール" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="retweet" label="retweet" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="tweetmeme" label="tweetmeme" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="twitter" label="twitter" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="ボタン" label="ボタン" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="設置" label="設置" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://stack3.com/">
        <![CDATA[<p>←これです。</p>
<p>retweet数が表示されるretweetボタン <a href="http://tweetmeme.com/" target="_blank">tweetmeme</a>。<br />
	このtweetmemeは自動ログインしてくれるため、ワンクリックで retweet できる。<br />
	前に紹介した<a href="http://www.stack3.com/tools/twitter_button.html">「twitterに投稿」ボタン</a>と違い、twitterへのログインまで自動でしてくれる。 </p>
	
<h2>tweetmeme の設置方法</h2>

<p>個別記事にはそのままJavaScriptのソースを貼付けます。メインページ、カテゴリページ、月別ページなど、複数記事が表示されるテンプレートに設置する場合は、iframe を使います。</p>

<p><a href="http://help.tweetmeme.com/2009/04/06/tweetmeme-button/" target="_blank">tweetmeme本家サイトの説明</a></p>

<h3>エントリーアーカイブ（個別記事）に設置</h3>
<pre><code>&lt;div class=&quot;retweet&quot;&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://tweetmeme.com/i/scripts/button.js&quot;&gt;&lt;/script&gt;&lt;/div&gt;</code></pre>

<h3>複数記事が表示されるテンプレートに設置（メイン、カテゴリ、月別など）</h3>
<pre><code>&lt;div class=&quot;retweet&quot;&gt;&lt;iframe scrolling=&quot;no&quot; height=&quot;61&quot; frameborder=&quot;0&quot; width=&quot;50&quot; src=&quot;http://api.tweetmeme.com/widget.js?url=&lt;$mt:EntryPermalink$&gt;&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;</code></pre>

<h2>参考させていただいたサイト</h2>
<ul>
	<li><a href="http://help.tweetmeme.com/" target="_blank">tweetmeme</a></li>
	<li><a href="http://help.tweetmeme.com/2009/04/06/tweetmeme-button/" target="_blank">本家サイトの説明ページ</a></li>
</ul>]]>
        
    </content>
</entry>

<entry>
    <title>カテゴリアーカイブと月別アーカイブのページ分割（MT4.3）</title>
    <link rel="alternate" type="text/html" href="http://stack3.com/movabletype/pagenate_mt4_3.html" />
    <id>tag:www.stack3.com,2009://1.14</id>

    <published>2009-08-23T21:46:47Z</published>
    <updated>2009-08-23T22:37:25Z</updated>

    <summary>MT4.3は標準でページ分割機能が付いています。以前のバージョンでは「PageB...</summary>
    <author>
        <name>taku_nagai</name>
        <uri>http://nagaishouten.com</uri>
    </author>
    
        <category term="movabletype" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="mtpaginate" label="MTPaginate" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="pagebute" label="PageBute" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="movabletype" label="movabletype" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="mt43" label="mt4.3" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="プラグイン" label="プラグイン" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="ページ分割" label="ページ分割" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://stack3.com/">
        <![CDATA[<p>MT4.3は標準でページ分割機能が付いています。以前のバージョンでは「PageBute」や「MTPaginate(PHPを使用)」などのプラグインを使う必要がありました。<br />カテゴリアーカイブと月別アーカイブに、ページ分割機能をさくっと付ける方法を紹介します。</p>

<p>記事の概要を下記のコードでサンドするように設置するだけです。</p>

<pre><code>&lt;mt:Ignore&gt;&lt;!-- ページ分割2ページ目以降の記事の表示数（mt-search.cgiを使用）$list_on_indexでauto扱い --&gt;&lt;/mt:Ignore&gt;
&lt;$mt:Var name=&quot;entries_per_page&quot; value=&quot;3&quot;$&gt;
&lt;mt:Ignore&gt;&lt;!-- Construct the url for querying entries. --&gt;&lt;/mt:Ignore&gt;
&lt;mt:SetVarBlock name=&quot;search_link&quot;&gt;
	&lt;$mt:CGIPath$&gt;&lt;$mt:SearchScript$&gt;?IncludeBlogs=&lt;$mt:BlogID$&gt;
	&amp;template_id=&lt;$mt:BuildTemplateID$&gt;
	&amp;limit=&lt;$mt:Var name=&quot;entries_per_page&quot;$&gt;
	&lt;mt:If name=&quot;archive_template&quot;&gt;
		&amp;archive_type=&lt;$mt:ArchiveType$&gt;
		&lt;mt:If name=&quot;datebased_archive&quot;&gt;
			&amp;year=&lt;$mt:ArchiveDate format='%Y'$&gt;&amp;month=&lt;$mt:ArchiveDate format='%m'$&gt;&amp;day=&lt;$mt:ArchiveDate format='%d'$&gt;
		&lt;/mt:If&gt;
		&lt;mt:If name=&quot;category_archive&quot;&gt;
			&amp;category=&lt;$mt:CategoryID$&gt;
		&lt;/mt:If&gt;
		&lt;mt:If name=&quot;author_archive&quot;&gt;
			&amp;author=&lt;$mt:AuthorID$&gt;
		&lt;/mt:If&gt;
	&lt;mt:Else&gt;
		&amp;archive_type=Index
	&lt;/mt:If&gt;
	&amp;page=
&lt;/mt:SetVarBlock&gt;
&lt;mt:Ignore&gt;&lt;!-- Strip spaces and trim value. --&gt;&lt;/mt:Ignore&gt;
&lt;$mt:Var name=&quot;search_link&quot; strip=&quot;&quot; trim=&quot;1&quot; setvar=&quot;search_link&quot;$&gt;
&lt;mt:Ignore&gt;&lt;!-- Entries loop for publishing static and dynamic pages. --&gt;&lt;/mt:Ignore&gt;
&lt;mt:Entries limit=&quot;$entries_per_page&quot;&gt;</code></pre>

<p>【記事の概要をここに入れます】</p>

<pre><code>&lt;/mt:Entries&gt;
&lt;mt:Ignore&gt;&lt;!-- ページ分割時のナビゲーション Condition based upon if page is statically or dynamically rendered using the search_results variable. --&gt;&lt;/mt:Ignore&gt;
&lt;mt:SetVarBlock name=&quot;pagination_navigation&quot;&gt;
	&lt;mt:If name=&quot;search_results&quot;&gt;
		&lt;mt:Ignore&gt;&lt;!-- Navigation for dynamic pages (same as navigation found in the Search Results system template). --&gt;&lt;/mt:Ignore&gt;
		&lt;mt:IfPreviousResults&gt;
			&lt;a href=&quot;&lt;$mt:PreviousLink$&gt;&quot; rel=&quot;prev&quot; onclick=&quot;return swapContent(-1);&quot;&gt;&amp;lt; Previous&lt;/a&gt;&amp;nbsp;
		&lt;/mt:IfPreviousResults&gt;
		&lt;mt:PagerBlock&gt;
		&lt;mt:IfCurrentPage&gt;
			&lt;$mt:Var name=&quot;__value__&quot;$&gt;
		&lt;mt:Else&gt;
			&lt;a href=&quot;&lt;$mt:PagerLink$&gt;&quot;&gt;&lt;$mt:Var name=&quot;__value__&quot;$&gt;&lt;/a&gt;
		&lt;/mt:IfCurrentPage&gt;
		&lt;/mt:PagerBlock&gt;
		&lt;mt:IfMoreResults&gt;
			&amp;nbsp;&lt;a href=&quot;&lt;$mt:NextLink$&gt;&quot; rel=&quot;next&quot; onclick=&quot;return swapContent();&quot;&gt;Next &amp;gt;&lt;/a&gt;
		&lt;/mt:IfMoreResults&gt;
	&lt;mt:Else&gt;
		&lt;mt:Ignore&gt;&lt;!-- Navigation for statically published page. --&gt;&lt;/mt:Ignore&gt;
		&lt;mt:If name=&quot;archive_template&quot;&gt;
			&lt;$mt:ArchiveCount setvar=&quot;total_entries&quot;$&gt;
		&lt;mt:Else&gt;
			&lt;$mt:BlogEntryCount setvar=&quot;total_entries&quot;$&gt;
		&lt;/mt:If&gt;
		&lt;mt:Ignore&gt;&lt;!-- If blog contains more entries than the number of entries to display per page. --&gt;&lt;/mt:Ignore&gt;
		&lt;mt:If name=&quot;total_entries&quot; gt=&quot;$entries_per_page&quot;&gt;
			&lt;mt:Ignore&gt;&lt;!-- Set the total number of entries to iterate through the pages. --&gt;&lt;/mt:Ignore&gt;
			&lt;mt:Ignore&gt;&lt;!-- IF ` divided by entries per page is a whole number. --&gt;&lt;/mt:Ignore&gt;
			&lt;mt:If name=&quot;total_entries&quot; op=&quot;%&quot; value=&quot;$entries_per_page&quot; eq=&quot;0&quot;&gt;
				&lt;mt:Ignore&gt;&lt;!-- Set total pages to total entries divided by entries per page. --&gt;&lt;/mt:Ignore&gt;
				&lt;$mt:Var name=&quot;total_entries&quot; op=&quot;/&quot; value=&quot;$entries_per_page&quot; setvar=&quot;total_pages&quot;$&gt;
			&lt;mt:Else&gt;
				&lt;mt:Ignore&gt;&lt;!-- Get the remainder when dividing total entries by entries per page. --&gt;&lt;/mt:Ignore&gt;
				&lt;$mt:Var name=&quot;total_entries&quot; op=&quot;%&quot; value=&quot;$entries_per_page&quot; setvar=&quot;remainder&quot;$&gt;
				&lt;mt:Ignore&gt;&lt;!-- Subtract remainder from total entries. --&gt;&lt;/mt:Ignore&gt;
				&lt;$mt:Var name=&quot;total_entries&quot; op=&quot;-&quot; value=&quot;$remainder&quot; setvar=&quot;total_entries&quot;$&gt;
				&lt;mt:Ignore&gt;&lt;!-- Determine total pages by dividing total entries (minus remainder) by entries per page. --&gt;&lt;/mt:Ignore&gt;
				&lt;$mt:Var name=&quot;total_entries&quot; op=&quot;/&quot; value=&quot;$entries_per_page&quot; setvar=&quot;total_pages&quot;$&gt;
				&lt;mt:Ignore&gt;&lt;!-- Add one page to handle the remainder of entries. --&gt;&lt;/mt:Ignore&gt;
				&lt;$mt:SetVar name=&quot;total_pages&quot; op=&quot;++&quot;$&gt;
			&lt;/mt:If&gt;
			&lt;mt:Ignore&gt;&lt;!-- Loop through total pages, creating links to all but the first page (which is the current page). --&gt;&lt;/mt:Ignore&gt;
			&lt;mt:For from=&quot;1&quot; to=&quot;$total_pages&quot; step=&quot;1&quot;&gt;
			&lt;mt:If name=&quot;__first__&quot;&gt;
				&lt;$mt:Var name=&quot;__index__&quot;$&gt;
			&lt;mt:Else&gt;
				&lt;a href=&quot;&lt;$mt:Var name=&quot;search_link&quot;$&gt;&lt;$mt:Var name=&quot;__index__&quot;$&gt;&quot;&gt;&lt;$mt:Var name=&quot;__index__&quot;$&gt;&lt;/a&gt;
			&lt;/mt:If&gt; 
			&lt;/mt:For&gt;
			&lt;mt:Ignore&gt;&lt;!-- Hard-coded link to the next page (page 2). --&gt;&lt;/mt:Ignore&gt;
			&amp;nbsp;&lt;a href=&quot;&lt;$mt:Var name=&quot;search_link&quot;$&gt;2&quot; rel=&quot;next&quot;&gt;Next &amp;raquo;&lt;/a&gt;
		&lt;/mt:If&gt;
	&lt;/mt:If&gt;
&lt;/mt:SetVarBlock&gt;
&lt;mt:Ignore&gt;&lt;!-- Strip space and trim navigation code. --&gt;&lt;/mt:Ignore&gt;
&lt;$mt:Var name=&quot;pagination_navigation&quot; strip=&quot; &quot; trim=&quot;1&quot; setvar=&quot;pagination_navigation&quot;$&gt;

&lt;mt:Ignore&gt;HTML出力&lt;/mt:Ignore&gt;
&lt;div class=&quot;content-nav&quot;&gt;
&lt;mt:Ignore&gt;&lt;!-- Output variable if exists. --&gt;&lt;/mt:Ignore&gt;
&lt;$mt:Var name=&quot;pagination_navigation&quot; strip=&quot; &quot; trim=&quot;1&quot; setvar=&quot;pagination_navigation&quot;$&gt;
&lt;mt:If name=&quot;pagination_navigation&quot;&gt;
	&lt;div class=&quot;pagination-navigation&quot;&gt;
		&lt;$mt:Var name=&quot;pagination_navigation&quot;$&gt;
	&lt;/div&gt;
&lt;/mt:If&gt;
&lt;mt:Ignore&gt;&lt;!--デフォルトのフッター--&gt;
&lt;mt:ArchivePrevious&gt;&lt;a href=&quot;&lt;$mt:ArchiveLink$&gt;&quot;&gt;&amp;laquo; &lt;$mt:ArchiveTitle$&gt;&lt;/a&gt; |&lt;/mt:ArchivePrevious&gt;
&lt;a href=&quot;&lt;$mt:Link template=&quot;main_index&quot;$&gt;&quot;&gt;Main Index&lt;/a&gt; |
&lt;a href=&quot;&lt;$mt:Link template=&quot;archive_index&quot;$&gt;&quot;&gt;Archives&lt;/a&gt;
&lt;mt:ArchiveNext&gt;| &lt;a href=&quot;&lt;$mt:ArchiveLink$&gt;&quot;&gt;&lt;$mt:ArchiveTitle$&gt; &amp;raquo;&lt;/a&gt;&lt;/mt:ArchiveNext&gt;
&lt;/mt:Ignore&gt;
&lt;/div&gt;</code></pre>

<p>あとは、CSSで見た目を変更</p>
<pre><code>.pagination-navigation	{
	font-size: 80%;
	text-align: center;
}</code></pre>

<h2>参考させていただいたサイト</h2>
<ul>
	<li><a href="http://www.movabletype.org/documentation/designer/pagination-static.html" target="_blank">Pagination for Static Templates</a>【MovableType.org】</li>
	<li><a href="http://www.movabletype.org/2009/07/features_of_43_entry_pagination.html" target="_blank">Features of 4.3: Entry Pagination</a>【MovableType.org】</li>
	<li><a href="http://cybermax.jp/2009/08/mt43-entry-pagination.html" target="_blank">MT4.3: Entry Pagination</a>【MAX ENGINEERRING】</li>
</ul>]]>
        
    </content>
</entry>

</feed>
