<?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>ひろぽっぽれす</title>
	<atom:link href="http://hiropo.co.uk/feed" rel="self" type="application/rss+xml" />
	<link>http://hiropo.co.uk</link>
	<description>Web系エンジニアの適当なブログです。どうでも酔いものばかり作ってます。</description>
	<lastBuildDate>Sun, 25 Jul 2010 17:09:15 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>wav形式からcaf形式のサウンドファイルへ変換</title>
		<link>http://hiropo.co.uk/archives/518</link>
		<comments>http://hiropo.co.uk/archives/518#comments</comments>
		<pubDate>Sun, 25 Jul 2010 17:09:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://hiropo.co.uk/?p=518</guid>
		<description><![CDATA[iPhone/iPadアプリの開発が楽しいです。今回は、音を扱う上で Core Audio Format(.caf)という形式に変換する必要があったので、そのコマンドをメモっておきます。 PLAIN TEXT CODE: % afconvert -f caff -d ima4 -d LEI16@22050 -c 1 -o &#91;出力ファイル名&#93;.caf &#91;入力ファイル名&#93;.wav これでサクッと変換できちゃう。]]></description>
			<content:encoded><![CDATA[<p>iPhone/iPadアプリの開発が楽しいです。今回は、音を扱う上で Core Audio Format(.caf)という形式に変換する必要があったので、そのコマンドをメモっておきます。</p>
<div class="igBar"><span id="lcode-2"><a href="#" onclick="javascript:showCodeTxt('code-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-2">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">% afconvert -f caff -d ima4 -d LEI16@<span style="color:#800000;color:#800000;">22050</span> -c <span style="color:#800000;color:#800000;">1</span> -o <span style="color:#006600; font-weight:bold;">&#91;</span>出力ファイル名<span style="color:#006600; font-weight:bold;">&#93;</span>.<span style="">caf</span> <span style="color:#006600; font-weight:bold;">&#91;</span>入力ファイル名<span style="color:#006600; font-weight:bold;">&#93;</span>.<span style="">wav</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>これでサクッと変換できちゃう。</p>
]]></content:encoded>
			<wfw:commentRss>http://hiropo.co.uk/archives/518/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arduino 入門してみた &#8211; フィジカルコンピューティング</title>
		<link>http://hiropo.co.uk/archives/504</link>
		<comments>http://hiropo.co.uk/archives/504#comments</comments>
		<pubDate>Sun, 18 Jul 2010 14:03:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Processing]]></category>
		<category><![CDATA[フィジカルコンピューティング]]></category>

		<guid isPermaLink="false">http://hiropo.co.uk/?p=504</guid>
		<description><![CDATA[最近は割とWeb方面に飽きてきたので、ちょっと新しい趣味がてら、話題になっている（？）フィジカルコンピューティングなるものに入門してみた。 GainerやらArduinoやらたくさんのマイコンがあるのだけれど、Arduinoが一番ドキュメント類や書籍が充実してそうだなと思い、Arduinoに入門してみた。 まずは何もないと始まらないので、Amazonで下記の二つを買った。 ▽Arduinoをはじめようキット ▽Arduinoをはじめよう 早速組み立ててみた。 Arduino SDK でC言語でProcessingに似た形式でプログラムを書くことができる。 PLAIN TEXT C: #define LED 13 &#160; void setup&#40;&#41;&#123; pinMode&#40;LED, OUTPUT&#41;; &#125; void loop&#40;&#41;&#123; digitalWrite&#40;LED, HIGH&#41;; delay&#40;1000&#41;; digitalWrite&#40;LED, LOW&#41;; delay&#40;1000&#41;; &#125; 1秒ごとにLEDが点いたり消えたりするようになった。]]></description>
			<content:encoded><![CDATA[<p>最近は割とWeb方面に飽きてきたので、ちょっと新しい趣味がてら、話題になっている（？）フィジカルコンピューティングなるものに入門してみた。<br />
GainerやらArduinoやらたくさんのマイコンがあるのだけれど、Arduinoが一番ドキュメント類や書籍が充実してそうだなと思い、Arduinoに入門してみた。</p>
<p>まずは何もないと始まらないので、Amazonで下記の二つを買った。</p>
<p>▽Arduinoをはじめようキット<br />
<iframe src="http://rcm-jp.amazon.co.jp/e/cm?lt1=_blank&#038;bc1=FFFFFF&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=hirozxcustomd-22&#038;o=9&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=1X69VDGQCMF7Z30FM082&#038;asins=B0025Y6C5G" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></p>
<p>▽Arduinoをはじめよう<br />
<iframe src="http://rcm-jp.amazon.co.jp/e/cm?lt1=_blank&#038;bc1=FFFFFF&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=hirozxcustomd-22&#038;o=9&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=1X69VDGQCMF7Z30FM082&#038;asins=4873113989" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></p>
<p>早速組み立ててみた。</p>
<div><a href="http://hiropo.co.uk/wp-content/uploads/2010/07/hello_world_1.jpg"><img class="alignleft size-medium wp-image-508" title="hello_world_1" src="http://hiropo.co.uk/wp-content/uploads/2010/07/hello_world_1-300x208.jpg" alt="" width="300" height="208" /></a></div>
<p><br clear="all" /><br />
Arduino SDK でC言語でProcessingに似た形式でプログラムを書くことができる。</p>
<div class="igBar"><span id="lc-4"><a href="#" onclick="javascript:showCodeTxt('c-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">C:</span>
<div id="c-4">
<div class="c">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #339933;">#define LED 13</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #993333;">void</span> setup<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">pinMode<span style="color: #66cc66;">&#40;</span>LED, OUTPUT<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #993333;">void</span> loop<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">digitalWrite<span style="color: #66cc66;">&#40;</span>LED, HIGH<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">delay<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">1000</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">digitalWrite<span style="color: #66cc66;">&#40;</span>LED, LOW<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">delay<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">1000</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>1秒ごとにLEDが点いたり消えたりするようになった。</p>
]]></content:encoded>
			<wfw:commentRss>http://hiropo.co.uk/archives/504/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>まさかの4ヶ月待ち。GuruPlugが届いた！</title>
		<link>http://hiropo.co.uk/archives/491</link>
		<comments>http://hiropo.co.uk/archives/491#comments</comments>
		<pubDate>Mon, 12 Jul 2010 17:46:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[GuruPlug]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://hiropo.co.uk/?p=491</guid>
		<description><![CDATA[ついに念願のアレが届いた。 SekenではiPhone4やらiPadやら話題になりまくってるけど、どんなApple製品よりも手に入りにくくて品薄な商品が世の中にはあるんだぜ…。 それがこちら↓ GuruPlug！電源内蔵のプラグコンピュータとして話題になったSheevaPlugの後継機！ なんと無線LANも使えちゃうんだってばよ。 形はACアダプタと同じ形だけど重さはタバコ2箱分くらいの重さでむちゃくちゃ軽い。 これがパソコンだなんて全然見えないんす。 これも製造元（US）に直接発注して、製造が追いつかず、発注から約4ヶ月の時を経てようやく我が家に届きました。日本には代理店なども特にないので、直接個人輸入しないと手に入らないのです。 これ10台繋いでグリッドコンピューティングしてみたいすな！]]></description>
			<content:encoded><![CDATA[<p>ついに念願のアレが届いた。<br />
SekenではiPhone4やらiPadやら話題になりまくってるけど、どんなApple製品よりも手に入りにくくて品薄な商品が世の中にはあるんだぜ…。</p>
<p>それがこちら↓<br />
<a href="http://hiropo.co.uk/wp-content/uploads/2010/07/IMG_02502.jpg"><img src="http://hiropo.co.uk/wp-content/uploads/2010/07/IMG_02502-225x300.jpg" alt="" title="IMG_0250" width="225" height="300" class="size-medium wp-image-500" /></a></p>
<p>GuruPlug！電源内蔵のプラグコンピュータとして話題になったSheevaPlugの後継機！<br />
なんと無線LANも使えちゃうんだってばよ。 </p>
<div><a href="http://hiropo.co.uk/wp-content/uploads/2010/07/IMG_02521.jpg"><img src="http://hiropo.co.uk/wp-content/uploads/2010/07/IMG_02521-225x300.jpg" alt="" title="IMG_0252" width="225" height="300" class="size-medium wp-image-497" /></a></div>
<div><a href="http://hiropo.co.uk/wp-content/uploads/2010/07/IMG_02541.jpg"><img src="http://hiropo.co.uk/wp-content/uploads/2010/07/IMG_02541-225x300.jpg" alt="" title="IMG_0254" width="225" height="300" class="size-medium wp-image-498" /></a></div>
<p>形はACアダプタと同じ形だけど重さはタバコ2箱分くらいの重さでむちゃくちゃ軽い。<br />
これがパソコンだなんて全然見えないんす。</p>
<p>これも製造元（US）に直接発注して、製造が追いつかず、発注から約4ヶ月の時を経てようやく我が家に届きました。日本には代理店なども特にないので、直接個人輸入しないと手に入らないのです。</p>
<p>これ10台繋いでグリッドコンピューティングしてみたいすな！</p>
]]></content:encoded>
			<wfw:commentRss>http://hiropo.co.uk/archives/491/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS5.xにPostgresqlをyumでインストールする</title>
		<link>http://hiropo.co.uk/archives/487</link>
		<comments>http://hiropo.co.uk/archives/487#comments</comments>
		<pubDate>Tue, 06 Jul 2010 13:57:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PostgreSQL]]></category>

		<guid isPermaLink="false">http://hiropo.co.uk/?p=487</guid>
		<description><![CDATA[MySQLしか使ったことないのですが、案件でPostgresqlを使うことになりまして、CentOS5系にインストールしてみました。 クライアント認証につまづいてなかなか壁を突破できませんでしたがググって頑張りましたよっと。 まず、yumで必要なモジュールをインストール。 PLAIN TEXT CODE: &#91;root@localhost ~&#93;# yum install -y postgresql-tcl postgresql-server postgresql-contrib postgresql php-pgsql 今回はPHPとの連動を行うので、下記もインストール PLAIN TEXT CODE: &#91;root@localhost ~&#93;# yum install -y php-pgsql ひととおりインストールが終わったらpostgresqlを起動。 PLAIN TEXT CODE: &#91;root@localhost ~&#93;# /etc/rc.d/init.d/postgresql start それでは初期設定を行っていく。 MySQLと違って、postgresというユーザーでログインしないと設定が行えない。 PLAIN TEXT CODE: &#91;root@localhost ~&#93;# su - postgres -bash-3.2$ psql -l &#160; &#160; &#160; &#160; List of databases &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>MySQLしか使ったことないのですが、案件でPostgresqlを使うことになりまして、CentOS5系にインストールしてみました。<br />
クライアント認証につまづいてなかなか壁を突破できませんでしたがググって頑張りましたよっと。</p>
<p>まず、yumで必要なモジュールをインストール。</p>
<div class="igBar"><span id="lcode-15"><a href="#" onclick="javascript:showCodeTxt('code-15'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-15">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>root@localhost ~<span style="color:#006600; font-weight:bold;">&#93;</span># yum install -y postgresql-tcl postgresql-server postgresql-contrib postgresql php-pgsql </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>今回はPHPとの連動を行うので、下記もインストール</p>
<div class="igBar"><span id="lcode-16"><a href="#" onclick="javascript:showCodeTxt('code-16'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-16">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>root@localhost ~<span style="color:#006600; font-weight:bold;">&#93;</span># yum install -y php-pgsql </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>ひととおりインストールが終わったらpostgresqlを起動。</p>
<div class="igBar"><span id="lcode-17"><a href="#" onclick="javascript:showCodeTxt('code-17'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-17">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>root@localhost ~<span style="color:#006600; font-weight:bold;">&#93;</span># /etc/rc.<span style="">d</span>/init.<span style="">d</span>/postgresql start </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>それでは初期設定を行っていく。<br />
MySQLと違って、postgresというユーザーでログインしないと設定が行えない。</p>
<div class="igBar"><span id="lcode-18"><a href="#" onclick="javascript:showCodeTxt('code-18'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-18">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>root@localhost ~<span style="color:#006600; font-weight:bold;">&#93;</span># su - postgres</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">-bash-<span style="color:#800000;color:#800000;">3</span>.<span style="color:#800000;color:#800000;">2</span>$ psql -l</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; List of databases</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;Name&nbsp; &nbsp; |&nbsp; Owner&nbsp; &nbsp;| Encoding</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">-----------+----------+----------</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;postgres&nbsp; | postgres | UTF8</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;template0 | postgres | UTF8</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;template1 | postgres | UTF8</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;color:#800000;">3</span> rows<span style="color:#006600; font-weight:bold;">&#41;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>ユーザー名"test"、パスワード"test" のユーザーを作成する。<br />
権限はデータベースの作成を可能にする。</p>
<div class="igBar"><span id="lcode-19"><a href="#" onclick="javascript:showCodeTxt('code-19'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-19">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">-bash-<span style="color:#800000;color:#800000;">3</span>.<span style="color:#800000;color:#800000;">2</span>$ psql</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Welcome to psql <span style="color:#800000;color:#800000;">8</span>.<span style="color:#800000;color:#800000;">1</span>.<span style="color:#800000;color:#800000;">21</span>, the PostgreSQL interactive terminal.</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="">Type</span>:&nbsp; \copyright for distribution terms</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;\h for help with SQL commands</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;\? for help with psql commands</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;\g or terminate with semicolon to execute query</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;\q to quit</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">postgres=# CREATE USER <span style="color:#CC0000;">"test"</span> CREATEDB PASSWORD <span style="color:#CC0000;">'test'</span> LOGIN;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">CREATE ROLE</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">postgres=# \q</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">-bash-<span style="color:#800000;color:#800000;">3</span>.<span style="color:#800000;color:#800000;">2</span>$ exit</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">logout</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>root@localhost ~<span style="color:#006600; font-weight:bold;">&#93;</span># </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>これで、Linux上のユーザー"test"からPostgresqlを操作できるようになる。<br />
そしたら、"test"ユーザーが使えるデータベース"test"を作成する。<br />
文字コードは"EUC_JP"にする。</p>
<div class="igBar"><span id="lcode-20"><a href="#" onclick="javascript:showCodeTxt('code-20'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-20">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>root@localhost ~<span style="color:#006600; font-weight:bold;">&#93;</span># su - test</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>test@localhost ~<span style="color:#006600; font-weight:bold;">&#93;</span># createdb test -E EUC_JP</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">CREATE DATABASE</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>test@localhost ~<span style="color:#006600; font-weight:bold;">&#93;</span>$ psql -l</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; List of databases</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;Name&nbsp; &nbsp; |&nbsp; Owner&nbsp; &nbsp;| Encoding</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">-----------+----------+----------</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;test&nbsp; &nbsp; &nbsp; | test&nbsp; &nbsp; &nbsp;| EUC_JP</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;postgres&nbsp; | postgres | UTF8</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;template0 | postgres | UTF8</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;template1 | postgres | UTF8</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;color:#800000;">4</span> rows<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>test@localhost ~<span style="color:#006600; font-weight:bold;">&#93;</span>$ </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>ちなみにただ単に "creatdb test" とした場合、文字コードはデフォルトで"utf-8"になる。<br />
データベースを削除する場合は、"drop データベース名" とすれば良い。</p>
<p>最後に、PHPなどと連携する場合は、クライアント認証ファイルを編集する必要がある。</p>
<div class="igBar"><span id="lcode-21"><a href="#" onclick="javascript:showCodeTxt('code-21'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-21">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>root@localhost ~<span style="color:#006600; font-weight:bold;">&#93;</span># vi /var/lib/pgsql/data/pg_hba.<span style="">conf</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#local&nbsp; all&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;all&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ident sameuser&nbsp; #コメントアウト</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">local&nbsp; &nbsp;all&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;all&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;trust</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#host&nbsp; &nbsp;all&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;all&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color:#800000;color:#800000;">127</span>.<span style="color:#800000;color:#800000;">0</span>.<span style="color:#800000;color:#800000;">0</span>.<span style="color:#800000;color:#800000;">1</span>/<span style="color:#800000;color:#800000;">32</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ident sameuser&nbsp; #コメントアウト</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">host&nbsp; &nbsp; all&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;all&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color:#800000;color:#800000;">127</span>.<span style="color:#800000;color:#800000;">0</span>.<span style="color:#800000;color:#800000;">0</span>.<span style="color:#800000;color:#800000;">1</span>/<span style="color:#800000;color:#800000;">32</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; password </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>postgresqlとapacheを再起動する。</p>
<div class="igBar"><span id="lcode-22"><a href="#" onclick="javascript:showCodeTxt('code-22'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-22">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>root@localhost ~<span style="color:#006600; font-weight:bold;">&#93;</span># /etc/rc.<span style="">d</span>/init.<span style="">d</span>/postgresql restart</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Stopping postgresql service:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color:#006600; font-weight:bold;">&#91;</span>&nbsp; OK&nbsp; <span style="color:#006600; font-weight:bold;">&#93;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Starting postgresql service:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color:#006600; font-weight:bold;">&#91;</span>&nbsp; OK&nbsp; <span style="color:#006600; font-weight:bold;">&#93;</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>root@localhost ~<span style="color:#006600; font-weight:bold;">&#93;</span># /etc/rc.<span style="">d</span>/init.<span style="">d</span>/httpd restart</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Stopping httpd:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#91;</span>&nbsp; OK&nbsp; <span style="color:#006600; font-weight:bold;">&#93;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Starting httpd:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#91;</span>&nbsp; OK&nbsp; <span style="color:#006600; font-weight:bold;">&#93;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>phpファイルを書いて、接続テストする。</p>
<div class="igBar"><span id="lphp-23"><a href="#" onclick="javascript:showCodeTxt('php-23'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-23">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$data</span> = <span style="color:#FF0000;">"host=localhost user=test dbname=test password=test"</span>;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$pg</span> = <a href="http://www.php.net/pg_connect"><span style="color:#000066;">pg_connect</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$data</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span>!<span style="color:#0000FF;">$pg</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">'接続できませんでした。'</span>;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">else</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">'接続しちゃいました&lt;br /&gt;'</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span>!<a href="http://www.php.net/pg_close"><span style="color:#000066;">pg_close</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$pg</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">else</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">'接続を閉じました。'</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>特に問題なく接続できたら下記のように表示される。</p>
<div class="igBar"><span id="lcode-24"><a href="#" onclick="javascript:showCodeTxt('code-24'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-24">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">接続しちゃいました</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">接続を閉じました。 </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>クライアント認証んとこは本当にわかんなくてつまづいたけど、ちゃんと繋がると感動ですね！</p>
]]></content:encoded>
			<wfw:commentRss>http://hiropo.co.uk/archives/487/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rsyncでデータバックアップ的な。</title>
		<link>http://hiropo.co.uk/archives/485</link>
		<comments>http://hiropo.co.uk/archives/485#comments</comments>
		<pubDate>Thu, 01 Jul 2010 02:50:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Rsync]]></category>

		<guid isPermaLink="false">http://hiropo.co.uk/?p=485</guid>
		<description><![CDATA[Rsync便利です。よく使うのでここにメモっときます。 参考サイト http://www.aconus.com/~oyaji/backup/rsync.htm SSHでの基本的な使い方（詳細は省きます。） PLAIN TEXT CODE: rsync オプション &#91;ホスト名:&#93;コピー元ファイル/ディレクトリ名 &#91;ホスト名:&#93;コピー先ファイル/ディレクトリ名 いつもこんな感じでつかってる。 PLAIN TEXT CODE: rsync -avz -e ssh /home/hoge/public_html/ backup@backup.hostname.com:/home/hoge/public_html/ Rsync、かわいいよ、Rsync。]]></description>
			<content:encoded><![CDATA[<p>Rsync便利です。よく使うのでここにメモっときます。</p>
<p>参考サイト<br />
<a href="http://www.aconus.com/~oyaji/backup/rsync.htm" target="_blank">http://www.aconus.com/~oyaji/backup/rsync.htm</a></p>
<p>SSHでの基本的な使い方（詳細は省きます。）</p>
<div class="igBar"><span id="lcode-27"><a href="#" onclick="javascript:showCodeTxt('code-27'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-27">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">rsync オプション <span style="color:#006600; font-weight:bold;">&#91;</span>ホスト名:<span style="color:#006600; font-weight:bold;">&#93;</span>コピー元ファイル/ディレクトリ名 <span style="color:#006600; font-weight:bold;">&#91;</span>ホスト名:<span style="color:#006600; font-weight:bold;">&#93;</span>コピー先ファイル/ディレクトリ名 </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>いつもこんな感じでつかってる。</p>
<div class="igBar"><span id="lcode-28"><a href="#" onclick="javascript:showCodeTxt('code-28'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-28">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">rsync -avz -e ssh /home/hoge/public_html/ backup@backup.<span style="">hostname</span>.<span style="">com</span>:/home/hoge/public_html/ </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Rsync、かわいいよ、Rsync。</p>
]]></content:encoded>
			<wfw:commentRss>http://hiropo.co.uk/archives/485/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Xcodeをアンインストールする</title>
		<link>http://hiropo.co.uk/archives/480</link>
		<comments>http://hiropo.co.uk/archives/480#comments</comments>
		<pubDate>Sat, 19 Jun 2010 19:01:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[Xcode]]></category>

		<guid isPermaLink="false">http://hiropo.co.uk/?p=480</guid>
		<description><![CDATA[iPhone SDK4.0 GM版が何かと曲者で不便なので、3.2に戻す。今インストールされているXcodeをアンインストールする。 PLAIN TEXT CODE: $ sudo /Developer/Library/uninstall-devtools --mode=all その後、iPhone SDK3.2をインストールすれば元通り！]]></description>
			<content:encoded><![CDATA[<p>iPhone SDK4.0 GM版が何かと曲者で不便なので、3.2に戻す。今インストールされているXcodeをアンインストールする。</p>
<div class="igBar"><span id="lcode-30"><a href="#" onclick="javascript:showCodeTxt('code-30'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-30">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$ sudo /Developer/Library/uninstall-devtools --mode=all </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>その後、iPhone SDK3.2をインストールすれば元通り！</p>
]]></content:encoded>
			<wfw:commentRss>http://hiropo.co.uk/archives/480/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spamassassin が動いてない</title>
		<link>http://hiropo.co.uk/archives/477</link>
		<comments>http://hiropo.co.uk/archives/477#comments</comments>
		<pubDate>Wed, 16 Jun 2010 16:27:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Spamassassin]]></category>

		<guid isPermaLink="false">http://hiropo.co.uk/?p=477</guid>
		<description><![CDATA[スパムメールが増えたのかなんなのか、ウチのサーバのログが暴れだしたので、ちょこっと調べてみることにした。 PLAIN TEXT CODE: host spamc&#91;9130&#93;: connect to spamd on 127.0.0.1 failed, retrying &#40;#1 of 3&#41;: Connection refused host spamc&#91;9130&#93;: connect to spamd on 127.0.0.1 failed, retrying &#40;#2 of 3&#41;: Connection refused host spamc&#91;9130&#93;: connect to spamd on 127.0.0.1 failed, retrying &#40;#3 of 3&#41;: Connection refused このようなログがけっこう前からあった。どうも Spamassassin が動いていないようだ。 リブートしてみようと思い下記のコマンドを実行 PLAIN TEXT CODE: &#91;root@host&#93;~# /etc/init.d/spamassassin [...]]]></description>
			<content:encoded><![CDATA[<p>スパムメールが増えたのかなんなのか、ウチのサーバのログが暴れだしたので、ちょこっと調べてみることにした。</p>
<div class="igBar"><span id="lcode-34"><a href="#" onclick="javascript:showCodeTxt('code-34'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-34">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">host spamc<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#800000;color:#800000;">9130</span><span style="color:#006600; font-weight:bold;">&#93;</span>: connect to spamd on <span style="color:#800000;color:#800000;">127</span>.<span style="color:#800000;color:#800000;">0</span>.<span style="color:#800000;color:#800000;">0</span>.<span style="color:#800000;color:#800000;">1</span> failed, retrying <span style="color:#006600; font-weight:bold;">&#40;</span>#1 of <span style="color:#800000;color:#800000;">3</span><span style="color:#006600; font-weight:bold;">&#41;</span>: Connection refused</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">host spamc<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#800000;color:#800000;">9130</span><span style="color:#006600; font-weight:bold;">&#93;</span>: connect to spamd on <span style="color:#800000;color:#800000;">127</span>.<span style="color:#800000;color:#800000;">0</span>.<span style="color:#800000;color:#800000;">0</span>.<span style="color:#800000;color:#800000;">1</span> failed, retrying <span style="color:#006600; font-weight:bold;">&#40;</span>#2 of <span style="color:#800000;color:#800000;">3</span><span style="color:#006600; font-weight:bold;">&#41;</span>: Connection refused</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">host spamc<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#800000;color:#800000;">9130</span><span style="color:#006600; font-weight:bold;">&#93;</span>: connect to spamd on <span style="color:#800000;color:#800000;">127</span>.<span style="color:#800000;color:#800000;">0</span>.<span style="color:#800000;color:#800000;">0</span>.<span style="color:#800000;color:#800000;">1</span> failed, retrying <span style="color:#006600; font-weight:bold;">&#40;</span>#3 of <span style="color:#800000;color:#800000;">3</span><span style="color:#006600; font-weight:bold;">&#41;</span>: Connection refused </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>このようなログがけっこう前からあった。どうも Spamassassin が動いていないようだ。<br />
リブートしてみようと思い下記のコマンドを実行</p>
<div class="igBar"><span id="lcode-35"><a href="#" onclick="javascript:showCodeTxt('code-35'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-35">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>root@host<span style="color:#006600; font-weight:bold;">&#93;</span>~# /etc/init.<span style="">d</span>/spamassassin start</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">spamd を起動中: child process <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#800000;color:#800000;">14793</span><span style="color:#006600; font-weight:bold;">&#93;</span> exited or timed out without signaling production of a PID file: exit <span style="color:#800000;color:#800000;">255</span> at /usr/bin/spamd line <span style="color:#800000;color:#800000;">2588</span>. </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>なんだか調べていったら下記のページにたどり着いた。<br />
<a href="http://www.komine.biz/modules/d3forum/index.php?topic_id=34">http://www.komine.biz/modules/d3forum/index.php?topic_id=34</a><br />
<a href="http://www.komine.biz/modules/d3forum/index.php?topic_id=34">http://www.gossamer-threads.com/lists/spamassassin/users/151177?page=last</a></p>
<p>そこでは、</p>
<blockquote><p>
Hi<br />
Just found the solution: Run the command 'sa-update'<br />
Note: Found the hint, after I tried to run spamd without '--daemonize'<br />
Hope this works also for others!
</p></blockquote>
<p>と書いてあるので、下記コマンドを実行後、改めてSpamassassin を起動してみた。</p>
<div class="igBar"><span id="lcode-36"><a href="#" onclick="javascript:showCodeTxt('code-36'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-36">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>root@host<span style="color:#006600; font-weight:bold;">&#93;</span>~# sa-update</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>root@host<span style="color:#006600; font-weight:bold;">&#93;</span>~# /etc/rc.<span style="">d</span>/init.<span style="">d</span>/spamassassin start</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">spamd を起動中:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#91;</span>&nbsp; OK&nbsp; <span style="color:#006600; font-weight:bold;">&#93;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>おぉ、無事に起動した！あとはこれで様子見である。</p>
]]></content:encoded>
			<wfw:commentRss>http://hiropo.co.uk/archives/477/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>配列と多次元配列 &#8211; Objective-C</title>
		<link>http://hiropo.co.uk/archives/475</link>
		<comments>http://hiropo.co.uk/archives/475#comments</comments>
		<pubDate>Fri, 21 May 2010 08:45:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[C言語]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[配列]]></category>

		<guid isPermaLink="false">http://hiropo.co.uk/?p=475</guid>
		<description><![CDATA[JavaScriptしかロクに書けない自分です。こんぬつわ。 C言語における配列をメモって置きます。 JSだと配列ってすごい簡単に扱えますが、C言語だとリソースをきちんと確保してあげないとダメなんですね。ちゃんと頑張って書いてみましたよっと。 まずは配列。 PLAIN TEXT C: //配列の初期化 int ary1&#91;&#93; = &#123;0,1,2,3,4,5,6,7,8,9&#125;; &#160; //lengthの取得 const int _ary1Length_ = sizeof ary1 / sizeof ary1&#91;0&#93;; &#160; //配列の中身をすべて取り出す for&#40; int i = 0; i &#60;_ary1Length_; i++ &#41;&#123; &#160; &#160; NSLog&#40;@"%d", ary1&#91;i&#93;&#41;; &#125; 多次元配列の場合。 PLAIN TEXT C: /** * 多次元配列処理 */ int ary2&#91;7&#93;&#91;10&#93; = &#123; &#160; &#160; &#123;0,1,2,3,4,5,6,7,8,9&#125;, &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>JavaScriptしかロクに書けない自分です。こんぬつわ。<br />
C言語における配列をメモって置きます。</p>
<p>JSだと配列ってすごい簡単に扱えますが、C言語だとリソースをきちんと確保してあげないとダメなんですね。ちゃんと頑張って書いてみましたよっと。</p>
<p>まずは配列。</p>
<div class="igBar"><span id="lc-39"><a href="#" onclick="javascript:showCodeTxt('c-39'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">C:</span>
<div id="c-39">
<div class="c">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">//配列の初期化</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #993333;">int</span> ary1<span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #66cc66;">&#123;</span><span style="color: #cc66cc;color:#800000;">0</span>,<span style="color: #cc66cc;color:#800000;">1</span>,<span style="color: #cc66cc;color:#800000;">2</span>,<span style="color: #cc66cc;color:#800000;">3</span>,<span style="color: #cc66cc;color:#800000;">4</span>,<span style="color: #cc66cc;color:#800000;">5</span>,<span style="color: #cc66cc;color:#800000;">6</span>,<span style="color: #cc66cc;color:#800000;">7</span>,<span style="color: #cc66cc;color:#800000;">8</span>,<span style="color: #cc66cc;color:#800000;">9</span><span style="color: #66cc66;">&#125;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">//lengthの取得</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #993333;">const</span> <span style="color: #993333;">int</span> _ary1Length_ = <span style="color: #993333;">sizeof</span> ary1 / <span style="color: #993333;">sizeof</span> ary1<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">//配列の中身をすべて取り出す</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span> <span style="color: #993333;">int</span> i = <span style="color: #cc66cc;color:#800000;">0</span>; i &lt;_ary1Length_; i++ <span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; NSLog<span style="color: #66cc66;">&#40;</span>@<span style="color: #ff0000;">"%d"</span>, ary1<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>多次元配列の場合。</p>
<div class="igBar"><span id="lc-40"><a href="#" onclick="javascript:showCodeTxt('c-40'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">C:</span>
<div id="c-40">
<div class="c">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">/**</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;"> * 多次元配列処理</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;"> */</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #993333;">int</span> ary2<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;color:#800000;">7</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;color:#800000;">10</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><span style="color: #cc66cc;color:#800000;">0</span>,<span style="color: #cc66cc;color:#800000;">1</span>,<span style="color: #cc66cc;color:#800000;">2</span>,<span style="color: #cc66cc;color:#800000;">3</span>,<span style="color: #cc66cc;color:#800000;">4</span>,<span style="color: #cc66cc;color:#800000;">5</span>,<span style="color: #cc66cc;color:#800000;">6</span>,<span style="color: #cc66cc;color:#800000;">7</span>,<span style="color: #cc66cc;color:#800000;">8</span>,<span style="color: #cc66cc;color:#800000;">9</span><span style="color: #66cc66;">&#125;</span>,</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><span style="color: #cc66cc;color:#800000;">10</span>,<span style="color: #cc66cc;color:#800000;">11</span>,<span style="color: #cc66cc;color:#800000;">12</span>,<span style="color: #cc66cc;color:#800000;">13</span>,<span style="color: #cc66cc;color:#800000;">14</span>,<span style="color: #cc66cc;color:#800000;">15</span>,<span style="color: #cc66cc;color:#800000;">16</span>,<span style="color: #cc66cc;color:#800000;">17</span>,<span style="color: #cc66cc;color:#800000;">18</span>,<span style="color: #cc66cc;color:#800000;">19</span><span style="color: #66cc66;">&#125;</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><span style="color: #cc66cc;color:#800000;">20</span>,<span style="color: #cc66cc;color:#800000;">21</span>,<span style="color: #cc66cc;color:#800000;">22</span>,<span style="color: #cc66cc;color:#800000;">23</span>,<span style="color: #cc66cc;color:#800000;">24</span>,<span style="color: #cc66cc;color:#800000;">25</span>,<span style="color: #cc66cc;color:#800000;">26</span>,<span style="color: #cc66cc;color:#800000;">27</span>,<span style="color: #cc66cc;color:#800000;">28</span>,<span style="color: #cc66cc;color:#800000;">29</span><span style="color: #66cc66;">&#125;</span>,</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><span style="color: #cc66cc;color:#800000;">30</span>,<span style="color: #cc66cc;color:#800000;">31</span>,<span style="color: #cc66cc;color:#800000;">32</span>,<span style="color: #cc66cc;color:#800000;">33</span>,<span style="color: #cc66cc;color:#800000;">34</span>,<span style="color: #cc66cc;color:#800000;">35</span>,<span style="color: #cc66cc;color:#800000;">36</span>,<span style="color: #cc66cc;color:#800000;">37</span>,<span style="color: #cc66cc;color:#800000;">38</span>,<span style="color: #cc66cc;color:#800000;">39</span><span style="color: #66cc66;">&#125;</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><span style="color: #cc66cc;color:#800000;">40</span>,<span style="color: #cc66cc;color:#800000;">41</span>,<span style="color: #cc66cc;color:#800000;">42</span>,<span style="color: #cc66cc;color:#800000;">43</span>,<span style="color: #cc66cc;color:#800000;">44</span>,<span style="color: #cc66cc;color:#800000;">45</span>,<span style="color: #cc66cc;color:#800000;">46</span>,<span style="color: #cc66cc;color:#800000;">47</span>,<span style="color: #cc66cc;color:#800000;">48</span>,<span style="color: #cc66cc;color:#800000;">49</span><span style="color: #66cc66;">&#125;</span>,</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><span style="color: #cc66cc;color:#800000;">50</span>,<span style="color: #cc66cc;color:#800000;">51</span>,<span style="color: #cc66cc;color:#800000;">52</span>,<span style="color: #cc66cc;color:#800000;">53</span>,<span style="color: #cc66cc;color:#800000;">54</span>,<span style="color: #cc66cc;color:#800000;">55</span>,<span style="color: #cc66cc;color:#800000;">56</span>,<span style="color: #cc66cc;color:#800000;">57</span>,<span style="color: #cc66cc;color:#800000;">58</span>,<span style="color: #cc66cc;color:#800000;">59</span><span style="color: #66cc66;">&#125;</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><span style="color: #cc66cc;color:#800000;">60</span>,<span style="color: #cc66cc;color:#800000;">61</span>,<span style="color: #cc66cc;color:#800000;">62</span>,<span style="color: #cc66cc;color:#800000;">63</span>,<span style="color: #cc66cc;color:#800000;">64</span>,<span style="color: #cc66cc;color:#800000;">65</span>,<span style="color: #cc66cc;color:#800000;">66</span>,<span style="color: #cc66cc;color:#800000;">67</span>,<span style="color: #cc66cc;color:#800000;">68</span>,<span style="color: #cc66cc;color:#800000;">69</span><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #993333;">const</span> <span style="color: #993333;">int</span> _ary2Length_i_ = <span style="color: #993333;">sizeof</span> ary2 / <span style="color: #993333;">sizeof</span> ary2<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#93;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #993333;">const</span> <span style="color: #993333;">int</span> _ary2Length_j_ = <span style="color: #993333;">sizeof</span> ary2<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#93;</span> / <span style="color: #993333;">sizeof</span> ary2<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span> <span style="color: #993333;">int</span> i = <span style="color: #cc66cc;color:#800000;">0</span>; i &lt;_ary2Length_i_; i++ <span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span> <span style="color: #993333;">int</span> j = <span style="color: #cc66cc;color:#800000;">0</span>; j &lt;_ary2Length_j_; j++ <span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; NSLog<span style="color: #66cc66;">&#40;</span>@<span style="color: #ff0000;">"%d"</span>, ary2<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#91;</span>j<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>JSだとarrayObj.lengthとかで簡単にとれるものも、きちんと計算してあげないととれないんですね。これはなんだか挫けそうです！w</p>
]]></content:encoded>
			<wfw:commentRss>http://hiropo.co.uk/archives/475/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>zshでテトリス</title>
		<link>http://hiropo.co.uk/archives/473</link>
		<comments>http://hiropo.co.uk/archives/473#comments</comments>
		<pubDate>Fri, 21 May 2010 04:02:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[zsh]]></category>

		<guid isPermaLink="false">http://hiropo.co.uk/?p=473</guid>
		<description><![CDATA[PLAIN TEXT CODE: zsh autoload -U tetris zle -N tetris bindkey '^T' tetris Control-T を押せばゲーム開始。zsh最強！ しかもちょっとキー操作が難しい。]]></description>
			<content:encoded><![CDATA[<div class="igBar"><span id="lcode-42"><a href="#" onclick="javascript:showCodeTxt('code-42'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-42">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">zsh</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">autoload -U tetris</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">zle -N tetris</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">bindkey <span style="color:#CC0000;">'^T'</span> tetris </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Control-T を押せばゲーム開始。zsh最強！<br />
しかもちょっとキー操作が難しい。</p>
]]></content:encoded>
			<wfw:commentRss>http://hiropo.co.uk/archives/473/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Objective-Cにおける文字列の連結</title>
		<link>http://hiropo.co.uk/archives/468</link>
		<comments>http://hiropo.co.uk/archives/468#comments</comments>
		<pubDate>Fri, 14 May 2010 07:46:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://hiropo.co.uk/?p=468</guid>
		<description><![CDATA[JavaScriptやRubyやPHPといったインタプリタな緩くて便利な言語しか使ったことがないので、C言語の文字列の扱いが非常に難しかった。というかC言語単体は挫折したけど…。 Objective-Cに置いてはクラスが拡張されているのでやはり文字列の扱いはものすごい便利になっている。それでも記述する内容多すぎなんだけどね…。 JavascriptとObjective-Cでの書き方をメモっとく。 PLAIN TEXT JavaScript: //文字列を代入 var str1 = "あひゃ！"; var str2 = "ヒーハーッ！"; &#160; //文字列の連結 var str3 = str1 + str2; var str4 = str3 + str1 + str2; &#160; //出力 alert&#40;str1&#41;; //あひゃ！ alert&#40;str2&#41;; //ヒーハーッ！ alert&#40;str3&#41;; //あひゃ！ヒーハーッ！ alert&#40;str4&#41;; //あひゃ！ヒーハーッ！あひゃ！ヒーハーッ！ PLAIN TEXT C: //文字列を代入 NSString *str1 = @"あひゃ！"; NSString *str2 = @"ヒーハーッ！"; &#160; //文字列の連結 [...]]]></description>
			<content:encoded><![CDATA[<p>JavaScriptやRubyやPHPといったインタプリタな緩くて便利な言語しか使ったことがないので、C言語の文字列の扱いが非常に難しかった。というかC言語単体は挫折したけど…。</p>
<p>Objective-Cに置いてはクラスが拡張されているのでやはり文字列の扱いはものすごい便利になっている。それでも記述する内容多すぎなんだけどね…。</p>
<p>JavascriptとObjective-Cでの書き方をメモっとく。</p>
<div class="igBar"><span id="ljavascript-46"><a href="#" onclick="javascript:showCodeTxt('javascript-46'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-46">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">//文字列を代入</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> str1 = <span style="color: #3366CC;">"あひゃ！"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> str2 = <span style="color: #3366CC;">"ヒーハーッ！"</span>;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">//文字列の連結</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> str3 = str1 + str2;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> str4 = str3 + str1 + str2;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">//出力</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000066;">alert</span><span style="color: #66cc66;">&#40;</span>str1<span style="color: #66cc66;">&#41;</span>; <span style="color: #009900; font-style: italic;">//あひゃ！</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000066;">alert</span><span style="color: #66cc66;">&#40;</span>str2<span style="color: #66cc66;">&#41;</span>; <span style="color: #009900; font-style: italic;">//ヒーハーッ！</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000066;">alert</span><span style="color: #66cc66;">&#40;</span>str3<span style="color: #66cc66;">&#41;</span>; <span style="color: #009900; font-style: italic;">//あひゃ！ヒーハーッ！</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000066;">alert</span><span style="color: #66cc66;">&#40;</span>str4<span style="color: #66cc66;">&#41;</span>; <span style="color: #009900; font-style: italic;">//あひゃ！ヒーハーッ！あひゃ！ヒーハーッ！ </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<div class="igBar"><span id="lc-47"><a href="#" onclick="javascript:showCodeTxt('c-47'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">C:</span>
<div id="c-47">
<div class="c">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">//文字列を代入</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">NSString *str1 = @<span style="color: #ff0000;">"あひゃ！"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">NSString *str2 = @<span style="color: #ff0000;">"ヒーハーッ！"</span>;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">//文字列の連結</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">NSString *str3 = <span style="color: #66cc66;">&#91;</span>str1 stringByAppendingString:str2<span style="color: #66cc66;">&#93;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">NSString *str4 = <span style="color: #66cc66;">&#91;</span>str3 stringByAppendingString:<span style="color: #66cc66;">&#91;</span>str1 stringByAppendingString:str2<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">//NSLogで出力</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">NSLog<span style="color: #66cc66;">&#40;</span>@<span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\n</span>%@"</span>,str1<span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">//あひゃ！</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">NSLog<span style="color: #66cc66;">&#40;</span>@<span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\n</span>%@"</span>,str2<span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">//ヒーハーッ！</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">NSLog<span style="color: #66cc66;">&#40;</span>@<span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\n</span>%@"</span>,str3<span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">//あひゃ！ヒーハーッ！</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">NSLog<span style="color: #66cc66;">&#40;</span>@<span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\n</span>%@"</span>,str4<span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">//あひゃ！ヒーハーッ！あひゃ！ヒーハーッ！ </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>ちなみにメッセージ式の書式もメモっとく。</p>
<div class="igBar"><span id="lc-48"><a href="#" onclick="javascript:showCodeTxt('c-48'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">C:</span>
<div id="c-48">
<div class="c">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">//メッセージ式</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#91;</span>オブジェクト メッセージ<span style="color: #66cc66;">&#93;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">//メッセージ式の戻り値を変数に代入</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">変数 = <span style="color: #66cc66;">&#91;</span>オブジェクト メッセージ<span style="color: #66cc66;">&#93;</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">//引数を1つもつメソッドの呼び出し</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#91;</span>オブジェクト メソッド名:引数<span style="color: #66cc66;">&#93;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">//引数を複数もつメソッドの呼び出し</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">//※ラベルとは引数の説明のような文字列</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#91;</span>オブジェクト メソッド名:引数<span style="color: #cc66cc;color:#800000;">1</span> ラベル:引数<span style="color: #cc66cc;color:#800000;">2</span><span style="color: #66cc66;">&#93;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>他にインスタンスメソッドとクラスメソッドが存在するが、次の機会に書けたら書きます。</p>
]]></content:encoded>
			<wfw:commentRss>http://hiropo.co.uk/archives/468/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
