<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:blogChannel="http://backend.userland.com/blogChannelModule" >
  <channel>
  <title>よろよろ開発日記</title>
  <link>http://futarixx.blog.shinobi.jp/</link>
  <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://futarixx.blog.shinobi.jp/RSS/" />
  <description>いろいろな壁にぶちあたって玉砕しながらも進んでってます。</description>
  <lastBuildDate>Tue, 09 Aug 2011 06:07:10 GMT</lastBuildDate>
  <language>ja</language>
  <copyright>© Ninja Tools Inc.</copyright>
  <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" />

    <item>
    <title>postgres起動時に。</title>
    <description>
    <![CDATA[&nbsp;&nbsp;could not create IPv6 socket: Address family not　supported by protocol<br />
<br />
というエラーが出てる。<br />
これは<span class="Apple-style-span" style="font-family: Verdana, Osaka, sans-serif; font-size: 13px; letter-spacing: 1px; line-height: 19px; "><a class="keyword" href="http://d.hatena.ne.jp/keyword/postgresql" style="text-decoration: none; color: rgb(0, 0, 0); border-bottom-style: dashed; border-bottom-width: 1px; border-bottom-color: rgb(208, 208, 208); ">postgresql</a>.conf のlisten_addressを「listen_addresses = '*'」<br />
というデフォルト値から「listen_addresses = '0.0.0.0'」に変更すると回避できるらしいです。</span><br type="_moz" />]]>
    </description>
    <category>DB関連</category>
    <link>http://futarixx.blog.shinobi.jp/db%E9%96%A2%E9%80%A3/postgres%E8%B5%B7%E5%8B%95%E6%99%82%E3%81%AB%E3%80%82</link>
    <pubDate>Tue, 09 Aug 2011 06:07:42 GMT</pubDate>
    <guid isPermaLink="false">futarixx.blog.shinobi.jp://entry/32</guid>
  </item>
    <item>
    <title>postgresでのこと。</title>
    <description>
    <![CDATA[&nbsp;WARNING: &nbsp;could not write block 1530 of base/16384/8260301
<div>
	DETAIL: &nbsp;Multiple failures --- write error might be permanent.</div>
<div>
	ERROR: &nbsp;xlog flush request 110/4CA5DF8C is not satisfied --- flushed only to 110/4C98BCE4</div>
<div>
	CONTEXT: &nbsp;writing block 1530 of relation base/16384/8260301<br />
	<br />
	この「8260301」ってのがoidらしい。<br />
	find /usr/local/pgsql/data -name&nbsp;8260301&nbsp;-ls<br />
	とたたくとエラーになっていたファイルが見つかる。<br />
	<br />
	で、これ見つけてどうするんだろう？<br />
	なんかbinaryファイルぽいんだけど。。。</div>
]]>
    </description>
    <category>DB関連</category>
    <link>http://futarixx.blog.shinobi.jp/db%E9%96%A2%E9%80%A3/postgres%E3%81%A7%E3%81%AE%E3%81%93%E3%81%A8%E3%80%82</link>
    <pubDate>Tue, 09 Aug 2011 05:15:21 GMT</pubDate>
    <guid isPermaLink="false">futarixx.blog.shinobi.jp://entry/31</guid>
  </item>
    <item>
    <title>postgresバージョンUP</title>
    <description>
    <![CDATA[&nbsp;結構大きいサイトのpostgresを7系から9系にバージョンアップ。<br />
イメトレしたけどやっぱしひっかかるとこがあったので残します。<br />
<br />
ERROR:&nbsp; out of memory<br />
DETAIL:&nbsp; Failed on request of size ｘｘｘｘｘ<br />
<br />
Index張る時にこんなエラーがなんこか出現。<br />
どうやらメモリが確保できないとかそういった内容みたい。<br />
<a href="http://nhh.mo-blog.jp/ttt/2008/05/freebsd_postgre_e31a.html">http://nhh.mo-blog.jp/ttt/2008/05/freebsd_postgre_e31a.html</a><br />
ここを参考にさせてもらったよ。<br />
<br />
<br />
<br type="_moz" /><br /><a href="http://futarixx.blog.shinobi.jp/db%E9%96%A2%E9%80%A3/postgres%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3up" target="_blank">つづきはこちら</a>]]>
    </description>
    <category>DB関連</category>
    <link>http://futarixx.blog.shinobi.jp/db%E9%96%A2%E9%80%A3/postgres%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3up</link>
    <pubDate>Wed, 03 Aug 2011 08:15:07 GMT</pubDate>
    <guid isPermaLink="false">futarixx.blog.shinobi.jp://entry/30</guid>
  </item>
    <item>
    <title>postgres：CSV書き出し</title>
    <description>
    <![CDATA[&nbsp;postgresでデータを写すときにCSVに書き出して<br />
それをCOPYするっていう方法がある。<br />
<br />
<div>
	select * into temporary aaa _temp from bb where send_date &gt;&#39;2010-01-01&#39;;</div>
<div>
	CSVファイルに書き出す</div>
<div>
	copy&nbsp;aaa _temp&nbsp;to &#39;/home/postgres/test/mail.bup&#39; CSV;<br />
	<br />
	これを1回でする場合<br />
	copy (select * from bb) to &#39;/home/postgres/test.csv&#39; DELIMITER&#39;,&#39;;<br />
	&nbsp;</div>
<div>
	流し込む側のDBに同じ構成のtableを作っておく</div>
<div>
	copy bb2 from &#39;/home/postgres/flax/mail.bup&#39; USING DELIMITERS &#39;,&#39;;<br />
	で、これでうまくいったとおもいきや、</div>
<div>
	***ERROR: &nbsp;invalid input syntax for integer: &quot;&quot;</div>
<div>
	integerのカラムに空文字を入れるとエラーになるのでなんとかしなきゃいけないよな。。</div>
<br /><a href="http://futarixx.blog.shinobi.jp/db%E9%96%A2%E9%80%A3/postgres%EF%BC%9Acsv%E6%9B%B8%E3%81%8D%E5%87%BA%E3%81%97" target="_blank">つづきはこちら</a>]]>
    </description>
    <category>DB関連</category>
    <link>http://futarixx.blog.shinobi.jp/db%E9%96%A2%E9%80%A3/postgres%EF%BC%9Acsv%E6%9B%B8%E3%81%8D%E5%87%BA%E3%81%97</link>
    <pubDate>Mon, 01 Aug 2011 09:27:24 GMT</pubDate>
    <guid isPermaLink="false">futarixx.blog.shinobi.jp://entry/29</guid>
  </item>
    <item>
    <title>postfixについて</title>
    <description>
    <![CDATA[&nbsp;postfixはインストールはあるけど実際何をしたってことが今までなかった。。<br />
<br />
ブリッジを/etc/postfix/transportの中に書いて設定するんだけど、<br />
ドメイン：[IP]<br />
って形で設定していく。<br />
<br />
色んな振り分け方があるみたいで<br />
メアドの頭文字で切り分けもできるらしい。（教えてもらった）<br />
なるほどなるほど。<br type="_moz" /><br /><a href="http://futarixx.blog.shinobi.jp/%E6%97%A5%E8%A8%98/postfix%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6" target="_blank">つづきはこちら</a>]]>
    </description>
    <category>日記</category>
    <link>http://futarixx.blog.shinobi.jp/%E6%97%A5%E8%A8%98/postfix%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6</link>
    <pubDate>Mon, 01 Aug 2011 09:10:46 GMT</pubDate>
    <guid isPermaLink="false">futarixx.blog.shinobi.jp://entry/28</guid>
  </item>
    <item>
    <title>postgres高速。。</title>
    <description>
    <![CDATA[&nbsp;■postgresのSQLを書く時になるべく早くできるようにメモ■
<ul>
    <li>WHERE句の抽出条件は、最も制限の強いものから</li>
    <li>ORの代わりにINを使う　　<br />
    code =111 or code=222&nbsp;&nbsp;or code=333&nbsp;&nbsp;or code=444 ・・・・&nbsp;or code=100なら<br />
    code in (111,222,333,444・・・・100)<br />
    &nbsp;BitmapOr &nbsp;よりもBitmap Indexのほうが早い。&rarr; Index Cond: (code = ANYとなる方が○<br />
    でもINのかわりにEXISTSやany(arrayを使うとよいって書いてたけど試すと微妙。<br />
    わざわざ手間だししなくてもいいかとおもう。</li>
</ul>
<br type="_moz" />
<ul>
    <li>Index Scan Backwardの方がよりよい？？？<br />
    &nbsp;</li>
</ul><br /><a href="http://futarixx.blog.shinobi.jp/db%E9%96%A2%E9%80%A3/postgres%E9%AB%98%E9%80%9F%E3%80%82%E3%80%82" target="_blank">つづきはこちら</a>]]>
    </description>
    <category>DB関連</category>
    <link>http://futarixx.blog.shinobi.jp/db%E9%96%A2%E9%80%A3/postgres%E9%AB%98%E9%80%9F%E3%80%82%E3%80%82</link>
    <pubDate>Fri, 29 Jul 2011 03:35:41 GMT</pubDate>
    <guid isPermaLink="false">futarixx.blog.shinobi.jp://entry/27</guid>
  </item>
    <item>
    <title>Java:デザインパターン</title>
    <description>
    <![CDATA[<strong>&nbsp;Stateパターン</strong><span class="Apple-style-span" style="font-family: 'Hiragino Kaku Gothic Pro W3', 'ヒラギノ角ゴ Pro W3', Meiryo, メイリオ, Verdana, 'MS P Gothic', 'ＭＳ Ｐゴシック', Osaka, sans-serif; font-size: 13px; line-height: 19px; "><br />
「状態」をクラスとして表現するパターン<br />
<br />
<strong>Factoryパターン<br />
</strong></span><span class="Apple-style-span" style="font-family: 'Hiragino Kaku Gothic Pro W3', 'ヒラギノ角ゴ Pro W3', Meiryo, メイリオ, Verdana, 'MS P Gothic', 'ＭＳ Ｐゴシック', Osaka, sans-serif; font-size: 13px; line-height: 19px; ">オブジェクトの生成方法に一工夫加えることで、より柔軟にオブジェクトを生成する<br />
</span><span class="Apple-style-span" style="font-family: 'Hiragino Kaku Gothic Pro W3', 'ヒラギノ角ゴ Pro W3', Meiryo, メイリオ, Verdana, 'MS P Gothic', 'ＭＳ Ｐゴシック', Osaka, sans-serif; font-size: 13px; line-height: 19px; "><br />
こういうデザインパターンってなんとなく似てる気がする。。。<br />
<br />
<br />
<br />
<br />
<br type="_moz" />
<br />
</span><br />]]>
    </description>
    <category>JAVA</category>
    <link>http://futarixx.blog.shinobi.jp/java/java-%E3%83%87%E3%82%B6%E3%82%A4%E3%83%B3%E3%83%91%E3%82%BF%E3%83%BC%E3%83%B3</link>
    <pubDate>Fri, 22 Jul 2011 09:18:50 GMT</pubDate>
    <guid isPermaLink="false">futarixx.blog.shinobi.jp://entry/26</guid>
  </item>
    <item>
    <title>Flash:イベントリスナー</title>
    <description>
    <![CDATA[addEventListenerってつけないとボタン動かないし、つけても必要なくなったらremoveしなきゃいけない。<br />
<br />
で、そのリスナーついてたっけ？みたいなときにチェックする方法<br />
<br />
hasEventListenerをつかう。<br />
<pre><code>stage.hasEventListener(MouseEvent.CLICK);<br /><br /></code>イベントリスナーの削除はremoveEventListener()メソッドを使う。<code><br /><br />無名関数の削除は　<br />xx.addEventListener(MouseEvent.MOUSE_UP,arguments.callee);<br />と</code><code>arguments.callee</code>を使います。

覚えられん～～！

</pre>
<br />]]>
    </description>
    <category>flash</category>
    <link>http://futarixx.blog.shinobi.jp/flash/flash-%E3%82%A4%E3%83%99%E3%83%B3%E3%83%88%E3%83%AA%E3%82%B9%E3%83%8A%E3%83%BC</link>
    <pubDate>Tue, 29 Dec 2009 01:17:25 GMT</pubDate>
    <guid isPermaLink="false">futarixx.blog.shinobi.jp://entry/25</guid>
  </item>
    <item>
    <title>AS3:addEventListnerのりかい</title>
    <description>
    <![CDATA[引数をわたさないとき<br />
<br />
test.addEventListener(MouseEvent.MOUSE_DOWN,moveDrag);<br />
function moveDrag(e:MouseEvent):void {<br />
&nbsp;&nbsp;&nbsp; startDrag();<br />
}<br />
<br />
引数を渡す時<br />
test.addEventListener(MouseEvent.MOUSE_DOWN,function(event:MouseEvent):void {;<br />
moveDrag(1);<br />
});<br />
function moveDrag(no:int):void {<br />
&nbsp;&nbsp;&nbsp; trace(no);<br />
&nbsp;&nbsp;&nbsp; if (no==1) {<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; startDrag();<br />
&nbsp;&nbsp;&nbsp; } else {<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; stopDrag();<br />
<br />
&nbsp;&nbsp;&nbsp; }<br />
}<br />
ってかかないといけないらしい。<br />
全くきづかなかった・・・・<br />
あとは<br />
<br />
<br />
<br />
<br /><br /><a href="http://futarixx.blog.shinobi.jp/flash/as3-addeventlistner%E3%81%AE%E3%82%8A%E3%81%8B%E3%81%84" target="_blank">つづきはこちら</a>]]>
    </description>
    <category>flash</category>
    <link>http://futarixx.blog.shinobi.jp/flash/as3-addeventlistner%E3%81%AE%E3%82%8A%E3%81%8B%E3%81%84</link>
    <pubDate>Fri, 20 Nov 2009 08:26:04 GMT</pubDate>
    <guid isPermaLink="false">futarixx.blog.shinobi.jp://entry/24</guid>
  </item>
    <item>
    <title>Flash:ダイナミックテキストでの改行</title>
    <description>
    <![CDATA[MCにあるダイナミックテキストの動的に文字よみこんで<br />
長すぎたから改行したいってとき。<br />
<br />
<span class="_LSUCS">&quot;あいうえお&quot; + newline + &quot;かきくけこ&quot;　って渡すと<br />
<br />
あいうえお<br />
かきくけこ<br />
<br />
になった！知らなかったのでメモ。<br />
</span><br />]]>
    </description>
    <category>未選択</category>
    <link>http://futarixx.blog.shinobi.jp/%E6%9C%AA%E9%81%B8%E6%8A%9E/flash-%E3%83%80%E3%82%A4%E3%83%8A%E3%83%9F%E3%83%83%E3%82%AF%E3%83%86%E3%82%AD%E3%82%B9%E3%83%88%E3%81%A7%E3%81%AE%E6%94%B9%E8%A1%8C</link>
    <pubDate>Fri, 13 Nov 2009 03:08:15 GMT</pubDate>
    <guid isPermaLink="false">futarixx.blog.shinobi.jp://entry/23</guid>
  </item>

    </channel>
</rss>