Archive for 5月, 2011

 

The Year Ahead for Google App Engine!

5月 15th, 2011

The Year Ahead for Google App Engine! http://googleappengine.blogspot.com/2011/05/year-ahead-for-google-app-engine.html http://googledevjp.blogspot.com/2011/05/google-app-engine-preview.html 今年の後半に、料金体系はかわるそうで Paidは月額 9 $ が必要になり。 SLAが 99.95とか ストレージは、HRDになり 0.24$かな もう少ししたら今の状況で新しい料金体系になったらいくらかサンプルが出るようです。 appengine SDK 1.5.0もリリースされましたね。 http://code.google.com/intl/ja/appengine/downloads.html

Read full article | コメントは受け付けていません。

05/13 vps 移行テスト

5月 13th, 2011

mysql wordpress Now Testing

Read full article | コメントは受け付けていません。

mysql error | Error message file ‘/usr/share/mysql/english/errmsg.sys’ had only 480 error messages

5月 13th, 2011

remiをいれたり、i386が入ってしまったりするとエラーになるので、いったん削除して入れなおす。 #yum remove mysql* #yum –enablerepo=remi install php-mysql mysql-server 起動できないときは、エラーの内容によっていかを試す。 http://dev.mysql.com/doc/refman/5.1/ja/installation-programs.html * mysql_install_db * mysql_upgrade 110513 19:16:13 [ERROR] Missing system table mysql.proxies_priv; please run mysql_upgrade to create it

Read full article | コメントは受け付けていません。

epub 電子書籍を見てみる。

5月 12th, 2011

http://www.adobe.com/products/digitaleditions/ ここから Adobe degital editions をダウンロードしてインストールしました。 電子書籍サイトからサンプルの epubファイルをダウンロードしてみました。 なんとも言えませんが・・・ 購入・レンタルなどを制御できるようなのでその点は良いのでしょうね。 漫画大国日本にとっては、有力なツールとなることは間違いありません。 携帯コミックから電子書籍への移行は注目ですね。

Read full article | コメントは受け付けていません。

bi-gram解析器でindex & query | Lucene PHP

5月 12th, 2011

英数字連続 + bi-gram解析器のアナライザーを作ってやっと動きました^-^。 ☆以下サイトを参考にさせてもらいました。 Mecab解析器 : http://nonn-et-twk.net/twk/php-lucene-japanese-search CJKIndexを利用して生成した索引の検索 : http://codezine.jp/article/detail/3947?p=3 UTF-8 互換のテキスト解析器 : http://framework.zend.com/manual/ja/zend.search.lucene.charset.html === sample === インデックスに追加! Lib_Bigramが自分のアナライザーです。 Zend_Search_Lucene_Analysis_Analyzer::setDefault( new Lib_Bigram() ) ; //Zend_Search_Lucene_Analysis_Analyzer::setDefault( new Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8()); $indexFile = ‘/tmp/myIndex'; $index = null; if( !is_dir($indexFile) ){ $index = Zend_Search_Lucene::create($indexFile); }else{ $index = Zend_Search_Lucene::open($indexFile); } setIndex( ‘9xyz’,’888『賭博黙示録カイジ』今日は少女時代。999′,$index); setIndex(‘snsd’,’SNSD Live in TOKYO’, $index ); setIndex( ‘123’,’Zend_Search_Lucene は、完全に […]

Read full article | コメントは受け付けていません。

http://www.pcre.org/pcre.txt

5月 12th, 2011

http://www.pcre.org/pcre.txt in UTF-8 mode, characters with values greater than 128 do not match any of the POSIX character classes. However, if the PCRE_UCP option is passed to pcre_compile(), some of the classes are changed so that Unicode character properties are used. This is achieved by replac- ing the POSIX classes by other sequences, as follows: […]

Read full article | コメントは受け付けていません。

インデックスの構築 | Lucene PHP

5月 11th, 2011

http://framework.zend.com/manual/ja/zend.search.lucene.overview.html Zend_Search_Lucene_Field の型 フィールド型 保存 インデックス化 トークン化 バイナリ Keyword Yes Yes No No UnIndexed Yes No No No Binary Yes No No Yes Text Yes Yes Yes No UnStored No Yes Yes No 使い方によって保存方法を選べますね。自分の場合は、検索だけでデータは、別に保存するので検索して独自のIDだけ取得出来れば大丈夫なので。 $indexFile = ‘/tmp/myIndex'; $index = null; if( !is_dir($indexFile) ){ $index = Zend_Search_Lucene::create($indexFile); }else{ $index = Zend_Search_Lucene::open($indexFile); } // add to index […]

Read full article | コメントは受け付けていません。

install Lucene PHP for centos 64bit

5月 11th, 2011

# yum search lucene Loaded plugins: fastestmirror Determining fastest mirrors * addons: ftp.nara.wide.ad.jp * base: ftp.nara.wide.ad.jp * epel: ftp.kddilabs.jp * extras: ftp.nara.wide.ad.jp * updates: ftp.nara.wide.ad.jp addons | 951 B 00:00 base | 2.1 kB 00:00 epel | 3.7 kB 00:00 epel/primary_db | 3.7 MB 00:00 extras | 2.1 kB 00:00 updates | 1.9 kB 00:00 […]

Read full article | コメントは受け付けていません。

HTTP POST PUTが遅い. | google app engine

5月 10th, 2011

なんとなくやっていて気付かなかったけど 数字を見ていて・・・なことに気がついた。。。。 POSTが。。。。遅い。 自分の環境も関係あるかもしれませんが、数か所(appengine側も数ユーザーのアプリケーションに対して)から試してみましたが同じ感じです。 appengineにPOSTリクエストすると遅いです。 POSTデータを付けて送ると何も処理しなくても遅いです。。。 1KBとかではなくて、数バイトPOSTで送るだけでだいたい2秒かかります。 原因はわかりません。ただ遅いです。 PUTに書き換えてみましたが、やはり遅いです。2秒かかります。 GETは速いです。 同じデータ量で、1KB以上でも速いです。 ただ2048bytesまでしか送ることが出来ないので・・・ 別の方法を考えたほうが良さそうです。 ユーザー向けの部分で使わないからまぁ良いかな。2KB以内ならGetで良いし。

Read full article | コメントは受け付けていません。

db.Model+db.put()と Entity+datastore.Put()の速度比較 python | google app engine

5月 10th, 2011

とりあえず、書いてみたのですが予想通り。 datastore.Putは db.putの中で呼ばれてるだけなので、やってることは一緒ということで差はありませんでした。 Model , 各 propertyも何か邪魔になるようなこともしていないようで。 50件put db.Model継承 db.put 319ms 2210cpu_ms 2000api_cpu_ms | cost -254 megacycles. 273ms 2210cpu_ms 2000api_cpu_ms | cost -245 megacycles. 250ms 2210cpu_ms 2000api_cpu_ms | cost -235 megacycles. 334ms 2233cpu_ms 2000api_cpu_ms | cost -271 megacycles. 665ms 2210cpu_ms 2000api_cpu_ms | cost -267 megacycles. 直接 entity作って、datastore.Put。low level api 470ms 2233cpu_ms 2000api_cpu_ms | cost -249 […]

Read full article | コメントは受け付けていません。