<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
   <title>YU-KI WEB COLUMN</title>
   <link rel="alternate" type="text/html" href="http://www.self-hate.com/column/" />
   <link rel="self" type="application/atom+xml" href="http://www.self-hate.com/column/atom.xml" />
   <id>tag:www.self-hate.com,2011:/column//3</id>
   <updated>2011-06-16T08:45:51Z</updated>
   
   <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.1</generator>


<entry>
   <title>ie7バグ</title>
   <link rel="alternate" type="text/html" href="http://www.self-hate.com/column/2011/06/ie7_1.php" />
   <id>tag:www.self-hate.com,2011:/column//3.493</id>
   
   <published>2011-06-16T08:38:21Z</published>
   <updated>2011-06-16T08:45:51Z</updated>
   
   <summary><![CDATA[以外と多いie7のマージン関係のバグ。 &lt;div&gt;の中に&lt;p&...]]></summary>
   <author>
      <name></name>
      
   </author>
   
      <category term="CSS" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://www.self-hate.com/column/">
      <![CDATA[以外と多いie7のマージン関係のバグ。


&lt;div&gt;の中に&lt;p&gt;を入れ子にしてmargin-bottomを指定すると、なぜか&lt;div&gt;のほうにもmargin-bottomの値が反映されてしまう。そんな時はPのmargin-bottomを0にする。


それと、ie7で画像に隙間ができてしまう場合、その&lt;div&gt;にfont-size:1px;を設定する。]]>
      
   </content>
</entry>

<entry>
   <title>ie7のマージンが無効になる場合</title>
   <link rel="alternate" type="text/html" href="http://www.self-hate.com/column/2010/11/ie7.php" />
   <id>tag:www.self-hate.com,2010:/column//3.485</id>
   
   <published>2010-11-05T11:35:57Z</published>
   <updated>2010-11-05T11:38:57Z</updated>
   
   <summary>floatを設定しているclassにヨコ幅をautoとしている時、ie7のみma...</summary>
   <author>
      <name></name>
      
   </author>
   
      <category term="CSS" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://www.self-hate.com/column/">
      floatを設定しているclassにヨコ幅をautoとしている時、ie7のみmargin-bottomが無効になります。
その場合、ヨコの数値を入力するとmarginが有効になります。
      
   </content>
</entry>

<entry>
   <title>mtにgooglemapを設置する</title>
   <link rel="alternate" type="text/html" href="http://www.self-hate.com/column/2010/10/mtgooglemap.php" />
   <id>tag:www.self-hate.com,2010:/column//3.483</id>
   
   <published>2010-10-14T06:09:09Z</published>
   <updated>2010-10-14T06:16:56Z</updated>
   
   <summary>Mapperというプラグインを使うと便利です。 ftpでアップした後、mt側のツ...</summary>
   <author>
      <name></name>
      
   </author>
   
      <category term="Movable Type" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://www.self-hate.com/column/">
      <![CDATA[Mapperというプラグインを使うと便利です。
ftpでアップした後、mt側のツール→プラグインからAPI Keyを入力して保存します。
そして、カスタムフィールドを設定してテンプレートに、

&lt;mt:Mapper&gt;
&lt;p&gt;[map:address]&lt;/p&gt;
&lt;/mt:Mapper&gt;

と、書くと（上記の場合、addressがカスタムフィールド）住所がgooglemapに変換されて表示されます。
経度・緯度を調べなくても表示されるので便利です。]]>
      
   </content>
</entry>

<entry>
   <title>画像のカスタムフィールドについて</title>
   <link rel="alternate" type="text/html" href="http://www.self-hate.com/column/2010/10/post_13.php" />
   <id>tag:www.self-hate.com,2010:/column//3.482</id>
   
   <published>2010-10-13T15:06:55Z</published>
   <updated>2010-10-13T15:11:11Z</updated>
   
   <summary>画像をカスタムフィールドに設定するとアイテムの情報入力画面がスキップされてしまい...</summary>
   <author>
      <name></name>
      
   </author>
   
      <category term="Movable Type" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://www.self-hate.com/column/">
      <![CDATA[画像をカスタムフィールドに設定するとアイテムの情報入力画面がスキップされてしまいます。
最初、Image::magickがインストールされていないのかと思いましたが、調べてみるとプラグインで設定画面を表示できるみたいです。

詳しくは<a href="http://www.koikikukan.com/archives/2010/03/26-025555.php">こちら</a>。]]>
      
   </content>
</entry>

<entry>
   <title>IE8のliに隙間ができる</title>
   <link rel="alternate" type="text/html" href="http://www.self-hate.com/column/2010/09/ie8li.php" />
   <id>tag:www.self-hate.com,2010:/column//3.481</id>
   
   <published>2010-09-17T07:45:39Z</published>
   <updated>2010-09-17T07:49:23Z</updated>
   
   <summary>リストで組んだ場合、IE8に妙な隙間ができます。 その場合、liタグにfont-...</summary>
   <author>
      <name></name>
      
   </author>
   
      <category term="CSS" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://www.self-hate.com/column/">
      リストで組んだ場合、IE8に妙な隙間ができます。


その場合、liタグにfont-size:1%;を指定して、さらにli a に、
line-height:normal;

を書き加えると直ります。
      
   </content>
</entry>

<entry>
   <title>MTプラグインエラー</title>
   <link rel="alternate" type="text/html" href="http://www.self-hate.com/column/2010/09/mt.php" />
   <id>tag:www.self-hate.com,2010:/column//3.480</id>
   
   <published>2010-09-11T07:36:25Z</published>
   <updated>2010-09-11T07:36:39Z</updated>
   
   <summary>最近、投稿した際の再構築エラーや、個別ページが書き出される前にエラーが出てしまっ...</summary>
   <author>
      <name></name>
      
   </author>
   
      <category term="Movable Type" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://www.self-hate.com/column/">
      最近、投稿した際の再構築エラーや、個別ページが書き出される前にエラーが出てしまっていたので、色々調べてみると、mt-config.cgiのデバッグモードというものを見つけたので試してみるとプラグインに「MT::Template::Context-&gt;add_tagはRegistryの...」というエラーを見つけました。

が、デバッグモードにするとエラーとして表示されるもので、あまり深刻なエラーではありませんでした。。

なので...
デバッグモードを試したい時は、DebugMode 1
それ以外は、DebugMode 0
にしておく事にしました。


で、肝心の再構築エラーですが、mt-config.cgiに...
EntriesPerRebuild 10

の1行を追加（10個ずつ再構築するというものみたいです）
この数を減らす事によって再構築のタイムアウトエラーを回避する事ができます。
      
   </content>
</entry>

<entry>
   <title>ie6の画像にできてしまうマージン</title>
   <link rel="alternate" type="text/html" href="http://www.self-hate.com/column/2010/05/ie6.php" />
   <id>tag:www.self-hate.com,2010:/column//3.473</id>
   
   <published>2010-05-24T07:51:27Z</published>
   <updated>2010-05-24T07:58:24Z</updated>
   
   <summary>imgにvertical-align:bottom;を設定すると回避できる。 そ...</summary>
   <author>
      <name></name>
      
   </author>
   
      <category term="CSS" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://www.self-hate.com/column/">
      imgにvertical-align:bottom;を設定すると回避できる。


その他背景やボトムに画像を置く場合、そのdivにfont-size:0pxを記述すると回避する事ができる。


原因は、フォントサイズよりも、heightのサイズの方が小さい為、
フォントサイズの縦幅が優先されてしまう為に起こるそうです。
      
   </content>
</entry>

<entry>
   <title>キャレットブラウズモード</title>
   <link rel="alternate" type="text/html" href="http://www.self-hate.com/column/2010/04/post_12.php" />
   <id>tag:www.self-hate.com,2010:/column//3.471</id>
   
   <published>2010-04-10T04:30:51Z</published>
   <updated>2010-04-10T04:50:54Z</updated>
   
   <summary>普段FireFoxをデフォルトで使用していますが、ページ内のカーソルが気になって...</summary>
   <author>
      <name></name>
      
   </author>
   
      <category term="その他" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://www.self-hate.com/column/">
      普段FireFoxをデフォルトで使用していますが、ページ内のカーソルが気になって調べてみた所、テキストの範囲選択をしやすくするキャレットブラウズモードという、[F7]キーでon/offできる機能があったので覚え書きに。
      
   </content>
</entry>

<entry>
   <title>php5によるinclude</title>
   <link rel="alternate" type="text/html" href="http://www.self-hate.com/column/2010/02/php5include.php" />
   <id>tag:www.self-hate.com,2010:/column//3.465</id>
   
   <published>2010-02-19T18:02:14Z</published>
   <updated>2010-02-19T18:17:58Z</updated>
   
   <summary>ロリポップのサーバーのphpが4→5に変更されるという事で、 バージョンを上げて...</summary>
   <author>
      <name></name>
      
   </author>
   
      <category term="Movable Type" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://www.self-hate.com/column/">
      <![CDATA[ロリポップのサーバーのphpが4→5に変更されるという事で、
バージョンを上げてみたところ、phpをincludeしていた部分がエラーになってしまった。
なので、覚え書きに...

ロリポップの場合はallow_url_includeが許可されていないため、
includeの中身をフルパスにしたら大丈夫でした。


&lt;?php include ("/home/sites/lolipop.jp/users/lolipop.jp-dp36ｘｘｘｘｘｘｘ0/web/ｘｘｘｘｘ.html"); ?&gt;]]>
      
   </content>
</entry>

<entry>
   <title>ショット数の確認</title>
   <link rel="alternate" type="text/html" href="http://www.self-hate.com/column/2009/10/post_10.php" />
   <id>tag:www.self-hate.com,2009:/column//3.452</id>
   
   <published>2009-10-07T16:13:04Z</published>
   <updated>2009-10-07T16:13:29Z</updated>
   
   <summary>最近、購入したK20Dの累計ショット数を確認したく色々調べてみると、exifデー...</summary>
   <author>
      <name></name>
      
   </author>
   
      <category term="その他" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://www.self-hate.com/column/">
      最近、購入したK20Dの累計ショット数を確認したく色々調べてみると、exifデータに撮影情報が表示されるそうで、macで手軽に調べられるソフトがあったので覚え書きまでに。


-----------------------------------------------------------
GraphicConverter X for Intel-Macs &amp;
PowerPC-Macs 6.4 (20090217)
http://lemkesoft.com/xd/public/content/index._cGlkPTE5Mw_.html

このドイツ製のソフト（シェアウェア）は約200種類の画像フォーマットが読み込み可能で、約80種類の画像フォーマットに書き出し可能です。

GraphicConverterでExifデータを表示させると非常に詳細な情報が表示されますが、その一覧の中にTotal Number of Shutter Releases for Camera : 17457

のように総撮影枚数情報も表示されています。RAWでもJPEGでもTIFFでもExif情報があるファイルならば大丈夫です。
-----------------------------------------------------------


-----------------------------------------------------------
os10.5〜を使っている場合、写真をプレビューで開き、&quot;メニューのツール&gt;インスペクタ&gt;EXIF&quot;とたどります。&quot;Image Number&quot;と表示されている数字が総シャッター回数になります。
-----------------------------------------------------------
      
   </content>
</entry>

<entry>
   <title>googleMapの文字コードの解釈？</title>
   <link rel="alternate" type="text/html" href="http://www.self-hate.com/column/2009/09/googlemap.php" />
   <id>tag:www.self-hate.com,2009:/column//3.441</id>
   
   <published>2009-09-15T05:39:59Z</published>
   <updated>2009-09-15T05:47:11Z</updated>
   
   <summary>googleMapをIEで表示した時に「Gmapが宣言されていません」とエラーが...</summary>
   <author>
      <name></name>
      
   </author>
   
      <category term="その他" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://www.self-hate.com/column/">
      <![CDATA[googleMapをIEで表示した時に「Gmapが宣言されていません」とエラーが出る場合、
&lt;script src="http://maps.google.com/maps?file=api&v=1&key=....." type="text/javascript" <font color="#FF0000"> charset="utf-8"</font>&gt;&lt;/script&gt;
の赤文字を追加すると解消されます。]]>
      
   </content>
</entry>

<entry>
   <title>Movable Typeサイト内検索エラー</title>
   <link rel="alternate" type="text/html" href="http://www.self-hate.com/column/2009/09/movable_type_1.php" />
   <id>tag:www.self-hate.com,2009:/column//3.440</id>
   
   <published>2009-09-10T05:51:16Z</published>
   <updated>2010-09-11T02:50:27Z</updated>
   
   <summary>movabletypeで検索すると「連続した検索を抑制しています...」といった...</summary>
   <author>
      <name></name>
      
   </author>
   
      <category term="Movable Type" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://www.self-hate.com/column/">
      <![CDATA[movabletypeで検索すると「連続した検索を抑制しています...」といったエラーが表示される場合があります。


調べてみると、movabletype側の設定で連続した検索実行を抑止しているそうです。
デフォルトの抑止時間は20秒で設定されていますので、検索してから20秒以内に再検索を実行すると（2ページ目をクリックした時など）上記のメッセージが表示される事があります。


これを回避するにはmt-config.cgi に...
<font color="#FF0000">ThrottleSeconds 10</font>


を追加して（数字は検索してから10秒以内に再検索するとエラーになるという設定）連続実行抑止時間を短縮して設定してやると回避できます。]]>
      
   </content>
</entry>

<entry>
   <title>複数ブログを検索対象にする</title>
   <link rel="alternate" type="text/html" href="http://www.self-hate.com/column/2009/09/post_11.php" />
   <id>tag:www.self-hate.com,2009:/column//3.439</id>
   
   <published>2009-09-04T11:20:59Z</published>
   <updated>2009-09-04T11:59:40Z</updated>
   
   <summary>同じドメイン内のmovabletypeで複数のブログを1つのサイトとして構築する...</summary>
   <author>
      <name></name>
      
   </author>
   
      <category term="Movable Type" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://www.self-hate.com/column/">
      <![CDATA[同じドメイン内のmovabletypeで複数のブログを1つのサイトとして構築するCMSサイトに検索窓を付ける場合、しかも検索対象を複数のブログにしたい場合...


&lt;input type="hidden" name="IncludeBlogs" value="<font color="#FF0000"><$MTBlogURL$></font>" /&gt;の赤文字へ各ブログのIDをカンマで区切って表記するだけで表示されます。




この場合、検索結果のテンプレートはアプリケーションディレクトリの下に、search_templates ディレクトリがあるので、このディレクトリ内の default.tmpl ファイルをカスタマイズします。]]>
      
   </content>
</entry>

<entry>
   <title>MTArchiveListHeader</title>
   <link rel="alternate" type="text/html" href="http://www.self-hate.com/column/2009/08/mtarchivelistheader.php" />
   <id>tag:www.self-hate.com,2009:/column//3.437</id>
   
   <published>2009-08-28T11:05:00Z</published>
   <updated>2009-09-04T12:08:43Z</updated>
   
   <summary>movabletype4.0から、中ページでも月別カテゴリを全て表示させたい場合...</summary>
   <author>
      <name></name>
      
   </author>
   
      <category term="Movable Type" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://www.self-hate.com/column/">
      <![CDATA[movabletype4.0から、中ページでも月別カテゴリを全て表示させたい場合、&lt;MTArchiveListHeader&gt;を利用する事で回避できるようです。 


&lt;MTArchiveList archive_type="Monthly"&gt;
&lt;u&gt;&lt;MTArchiveListHeader&gt;&lt;/u&gt;
&lt;ul&gt;
&lt;u&gt;&lt;/MTArchiveListHeader&gt;&lt;/u&gt;
&lt;li&gt;&lt;a href="&lt;$MTArchiveLink$&gt;"&gt;&lt;$MTArchiveTitle$&gt; [&lt;$MTArchiveCount$&gt;]&lt;/a&gt;&lt;/li&gt;
&lt;/MTArchiveList&gt;
&lt;/ul&gt;

のように追加。]]>
      
   </content>
</entry>

<entry>
   <title>text-align × margin:auto</title>
   <link rel="alternate" type="text/html" href="http://www.self-hate.com/column/2009/03/textalign_marginauto.php" />
   <id>tag:www.self-hate.com,2009:/column02//3.431</id>
   
   <published>2009-03-06T08:44:31Z</published>
   <updated>2009-08-21T09:43:41Z</updated>
   
   <summary>Win IE6ではtext-alignの勝ちでした。 例えば… #contain...</summary>
   <author>
      <name></name>
      
   </author>
   
      <category term="CSS" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://www.self-hate.com/column/">
      Win IE6ではtext-alignの勝ちでした。

例えば…
#containerにtext-align-leftを記述して（width:900px）その中に、左右のmarginをautoと記述した#wrap（width:860px）を入れ子にすると、ぴったり左に寄っちゃいます。

ふと気付いたので。
      
   </content>
</entry>

</feed>

