<?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>Tipset &#187; Tips</title>
	<atom:link href="http://hasumi.info/~h2/tag/tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://hasumi.info/~h2</link>
	<description>MacやiPhone/iPod Touch関連のTipsを書くハズが発散してるページ</description>
	<lastBuildDate>Wed, 04 Jan 2012 14:23:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>MBRのおさらい</title>
		<link>http://hasumi.info/~h2/2009/11/02/mbr%e3%81%ae%e3%81%8a%e3%81%95%e3%82%89%e3%81%84/</link>
		<comments>http://hasumi.info/~h2/2009/11/02/mbr%e3%81%ae%e3%81%8a%e3%81%95%e3%82%89%e3%81%84/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 14:27:23 +0000</pubDate>
		<dc:creator>p0n</dc:creator>
				<category><![CDATA[PC]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://hasumi.info/~h2/?p=1371</guid>
		<description><![CDATA[先日お亡くなりになったMacBookのHDD
データがなくなったのは仕方ないが，なんとか活用できないものか？
Intel Macは既にEFIを利用していて，パーティションテーブルにはGPTを採用している
そして，Wiki [...]]]></description>
			<content:encoded><![CDATA[<p>先日お亡くなりになったMacBookのHDD<br />
データがなくなったのは仕方ないが，なんとか活用できないものか？</p>
<p>Intel Macは既にEFIを利用していて，パーティションテーブルにはGPTを採用している<br />
そして，Wikipediaによると<a href="http://ja.wikipedia.org/wiki/GUIDパーティションテーブル">GPT</a>はディスクの後方にもGPTヘッダーとパーティションテーブルを備えているらしい</p>
<p>互換性を保つためGPTではLBA0にMBRが存在するらしく，ディスク全体がひとつのパーティションであるように見えるらしいが，問題のHDDのLBA0には欠損があるようで読み取れなかった</p>
<p>ということで，このHDDを利用して，勉強がてらパーティション情報を復活させてみようと思う</p>
<p>その前に確認の意味も込めてMBRのおさらいをしてみる</p>
<p>実験台にされたのはUbuntu 9.04 (64bit) メインのLinuxマシン<br />
こいつはソフトウェアRAIDを組んでるマシンだが今回は片方のディスクを対象にする</p>
<p>このディスクの情報は下記の通り</p>
<pre class="brush: text;">
% sudo sfdisk -l /dev/sda

ディスク /dev/sda: シリンダ数 60801、ヘッド数 255、63 セクタ/トラック
ユニット = 8225280 バイトのシリンダ、1024 バイトのブロック、0 から数えます

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sda1   *      0+      7       8-     64228+  fd  Linux raid 自動検出
/dev/sda2          8    1831    1824   14651280   fd  Linux raid 自動検出
/dev/sda3       1832   56783   54952  441401940    5  拡張領域
/dev/sda4          0       -       0          0    0  空
/dev/sda5       1832+  56540   54709- 439450011   fd  Linux raid 自動検出
/dev/sda6      56541+  56783     243-   1951866   82  Linux スワップ / Solaris
</pre>
<p>まず，MBRを取り出してやる<br />
MBRはHDDのCHSだとC:0 H:0 S:1，LBAだと0から512バイトの領域なので</p>
<pre class="brush: text;">
% sudo dd if=/dev/sda of=mbr bs=512 count=1
</pre>
<p>取り出したMBRをダンプしてやる<br />
zオプションを使ってることから明らかなように作業はLinuxでやってます</p>
<pre class="brush: text;">
$ od -tx1z -Ax mbr
・・・
0001b0 00 00 00 00 00 00 00 00 18 cd 01 00 00 00 80 01  &gt;................&lt;
0001c0 01 00 fd fe 3f 07 3f 00 00 00 c9 f5 01 00 00 00  &gt;....?.?.........&lt;
0001d0 01 08 fd fe ff ff 08 f6 01 00 20 1f bf 01 00 fe  &gt;.......... .....&lt;
0001e0 ff ff 05 fe ff ff 28 15 c1 01 a8 84 9e 34 00 00  &gt;......(......4..&lt;
0001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa  &gt;..............U.&lt;
000200
</pre>
<p>MBRの大半はIPLで占められていて，先頭から446バイト後方にパーティションテーブルが，さらに64バイト後方に2バイトのシグネチャ (0xAA55) がある</p>
<p>ダンプ結果を見ると確かにシグネチャ 0xAA55が確認できる<br />
（リトルエンディアンな点に注意）</p>
<p>0&#215;0001b8-0&#215;0001bbの4バイトには，ディスクIDも確認できる</p>
<p>ダンプデータから，パーティションテーブルの情報を抜き出して見る<br />
パーティションテーブルには4つのエントリがあり，各エントリの構成は先頭から順に，次のようになっている</p>
<ul>
<li>ブートフラグ (8bits)</li>
<li>開始位置 (CHS) (24bits)</li>
<li>パーティションタイプ (8bits)</li>
<li>終了位置 (CHS) (24bits)</li>
<li>開始位置 (LBA) (32bits)</li>
<li>セクタ数 (LBA) (32bits)</li>
</ul>
<p>また，CHS形式の値は先頭から順に，次のようになっている</p>
<ul>
<li>Head (8bits)</li>
<li>Cylinder上位 (2bits)</li>
<li>Sector (6bits)</li>
<li>Cylinder下位 (8bits)</li>
</ul>
<p>従ってパーティションの情報は次の通り</p>
<table border=0 cellpadding=2 cellspacing=2>
<tr>
<td bgcolor="#bbbbff" >Partition</td>
<td bgcolor="#bbbbff" >Boot Flag</td>
<td bgcolor="#bbbbff" >Partition Type</td>
<td bgcolor="#bbbbff" >Start (CHS)</td>
<td bgcolor="#bbbbff" >End (CHS)</td>
<td bgcolor="#bbbbff" >Start (LBA)</td>
<td bgcolor="#bbbbff" >Sector Counts</td>
</tr>
<tr>
<td bgcolor="#ddddff" >1</td>
<td bgcolor="#ddddff" >80h</td>
<td bgcolor="#ddddff" >FDh</td>
<td bgcolor="#ddddff" >C:0 H:1 S:1</td>
<td bgcolor="#ddddff" >C:7 H:254 S:63</td>
<td bgcolor="#ddddff" >63</td>
<td bgcolor="#ddddff" >128457</td>
</tr>
<tr>
<td bgcolor="#ddddff" >2</td>
<td bgcolor="#ddddff" >0h</td>
<td bgcolor="#ddddff" >FDh</td>
<td bgcolor="#ddddff" >C:8 H:0 S:1</td>
<td bgcolor="#ddddff" >C:1023 H:254 S:63</td>
<td bgcolor="#ddddff" >128520</td>
<td bgcolor="#ddddff" >29302560</td>
</tr>
<tr>
<td bgcolor="#ddddff" >3</td>
<td bgcolor="#ddddff" >0h</td>
<td bgcolor="#ddddff" >05h</td>
<td bgcolor="#ddddff" >C:1023 H:254 S:63</td>
<td bgcolor="#ddddff" >C:1023 H:254 S:63</td>
<td bgcolor="#ddddff" >29431080</td>
<td bgcolor="#ddddff" >882803880</td>
</tr>
<tr>
<td bgcolor="#ddddff" >4</td>
<td bgcolor="#ddddff" >0h</td>
<td bgcolor="#ddddff" >0h</td>
<td bgcolor="#ddddff" >C:0 H:0 S:0</td>
<td bgcolor="#ddddff" >C:0 H:0 S:0</td>
<td bgcolor="#ddddff" >0</td>
<td bgcolor="#ddddff" >0</td>
</tr>
</table>
<p>基本パーティションと拡張パーティションをあわせて3つしかないので4番目のエントリは0で埋められている</p>
<p>ブートフラグを見ると第1パーティションにブート可能を示す80hが格納されており，他のパーティションには0hが格納されている</p>
<p>BIOSによってMBRが0&#215;7C00にロードされると，IPLはブートフラグが80hになっているパーティションを探す</p>
<p>古いBIOSでは，パーティションテーブルの先頭から順に1バイトずつ，DL, DH, CL, CHレジスタに格納される<br />
つまり，DLレジスタでこの80hをドライブナンバー，DHでヘッド数，CHでシリンダ数の下位8ビット，CLの第7-8ビットでシリンダ数の上位2ビットを指定してINT 13hをコールすることで，パーティションテーブルのブートレコードが読み込まれる</p>
<p>拡張INT 13hでは，CHSではなくLBAを利用する</p>
<p>ちなみに，GRUBなどはIPLを書き換えて独自のブートプロセスをとるため，この限りではない</p>
<p>CHS方式では1024個のシリンダしか扱えないので，最近の大容量のHDDではCHSによるジオメトリではなくリニアなLBAを使用するが，CHSのエントリとしては1023/254/63が格納されている</p>
<p>sfdiskの結果をみると，H:254 S:63は固定で，シリンダの値としてディスク容量から算出された1024より大きな値が表示されている</p>
<p>パーティションはシリンダの境界から始めるのがルールだが，第1パーティションだけは例外でMBRの次のヘッダである C:0 H:1 S:1から始まる</p>
<p>LBAの開始アドレスとそのパーティションのセクタ数を足してみると，次のパーティションの開始アドレスになっており，リニアにアドレスが振られていることが分かる</p>
<p>パーティションタイプは，FDhがLinuxのソフトウェアRAID，05hが拡張領域．他にもNTFSなら0&#215;07とかになる</p>
<p>続いて，CHSとLBAの変換方法はHDDの基本的な構造から考えれば自明</p>
<p><strong>CHS->LBA</strong><br />
　LBA = C * 1トラックのセクタ数 * ヘッド数 + H * 1トラックのセクタ数 + S &#8211; 1<br />
　　　 = (C * ヘッド数 + H) * 1トラックのセクタ数 + S &#8211; 1<br />
<strong>LBA->CHS</strong><br />
　C = LBA / 1トラックのセクタ数 / ヘッド数<br />
　H = (LBA / 1トラックのセクタ数) % ヘッド数<br />
　S = LBA % 1トラックのセクタ数 + 1</p>
<p>計算してみると分かるが，LBAから算出した値はsfdiskの表示する1024を超えたシリンダ番号と一致する</p>
]]></content:encoded>
			<wfw:commentRss>http://hasumi.info/~h2/2009/11/02/mbr%e3%81%ae%e3%81%8a%e3%81%95%e3%82%89%e3%81%84/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone/iPod Touchとの同期（カレンダー編）</title>
		<link>http://hasumi.info/~h2/2009/07/08/iphoneipod-touch%e3%81%a8%e3%81%ae%e5%90%8c%e6%9c%9f%ef%bc%88%e3%82%ab%e3%83%ac%e3%83%b3%e3%83%80%e3%83%bc%e7%b7%a8%ef%bc%89/</link>
		<comments>http://hasumi.info/~h2/2009/07/08/iphoneipod-touch%e3%81%a8%e3%81%ae%e5%90%8c%e6%9c%9f%ef%bc%88%e3%82%ab%e3%83%ac%e3%83%b3%e3%83%80%e3%83%bc%e7%b7%a8%ef%bc%89/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 17:46:41 +0000</pubDate>
		<dc:creator>p0n</dc:creator>
				<category><![CDATA[ガジェット]]></category>
		<category><![CDATA[iPhone/iPodTouch]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://hasumi.info/~h2/?p=858</guid>
		<description><![CDATA[最近マジメにiPod Touchを使うことが多くなってきたので，カレンダーとか連絡先とかの同期を考えてみた
これまでだと毎週のようにファーム入れ替えたり復元したりしてたので，あまりそういう用途で使うことは考えてなかったｗ [...]]]></description>
			<content:encoded><![CDATA[<p>最近マジメにiPod Touchを使うことが多くなってきたので，カレンダーとか連絡先とかの同期を考えてみた<br />
これまでだと毎週のようにファーム入れ替えたり復元したりしてたので，あまりそういう用途で使うことは考えてなかったｗ</p>
<p>そろそろiPhoneも買おうと思うが，今使ってる機種（スパボ一括で支払い済み）の月々割引分がまだ1.5万近く残ってる<br />
しっかし機種変したら本来の割引分は返ってこないなんて，ある意味詐欺のような契約やな<br />
頻繁に機種変してもらった方がソフトバンク的にも儲かりそうな気がするんだが・・・</p>
<p>iPhoneやiPod Touchで同期と言えばAppleサマのMobileMe<br />
iPhoneユーザならiPhoneを探す「Find My iPhone」はともかく，リモートワイプはある意味必須なツールな気がするので入ってもいいけどなぁ〜20GBのiDiskもウレシイし<br />
問題はあの微妙な価格設定<br />
せめて年間4980円なら即加入なんだが・・・</p>
<p>ということで前置きが長くなったが，しばらくはケチくさい方法でやってみる</p>
<p>実は以前カレンダーの同期を試したことがあって，<a href="http://www.nuevasync.com/">NuevaSync</a>というサービスを使っていた<br />
しばらく使ってなかったが，前々からアナウンスしていたCalDAVとMailのプッシュにまだ対応してないらしい</p>
<p>どうやらGoogle SyncでiPhone/iPod Touchと同期できるらしいので，設定してみる<br />
第三者にパスなどを教えなくてよいのも精神衛生上よい感じだ<br />
もうNeuvaを使わないなら，Googleアカウントに行って，認証済みのウェブサイトを変更からNeuvaを消しておくと安心だ</p>
<p>設定は簡単で，iPhone/iPod Touchの設定からExchangeのアカウントを追加するだけ</p>
<p>Google Syncにわかりやすい<a href="http://www.google.com/support/mobile/bin/answer.py?topic=14252&#038;answer=138740&#038;&#038;hl=en">チュートリアル</a>がある</p>
<p>でも，上記だけだとカレンダーは１つしか同期されない<br />
複数のカレンダーを同期させる場合は，Mobile Safariで<a href="http://m.google.com/sync/">http://m.google.com/sync/</a>にアクセスして設定してやればいい</p>
<p>自分はCalaborationを使ってiCalとGoogle Calendarを同期しているので，iCalから予定を追加するとものの数秒でiPod Touchに追加された<br />
逆にiPod Touchから追加した場合は，Google Calendarにはスグに反映される<br />
iCalに反映されるまでのラグは，iCalの更新間隔の設定で変えられる</p>
<p>Google SynchはまだMailのプッシュに対応してなかったので，iPodの設定でメールの同期はオフにしておく</p>
<p>連絡先の同期は一応やってみたが，動くには動くけどって感じ<br />
グループの扱いがイマイチだったのと，Googleのコンタクトリストとアドレスブックの同期がかなり微妙なので，オフにしてます</p>
]]></content:encoded>
			<wfw:commentRss>http://hasumi.info/~h2/2009/07/08/iphoneipod-touch%e3%81%a8%e3%81%ae%e5%90%8c%e6%9c%9f%ef%bc%88%e3%82%ab%e3%83%ac%e3%83%b3%e3%83%80%e3%83%bc%e7%b7%a8%ef%bc%89/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac OS X 10.5 (Leopard) でホームディレクトリを移動する</title>
		<link>http://hasumi.info/~h2/2008/11/27/mac-os-x-105-leopard-%e3%81%a7%e3%83%9b%e3%83%bc%e3%83%a0%e3%83%87%e3%82%a3%e3%83%ac%e3%82%af%e3%83%88%e3%83%aa%e3%82%92%e7%a7%bb%e5%8b%95%e3%81%99%e3%82%8b/</link>
		<comments>http://hasumi.info/~h2/2008/11/27/mac-os-x-105-leopard-%e3%81%a7%e3%83%9b%e3%83%bc%e3%83%a0%e3%83%87%e3%82%a3%e3%83%ac%e3%82%af%e3%83%88%e3%83%aa%e3%82%92%e7%a7%bb%e5%8b%95%e3%81%99%e3%82%8b/#comments</comments>
		<pubDate>Wed, 26 Nov 2008 18:20:18 +0000</pubDate>
		<dc:creator>p0n</dc:creator>
				<category><![CDATA[PC]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://hasumi.info/~h2/?p=538</guid>
		<description><![CDATA[一般的にUNIX系OSではホームディレクトリには /（ルート）をマウントするパーティションとは別のパーティションを割り当てる
いろいろメリットがあるけど，パーティションを分けておけば，システムを再インストールするときにデ [...]]]></description>
			<content:encoded><![CDATA[<p>一般的にUNIX系OSではホームディレクトリには /（ルート）をマウントするパーティションとは別のパーティションを割り当てる</p>
<p>いろいろメリットがあるけど，パーティションを分けておけば，システムを再インストールするときにデータの復元が必要ないのでラクになる</p>
<p>Leopardはインストール時にホームディレクトリのマウント場所を指定できない<br />
でも，そこはUNIX 03認定を受けたUNIX OSなのでfstabを書き換えればOKなハズ！！<br />
と思っていたが，Leopard流のお作法があるようなのでまとめておく</p>
<p>Windowsでいうマイドキュメントの移動のような感じだが，個人的にはfstabでマウントポイントを変える方が素直で好き<br />
ちょっとググった感じでは，やはりfstabの書き換えでも問題なく動く模様</p>
<p>以下は，h2というユーザのホームを /Volumes/Home/h2 に移す例</p>
<ol>
<li>ホームディレクトリを移動先にコピー</li>
<p><code>$ sudo ditto -v -rsrcFork /Users/h2 /Volumes/Home/h2</code></p>
<li>「システム環境設定」の「アカウント」を開いて，左下のカギをクリックしてロックを解除</li>
<li>ホームを移動したいユーザのアカウントを右クリックすると「詳細オプション」が表示されるのでクリック</li>
<li>「ホームディレクトリ」の欄を変更</li>
<li>ログアウトして再度ログイン</li>
<li>移動前のホームディレクトリを名前を変えて待避</li>
<p><code>$ cd /Users</code><br />
<code>$ sudo mv h2 h2.org</code></p>
<li>移動先にリンクをはっておく（絶対パス対策）</li>
<p><code>$ sudo ln -s /Volumes/Home/h2 h2</code></p>
<li>待避したホームディレクトリを削除（そんなに大きくないなら残しといたほうがイイかも）</li>
<p><code>$ sudo rm -rf h2.org</code></ol>
<p>Mac OS Xはスワップ専用のパーティションを作らない<br />
HFSは断片化しにくいそうだが，長く使えばスワップのせいで結構断片化してそうな気がする<br />
そういう意味でも，パーティション分割はよい選択肢だと思う</p>
]]></content:encoded>
			<wfw:commentRss>http://hasumi.info/~h2/2008/11/27/mac-os-x-105-leopard-%e3%81%a7%e3%83%9b%e3%83%bc%e3%83%a0%e3%83%87%e3%82%a3%e3%83%ac%e3%82%af%e3%83%88%e3%83%aa%e3%82%92%e7%a7%bb%e5%8b%95%e3%81%99%e3%82%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 8.10でATOK X3のセットアップにちょっとハマる</title>
		<link>http://hasumi.info/~h2/2008/11/12/ubuntu-810%e3%81%a7atok-x3%e3%81%ae%e3%82%bb%e3%83%83%e3%83%88%e3%82%a2%e3%83%83%e3%83%97%e3%81%ab%e3%81%a1%e3%82%87%e3%81%a3%e3%81%a8%e3%83%8f%e3%83%9e%e3%82%8b/</link>
		<comments>http://hasumi.info/~h2/2008/11/12/ubuntu-810%e3%81%a7atok-x3%e3%81%ae%e3%82%bb%e3%83%83%e3%83%88%e3%82%a2%e3%83%83%e3%83%97%e3%81%ab%e3%81%a1%e3%82%87%e3%81%a3%e3%81%a8%e3%83%8f%e3%83%9e%e3%82%8b/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 00:34:21 +0000</pubDate>
		<dc:creator>p0n</dc:creator>
				<category><![CDATA[PC]]></category>
		<category><![CDATA[ATOK]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://hasumi.info/~h2/?p=498</guid>
		<description><![CDATA[OSのセットアップの次は，なにはともあれATOK
サポートサイトに従ってインストールしようとしたものの，キー配列の設定がおかしい
インストーラスクリプト setipatok_deb.sh のアンダースコア &#8220; [...]]]></description>
			<content:encoded><![CDATA[<p>OSのセットアップの次は，なにはともあれATOK</p>
<p><a title="ATOK Support" href="http://support.justsystems.com/faq/1032/app/servlet/qadoc?QID=042708">サポートサイト</a>に従ってインストールしようとしたものの，キー配列の設定がおかしい<br />
インストーラスクリプト setipatok_deb.sh のアンダースコア &#8220;_&#8221; が入力できない・・・</p>
<p>Shift+2でダブルクオートがでるし，やたらとハイフンを入力できるキーがあるｗ<br />
インストール時からHHK Pro（ASCII配列）しかつないでないのになんでやろ？<br />
まさかJapanese Teamのリポジトリを追加したから？</p>
<p>ともかく，CDなので不要なファイルを消すわけにもいかない<br />
インストールスクリプトにリンクを張って回避した</p>
<p>次ラクをするためにメモしとく</p>
<ol>
<li>CDをマウント（以下，マウント先は /media/cdrom とする）</li>
<li>インストールスクリプトへのシンボリックリンクを作成</li>
<p><code>$ ln -s /media/cdrom/setupatok_deb.sh ~/hoge</code></p>
<li>アップデートモジュールをDLして展開（以下，展開先は ~/atokx3up1 とする）</li>
<li>タブ補完で入力できるように setupatok_up1_deb.sh 以外のインストールスクリプトは削除しておく</li>
<li>全員ログアウト</li>
<li>仮想端末に切り替え</li>
<li>Ubuntuはデフォルトではrootでのログインを許可してないので，sudoできるユーザでログイン</li>
<li>文字化け対策</li>
<p><code>$ export LANG=C</code></p>
<li>/etc/gtk-2.0/gtk.immodules を作成</li>
<p><code>$ sudo touch /etc/gtk-2.0/gtk.immodules</code></p>
<li>インストールスクリプトを実行</li>
<p><code>$ sudo bash ~/hoge</code></p>
<li>CDのマウント先を聞かれるので適当に入力</li>
<li>アップデートモジュールをインストール</li>
<p><code>$ sudo bash ~/atokx3up1/setupatok_up1_deb.sh</code></p>
<li>起動設定を行う（設定用のスクリプトは全て setting_* という名前なのでアンスコが入力できなくても大丈夫）</li>
<p><code>$ sudo bash /opt/atokx3/sample/setting_debian4.sh</code></p>
<li>ログアウトし，端末を切り替えてXにログイン</li>
</ol>
<p>ウィンドウの左下にでるうっとうしいステータス表示が気にならない人は，ここで終了<br />
自分は気になって仕方がないので，抹殺</p>
<p>消すためのツール <a title="iiimf_status_hide" href="http://support.justsystems.com/faq/1032/app/servlet/qadoc?QID=037494">iiimf_status_hide</a> はJustSystemsから提供されている</p>
<p>設定方法は以下の通り</p>
<ol>
<li>DLして展開</li>
<li>適当な場所にコピー（以下，/opt/atokx3/sample 内にコピーしたとする）</li>
<li>実行権限をつける</li>
<li>ログイン時に毎回実行する必要があるので，/etc/X11/xinit/xinput.d/iiimf に次の1行を追加</li>
<p><code>/opt/atokx3/sample/iiimf_status_hide</code></ol>
<p>自分はMacPortsのクセでパスを間違えて，/opt/local/atokx3/&#8230; にしてたんで動かず悩んだ</p>
<p>「環境によっては動作しないこともあるので，自分でビルドしてね」に従って，ビルドしてしまった・・・ <br />
ビルドには build-essential と libgtk2.0-dev がいるので，自分でやる人はaptで入れましょう</p>
]]></content:encoded>
			<wfw:commentRss>http://hasumi.info/~h2/2008/11/12/ubuntu-810%e3%81%a7atok-x3%e3%81%ae%e3%82%bb%e3%83%83%e3%83%88%e3%82%a2%e3%83%83%e3%83%97%e3%81%ab%e3%81%a1%e3%82%87%e3%81%a3%e3%81%a8%e3%83%8f%e3%83%9e%e3%82%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 8.10 Alternate CDでインストールがうまくいかない</title>
		<link>http://hasumi.info/~h2/2008/11/11/ubuntu-810-alternate-cd%e3%81%a7%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%8c%e3%81%86%e3%81%be%e3%81%8f%e3%81%84%e3%81%8b%e3%81%aa%e3%81%84/</link>
		<comments>http://hasumi.info/~h2/2008/11/11/ubuntu-810-alternate-cd%e3%81%a7%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%8c%e3%81%86%e3%81%be%e3%81%8f%e3%81%84%e3%81%8b%e3%81%aa%e3%81%84/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 13:03:50 +0000</pubDate>
		<dc:creator>p0n</dc:creator>
				<category><![CDATA[PC]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://hasumi.info/~h2/?p=491</guid>
		<description><![CDATA[7.04を超不安定にしてしまったので，8.10をクリーンインストールしてみた
Software RAIDを組んでいるのでインストールにはAlternate CDを使うことになる
いつも通りインストールを進めていたところ・ [...]]]></description>
			<content:encoded><![CDATA[<p>7.04を超不安定にしてしまったので，8.10をクリーンインストールしてみた</p>
<p>Software RAIDを組んでいるのでインストールにはAlternate CDを使うことになる</p>
<p>いつも通りインストールを進めていたところ・・・<br />
ベースシステムのインストールが73%になったところで，&#8221;Please insert the disc labeled: &#8216;Ubuntu 8.10 _Intrepid Ibex_ &#8211; Release i386 (20081028)&#8217; in the drive &#8216;/cdrom/&#8217; and press enter. Media change.&#8221; というポップアップが表示される</p>
<p>Desktop版のメディアを焼いて交換しよとするも，ドライブのイジェクトボタンを押しても反応がない<br />
ejectコマンドでメディアを排出するとハングして先に進めない</p>
<p><a title="Ubuntu Forum" href="http://ubuntuforums.org/showthread.php?t=964200">Ubuntu Forum</a>でも報告されているが，CDを4倍速以下で焼いたらうまくいったとか，ドライブを変えたらうまくいったとか要領を得ない</p>
<p>自分はCDを4倍速で焼き直してもだめだったが，外付けのUSBドライブを使ったらウマくいった<br />
インストーラーの開始時に，USBデバイスのマッピングができないとかエラーが表示されていたが，特に問題いようなのでほっておくことにする</p>
<p>ドライブ変えてもだめなら，RAIDをフェイルさせてあとからミラーするのがベストかな？</p>
]]></content:encoded>
			<wfw:commentRss>http://hasumi.info/~h2/2008/11/11/ubuntu-810-alternate-cd%e3%81%a7%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%8c%e3%81%86%e3%81%be%e3%81%8f%e3%81%84%e3%81%8b%e3%81%aa%e3%81%84/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>軽量Lightbox風プラグインをタグ付け不要に</title>
		<link>http://hasumi.info/~h2/2008/11/09/%e8%bb%bd%e9%87%8flightbox%e9%a2%a8%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%82%92%e3%82%bf%e3%82%b0%e4%bb%98%e3%81%91%e4%b8%8d%e8%a6%81%e3%81%ab/</link>
		<comments>http://hasumi.info/~h2/2008/11/09/%e8%bb%bd%e9%87%8flightbox%e9%a2%a8%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%82%92%e3%82%bf%e3%82%b0%e4%bb%98%e3%81%91%e4%b8%8d%e8%a6%81%e3%81%ab/#comments</comments>
		<pubDate>Sat, 08 Nov 2008 19:37:19 +0000</pubDate>
		<dc:creator>p0n</dc:creator>
				<category><![CDATA[PC]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://hasumi.info/~h2/?p=446</guid>
		<description><![CDATA[最近巷でよく見かけるLightbox風プラグイン
サイト移転前に使ってたLitebox plugin for Wordpressは，元祖のLightbox 2.0 for WordPressと比べると約3KBと超軽量なの [...]]]></description>
			<content:encoded><![CDATA[<p>最近巷でよく見かけるLightbox風プラグイン</p>
<p>サイト移転前に使ってた<a title="Litebox plugin for Wordpress" href="http://www.gavinbarker.co.uk/gblog/?page_id=78">Litebox plugin for Wordpress</a>は，元祖の<a title="Lightbox 2.0 for WordPress" href="http://zeo.unic.net.my/notes/lightbox2-for-wordpress/">Lightbox 2.0 for WordPress</a>と比べると約3KBと超軽量なのが気に入ってたが，いちいち<code>rel="lightbox"</code>を書くのが面倒で使わなくなってしまった</p>
<p>とはいえLightboxは便利やから欲しいし，でもコレまで書いた記事全部にタグ付けるのは面倒・・・<br />
って思ってたら，こんな<a title="Litebox/Lightboxの使い方" href="http://as-is.net/blog/archives/001203.html">サイト</a>がっ！！</p>
<p>Litebox用に自動で<code>rel="lightbox"</code>属性を付ける方法はアチコチで紹介されていて珍しくないけど，このサイトで紹介されているスタイルシートやJavaScriptの本質を見抜いたやり方は美しい（書かれたご本人もそういっている） <br />
ということで，さっそくマネさせてもらった</p>
<p>詳細はサイトで解説されているので，以下は自分用にメモ</p>
<p>まず，gblitebox/css ディレクトリの中に lightbox.custom.css という名前で下記の内容のファイルを作成</p>
<pre class="brush: css;">
#prevLink, #nextLink{
background: transparent url(/~h2/wp-content/plugins/gblitebox/images/blank.gif) no-repeat;
}
#prevLink:hover, #prevLink:visited:hover {
background: url(/~h2/wp-content/plugins/gblitebox/images/prevlabel.gif) left 15% no-repeat;
}
#nextLink:hover, #nextLink:visited:hover {
background: url(/~h2/wp-content/plugins/gblitebox/images/nextlabel.gif) right 15% no-repeat;
}
</pre>
<p>次に，gblitebox/js ディレクトリの中に litebox-1.0.custom.js という名前で下記の内容のファイルを作成 </p>
<pre class="brush: js;">
//
// オリジナルの変数をオーバーライド
//
fileLoadingImage = &quot;/~h2/wp-content/plugins/gblitebox/images/loading.gif&quot;;
fileBottomNavCloseImage = &quot;/~h2/wp-content/plugins/gblitebox/images/closelabel.gif&quot;;
//
// オリジナルのinitLightbox関数をオーバーライド
//
initLightbox = function() {
addRelLightboxAttribute('content');
myLightbox = new Lightbox();
};
//
// rel=&quot;lightbox&quot;属性をanchor要素に付加
//
addRelLightboxAttribute = function(id) {
if (!document.getElementsByTagName) { return; }
var ele;
if (id) {
ele = $(id);
if (!ele) { return; }
} else {
ele = document.body;
}
var anchors = ele.getElementsByTagName('a');
for (var i = 0; i &lt; anchors.length; i++) {
var anchor = anchors[i];
if (anchor.getAttribute('href').match(/jpg$|gif$|png$/)) {
var rel = String(anchor.getAttribute('rel'));
if (!rel.toLowerCase().match('lightbox')) {
anchor.setAttribute('rel', rel ? rel+' lightbox' : 'lightbox');
}
}
}
};
</pre>
<div>最後に，gblitebox/gblitebox_plugin.php を編集</div>
<pre class="brush: php;">
&lt;link rel=\&quot;stylesheet\&quot; href=\&quot;&quot;.$litebox_path.&quot;css/lightbox.css\&quot; type=\&quot;text/css\&quot; media=\&quot;screen\&quot; /&gt;
&lt;link rel=\&quot;stylesheet\&quot; href=\&quot;&quot;.$litebox_path.&quot;css/lightbox.custom.css\&quot; type=\&quot;text/css\&quot; media=\&quot;screen\&quot; /&gt;
・・・
&lt;script type=\&quot;text/javascript\&quot; src=\&quot;&quot;.$litebox_path.&quot;js/litebox-1.0.js\&quot;&gt;&lt;/script&gt;
&lt;script type=\&quot;text/javascript\&quot; src=\&quot;&quot;.$litebox_path.&quot;js/litebox-1.0.custom.js\&quot;&gt;&lt;/script&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://hasumi.info/~h2/2008/11/09/%e8%bb%bd%e9%87%8flightbox%e9%a2%a8%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%82%92%e3%82%bf%e3%82%b0%e4%bb%98%e3%81%91%e4%b8%8d%e8%a6%81%e3%81%ab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ホントどついてやりたい・・・</title>
		<link>http://hasumi.info/~h2/2008/10/24/%e3%83%9b%e3%83%b3%e3%83%88%e3%81%a9%e3%81%a4%e3%81%84%e3%81%a6%e3%82%84%e3%82%8a%e3%81%9f%e3%81%84%e3%83%bb%e3%83%bb%e3%83%bb/</link>
		<comments>http://hasumi.info/~h2/2008/10/24/%e3%83%9b%e3%83%b3%e3%83%88%e3%81%a9%e3%81%a4%e3%81%84%e3%81%a6%e3%82%84%e3%82%8a%e3%81%9f%e3%81%84%e3%83%bb%e3%83%bb%e3%83%bb/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 14:27:02 +0000</pubDate>
		<dc:creator>p0n</dc:creator>
				<category><![CDATA[ひとりごと]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://hasumi.info/~h2/?p=374</guid>
		<description><![CDATA[
本日，月例アップデートを待たずに急遽WindowsのセキュリティパッチMS08-067（958644）がリリースされた
早速XPに適用しようと思ったのに，「一部の更新をインストールできませんでした」
原因はメッセージを [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/abmatic/2581216994/"><img src="http://hasumi.info/~h2/wp-content/uploads/2008/10/wua.jpg" alt="knockout" title="wua" width="300" height="199" class="alignnone size-full wp-image-376" /></a></p>
<p>本日，月例アップデートを待たずに急遽Windowsのセキュリティパッチ<a href="http://www.microsoft.com/japan/technet/security/bulletin/ms08-067.mspx">MS08-067（958644）</a>がリリースされた</p>
<p>早速XPに適用しようと思ったのに，「一部の更新をインストールできませんでした」<br />
原因はメッセージをみて調べろ的なこと書いてあるけど，メッセージってゆっても「一部の更新をインストールできませんでした」だけ<br />
しかも一部じゃなくて全部やし，これじゃなんも分からんよｗ</p>
<p>色々調べて，Windows Update Agentとかいうものを再インストールすれば治った</p>
<p>セキュリティパッチを出すのも結構やけど，ちゃんと適用できるOSつくれよ<br />
使い込んだシステムならともかく，前日に新規インストールしたほぼ何もしてない状態なのに・・・</p>
]]></content:encoded>
			<wfw:commentRss>http://hasumi.info/~h2/2008/10/24/%e3%83%9b%e3%83%b3%e3%83%88%e3%81%a9%e3%81%a4%e3%81%84%e3%81%a6%e3%82%84%e3%82%8a%e3%81%9f%e3%81%84%e3%83%bb%e3%83%bb%e3%83%bb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntuでバックスラッシュ &#8220;\&#8221; が入力できない</title>
		<link>http://hasumi.info/~h2/2008/10/23/ubuntu%e3%81%a7%e3%83%90%e3%83%83%e3%82%af%e3%82%b9%e3%83%a9%e3%83%83%e3%82%b7%e3%83%a5-%e3%81%8c%e5%85%a5%e5%8a%9b%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%84/</link>
		<comments>http://hasumi.info/~h2/2008/10/23/ubuntu%e3%81%a7%e3%83%90%e3%83%83%e3%82%af%e3%82%b9%e3%83%a9%e3%83%83%e3%82%b7%e3%83%a5-%e3%81%8c%e5%85%a5%e5%8a%9b%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%84/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 11:06:32 +0000</pubDate>
		<dc:creator>p0n</dc:creator>
				<category><![CDATA[PC]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://hasumi.info/~h2/?p=371</guid>
		<description><![CDATA[
今日実験用ノートPC（Let&#8217;s note R4）にUbuntu 8.04をインストールしていて気づいたこと
自分は日本語配列（いわゆるJIS）のキーボードはたたけないが，Let&#8217;s noteは [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/spilt-milk/2689505900/"><img class="alignnone size-full wp-image-372" title="hhk" src="http://hasumi.info/~h2/wp-content/uploads/2008/10/hhk.jpg" alt="hhk" width="300" height="199" /></a></p>
<p>今日実験用ノートPC（Let&#8217;s note R4）にUbuntu 8.04をインストールしていて気づいたこと</p>
<p>自分は日本語配列（いわゆるJIS）のキーボードはたたけないが，Let&#8217;s noteは当然日本語配列<br />
なわけで，英語配列（ASCII）を選べないノートPCとかの場合は，無理矢理キーのレイアウトをUSにすることで対応している</p>
<p>今日もいつものように設定して終わりかと思いきや<br />
バックスラッシュがうっ 打てんやんけ・・・</p>
<p>対策は，キーボードの形式を&#8221;jp106&#8243;から&#8221;Apple&#8221;に，レイアウトを&#8221;USA Macintosh&#8221;にすることですｗ</p>
<p>Feistyの時はUSでいけたハズやねんけど・・・？</p>
<p>そもそも大半の人はローマ字入力やのに，なんでJISキーボードみたいなもんがいるんか分からん</p>
]]></content:encoded>
			<wfw:commentRss>http://hasumi.info/~h2/2008/10/23/ubuntu%e3%81%a7%e3%83%90%e3%83%83%e3%82%af%e3%82%b9%e3%83%a9%e3%83%83%e3%82%b7%e3%83%a5-%e3%81%8c%e5%85%a5%e5%8a%9b%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%84/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apple80211.framework</title>
		<link>http://hasumi.info/~h2/2008/10/23/apple80211framework/</link>
		<comments>http://hasumi.info/~h2/2008/10/23/apple80211framework/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 18:31:16 +0000</pubDate>
		<dc:creator>p0n</dc:creator>
				<category><![CDATA[PC]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://hasumi.info/~h2/?p=352</guid>
		<description><![CDATA[
いわゆるStumblerアプリケーションは，Mac OS用のものだけでもAirRader, KisMAC, AP Grapher, iStumbler, MacStumbler・・・と色々なものが存在するが，Mac O [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/djou/196422194/"><img src="http://hasumi.info/~h2/wp-content/uploads/2008/10/wifi-300x225.jpg" alt="" title="wifi" width="300" height="225" class="alignnone size-medium wp-image-353" /></a></p>
<p>いわゆるStumblerアプリケーションは，Mac OS用のものだけでも<a href="http://www.koingosw.com/products/airradar.php">AirRader</a>, <a href="http://kismac.de/">KisMAC</a>, <a href="http://www.chimoosoft.com/products/apgrapher/">AP Grapher</a>, <a href="http://www.istumbler.net/">iStumbler</a>, <a href="http://www.macstumbler.com/">MacStumbler</a>・・・と色々なものが存在するが，Mac OS Xに標準でインストールされているフレームワーク Apple80211 でも，同様の情報を得ることができる</p>
<p>使い方は簡単<br />
まず，フレームワークのフォルダに移動する<br />
<code><br />
$ cd /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/<br />
</code></p>
<p>各ネットワークのRSSIやセキュリティ情報を表示してみる<br />
<code><br />
$ ./airport -s</p>
<table border="0">
<tr>
<th align="right">SSID</th>
<th>BSSID</th>
<th>RSSI</th>
<th>CHANNEL</th>
<th>SECURITY (auth/unicast/group)</th>
</tr>
<th align="right">plane?????</th>
<th>00:??:??:??:23:6b</th>
<th>-91</th>
<th>1</th>
<th>WEP</th>
</tr>
<tr>
<th align="right">000A79A?????</th>
<th>00:??:??:??:22:84</th>
<th>-92</th>
<th>1</th>
<th>NONE</th>
</tr>
<tr>
<th align="right">0016018?????</th>
<th>00:??:??:??:0a:3b</th>
<th>-90</th>
<th>1</th>
<th>NONE</th>
</tr>
<tr>
<th align="right">000D0BB6A?????</th>
<th>00:??:??:??:aa:68</th>
<th>-88</th>
<th>1</th>
<th>NONE</th>
</tr>
<tr>
<th align="right">000D0B4?????</th>
<th>00:??:??:??:34:df</th>
<th>-80</th>
<th>11</th>
<th>NONE</th>
</tr>
<tr>
<th align="right">3B08901175?????</th>
<th>00:??:??:??:0c:a8</th>
<th>-90</th>
<th>11</th>
<th>WEP</th>
</tr>
<tr>
<th align="right">c2?????</th>
<th>00:??:??:??:20:f4</th>
<th>-87</th>
<th>6</th>
<th>WEP</th>
</tr>
<tr>
<th align="right">??????</th>
<th>00:??:??:??:97:a7</th>
<th>-42</th>
<th>6</th>
<th>WPA(PSK/TKIP/TKIP) WPA2(PSK/AES,TKIP/TKIP)</th>
</tr>
</table>
<p></code></p>
<p>接続中のネットワークの詳細を表示してみる<br />
<code><br />
$ ./airport -I</p>
<table border="0">
<tr>
<th align="right">agrCtlRSSI:</th>
<th>-44</th>
</tr>
<tr>
<th align="right">agrExtRSSI:</th>
<th>0</th>
</tr>
<tr>
<th align="right">agrCtlNoise:</th>
<th>-93</th>
</tr>
<tr>
<th align="right">agrExtNoise:</th>
<th>0</th>
</tr>
<tr>
<th align="right">state:</th>
<th>running</th>
</tr>
<tr>
<th align="right">op mode:</th>
<th>station</th>
</tr>
<tr>
<th align="right">lastTxRate:</th>
<th>130</th>
</tr>
<tr>
<th align="right">maxRate:</th>
<th>130</th>
</tr>
<tr>
<th align="right">lastAssocStatus:</th>
<th>0</th>
</tr>
<tr>
<th align="right">802.11 auth:</th>
<th>open</th>
</tr>
<tr>
<th align="right">link auth:</th>
<th>wpa2-psk</th>
</tr>
<tr>
<th align="right">BSSID:</th>
<th>0:??:??:??:??:a7</th>
</tr>
<tr>
<th align="right">SSID:</th>
<th>??????</th>
</tr>
<tr>
<th align="right">MCS:</th>
<th>15</th>
</tr>
<tr>
<th align="right">channel:</th>
<th>6</th>
</tr>
</table>
<p></code></p>
<p>airport コマンドのオプションは以下のコマンドで確認できる</p>
<p><code>$ ./airport -h</code></p>
<p>Stumblerツールでは，表示される電波強度値がツールごとに同じ単位でも微妙に違っていたり，そもそも単位が不明だったりする<br />
残念ながらairportコマンドもRSSIやノイズの単位は不明だ</p>
<p>ちなみに，メニューバーのWiFiのアイコンをOptionキーを押しながらクリックすると，接続中のネットワークの詳しい情報が表示される</p>
<p><img src="http://hasumi.info/~h2/wp-content/uploads/2008/10/apple80211_1.png" alt="MenuBar" title="apple80211_1" width="238" height="241" class="alignnone size-full wp-image-366" /></p>
]]></content:encoded>
			<wfw:commentRss>http://hasumi.info/~h2/2008/10/23/apple80211framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>termios構造体メンバc_cc配列の要素番号が違う</title>
		<link>http://hasumi.info/~h2/2008/10/05/termios%e6%a7%8b%e9%80%a0%e4%bd%93%e3%83%a1%e3%83%b3%e3%83%90c_cc%e9%85%8d%e5%88%97%e3%81%ae%e8%a6%81%e7%b4%a0%e7%95%aa%e5%8f%b7%e3%81%8c%e9%81%95%e3%81%86/</link>
		<comments>http://hasumi.info/~h2/2008/10/05/termios%e6%a7%8b%e9%80%a0%e4%bd%93%e3%83%a1%e3%83%b3%e3%83%90c_cc%e9%85%8d%e5%88%97%e3%81%ae%e8%a6%81%e7%b4%a0%e7%95%aa%e5%8f%b7%e3%81%8c%e9%81%95%e3%81%86/#comments</comments>
		<pubDate>Sun, 05 Oct 2008 10:09:59 +0000</pubDate>
		<dc:creator>p0n</dc:creator>
				<category><![CDATA[ガジェット]]></category>
		<category><![CDATA[iPhone/iPodTouch]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://hasumi.info/~h2/?p=237</guid>
		<description><![CDATA[iPhone/iPod Touch用のプログラムを書いていてハマったこと
タイトルのまんまやけど，termios構造体メンバc_cc配列の要素番号が，termios(4) と termios.h で一致しなくてハマった・ [...]]]></description>
			<content:encoded><![CDATA[<p>iPhone/iPod Touch用のプログラムを書いていてハマったこと</p>
<p>タイトルのまんまやけど，termios構造体メンバc_cc配列の要素番号が，termios(4) と termios.h で一致しなくてハマった・・・</p>
<p>マクロを使えば意識せずにすむんやろうけど，ダンプしてると変更が反映されてなくて悩んだ</p>
<p>manのtermiosページは「4th Berkeley Distribution  April 19, 1994」となってて古いのは分かるけど，せめてセクション4はちゃんと更新してほしい→Apple</p>
]]></content:encoded>
			<wfw:commentRss>http://hasumi.info/~h2/2008/10/05/termios%e6%a7%8b%e9%80%a0%e4%bd%93%e3%83%a1%e3%83%b3%e3%83%90c_cc%e9%85%8d%e5%88%97%e3%81%ae%e8%a6%81%e7%b4%a0%e7%95%aa%e5%8f%b7%e3%81%8c%e9%81%95%e3%81%86/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

