2009年11月8日日曜日

Faster JavaScript with Closure

http://code.google.com/intl/closure/

http://code.google.com/intl/closure/closure/templates/docs/helloworld_js.html

2009年9月18日金曜日

Twitter

EmbedはQueyを複数指定しするとLoadingのままとなって、NGのようです。











2009年9月11日金曜日

XMPP Python API



Thursday, September 3, 2009
App Engine SDK 1.2.5 released for Python and Java, now with XMPP support

XMPP Python API Overview

http://code.google.com/intl/ja/appengine/docs/python/xmpp/overview.html

2009年8月4日火曜日

Index 復活


ようやく復活

properties: [] 

このインデックスは削除しないように注意

diff は一切表示なし。
C:\google>appcfg.py vacuum_indexes blog-editor
Fetching index definitions diff.

C:\google>

エラーログの内容を index.yaml に素直に追加するのが一番
- kind: Img
properties:
- name: open_mode
- name: category
direction: desc
- name: modified
direction: desc

2009年8月1日土曜日

Index Error

"

"
日本語の解説が作成されていいます。
依然として待ち状態

2009年7月31日金曜日

Google App Engine : Index Error

どうやらまた同じようなミスをしてしまった

http://groups.google.co.jp/group/google-app-engine-japan/msg/2cc3dbed1cbb8ccf


このパターンだと思われ、1日待ってみる必要がある。
index.yaml の該当部分を削除して vacume_indexes しても Status が Error の
ままで Deleting にならず、削除が開始されない。 結果、 Error が消えないのでどうしようもない。

ローカル: 2009年7月21日(火) 午前11:52
件名: Re: can not force delete a index with error!

I wasn't able to delete the "Error" status index for a day, the next
day when I tried vacuum_indexes it got deleted without any problem.

The fist day I tried many times, but the index status was "Error" it
didn't change to "Deleting...". It was kind of stuck at the error
status.



関連

Google App Engineで、index.yamlに記述したインデックスが正しく生成されないときの対処法
http://akisute.com/2009/05/google-app-engineindexyaml.html

GAE(google app engine) インデックスのトラブルの顛末
http://osima.jp/blog/gae-index-in-trouble.html

2009年5月29日金曜日

Blogger API / max_resuts



X max-results
○ max_results


ex. この値をセットしないと25程度しか reults が得られない

start_time ='2009-05-01'
end_time ='2009-05-31'
query = service.Query()
query.feed = '/feeds/' + blogID + '/posts/default'
query.max_results = "100"

query.published_min = start_time
query.published_max = end_time
feed = gd_service.Get(query.ToUri())



SQL and GQL                                             TOP

is null from google.appengine.ext import db
r = db.GqlQuery ("SELECT * FROM model WHERE property=:1",None) # None is the python Null. / see
count(*) r.count()
like r = db.GqlQuery("SELECT * FROM model WHERE property >= :1 and property < :2 ", search_key, urllib.unquote(search_key).decode("utf8") + u"\uFFFD" )
update see
!=!= # see
dateyymm = '2008-05-10 22:22:22' # see ydate = datetime.datetime.strptime(yymm, '%Y-%m-%d %H:%M:%S')
日付検索 from datetime import *
import datetime
d1 = datetime.datetime.strptime('2008-06-01', '%Y-%m-%d')
d2 = d1 + timedelta(days=10)
r = db.GqlQuery("select * from model where date >=:1 and date <:2 ",d1,d2)
 for rr in r: print datetime.datetime.strftime(rr,'%Y-%m-%d %H:%M:%S')
Dates and Times
datastore viewer
http://localhost:8080/_ah/admin/datastore?kind=StockSum&order=-nikkei_max&order_type=float&num=100&start=0
referencesee (back-references), Many-to-many Join
key, key_name ,id Key names and IDs cannot be used like property values
× select * from Greeting where key = "xxxx"
× select * from Greeting where id = xxx
○ r = Greeting.get(db.Key.from_path('Greeting', id)) # or key_name
○ r = db.get("agpoZWxsb3dvcmxkcgsLEgRCbG9nGNQBDA")
key = r.key()
id = r.key().id()