[google-appengine] Re: Google Apps, Python C++

2008-09-26 Thread Justin Goldberg

OpenMP running on your network of machines? Or perhaps a beowulf
cluster.


On Sep 24, 1:35 pm, Jason [EMAIL PROTECTED] wrote:
 What is the best way for a calculation hungry app (video processing)
 which I have already in C++ to be ported to google apps?

 I'm no python expert but can get by but any help would be great.

 Ta.

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Entity Group and Transactions

2008-09-26 Thread Jamesz

Hi everyone,

I just want to check my general understanding of app engine datastore
concepts with you guys.

After reading documentations on entity group and transactions, my
understanding is that entities of different kind can still be in the
same group provided that they have the same ancestors(parents or
parents of parents). This means I can perform transactions on entities
of different kinds.

For clarity, this is my understanding of app engine concepts that
roughly translates to its RDBMS equivalent
1. Kind = Table (this is roughly the case, though entities of the same
kind doesn't have to have the same fields)
2. Property = Field
3. Entity = A record
4. Parent and Ancestors = no equivalent but is used to group entities
into a entity group which will be stored in the same nodes which
enables transactional executions.

But when i applied this in practice, I get an error with Cannot
operate on different entity groups in a transaction. So I wonder if
I've misunderstood something, Is there a way to check what entity
group an entity actually belongs to?

Thanks

James



--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Entity Group and Transactions

2008-09-26 Thread Josh Heitzman

Your understanding is correct based on my experience.  As far as
determining entity group I think you'll just have to examine the
ancestry  of each entity in your transaction to see if they actually
have a common instance.

On Sep 25, 11:33 pm, Jamesz [EMAIL PROTECTED] wrote:
 Hi everyone,

 I just want to check my general understanding of app engine datastore
 concepts with you guys.

 After reading documentations on entity group and transactions, my
 understanding is that entities of different kind can still be in the
 same group provided that they have the same ancestors(parents or
 parents of parents). This means I can perform transactions on entities
 of different kinds.

 For clarity, this is my understanding of app engine concepts that
 roughly translates to its RDBMS equivalent
 1. Kind = Table (this is roughly the case, though entities of the same
 kind doesn't have to have the same fields)
 2. Property = Field
 3. Entity = A record
 4. Parent and Ancestors = no equivalent but is used to group entities
 into a entity group which will be stored in the same nodes which
 enables transactional executions.

 But when i applied this in practice, I get an error with Cannot
 operate on different entity groups in a transaction. So I wonder if
 I've misunderstood something, Is there a way to check what entity
 group an entity actually belongs to?

 Thanks

 James
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Issue acknowledged

2008-09-26 Thread Filip Verhaeghe
Hi Marzia,

I think you are right, that approach is better.

-Filip

On 9/26/08, Marzia Niccolai [EMAIL PROTECTED] wrote:

 Hi Filip,

 We are working hard on making the status of the issue tracker more clear,
 and soon we'll post something that clarifies the possible statuses in the
 issue tracker.

 In short, Acknowledged means that we've read the feature and it's under
 consideration from the team, though the feature may or may not be included
 in future releases.  New sends the wrong impression - which is that we
 haven't read the issue at all.

 -Marzia

 On Thu, Sep 25, 2008 at 4:17 PM, Filip [EMAIL PROTECTED] wrote:


 A series of issues from the issue list were acknowledged just now.
 What should we conclude from this?

 Filip.



 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Problem using expando models

2008-09-26 Thread gadgster

To reply to my own post. I've found that this has already been
reported as an issue:

http://code.google.com/p/googleappengine/issues/detail?id=633q=expandocolspec=ID%20Type%20Status%20Priority%20Stars%20Owner%20Summary%20Log

Please star this as it seems to be a genuine bug which needs to be
fixed.



On 25 Sep, 00:38, gadgster [EMAIL PROTECTED] wrote:
 Hello,

 This is probably a newbie question. I'm having problems using the
 expando model class. I have a model which works fine like this:

 class childModel(db.Model):
     user=db.UserProperty()
     forename=db.StringProperty(verbose_name=Child's forename,
 required=True)
     gender=db.StringProperty(verbose_name=Gender, choices=[Boy,
 Girl])
     dob=db.DateProperty(verbose_name=Date of Birth)

 If I change this model to the db.Expando class then when I fetch an
 entity I get the error message BadValueError: Property dob must be a
 date, not a datetime. I can't see the reason for this.

 Any advice appreciated.

 Richard
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] bulk export

2008-09-26 Thread I.K.

Hi,

Sorry to piggy-back off a slightly different topic, but it may have
the right audience.

I am toying with a mashup of google spreadsheets and the GAE, which
will partly involve pumping data back and forth.  You have made me
aware of the bulkloader which should be a useful way to get a lot of
data into GAE, however does anybody ave a suitably efficient version
of the reverse? ie getting a lot of data out of datastore in csv,
without just coding it yourself?

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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: bulk export

2008-09-26 Thread I.K.

Oops! this was supposed to be a reply to bulk upload post, but the
question is still valid.

On Sep 26, 12:18 pm, I.K. [EMAIL PROTECTED] wrote:
 Hi,

 Sorry to piggy-back off a slightly different topic, but it may have
 the right audience.

 I am toying with a mashup of google spreadsheets and the GAE, which
 will partly involve pumping data back and forth.  You have made me
 aware of the bulkloader which should be a useful way to get a lot of
 data into GAE, however does anybody ave a suitably efficient version
 of the reverse? ie getting a lot of data out of datastore in csv,
 without just coding it yourself?

 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: AppeEngine and APIs

2008-09-26 Thread lazer

Thanks

On Sep 24, 8:01 pm, Jeff S [EMAIL PROTECTED] wrote:
 Hi lazer,

 Yes. This might be a good place to 
 start:http://code.google.com/appengine/docs/usinggdataservices.html

 Cheers,

 Jeff

 On Sep 24, 4:20 am, lazer [EMAIL PROTECTED] wrote:

  Hi,

  Can we use Youtube API with AppeEngine ?

  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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Automatically adding a static index.html to a URL with app.yaml

2008-09-26 Thread SIE

Adam,

Good. We'll be precise and say that the solution to this problem is to
have the HTML use relative URLs based at the home directory instead of
the current directory.

Thanks

On Sep 25, 11:23 pm, Adam Fisk [EMAIL PROTECTED] wrote:
 Just for sanity's sake, both are relative URLs.  It would only be
 absolute if it included the host name and protocol.

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] using static_files seems broken on windows test server?

2008-09-26 Thread Kriss

Ello,

I'm trying to use the windows test server and putting anything that
uses static_files into app.yaml stops the app from loading.

EG adding

- url: /favicon.ico
  static_files: static/images/favicon.ico
  upload: static/images/favicon.ico

Gets the following

C:\xix\www\googleC:\Program Files\Google\google_appengine
\dev_appserver.py we
t
ERROR2008-09-26 15:12:42,592 dev_appserver_main.py] Application
configuratio
n file invalid:
regex does not compile: bogus escape: '\\x'



Any ideas on what I might be doing wrong?


Kriss

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Safety of user input.

2008-09-26 Thread SiVi

Hi

I'm doing app and i'm concerned about sql injections from user inputs
How to protect app from thoes injections?
Besides, cgi.escape what else can be done?

Regards

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: High Amount CPU Quota should be removed

2008-09-26 Thread yaoye

Agree with you, man, CPU quota error is frequently for me, but just
some query action for less than 100 records, for a python environment,
we need more CPU power than static processing ability, so I think the
way of the limitation should be adjusted.

On Sep 21, 7:27 pm, mitnickcbc [EMAIL PROTECTED] wrote:
 I have filed a feature request for this issue, if you feel so please
 star it.

 http://code.google.com/p/googleappengine/issues/detail?id=720

 Here is the description:

 Well, I don't get the purpose for having a High Amount CPU Quota since
 there is already a general CPU Quota. And there are quite a lot of
 problems caused by this quota which restrict my application from
 affording more load. And my application is far away from a 5 million
 month PV app.
 1. Requests can become a high amount CPU one very easily. A little
 complex request will consume more than 3K mcycles. And what do I mean
 a little
 complex? If you do more than 2 put, or you do a url fetch, or you do a
 query based on an order to select more than 50 model, or you do a put
 on a
 model more than 20 fields, it is that complex. In my case, 80% of the
 requests are that complex and I don't think it can be optimized
 anymore
 since I do need to do put and url fetch.
 2. Bad visibility to this quota. There is no way we can know when we
 will run out of quota for this. All we got is the warning in admin
 console that
 says our requests are using high amount CPU quota and will soon run
 out of it.
 3. Doesn't back to normal quickly. I'm using a script to continue
 fetching my data from production and do some offline process.
 Unfortunately I fetch
 too much in one call that I try to get 100 models at a time and which
 makes the request a high CPU one. Soon, I meet quota deny. Then I stop
 my script,
 but after 1.5 hours, I still see quota deny for requests from my
 users. The Many of the requests to your application are taking a very
 long time.
 Please optimize these requests. warning keeps there even I have
 stopped the script for so long time.

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: using static_files seems broken on windows test server?

2008-09-26 Thread Marzia Niccolai
Hi,

This is an issue that was introduced in the 1.1.3 release for windows, and
we are working on a fix.  Please see issue
http://code.google.com/p/googleappengine/issues/detail?id=711 for status
updates on this issue.

-Marzia

On Fri, Sep 26, 2008 at 8:28 AM, Kriss [EMAIL PROTECTED] wrote:


 Ello,

 I'm trying to use the windows test server and putting anything that
 uses static_files into app.yaml stops the app from loading.

 EG adding

 - url: /favicon.ico
  static_files: static/images/favicon.ico
  upload: static/images/favicon.ico

 Gets the following

 C:\xix\www\googleC:\Program Files\Google\google_appengine
 \dev_appserver.py we
 t
 ERROR2008-09-26 15:12:42,592 dev_appserver_main.py] Application
 configuratio
 n file invalid:
 regex does not compile: bogus escape: '\\x'



 Any ideas on what I might be doing wrong?


 Kriss

 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Entity Group and Transactions

2008-09-26 Thread Marzia Niccolai
Hi James,

You can check if an entity has a parent by calling Model.parent() which will
return the parent, if it exists, or None if no parent exists.

For entity groups, you need to explicit set the parent of the entity when it
is created.  This is the only time the parent of an entity can be set.

Some people have been confused about entity groups and ReferenceProperties,
a reference to another property does not indicate the entity and the
reference are in the same group - the two concepts are not related.  As
above, entity groups are only defined by setting the parent.

If you post the code you are using when you receive the message, we'd be
happy to help you troubleshoot the error.

-Marzia

On Fri, Sep 26, 2008 at 12:12 AM, Josh Heitzman [EMAIL PROTECTED]wrote:


 Your understanding is correct based on my experience.  As far as
 determining entity group I think you'll just have to examine the
 ancestry  of each entity in your transaction to see if they actually
 have a common instance.

 On Sep 25, 11:33 pm, Jamesz [EMAIL PROTECTED] wrote:
  Hi everyone,
 
  I just want to check my general understanding of app engine datastore
  concepts with you guys.
 
  After reading documentations on entity group and transactions, my
  understanding is that entities of different kind can still be in the
  same group provided that they have the same ancestors(parents or
  parents of parents). This means I can perform transactions on entities
  of different kinds.
 
  For clarity, this is my understanding of app engine concepts that
  roughly translates to its RDBMS equivalent
  1. Kind = Table (this is roughly the case, though entities of the same
  kind doesn't have to have the same fields)
  2. Property = Field
  3. Entity = A record
  4. Parent and Ancestors = no equivalent but is used to group entities
  into a entity group which will be stored in the same nodes which
  enables transactional executions.
 
  But when i applied this in practice, I get an error with Cannot
  operate on different entity groups in a transaction. So I wonder if
  I've misunderstood something, Is there a way to check what entity
  group an entity actually belongs to?
 
  Thanks
 
  James
 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Proprietary data in the Google cloud

2008-09-26 Thread Cherry

I'm trying to get started using the new Google Apps  Data on the web.
I'm reading all these examples about people and businesses sharing
their spreadsheets, contact info, product data, etc.
And I'm looking at the Google Terms of Service, section 11, whereby we
give Google the right to disseminate the data as they see fit.
So, far, I see no way to store data, such as a spreadsheet containing
sensitive company financial data, in an encrypted format. Do these
business users realize that?
When I am trying to sell a company on using this Google service (by my
writing a custom app for them), how do I convince them that their data
won't be on the web for all to see?
I, for example, don't want all the names and email addresses in my
contact app to be scanned, indexed, and popping up in the Google
searches of strangers, scammers, etc.
How do I secure on-line data?


Thanks,
   Ron Cherry

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: why i cannot receive The verification code via SMS(from china)

2008-09-26 Thread Jeff S

Hi coalmine,

Instructions for getting access without SMS verification can be found
in our frequently asked questions page: 
http://code.google.com/appengine/kb/sms.html#error

Thank you,

Jeff

On Sep 24, 6:48 am, coalmine [EMAIL PROTECTED] wrote:
 i used the china mobile telephone

 how can i start the google appengine if i cannot get the verification
 code?

 thx
 --
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Using exec() in GAE

2008-09-26 Thread [EMAIL PROTECTED]

Hello,
 I could not find it in the documentation and it kind of seems to
work. But please, put my worries at rest: is it ok to exec() a string
in the Google App Engine?
 Thank you,

  W.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: How to pass additionap parameters to Form

2008-09-26 Thread Tiranox

can i pass any parameters with initial value ?
form = PhoneNumberForm(initial={'number':'12334'})
how i can access to initial var ?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Denial of Service Attack on a GAE Application

2008-09-26 Thread Tony Smith

There was a similar issue logged. The one that I created was marked as
duplicate.

Please *STAR* the new issue if you think it's important for you to
have firewall control in your application. Firewall control is the
first step towards resolving the denial of service attack problem.


http://code.google.com/p/googleappengine/issues/detail?id=644


Many thanks to all for your support and thanks Google for looking into
this.

Tony

On Sep 24, 12:42 pm, Marzia Niccolai [EMAIL PROTECTED] wrote:
 Hi,

 We've identified an issue that can cause an application to hit one of our
 short-term quotas after a very sudden spike in traffic, which would prevent
 it from serving for a short time.  We're currently working on a fix to
 address this issue and expect to have it out shortly.

 On the broader issue of denial-of-service attacks, these are an unfortunate
 reality in the web world.  While we don't currently offer applications any
 specific protections against attacks of this nature, this is something we're
 interested in looking into for the future.  In the near-term, when we begin
 allowing developers to purchase computing resources beyond our free limits,
 we will provide a mechanism for reimbursement in the event of a DOS attack.

 -Marzia

 On Mon, Sep 22, 2008 at 3:41 PM, Sharp-Developer.Net 

 [EMAIL PROTECTED] wrote:

  Starred - I think it's gonna be even more impotant when we get paid
  service.
  --
  Alex
 http://sharp-developer.net/

  On Sep 20, 5:31 am, Tony Smith [EMAIL PROTECTED] wrote:
   Hi,

   I created an issue for this request. Please star it if you feel it's
   important to you.

  http://code.google.com/p/googleappengine/issues/detail?id=718

   Thanks,
   Tony
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: High Amount CPU Quota should be removed

2008-09-26 Thread Jeff S



On Sep 26, 1:48 am, mitnickcbc [EMAIL PROTECTED] wrote:
 Some update about my latest findings. And these are my guesses, please
 do correct me if I'm wrong.

 The quota denial for high amount CPU and the warning message Many of
 the requests to your application are taking a very long time. Please
 optimize these requests. is calculated based on the number of warning
 you get in your log saying that This request used a high amount of
 CPU, and was roughly 1.0 times over the average request CPU limit.
 High CPU requests have a small quota, and if you exceed this quota,
 your app will be temporarily disabled.

 Please note, the average CPU usage and related warning are very
 misleading. The mcycles value displayed in log is also very different
 from the x.x times value showed in warning message. I used to think
 that request using beyond 1800 mcycles CPU will be considered as a
 high CPU request since it shows red in Average CPU column. But the
 latest finding is that it's not the case. One kind of my requests use
 about 6K-7K mcycles in average CPU, but I seldom see a high CPU
 warning in log for them. Again, this mcycles value seems to mean
 nothing and the algorithm used to calculate the x.x times high CPU
 warning really matters!

As you have noticed, there are differences in the CPU usage
measurements presented in the logs and in the dashboard. This thread
contains clarification which I've copied below:

http://groups.google.com/group/google-appengine/browse_frm/thread/f210131b359b8fe6
Concerning CPU accounting overall - The warning threshold for the
logs
and for the dashboard actually differ.  In the logs, warnings will
only
occur for high runtime CPU.  The warnings on the dashboard are
triggered for
high overall CPU, including CPU used in the runtime and per API, most
notably being the datastore API.

Request denials for high CPU are based on the runtime CPU usage (which
does not include the CPU used in API calls). Since the runtime CPU
cost are the ones present in the logs, it is more useful to rely on
the log information when trying to determine how best to reduce CPU
load for specific requests.

Happy coding,

Jeff


 With this in mind, the focus is back to the warning message itself to
 figure out what's the algorithm. So there is an average request CPU
 limit in this message. This value seems to be quite big and only my
 requests that are doing some work which should be done by a background
 scheduler exceeds it. The question is, is this a fixed value? Or a
 dynamic value calculated based on all apps? Or a dynamic value
 calculated based on the app itself?

 And the number of such warnings has a fixed quota that doesn't scale
 with other quotas. If all my assumption is right here, the best option
 to solve this issue in my mind is to make the high CPU quota scale as
 other quotas.

 On Sep 26, 1:22 am, mitnickcbc [EMAIL PROTECTED] wrote:



  Anyone has any idea how this warning message is calculated? Many of
  the requests to your application are taking a very long time. Please
  optimize these requests.

  It seems I meet quota denials every time this one shows up. I'm unable
  to tune anymore if I don't know how it is calculated.

  There are several possible algorithms for this in my mind and I need
  to know which one is used to be able to move forward:
  1. Based on the total number of high CPU requests in a certain period
  of time. And what's the CPU usage value to make a request counted in?
  1200 mcycles? 1800, or anything else?
  2. Based on total CPU consumed by these high CPU.
  3. Based on response time.

  However, no matter how much I tuned, it's just about time for me to
  reach the load limit. Since 30% of my write requests will never
  possible to fit the current high CPU bar. It also seems that the high
  CPU quota is not increased with the other quota. So say assume 10% of
  your requests are high CPU ones, and GAE only allows 1 high CPU
  request per second, then you will not be able to scale beyond 10
  requests per second, no matter how much CPU quota you have.

  There are 3 solutions in my mind:
  1. Raise the high CPU bar to fit real world needs like raising it to
  10K mcycles.
  2. Make the high amount CPU quota scalable and configurable instead of
  a fixed number. Such as making it 30% of normal CPU quota. However, I
  would still suggest to not even fix the percentage since every
  application is different. Better to make it configurable by developer
  themselves.
  3. Make high amount CPU quota same as other quotas like CPU and
  bandwidth. So developer can apply for it if they are running out of
  it.

  I'm not sure which one is more doable to GAE, but there must be some
  solution to be happen otherwise it will not scale.

  On Sep 21, 7:27 pm,mitnickcbc[EMAIL PROTECTED] wrote:

   I have filed a feature request for this issue, if you feel so please
   star it.

  http://code.google.com/p/googleappengine/issues/detail?id=720

   Here is the description:

   

[google-appengine] Re: Using exec() in GAE

2008-09-26 Thread Mahmoud

Do you mean eval() ? If so, yes.

On Sep 26, 12:39 pm, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Hello,
  I could not find it in the documentation and it kind of seems to
 work. But please, put my worries at rest: is it ok to exec() a string
 in the Google App Engine?
  Thank you,

   W.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Google Moderator -- Source code?

2008-09-26 Thread Scott Lewis

Is the source code for Google Moderator available?  If so where/when?

I'm working on some overlapping ideas with an org called DemocracyLab
(www.democracylab.org) on the google app engine, and it might be
useful to consider technical collaboration on some such work.  Is such
collaboration possible/available?

Thanks,

Scott




--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: SearchableQuery and OffSet

2008-09-26 Thread Mahmoud

Can you do:
query.Search(keyword).filter(name , index)

where index, is the name (or whatever you're searchijng for) of the
last person on the current page?



On Sep 23, 12:12 pm, Venkatesh Rangarajan
[EMAIL PROTECTED] wrote:
 Folks,

 I am trying to implement pagination for Search able model.

 I will eventually have around 1 GB of DB .

    query = search.SearchableQuery('Person')
    query.Search(keyword)
    visas=query.Get(100,1)

 Now Get doesn't take OFFSET as a parameter. Fetch is not implemented for
 SearchablQuery . Any ideas on how I can implement pagination for such a
 scenario.

 Rgds,
 Venkatesh
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: High Amount CPU Quota should be removed

2008-09-26 Thread Aramaki

Only one question, I wonder how much CPU of google is spent in
calculating high amount coutas. Pherahaps google should assign our
application that cpu time.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Dealing with lots of data -- any tips?

2008-09-26 Thread Mahmoud

If you're trying to infer some type of statistical information from
the dataset after it has been stored, then this might be difficult,
especially in the absence of background/offline processing.

However, here is something you might want to try, for the particular
scenario you describe:
1. Create an indexable property for each entity/entry as you store
it.
Looking at your data, it looks like the timestamp is sufficient,
because each entry has a unique timestamp so you won't have to worry
about breaking ties.

2. You now want to fetch 1000 entities at known intervals. So
extrapolate the timestamps of where those entities fall and fetch
them. Unfortunately, this means that you have to make 1000 queries (I
believe the datastore queues queries up, to a max of 35), so you might
have to do this in multiple requests, and append the entities you
fetch each time to a list.

On Sep 25, 11:46 am, Savraj [EMAIL PROTECTED] wrote:
 So I have stored some data in the app-engine database, with new data
 every 5 seconds.

 example dataset:

 ID - Time - Value
 1 - 9/20/2008 16:00:00 - 100
 2 - 9/20/2008 16:00:05 - 120
 3 - 9/20/2008 16:00:10 - 130
 4 - 9/20/2008 16:00:15 - 250
 ...
 17278 - 9/21/2008 15:59:60 - 200
 17279 - 9/21/2008 15:59:55 - 100
 17280 - 9/21/2008 16:00:00 - 220

 How do I get just 1000 values back that cover the entire recorded
 period, so I can put them in a chart? What sort of query should I
 construct?  I imagine it's something like, 'give me every 20th value'
 -- but how do I express than in a query?

 Thanks in advance for your kindness and consideration.

 - 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] XML file not rendered correctly when live

2008-09-26 Thread abowman

I have a simple xml file that outputs the following when it is run
locally:

?xml version=1.0 ?
cross-domain-policy
allow-access-from domain=* /
site-control permitted-cross-domain-policies=all /
/cross-domain-policy

When it is live, the first line is removed:

cross-domain-policy
allow-access-from domain=* /
site-control permitted-cross-domain-policies=all /
/cross-domain-policy

What can I do to get this to render properly?  Is there someway I
should be setting the content type of the file?

This is the code for crossdomain.py:

str = ?xml version=\1.0\?
cross-domain-policy
allow-access-from domain=\*\ /
site-control permitted-cross-domain-policies=\all\/
/cross-domain-policy

print str

and I've entered this to app.yaml

- url: /crossdomain.xml
  script: crossdomain.py

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Dealing with lots of data -- any tips?

2008-09-26 Thread Savraj

Thanks for the reply Mahmoud.Your proposal is good, but yes it
does mean I would make many queries which could be time consuming.

Another alternative I'm considering is simply trading space for time
-- that is, on save of a new data point, save out some averages for
broader periods (min, hour, day, etc). This way I could get fewer
points back, if I just look at hourly averages over 3 days...

Thanks again.

-s

On Sep 26, 3:03 pm, Mahmoud [EMAIL PROTECTED] wrote:
 If you're trying to infer some type of statistical information from
 the dataset after it has been stored, then this might be difficult,
 especially in the absence of background/offline processing.

 However, here is something you might want to try, for the particular
 scenario you describe:
 1. Create an indexable property for each entity/entry as you store
 it.
 Looking at your data, it looks like the timestamp is sufficient,
 because each entry has a unique timestamp so you won't have to worry
 about breaking ties.

 2. You now want to fetch 1000 entities at known intervals. So
 extrapolate the timestamps of where those entities fall and fetch
 them. Unfortunately, this means that you have to make 1000 queries (I
 believe the datastore queues queries up, to a max of 35), so you might
 have to do this in multiple requests, and append the entities you
 fetch each time to a list.

 On Sep 25, 11:46 am, Savraj [EMAIL PROTECTED] wrote:

  So I have stored some data in the app-engine database, with new data
  every 5 seconds.

  example dataset:

  ID - Time - Value
  1 - 9/20/2008 16:00:00 - 100
  2 - 9/20/2008 16:00:05 - 120
  3 - 9/20/2008 16:00:10 - 130
  4 - 9/20/2008 16:00:15 - 250
  ...
  17278 - 9/21/2008 15:59:60 - 200
  17279 - 9/21/2008 15:59:55 - 100
  17280 - 9/21/2008 16:00:00 - 220

  How do I get just 1000 values back that cover the entire recorded
  period, so I can put them in a chart? What sort of query should I
  construct?  I imagine it's something like, 'give me every 20th value'
  -- but how do I express than in a query?

  Thanks in advance for your kindness and consideration.

  - 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Getting key value of db.ReferenceProperty

2008-09-26 Thread Chris Marasti-Georg
Is there a way to get the key (or id) value of a db.ReferenceProperty,
without dereferencing the actual entity it points to?  I have been digging
around - it looks like the key is stored as the property name preceeded with
an _, but I have been unable to get any code working.  Examples would be
much appreciated.  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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: SearchableQuery and OffSet

2008-09-26 Thread Venkatesh Rangarajan
Thanks Mahmoud. My bad..i was able to pass offset as a parameter

See the pagination in action here :
http://payrate.appspot.com/?keyword=Google%20Engineerpage=100



On Fri, Sep 26, 2008 at 12:11 PM, Mahmoud [EMAIL PROTECTED] wrote:


 Can you do:
 query.Search(keyword).filter(name , index)

 where index, is the name (or whatever you're searchijng for) of the
 last person on the current page?



 On Sep 23, 12:12 pm, Venkatesh Rangarajan
 [EMAIL PROTECTED] wrote:
  Folks,
 
  I am trying to implement pagination for Search able model.
 
  I will eventually have around 1 GB of DB .
 
 query = search.SearchableQuery('Person')
 query.Search(keyword)
 visas=query.Get(100,1)
 
  Now Get doesn't take OFFSET as a parameter. Fetch is not implemented for
  SearchablQuery . Any ideas on how I can implement pagination for such a
  scenario.
 
  Rgds,
  Venkatesh
 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: XML file not rendered correctly when live

2008-09-26 Thread abowman

It wouldn't display anything.  I had to view the source to see the
output.

Serving it as a static file fixed the problem.

Thanks


On Sep 26, 5:11 pm, Anthony [EMAIL PROTECTED] wrote:
 Seems strange that it would be removed.. are you viewing the output in
 the FF xml view? Try a view source.

 Anyhow have you tried serving it as a static file...

 e.g.

 - url: /crossdomain.xml
   static_files: static/crossdomain.xml
   upload: static/crossdomain.xml

 On Sep 26, 8:15 pm, abowman [EMAIL PROTECTED] wrote:

  I have a simple xml file that outputs the following when it is run
  locally:

  ?xml version=1.0 ?
  cross-domain-policy
  allow-access-from domain=* /
  site-control permitted-cross-domain-policies=all /
  /cross-domain-policy

  When it is live, the first line is removed:

  cross-domain-policy
  allow-access-from domain=* /
  site-control permitted-cross-domain-policies=all /
  /cross-domain-policy

  What can I do to get this to render properly?  Is there someway I
  should be setting the content type of the file?

  This is the code for crossdomain.py:

  str = ?xml version=\1.0\?
  cross-domain-policy
  allow-access-from domain=\*\ /
  site-control permitted-cross-domain-policies=\all\/
  /cross-domain-policy

  print str

  and I've entered this to app.yaml

  - url: /crossdomain.xml
    script: crossdomain.py
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Facebook Apps powered by App Engine

2008-09-26 Thread boson

Hello everyone.  There is a new Google Group for discusing developing
Facebook Applications powered by Google App Engine.  Stop by and say
hi if you're playing with these two new techs.

http://groups.google.com/group/facebook-and-google-app-engine
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Dynamic db.Model classes ?

2008-09-26 Thread koblas

I'm not going to make any claims to being a python expert, nor is this
a trivial question.

What I want to do is have the ability to have an abstract interface
for table contruction -- think UI where you can say add field ...
type String.  Once you've specified the database table format from
the UI, would like to take advatange of the non-tightly structured
database underlying App Engine.

What I would like to have is a class like:
  GenericTable(db.Model)
 
 def __init__(self, tbl) :
 ...
 def __getattr__(self, name) :
 for purposes of example...

So in my view code I can say:
tbl = GenericTable(books)
items = tbl.all()
for item in items :
  ...something interesting...
  ...with the ability to say item['price'] -- via the above
__getattr__

Hopefully this gives you a good idea of intent, where things are
getting muddled up is I'm not sure if it's better to extend db.Model /
db.PropertiedClass or build something totally new from the ground
up...

Anybody tried this before, or maybe has some good pointers on what is
a better course of action?

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Only Once per user

2008-09-26 Thread fedekun
Hi, i want to save some settings for each user, and the way i'm doing it so
far is

title = self.request.get(title)

result = UsersSettings.gql(WHERE owner=:1,
users.get_current_user().nickname())
if result.count() == 0:
result = UsersSettings()

result.title = title
result.owner = users.get_current_user().nickname()

db.put(result)

What i want to do is create it if it doesnt exists or else modify it, but i
cant figure out why it does not modify it, it creates it but i cannot modify
it :(
-- 
Best Regards.
fedekun

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: High Amount CPU Quota should be removed

2008-09-26 Thread mitnickcbc

 Request denials for high CPU are based on the runtime CPU usage (which
 does not include the CPU used in API calls). Since the runtime CPU
 cost are the ones present in the logs, it is more useful to rely on
 the log information when trying to determine how best to reduce CPU
 load for specific requests.

Thanks for the clarification! Now I'm able to find the bottleneck
and... it scales!

On Sep 27, 2:00 am, Jeff S [EMAIL PROTECTED] wrote:
 On Sep 26, 1:48 am, mitnickcbc [EMAIL PROTECTED] wrote:



  Some update about my latest findings. And these are my guesses, please
  do correct me if I'm wrong.

  The quota denial for high amount CPU and the warning message Many of
  the requests to your application are taking a very long time. Please
  optimize these requests. is calculated based on the number of warning
  you get in your log saying that This request used a high amount of
  CPU, and was roughly 1.0 times over the average request CPU limit.
  High CPU requests have a small quota, and if you exceed this quota,
  your app will be temporarily disabled.

  Please note, the average CPU usage and related warning are very
  misleading. The mcycles value displayed in log is also very different
  from the x.x times value showed in warning message. I used to think
  that request using beyond 1800 mcycles CPU will be considered as a
  high CPU request since it shows red in Average CPU column. But the
  latest finding is that it's not the case. One kind of my requests use
  about 6K-7K mcycles in average CPU, but I seldom see a high CPU
  warning in log for them. Again, this mcycles value seems to mean
  nothing and the algorithm used to calculate the x.x times high CPU
  warning really matters!

 As you have noticed, there are differences in the CPU usage
 measurements presented in the logs and in the dashboard. This thread
 contains clarification which I've copied below:

 http://groups.google.com/group/google-appengine/browse_frm/thread/f21...
 Concerning CPU accounting overall - The warning threshold for the
 logs
 and for the dashboard actually differ.  In the logs, warnings will
 only
 occur for high runtime CPU.  The warnings on the dashboard are
 triggered for
 high overall CPU, including CPU used in the runtime and per API, most
 notably being the datastore API.

 Request denials for high CPU are based on the runtime CPU usage (which
 does not include the CPU used in API calls). Since the runtime CPU
 cost are the ones present in the logs, it is more useful to rely on
 the log information when trying to determine how best to reduce CPU
 load for specific requests.

 Happy coding,

 Jeff



  With this in mind, the focus is back to the warning message itself to
  figure out what's the algorithm. So there is an average request CPU
  limit in this message. This value seems to be quite big and only my
  requests that are doing some work which should be done by a background
  scheduler exceeds it. The question is, is this a fixed value? Or a
  dynamic value calculated based on all apps? Or a dynamic value
  calculated based on the app itself?

  And the number of such warnings has a fixed quota that doesn't scale
  with other quotas. If all my assumption is right here, the best option
  to solve this issue in my mind is to make the high CPU quota scale as
  other quotas.

  On Sep 26, 1:22 am, mitnickcbc [EMAIL PROTECTED] wrote:

   Anyone has any idea how this warning message is calculated? Many of
   the requests to your application are taking a very long time. Please
   optimize these requests.

   It seems I meet quota denials every time this one shows up. I'm unable
   to tune anymore if I don't know how it is calculated.

   There are several possible algorithms for this in my mind and I need
   to know which one is used to be able to move forward:
   1. Based on the total number of high CPU requests in a certain period
   of time. And what's the CPU usage value to make a request counted in?
   1200 mcycles? 1800, or anything else?
   2. Based on total CPU consumed by these high CPU.
   3. Based on response time.

   However, no matter how much I tuned, it's just about time for me to
   reach the load limit. Since 30% of my write requests will never
   possible to fit the current high CPU bar. It also seems that the high
   CPU quota is not increased with the other quota. So say assume 10% of
   your requests are high CPU ones, and GAE only allows 1 high CPU
   request per second, then you will not be able to scale beyond 10
   requests per second, no matter how much CPU quota you have.

   There are 3 solutions in my mind:
   1. Raise the high CPU bar to fit real world needs like raising it to
   10K mcycles.
   2. Make the high amount CPU quota scalable and configurable instead of
   a fixed number. Such as making it 30% of normal CPU quota. However, I
   would still suggest to not even fix the percentage since every
   application is different. Better to make it configurable by developer
   

[google-appengine] Re: High Amount CPU Quota should be removed

2008-09-26 Thread Peter Recore

mitnick,

Can you explain more fully what the problem was, and how you were able
to debug the problem once you knew to look at the logs vs the
dashboard?  After all the back and forth on the high cpu quota issue,
I am curious about the particulars.   Right now, this is how I
understand it:

Warnings in the logs are based solely on the CPU used in Non API calls
- so if I had a request that did nothing but try to factor a really
large prime, I would probably get a lot of these warnings, and they
would also trigger dashboard warnings?

Warnings in the dashboard include CPU used in API calls, so if I had a
request that did nothing but complicated datastore calls, it would get
a dashboard warning, but *not* a log warning?

If that's the case, I am guessing you (mitnick) had a request that was
using a lot of runtime CPU but not necessarily a lot of API time?

On Sep 26, 8:55 pm, mitnickcbc [EMAIL PROTECTED] wrote:
  Request denials for high CPU are based on the runtime CPU usage (which
  does not include the CPU used in API calls). Since the runtime CPU
  cost are the ones present in the logs, it is more useful to rely on
  the log information when trying to determine how best to reduce CPU
  load for specific requests.

 Thanks for the clarification! Now I'm able to find the bottleneck
 and... it scales!

 On Sep 27, 2:00 am, Jeff S [EMAIL PROTECTED] wrote:

  On Sep 26, 1:48 am, mitnickcbc [EMAIL PROTECTED] wrote:

   Some update about my latest findings. And these are my guesses, please
   do correct me if I'm wrong.

   The quota denial for high amount CPU and the warning message Many of
   the requests to your application are taking a very long time. Please
   optimize these requests. is calculated based on the number of warning
   you get in your log saying that This request used a high amount of
   CPU, and was roughly 1.0 times over the average request CPU limit.
   High CPU requests have a small quota, and if you exceed this quota,
   your app will be temporarily disabled.

   Please note, the average CPU usage and related warning are very
   misleading. The mcycles value displayed in log is also very different
   from the x.x times value showed in warning message. I used to think
   that request using beyond 1800 mcycles CPU will be considered as a
   high CPU request since it shows red in Average CPU column. But the
   latest finding is that it's not the case. One kind of my requests use
   about 6K-7K mcycles in average CPU, but I seldom see a high CPU
   warning in log for them. Again, this mcycles value seems to mean
   nothing and the algorithm used to calculate the x.x times high CPU
   warning really matters!

  As you have noticed, there are differences in the CPU usage
  measurements presented in the logs and in the dashboard. This thread
  contains clarification which I've copied below:

 http://groups.google.com/group/google-appengine/browse_frm/thread/f21...
  Concerning CPU accounting overall - The warning threshold for the
  logs
  and for the dashboard actually differ.  In the logs, warnings will
  only
  occur for high runtime CPU.  The warnings on the dashboard are
  triggered for
  high overall CPU, including CPU used in the runtime and per API, most
  notably being the datastore API.

  Request denials for high CPU are based on the runtime CPU usage (which
  does not include the CPU used in API calls). Since the runtime CPU
  cost are the ones present in the logs, it is more useful to rely on
  the log information when trying to determine how best to reduce CPU
  load for specific requests.

  Happy coding,

  Jeff

   With this in mind, the focus is back to the warning message itself to
   figure out what's the algorithm. So there is an average request CPU
   limit in this message. This value seems to be quite big and only my
   requests that are doing some work which should be done by a background
   scheduler exceeds it. The question is, is this a fixed value? Or a
   dynamic value calculated based on all apps? Or a dynamic value
   calculated based on the app itself?

   And the number of such warnings has a fixed quota that doesn't scale
   with other quotas. If all my assumption is right here, the best option
   to solve this issue in my mind is to make the high CPU quota scale as
   other quotas.

   On Sep 26, 1:22 am, mitnickcbc [EMAIL PROTECTED] wrote:

Anyone has any idea how this warning message is calculated? Many of
the requests to your application are taking a very long time. Please
optimize these requests.

It seems I meet quota denials every time this one shows up. I'm unable
to tune anymore if I don't know how it is calculated.

There are several possible algorithms for this in my mind and I need
to know which one is used to be able to move forward:
1. Based on the total number of high CPU requests in a certain period
of time. And what's the CPU usage value to make a request counted in?
1200 mcycles? 1800, or anything else?
 

[google-appengine] Re: Dynamic db.Model classes ?

2008-09-26 Thread Rafe

  Have you looked at the class db.Expando.  That has the ability to
create dynamic properties.

  But it sounds like you want to have runtime determined kinds.  In
this case, expando is not what you need.  Take a look at
datastore.Entity, which is what underlies the Model classes, as it has
the precise interface you are indicating below.

  Please be warned, however, that the Entity class is not documented
and you may not be able to get support for it.  I might be able to
answer a couple of questions if that's the route you would like to
choose, but it's not officially supported.

On Sep 26, 4:19 pm, koblas [EMAIL PROTECTED] wrote:
 I'm not going to make any claims to being a python expert, nor is this
 a trivial question.

 What I want to do is have the ability to have an abstract interface
 for table contruction -- think UI where you can say add field ...
 type String.  Once you've specified the database table format from
 the UI, would like to take advatange of the non-tightly structured
 database underlying App Engine.

 What I would like to have is a class like:
   GenericTable(db.Model)
  
  def __init__(self, tbl) :
  ...
  def __getattr__(self, name) :
  for purposes of example...

 So in my view code I can say:
 tbl = GenericTable(books)
 items = tbl.all()
 for item in items :
   ...something interesting...
   ...with the ability to say item['price'] -- via the above
 __getattr__

 Hopefully this gives you a good idea of intent, where things are
 getting muddled up is I'm not sure if it's better to extend db.Model /
 db.PropertiedClass or build something totally new from the ground
 up...

 Anybody tried this before, or maybe has some good pointers on what is
 a better course of action?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] SUM and COUNT for too many possibilities of result sets

2008-09-26 Thread Ilia Lobsanov

I know aggregates have been discussed a lot already and that the way
to do it is at write time.

However my application is a full text search engine where each keyword
produces a different result set. I need to report the sum and count
for the entities in a given result set.

Example: search a datastore of Contract entities where a Contract
model has an attribute contract_value. I need to get
sum(contract_value) for all the entities for the search.

How would you do this? Writing a count and sum for each possible
search keyword is mind boggling.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Google Moderator -- Source code?

2008-09-26 Thread Tee

How Google Moderator (GWT) connect to App Engine?
Do you know how to google developer used?

On Sep 27, 2:00 am, Scott Lewis [EMAIL PROTECTED] wrote:
 Is the source code for Google Moderator available?  If so where/when?

 I'm working on some overlapping ideas with an org called DemocracyLab
 (www.democracylab.org) on the google app engine, and it might be
 useful to consider technical collaboration on some such work.  Is such
 collaboration possible/available?

 Thanks,

 Scott

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Who would post a detailed app with testcases powered by gaeunit?

2008-09-26 Thread Steven R. Farley

You can see a few examples in the sample app I recently added to
GAEUnit:

  http://code.google.com/p/gaeunit/source/browse/#svn/trunk/sample_app

++Steve

On Sep 25, 10:31 pm, GAEFans [EMAIL PROTECTED] wrote:
 For example, some testcases for '%google_appengine_home%\demos
 \guestbook'.

 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Release of AppEngine 1.1.4 SDK

2008-09-26 Thread Rafe

  Hello,

  This evening we have released the AppEngine 1.1.4 SDK.  It addresses
some of the problems that Windows users have had with static files on
dev_appserver.  If you are working on Windows and an existing
application started telling you something like the following message,
this fix is for you:

  configuration file invalid:
  regex does not compile: bogus escape: '\\xa'

  You can download it from the project site here:

  http://code.google.com/p/googleappengine/downloads/list

  - Rafe Kaplan

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Dashboard : some requests are not counted

2008-09-26 Thread Sylvain

Hi,

In the Dashboard, some requests are not counted and there is a big
difference between the number I can count in the log (option, show the
requests) and the number of request counted in the Dashboard (in the
table ; URI, req/min,...)

Currently my Dashboad show the Requests last 23 hrs, so it is very
easy to compare.

Regards
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---