[google-appengine] Re: Using __key__ and SearchableModel

2009-06-12 Thread acuth

With the SearchableModel class you get a new method called search()
that takes as a parameter the terms you are searching on. AFAIK there
isn't a GQL construct that matches it.

On Jun 12, 3:48 am, Antoniov nio@gmail.com wrote:
 SELECT [* | __key__ ] FROM entity
 [WHERE condition [AND condition ...]]
 [ORDER BY property [ASC | DESC] [, property [ASC | DESC] ...]]
 [LIMIT [offset,]count]
 [OFFSET offset]
 [HINT (ORDER_FIRST | HINT FILTER_FIRST | HINT ANCESTOR_FIRST)]

 Is this what you're looking for?

 On 6月12日, 上午7时09分, acuth adrian.cuthb...@gmail.com wrote:



  Hi everyone,

  just caught up with one of those Google IO videos about developing
  apps on GAE. I was already using separated out index-blocks so that I
  could restrict what was indexed for SearchableModel. Now I just want
  to return the keys rather than the object themselves.

  Does anybody know if it is possible to return just the keys - as per
  SELECT __KEY__ or Query(keys_only=True) - on queries/searches using
  the SearchableModel class, for example:

  from google.appengine.ext import search

  class ItemIB(search.SearchableModel):
  name = db.StringProperty()

  
  # search for items with name that matches q, but returns entire
  ItemIB
  query = ItemIB.all().search(q)

  # try replacing Model.all() with db.Query(Model) doesn't work
  query = db.Query(ItemIB,keys_only=True).search(q)
  

  Any help very gratefully received, Adrian
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Data Preload Script Equivalent?

2009-06-12 Thread djidjadji

Or use the remote api [1] and write a python script on your local
computer to parse the file with insert statements and create the
objects. This is kind of what bulkupload does but using CSV files for
input.
If you parse the file into a dictionary, key=attribute name. You can use

myObj = MyObject(**parsedDict)

to create an object of that type.

[1] http://code.google.com/appengine/articles/remote_api.html

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Monitoring Server on GAE?

2009-06-12 Thread chenbaiping

Are you looking for http://timer2.appspot.com
It was developed by our group last year.

It has following services:
# Monitor your website, if your website fails, you will be notified by an
email.
# Set up cron jobs for you web app .
# Send timing email.

-邮件原件-
发件人: google-appengine@googlegroups.com
[mailto:google-appeng...@googlegroups.com] 代表 shlomo
发送时间: 2009年6月10日 23:26
收件人: Google App Engine
主题: [google-appengine] Monitoring Server on GAE?


GAE seems very well suited to hosting a monitoring server which
collects monitoring events from my hosted (elsewhere) applications and
presents GUI reports, send alert emails, etc.

I'm aware of the Hyperic product that monitors GAE apps, but I'm
looking for the opposite: something that runs on GAE and monitors
other services.

Anyone heard of anything like this?

Thanks.






--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Is there a way to specify a cron job run between two time point?

2009-06-12 Thread chenbaiping

This interesting website maybe meet your requirement. http://stress-testing.
appspot.com

First, you can build a cron job triggers at 12:00 every day. 
Second, the trigger should fetch following url
http://stress-testing.appspot.com/serial/72/delay/300/your-job-url

your-job-url is your working cron job.

You can also use http://timer2.appspot.com to create this cron job.


-邮件原件-
发件人: google-appengine@googlegroups.com
[mailto:google-appeng...@googlegroups.com] 代表 xiaojay
发送时间: 2009年6月10日 14:56
收件人: Google App Engine
主题: [google-appengine] Is there a way to specify a cron job run between
two time point?


for example : I want my job to be runned every 5 mins between 12:00 to
18:00 every day





--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: why there is no way to build a key id?

2009-06-12 Thread cryb

Hi.. that is to build key names... What I asked was why I can't build
a key ID..

On Jun 12, 5:35 am, Antoniov nio@gmail.com wrote:
 Use the code:
 s = Story(key_name=xzy123)
 Then you create an entity with the key name xzy123.

 Check 
 this:http://code.google.com/intl/en-US/appengine/docs/python/datastore/key...

 On 6月12日, 上午1时28分, cryb cbuti...@gmail.com wrote:

  Does anyone know why it is possible to build a key name but NOT a key
  id? I know key IDs are used as autoincrements, but why can't I just
  override this mechanism and build my own key id?
  Suppose I want to overwrite an existent entry in my table that has a
  key id I know, and also I want to keep that key id after update...
  because I can't just build a key id, I am forced to fetch that entity,
  modify it and write it back, instead of just write the updated entity
  with the key id I already know - so an additional read to the
  datastore.
  Is there an obscure reason for that? (both key names and key ids are
  prefixed with appid/kind as far as I know so there is no chance of
  collision with other apps/kinds)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Small query re. counter example in IO 09 task queue presentation

2009-06-12 Thread peterk

Hey all..

Just wondering if I picked this up wrong or if this would indeed need
some changing. Looking at the counter example in this presentation:

http://code.google.com/events/io/sessions/OfflineProcessingAppEngine.html

(From slide 37 in the PDF)

Basically, is this example not depending on cache being persistent in
order to work? You're incrementing the counter in cache, then
periodically persisting it to the DB, but if the cache drops your
counter here, you're basically going to reset your counter (and thus
reset the counter in the DB on the next queued update).

For a real world counter would you not need to basically write the
changes to the counter individually to cache (e.g. 'counter_x
+1','counter_x+1'..), then aggregate these changes in your task
handler and add the result to the counter in the DB?

A small thing..but bugging me in case I'm missing something :) I
wasn't at IO, just watching the presentations now, and I'm seriously
enthused by what this all might mean for write costs..there are apps
in my head with high write rates and that would benefit from
'aggregate, then write', and this could make things a lot easier.
Awesome stuff appengine team! :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] https access through naked domain

2009-06-12 Thread Jesse Grosjean

I'm hosting my website (www.hogbaysoftware.com) through Google Apps
and on Google App engine.

Previously this site was hosted on another service that allowed naked
domains, so I have many incoming links of the form http://hogbaysoftware.com.
To fix these links I enabled forwarding on Godaddy.com and generally
that fixed the problem. Now most naked domains get forwarded to
www.hogbaysoftware.com.

The problem is that I also have some secure https incoming links such
as:

https://hogbaysoftware.com/store

And unfortunately these (naked domain links using https) aren't
getting properly forwarded. When I enter the above link in my browser
the browser just says Loading... for a long time and then responds
with:

Safari can’t open the page “https://hogbaysoftware.com/store” because
the server where this page is located isn’t responding.

Has anyone else noticed this problem. Can anyone recommend a solution?

Thanks,
Jesse
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: https access through naked domain

2009-06-12 Thread Jesse Grosjean

I forgot on last bit of information. I no longer need https support
for any page on my site. So in the above example I would be happy to
have https://hogbaysoftware.com/store turn into 
http://www.hogbaysoftware.com/store,
I don't need it forwarded to my secure appspot domain.

Thanks,
Jesse
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: https access through naked domain

2009-06-12 Thread Nick Johnson (Google)
Hi Jesse,

The problem here is likely that GoDaddy aren't serving redirects over port
443 (the HTTPS port). Even if they were, users would get dire warnings about
broken SSL certificates.

The only solution is to find someone who will serve 302 redirects and host
your SSL certificate (someone you trust, naturally). I'm not sure if there
are any commercial services that will do that. It's fairly straightforward
to set up in Apache, if you have your own server somewhere, though.

-Nick Johnson

On Fri, Jun 12, 2009 at 4:25 PM, Jesse Grosjean je...@hogbaysoftware.comwrote:


 I'm hosting my website (www.hogbaysoftware.com) through Google Apps
 and on Google App engine.

 Previously this site was hosted on another service that allowed naked
 domains, so I have many incoming links of the form
 http://hogbaysoftware.com.
 To fix these links I enabled forwarding on Godaddy.com and generally
 that fixed the problem. Now most naked domains get forwarded to
 www.hogbaysoftware.com.

 The problem is that I also have some secure https incoming links such
 as:

 https://hogbaysoftware.com/store

 And unfortunately these (naked domain links using https) aren't
 getting properly forwarded. When I enter the above link in my browser
 the browser just says Loading... for a long time and then responds
 with:

 Safari can’t open the page “https://hogbaysoftware.com/store” because
 the server where this page is located isn’t responding.

 Has anyone else noticed this problem. Can anyone recommend a solution?

 Thanks,
 Jesse
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: DB design best practices

2009-06-12 Thread Nick Johnson (Google)
Hi n8gray,

The system you outline seems reasonable too. I'm not sure there's much value
in splitting out GameState and GameMeta, but otherwise they seem reasonable.
My main concern behind not having a separate GamePlayer entity would be a
profusion of ListProperties for per-player data, but if you think that's
manageable, go right ahead! :)

-Nick Johnson

On Fri, Jun 12, 2009 at 12:07 AM, n8gray n8g...@gmail.com wrote:


 Hi Nick,

 On Jun 11, 4:19 am, Nick Johnson (Google) nick.john...@google.com
 wrote:
  Hi n8gray,
 
  Excellent question!
 
  Given the amount of information you're likely to store against
 Players2Games
  (GamePlayers, perhaps?), and the number of games any one player may have,
  and the likely access patterns, I would suggest sticking with a separate
  model for it.

 Interesting -- I came to the opposite conclusion but maybe my
 reasoning isn't sound.  Here's what I've got right now (untested, so
 it may contain syntax errors and such):

 class GameState(VersionedModel):
# Parent should be a GameMeta
scores = db.ListProperty(int)
other gritty details of the current game state

 class GameTurn(VersionedModel):
# Parent should be a GameMeta
creationDate = db.DateTimeProperty(auto_now_add=True)
player = db.ReferenceProperty(User)
turn_score = db.IntegerProperty()
more gritty details about this turn

 This is the stuff you only care about if you're currently playing the
 game.  The scores may be better placed in GameMeta -- I haven't
 decided yet.

 class GameMeta(VersionedModel):
name = db.StringProperty(required=True)
password = db.StringProperty(indexed=False)
creationDate = db.DateTimeProperty(auto_now_add=True)
isActive = db.BooleanProperty(default=True)
# In case of tie, there can be more than one winner
winners = db.ListProperty(db.Key, default=None)
playerCount = db.IntegerProperty(required=True)
currentPlayer = db.ReferenceProperty(User, required=True)
currentPlayerNumber = db.IntegerProperty(default=0)
gameState = db.ReferenceProperty(GameState)
players = db.ListProperty(db.Key)

 GameMeta holds all the metadata of the game.  I moved the players list
 in here (despite watching Brett Slatkin's I/O talk on list properties)
 because I reasoned that a) the serialization/deserialization overhead
 for 4 elements wouldn't be too bad, and b) You're going to want the
 player list every time you retrieve the game anyway.  If you think
 this is unwise, however, I'm interested to hear why.


  The main lesson for using the datastore instead of a relational database
 is
  simply to denormalize and precalculate. In this case, that likely means
  storing running totals (number of turns, score, etc) against the
  Players2Games entity, instead of calculating them when needed as you
 might
  in a relational database.

 Yeah, I was planning to do a fair bit of denormalization.

  Tony's point about entity groups is an excellent one. Based on the sort
 of
  updates you're likely to want to do, and the access patterns in an app
 like
  this, I would suggest making the Players2Games entities child entities of
  the related Games entity, and making the Turns entities likewise child
  entities of their Games entity. This way, each game has its own entity
  group, so you can make atomic (transactional) updates across the whole
 game
  with ease.

 At least I got that part right!

 Thanks,
 -n8

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: https access through naked domain

2009-06-12 Thread Jesse Grosjean

Nick,

 The problem here is likely that GoDaddy aren't serving redirects over port
 443 (the HTTPS port). Even if they were, users would get dire warnings about
 broken SSL certificates.

Thanks for your quick response.

 The only solution is to find someone who will serve 302 redirects and host
 your SSL certificate (someone you trust, naturally). I'm not sure if there
 are any commercial services that will do that. It's fairly straightforward
 to set up in Apache, if you have your own server somewhere, though.

Thanks for your help. I guess I'll just ignore the problem for now...
that's why I love Google App Engine so much, because I don't  have to
deal with servers, apache, SSL certificates... A! I don't want to
go back to that world :) But I'll explain the problem to Godaddy and
see if they have a suggestion.

Thanks again for your answer.

Jesse
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: ??? Over Quota ???

2009-06-12 Thread Jeff S (Google)

Hello again Sebastian,

I made some changes yesterday that should have alleviated the
situation for your app. Please let me know if you see any additional
403 Over Quota errors when the dashboard does not show any quotas as
limited.

Thank you,

Jeff

On Jun 11, 11:32 am, Jeff S (Google) j...@google.com wrote:
 Hi Sebastian,

 I did receive the source code and we should be able to alleviate the
 situation soon for your app and for the other app which was experiencing a
 similar issue (I linked to that thread in an earlier email). This is an
 extremely rare case in which parts of your code trigger an issue on the App
 Engine system. Apologies for the inconvenience, I'll keep you updated.

 Thank you,

 Jeff

 On Thu, Jun 11, 2009 at 10:08 AM, Sebastian Aviña
 sebastianav...@gmail.comwrote:

  Jeff,
  I just want to know, if you received my email with the source code, and if
  you can tell if you think we can solve this issue by this week, or if I
  should start adapting my code for a full django server instead of
  appengine...

  Thanks,

  --
  Ing. Josué Sebastian Aviña Gonzalez.

  Rectificaciones Aviña, S.A. de C.V.
  Administración general.

  Trabajo.
   +52 (618) 817 0949
   +52 (618) 817 0709
  Fax.
   +52 (618) 817 1894
  Casa.
   +52 (618) 818 7327
  Celular.
   +52 (618) 119 7771

 http://www.edurango.com.mx
  sebastianav...@edurango.com.mx

  *** Quien se rinde ante lo que parece imposible, ya esta destinado al
  fracaso.

  On Wed, Jun 10, 2009 at 4:16 PM, Jeff S (Google) j...@google.com wrote:

  Hi Sebastian,

  After looking into this issue, it seems it is likely related to the
  same issue as this thread:

 http://groups.google.com/group/google-appengine/browse_thread/thread/...

  As we asked with Jim's app, would you be willing to let us look at the
  full source code for your application? Please email it to me privately
  if that is acceptable. If not, please let me know, this isn't a
  requirement but it should help us get to the root cause more quickly.

  Thank you,

  Jeff

  On Jun 9, 6:29 pm, Jeff S (Google) j...@google.com wrote:
   I see it now too and I'm investigating.

   -Jeff

   On Tue, Jun 9, 2009 at 6:16 PM, Thomas Wiradikusuma
   wiradikus...@gmail.comwrote:

just checked it from here (Indonesia) at 8:15am (local time), yup it's
an honest 403.

On Jun 10, 2:13 am, Sebastian Aviña sebastianav...@gmail.com wrote:
 hi Jeff,
 the webpage works fine for periods of 30 minutes, and then all the
  web
page
 triggers the 403 over quota error for about two hours...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Google Search API search results changed when used in Google Appengine

2009-06-12 Thread Ryan Sin

Hi,

There is a problem that for a particular search query with Google
Search API when I use it with Google App Engine:

The query:
http://ajax.googleapis.com/ajax/services/search/web?start=0rsz=smallv=1.0ned=cnhl=zh-CNq=allintext:%E6%B4%AA%E5%B0%8F%E8%8E%B2%2B%E8%91%A3%E8%B5%B5%E6%B4%AA%E5%A8%89

When I run my App Engine application in my local machine and make the
query, the result is:

{responseData: {results:
[{GsearchResultClass:GwebSearch,unescapedUrl:http://
www.takungpao.com:1/gate/gb/www.takungpao.com/news/07/10/29/SD-815576.htm,url:http://www.takungpao.com:1/gate/gb/www.takungpao.com/news/07/10/29/SD-815576.htm,visibleUrl:www.takungpao.com,cacheUrl:http://www.google.com/search?q\u003dcache:NdMGT7d_IugJ:www.takungpao.com,title:今天是
2009年6月6日 星期六 显示器最佳分辨率1024X768 今日天气 加入 \u003cb\u003e...\u003c/b
\u003e,titleNoFormatting:今天是 2009年6月6日 星期六 显示器最佳分辨率1024X768 今日天气 加
入 ...,content:2007年10月29日 \u003cb\u003e...\u003c/b\u003e \u003cb
\u003e董赵洪娉\u003c/b\u003e;警务处副处长任达荣;佛教联合会释智鸿;中国银行林广兆;永隆银行伍步  高、伍步刚;长江集团
\u003cb\u003e洪小莲\u003c/b\u003e;印尼总领事Ferry Adamhar;香港瓷 \u003cb\u003e...
\u003c/b\u003e},
{GsearchResultClass:GwebSearch,unescapedUrl:http://
paper.wenweipo.com/2008/02/11/AY0802110002.htm,url:http://
paper.wenweipo.com/2008/02/11/
AY0802110002.htm,visibleUrl:paper.wenweipo.com,cacheUrl:http://
www.google.com/search?q\u003dcache:VsFo5DdIGOMJ:paper.wenweipo.com,title:工商界姊妹筹庆妇女节-
香港文汇报,titleNoFormatting:工商界姊妹筹庆妇女节- 香港文汇报,content:2008年2月11日
\u003cb\u003e...\u003c/b\u003e 大会通过将邀请的主礼嘉宾包括:全国政协副主席董建华夫人\u003cb\u003e
董赵洪娉\u003c/b\u003e、行政 \u003cb\u003e...\u003c/b\u003e 姚林  秀美、施陈丽雅、施云娥、施洁
玲、柯达权、\u003cb\u003e洪小莲\u003c/b\u003e、胡葆琳、胡慧 \u003cb\u003e...\u003c/b
\u003e},{GsearchResultClass:GwebSearch,unescapedUrl:http://
www.takungpao.com/news/08/01/23/SD-676833.htm,url:http://www.takungpao.com/news/08/01/23/SD-676833.htm,visibleUrl:www.takungpao.com,cacheUrl:http://www.google.com/search?q\u003dcache:7AwoTO8lfU4J:www.takungpao.com,title:大公网,titleNoFormatting:大公网,content:2008年1月23日
\u003cb\u003e...\u003c/b\u003e 将邀请的主礼嘉宾,包括:全国政协副主席董建华夫人\u003cb\u003e董赵洪
娉\u003c/b\u003e、行政长官 \u003cb\u003e...\u003c/b\u003e 姚林  秀美、施陈丽雅、施云娥、施洁
玲、柯达权、\u003cb\u003e洪小莲\u003c/b\u003e、胡葆琳、胡慧 \u003cb\u003e...\u003c/b
\u003e}],cursor:{pages:[{start:0,label:
1}],estimatedResultCount:3,currentPageIndex:
0,moreResultsUrl:http://www.google.com/search?oe\u003dutf8\u0026ie
\u003dutf8\u0026source\u003duds\u0026start\u003d0\u0026hl\u003dzh-CN
\u0026q\u003dallintext%3A%E6%B4%AA%E5%B0%8F%E8%8E%B2%2B
%E8%91%A3%E8%B5%B5%E6%B4%AA%E5%A8%89}}, responseDetails: null,
responseStatus: 200}

But when I run my application after deploying in App Engine, the
result becomes:

{results:[],cursor:{moreResultsUrl:http://www.google.com/search?
oe\u003dutf8\u0026ie\u003dutf8\u0026source\u003duds\u0026start
\u003d0\u0026hl\u003dzh-CN\u0026q\u003dallintext%3A%E6%B4%AA%E5%B0%8F
%E8%8E%B2%2B%E8%91%A3%E8%B5%B5%E6%B4%AA%E5%A8%89}},
responseDetails: null, responseStatus: 200}

Would anyone be able to help? Thanks!!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] SQL-Join in GAE

2009-06-12 Thread code8...@gmail.com

hi All,


i am sucessfully developed the application in GAE with minimal
database limits, when i try to switch from this i am struggled there,
because we doesnt the option to use the SQL-Join in GAE,

Kindly suggest me how to solve the problem, because i  hope tht any
one cn face this problem and find the solutions for this.

Thanks in advance.


Cheers,
Bala A

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] join query in app engine?

2009-06-12 Thread Rajesh S

is it possible to use join query in google appp engine Application .If
not what might  be the alternate way to resolve this problem...

thanks in advance.


Rajesh S

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] data table not being added to datastore on deployement

2009-06-12 Thread Varun Saravagi

Hi
I have been creating an application in java. I have deployed it
several times on the appengine. When I recently deployed it, I was not
getting my recent data table in the Data Viewer in the application
page. I have my previous datatables in the app-engine datastore
working but was not getting this latest one.
Please Help.
PS: My deadline is near. Please Help

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: How to access object passed by HTML in python

2009-06-12 Thread EW

That should work. You just need something to grab it once it's
submitted:

class Upload(webapp.RequestHandler):
   def post(self):
  datafile= self.request.get('datafile')


On Jun 11, 7:56 pm, Gaurav joshigaur...@gmail.com wrote:
 Hi,

 I want to pass the values to insert query in python. I am passing a
 xml file as input so that python will read the input from XML and
 insert the values in tables on google app engine. I am facing a
 blocker where I am not getting the object of that file uploader in
 python. Has anybody worked on this? Kindly help as soon as possible.

 This is how I am creating HTML
 self.response.out.write(
           form action=/sign method=post enctype=multipart/form-
 data
             divinput type=file name=datafile size=40/div
             divinput type=submit value=Sign Guestbook/div
           /form
         /body
       /html)

 Regards,
 Gaurav Joshi

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: ??? Over Quota ???

2009-06-12 Thread Sebastian Aviña
Hi Jeff,
Yes, I noted that the error have not appeared in the last hours, thanks for
your help...

I'm going to take ocassion to report you some bizarre errors (non-fatal)
I've with the images API:

Sometimes (more often than sometimes) when I upload an image 533x800px, and
ask the server to resize/rotate the image the server returns a LargeImageError,
but the curious thing is that when I upload the same photo rotated 90°
(800x533px) the error doesn't appear... i can live with this, but I think
that something is wrong with the api...

Once again, thank you for your help.

--
Ing. Josué Sebastian Aviña Gonzalez.

Rectificaciones Aviña, S.A. de C.V.
Administración general.

Trabajo.
 +52 (618) 817 0949
 +52 (618) 817 0709
Fax.
 +52 (618) 817 1894
Casa.
 +52 (618) 818 7327
Celular.
 +52 (618) 119 7771

http://www.edurango.com.mx
sebastianav...@edurango.com.mx

*** Quien se rinde ante lo que parece imposible, ya esta destinado al
fracaso.


On Fri, Jun 12, 2009 at 11:43 AM, Jeff S (Google) j...@google.com wrote:


 Hello again Sebastian,

 I made some changes yesterday that should have alleviated the
 situation for your app. Please let me know if you see any additional
 403 Over Quota errors when the dashboard does not show any quotas as
 limited.

 Thank you,

 Jeff

 On Jun 11, 11:32 am, Jeff S (Google) j...@google.com wrote:
  Hi Sebastian,
 
  I did receive the source code and we should be able to alleviate the
  situation soon for your app and for the other app which was experiencing
 a
  similar issue (I linked to that thread in an earlier email). This is an
  extremely rare case in which parts of your code trigger an issue on the
 App
  Engine system. Apologies for the inconvenience, I'll keep you updated.
 
  Thank you,
 
  Jeff
 
  On Thu, Jun 11, 2009 at 10:08 AM, Sebastian Aviña
  sebastianav...@gmail.comwrote:
 
   Jeff,
   I just want to know, if you received my email with the source code, and
 if
   you can tell if you think we can solve this issue by this week, or if I
   should start adapting my code for a full django server instead of
   appengine...
 
   Thanks,
 
   --
   Ing. Josué Sebastian Aviña Gonzalez.
 
   Rectificaciones Aviña, S.A. de C.V.
   Administración general.
 
   Trabajo.
+52 (618) 817 0949
+52 (618) 817 0709
   Fax.
+52 (618) 817 1894
   Casa.
+52 (618) 818 7327
   Celular.
+52 (618) 119 7771
 
  http://www.edurango.com.mx
   sebastianav...@edurango.com.mx
 
   *** Quien se rinde ante lo que parece imposible, ya esta destinado al
   fracaso.
 
   On Wed, Jun 10, 2009 at 4:16 PM, Jeff S (Google) j...@google.com
 wrote:
 
   Hi Sebastian,
 
   After looking into this issue, it seems it is likely related to the
   same issue as this thread:
 
  http://groups.google.com/group/google-appengine/browse_thread/thread/.
 ..
 
   As we asked with Jim's app, would you be willing to let us look at the
   full source code for your application? Please email it to me privately
   if that is acceptable. If not, please let me know, this isn't a
   requirement but it should help us get to the root cause more quickly.
 
   Thank you,
 
   Jeff
 
   On Jun 9, 6:29 pm, Jeff S (Google) j...@google.com wrote:
I see it now too and I'm investigating.
 
-Jeff
 
On Tue, Jun 9, 2009 at 6:16 PM, Thomas Wiradikusuma
wiradikus...@gmail.comwrote:
 
 just checked it from here (Indonesia) at 8:15am (local time), yup
 it's
 an honest 403.
 
 On Jun 10, 2:13 am, Sebastian Aviña sebastianav...@gmail.com
 wrote:
  hi Jeff,
  the webpage works fine for periods of 30 minutes, and then all
 the
   web
 page
  triggers the 403 over quota error for about two hours...
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: join query in app engine?

2009-06-12 Thread Barry Hunter

No joins are not possible, ReferenceProperty's sort of forfill very
basic joins. But nowhere near as powerful as a traditional RDMS

How to structure your data in the datastore is highly dependant on
your data. There is no 'magic' formular to convert to the the
datastore mentality. But one thing to remember, you dont tend to
denormalise. You duplicate data to make for really quick queries. Also
aim to do calculations at write time, rather than at query time.
(Write once, read MANY)

http://code.google.com/appengine/docs/python/datastore/typesandpropertyclasses.html#ReferenceProperty



On 12/06/2009, Rajesh S innovateursoluti...@gmail.com wrote:

  is it possible to use join query in google appp engine Application .If
  not what might  be the alternate way to resolve this problem...

  thanks in advance.


  Rajesh S

  



-- 
Barry

- www.nearby.org.uk - www.geograph.org.uk -

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: I changed my gmail account, and now I can't verify account by sms

2009-06-12 Thread Luis

Thanks a lot Nick!

On Jun 12, 1:32 pm, Nick Johnson (Google) nick.john...@google.com
wrote:
 Hi Luis,

 I've activated your new account.

 -Nick Johnson

 Thu, Jun 11, 2009 at 3:56 PM, Luis lemo...@gmail.com wrote:





  Hi everybody,

  I have the following problem: I changed my old gmail account
  moranl...@gmail.com to lemo...@gmail.com (this one). I created an
  application moranluis with moral...@gmail.com and I can't delete it.

  So the problem is that I can't create a new application under
  lemo...@gmail.com account, because my phone number has already been
  used in my old account.

  I'd like to delete old application moranluis (which was never
  developed), or delete App Engine account for moranl...@gmail.com, to
  begin using App Engine with lemo...@gmail.com, using my phone number
  (which hasn't changed).

  How can I do this? Can someone help me?

  Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: SQL-Join in GAE

2009-06-12 Thread Adam

The correct solution to the lack of JOIN depends on the exact nature
of the data that you are modelling. You may need to denormalize your
data, as the normalization that works for a relational database will
make working with the GAE datastore difficult or impossible. You may
need to think about your problem differently. It's impossible to give
you a real answer without a better understanding of exactly what you
are trying to do.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: bcrypt on google app engine

2009-06-12 Thread gae123

Nick,

if I understand correctly the pycrypto implementation is in Python and
I have found this very slow in the past. Are there any plans for
support for a native/C based encryption library?

Thanks

On Jun 11, 2:11 am, Nick Johnson (Google) nick.john...@google.com
wrote:
 Hi Karl,

 I'm not aware of any pure-Python implementations of bcrypt. However,
 pycrypto is supported on App Engine, which supports many of the same
 operations and algorithms.

 -Nick Johnson



 On Thu, Jun 11, 2009 at 10:09 AM, Karl kp8...@gmail.com wrote:

  Are there any implementations of bcrypt that work on google app
  engine?

  The py-bcrypt package (http://www.mindrot.org/projects/py-bcrypt/)
  uses a C backend, so it can't be deployed on GAE.

  Are there any pure Python implementations of bcrypt?

  Thanks,
  Karl- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: data table not being added to datastore on deployement

2009-06-12 Thread Wooble

The Data Viewer will only show Models that actually have data in
them.  The datastore is schemaless so there's really no such thing as
adding a table.  Deploying an application that defines a new model
doesn't affect the datastore at all.

On Jun 12, 10:54 am, Varun Saravagi varunsarav...@gmail.com wrote:
 Hi
 I have been creating an application in java. I have deployed it
 several times on the appengine. When I recently deployed it, I was not
 getting my recent data table in the Data Viewer in the application
 page. I have my previous datatables in the app-engine datastore
 working but was not getting this latest one.
 Please Help.
 PS: My deadline is near. Please Help
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Datastore Detachable classes

2009-06-12 Thread Tim Wickstrom

Hello,

I've made my datastore classes detachable so that I can work with the
objects after the PersistenceManager is closed. However, I'm unable to
access the children of the returned objects that are in a one-to-many
owned relationship. What do I need to do in order to gain access to
read the child's fields?

Thanks,
Tim
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Like Search

2009-06-12 Thread Neves

I have an idea to do LIKE search with small words in GAE.

The solution is create a Word model with the follow fields:

class Word(db.Model):
word = db.StringProperty()
like = db.StringListProperty()

# usage
word = Word()

word.word = open
# with the assignment above, the like property would automatically be
filled with the follow string list:
word.like = [o, op, ope, open, p, pe, pen, e, en,
n]
word.put()

# a search would be like this:
part = pen
results = db.GqlQuery(SELECT * FROM Word WHERE like = :1, part)
# results would contain the word open cause it contains the
substring pen on the like list.

For optimization, repeated parts would not be saved on the list, for
example, the word popo would became:
word.like = [p, po, pop, popo, o, op, opo]

The math to know how much words would exist on the list, is just do:
length * (1 + length) / 2
So a word with 20 letters would have a maximum of 210 subwords, minus
the repeated ones.
Thats why it just works for small words, in my case, for domain names,
or email address.

This idea came from 
http://code.google.com/events/io/sessions/BuildingScalableComplexApps.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] How is an entity key generated?

2009-06-12 Thread Oliver Zheng

Is it a hash function in that the resulting string is randomly
distributed among its range? It seems like in a distributed hash table
like BigTable, this would be how it's implemented.

The reason I'm asking is, I want to do a random query. I want to
select a random entity from an entity group. I thought if the key is
distributed like this, then I could generate a random string like it
myself, and simply query for the first result bigger than this. Is
this viable?

Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: How is an entity key generated?

2009-06-12 Thread Oliver Zheng

I forgot to include this question:

What is the overhead of querying like this for just the first result,
vs just getting with the key? What is the magnitude of difference in
time?

On Jun 12, 4:22 pm, Oliver Zheng goo...@oliverzheng.com wrote:
 Is it a hash function in that the resulting string is randomly
 distributed among its range? It seems like in a distributed hash table
 like BigTable, this would be how it's implemented.

 The reason I'm asking is, I want to do a random query. I want to
 select a random entity from an entity group. I thought if the key is
 distributed like this, then I could generate a random string like it
 myself, and simply query for the first result bigger than this. Is
 this viable?

 Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: appcfg.py upload error

2009-06-12 Thread lucidanui

My app have the same error.
I try to change anthor version, but it can't set default version from
admin console


Server Error
A server error has occurred.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: bcrypt on google app engine

2009-06-12 Thread Barry Hunter

On 12/06/2009, gae123 pa...@gae123.com wrote:

  Nick,

  if I understand correctly the pycrypto implementation is in Python and
  I have found this very slow in the past. Are there any plans for
  support for a native/C based encryption library?

Check the issue tracker, and add a suggestion if it not there already.
Not really meaning to answer for Google, but they rarely reveal plans.
(except at the most basic level)



  Thanks

  On Jun 11, 2:11 am, Nick Johnson (Google) nick.john...@google.com
  wrote:

  Hi Karl,
  
   I'm not aware of any pure-Python implementations of bcrypt. However,
   pycrypto is supported on App Engine, which supports many of the same
   operations and algorithms.
  
   -Nick Johnson
  
  
  

  On Thu, Jun 11, 2009 at 10:09 AM, Karl kp8...@gmail.com wrote:
  
Are there any implementations of bcrypt that work on google app
engine?
  
The py-bcrypt package (http://www.mindrot.org/projects/py-bcrypt/)
uses a C backend, so it can't be deployed on GAE.
  
Are there any pure Python implementations of bcrypt?
  
Thanks,

   Karl- Hide quoted text -
  
   - Show quoted text -

 



-- 
Barry

- www.nearby.org.uk - www.geograph.org.uk -

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---