<?xml version="1.0" encoding="UTF-8" ?>
<feed xml:lang="ja" xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:thr="http://purl.org/syndication/thread/1.0">
  <title type="text">よろよろ開発日記</title>
  <subtitle type="html">いろいろな壁にぶちあたって玉砕しながらも進んでってます。</subtitle>
  <link rel="self" type="application/atom+xml" href="http://futarixx.blog.shinobi.jp/atom"/>
  <link rel="alternate" type="text/html" href="http://futarixx.blog.shinobi.jp/"/>
  <updated>2007-05-31T09:29:51+09:00</updated>
  <author><name>あゆみっくす</name></author>
  <generator uri="//www.ninja.co.jp/blog/" version="0.9">忍者ブログ</generator>
  <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" />
  <entry>
    <id>futarixx.blog.shinobi.jp://entry/32</id>
    <link rel="alternate" type="text/html" href="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" />
    <published>2011-08-09T15:07:42+09:00</published> 
    <updated>2011-08-09T15:07:42+09:00</updated> 
    <category term="DB関連" label="DB関連" />
    <title>postgres起動時に。</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![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" />]]> 
    </content>
    <author>
            <name>あゆみっくす</name>
        </author>
  </entry>
  <entry>
    <id>futarixx.blog.shinobi.jp://entry/31</id>
    <link rel="alternate" type="text/html" href="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" />
    <published>2011-08-09T14:15:21+09:00</published> 
    <updated>2011-08-09T14:15:21+09:00</updated> 
    <category term="DB関連" label="DB関連" />
    <title>postgresでのこと。</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![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>
]]> 
    </content>
    <author>
            <name>あゆみっくす</name>
        </author>
  </entry>
  <entry>
    <id>futarixx.blog.shinobi.jp://entry/30</id>
    <link rel="alternate" type="text/html" 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" />
    <published>2011-08-03T17:15:07+09:00</published> 
    <updated>2011-08-03T17:15:07+09:00</updated> 
    <category term="DB関連" label="DB関連" />
    <title>postgresバージョンUP</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![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>]]> 
    </content>
    <author>
            <name>あゆみっくす</name>
        </author>
  </entry>
  <entry>
    <id>futarixx.blog.shinobi.jp://entry/29</id>
    <link rel="alternate" type="text/html" 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" />
    <published>2011-08-01T18:27:24+09:00</published> 
    <updated>2011-08-01T18:27:24+09:00</updated> 
    <category term="DB関連" label="DB関連" />
    <title>postgres：CSV書き出し</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![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>]]> 
    </content>
    <author>
            <name>あゆみっくす</name>
        </author>
  </entry>
  <entry>
    <id>futarixx.blog.shinobi.jp://entry/28</id>
    <link rel="alternate" type="text/html" 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" />
    <published>2011-08-01T18:10:46+09:00</published> 
    <updated>2011-08-01T18:10:46+09:00</updated> 
    <category term="日記" label="日記" />
    <title>postfixについて</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![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>]]> 
    </content>
    <author>
            <name>あゆみっくす</name>
        </author>
  </entry>
  <entry>
    <id>futarixx.blog.shinobi.jp://entry/27</id>
    <link rel="alternate" type="text/html" 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" />
    <published>2011-07-29T12:35:41+09:00</published> 
    <updated>2011-07-29T12:35:41+09:00</updated> 
    <category term="DB関連" label="DB関連" />
    <title>postgres高速。。</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![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>]]> 
    </content>
    <author>
            <name>あゆみっくす</name>
        </author>
  </entry>
  <entry>
    <id>futarixx.blog.shinobi.jp://entry/26</id>
    <link rel="alternate" type="text/html" href="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" />
    <published>2011-07-22T18:18:50+09:00</published> 
    <updated>2011-07-22T18:18:50+09:00</updated> 
    <category term="JAVA" label="JAVA" />
    <title>Java:デザインパターン</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![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 />]]> 
    </content>
    <author>
            <name>あゆみっくす</name>
        </author>
  </entry>
  <entry>
    <id>futarixx.blog.shinobi.jp://entry/25</id>
    <link rel="alternate" type="text/html" href="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" />
    <published>2009-12-29T10:17:25+09:00</published> 
    <updated>2009-12-29T10:17:25+09:00</updated> 
    <category term="flash" label="flash" />
    <title>Flash:イベントリスナー</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![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 />]]> 
    </content>
    <author>
            <name>あゆみっくす</name>
        </author>
  </entry>
  <entry>
    <id>futarixx.blog.shinobi.jp://entry/24</id>
    <link rel="alternate" type="text/html" href="http://futarixx.blog.shinobi.jp/flash/as3-addeventlistner%E3%81%AE%E3%82%8A%E3%81%8B%E3%81%84" />
    <published>2009-11-20T17:26:04+09:00</published> 
    <updated>2009-11-20T17:26:04+09:00</updated> 
    <category term="flash" label="flash" />
    <title>AS3:addEventListnerのりかい</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![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>]]> 
    </content>
    <author>
            <name>あゆみっくす</name>
        </author>
  </entry>
  <entry>
    <id>futarixx.blog.shinobi.jp://entry/23</id>
    <link rel="alternate" type="text/html" href="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" />
    <published>2009-11-13T12:08:15+09:00</published> 
    <updated>2009-11-13T12:08:15+09:00</updated> 
    <category term="未選択" label="未選択" />
    <title>Flash:ダイナミックテキストでの改行</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[MCにあるダイナミックテキストの動的に文字よみこんで<br />
長すぎたから改行したいってとき。<br />
<br />
<span class="_LSUCS">&quot;あいうえお&quot; + newline + &quot;かきくけこ&quot;　って渡すと<br />
<br />
あいうえお<br />
かきくけこ<br />
<br />
になった！知らなかったのでメモ。<br />
</span><br />]]> 
    </content>
    <author>
            <name>あゆみっくす</name>
        </author>
  </entry>
</feed>