[google-appengine] charges

2020-01-10 Thread tony gair
I am writing a google assistant project that I hope will one day will buy 
me an electric bicycle. The project is one where you talk to and get the 
information you require from a speaker talking to you. 
I have recently been coding up the database side of the project and 
realise I have a lot of data to put in google datastore. I am more than a 
little concerned having had to set up credit card billing that I get stung 
rather than get a few quid.
 Hey Google can you reassure me on this?


-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/deb4c262-0117-46b9-ae59-c762839a24e4%40googlegroups.com.


[google-appengine] Re: GAE Search API - Python

2019-05-06 Thread Tony Indrali
Hi,

To make it very clear, the original App Engine APIs, specifically the *Search 
API* (https://cloud.google.com/appengine/training/fts_intro/), is planned 
to be made available to Python 3.7 standard environment App Engine?

Thanks in advance.

On Wednesday, September 12, 2018 at 1:33:25 AM UTC+7, Katayoon (Cloud 
Platform Support) wrote:
>
> Hi,
>
> I should add that here 
>  you 
> can find all App Engine Python APIs available for Standard environment 
> (meaning that they are already available on the platform and no need to 
> install them) and here 
> 
>  
> you can find all the external Google Cloud Client Libraries for Python 
> which should be installed before being used.
>
>
>- 
>
>Note that Python 3.7 is in beta stage 
>
> 
>  
>at the moment and App Engine product team are progressively evolving the 
>original App Engine APIs to make them accessible across all GCP platforms, 
>however you may send your feature request via the Issue Tracker 
> to let the 
>product team know your interest/concern.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/9407ae2f-3b0f-4eb6-9576-59f4514ce45d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Trying to mount Google Filestore share in GAE flexible runtime container

2019-02-06 Thread Tony Day
Hi everybody

Gentle bump on this question please :-)
Any suggestions/advice would gratefully accepted.
Let me know if I need to supply any more info.

Thanks

On Friday, 1 February 2019 13:51:33 UTC+13, Tony Day wrote:
>
>
> Hi
>
> I would like to mount a Google Filestore share so that I can write files 
> to it from my app running in a GAE Flexible docker container.
>
> As a crude experiment I have SSHed into the GAE host instance and manually 
> followed the steps outlined here 
> <https://cloud.google.com/filestore/docs/mounting-fileshares> to mount 
> the share in the docker container.
> This works (sort of) but only if I manually run the container with the 
> appropriate privilege (for example docker run --rm -it *--cap-add 
> sys_admin*  /bin/bash).
>
> Is it possible to configure GAE Flexible to run the gaeapp container with 
> specific properties (for example --cap-add sys_admin) ?
>
> Alternatively can anybody suggest a better way to mount the Filestore 
> share on the gaeapp container.
>
> Many thanks
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/50307836-5c2d-48c6-85fd-6411706dc462%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Trying to mount Google Filestore share in GAE flexible runtime container

2019-01-31 Thread Tony Day

Hi

I would like to mount a Google Filestore share so that I can write files to 
it from my app running in a GAE Flexible docker container.

As a crude experiment I have SSHed into the GAE host instance and manually 
followed the steps outlined here 
 to mount the 
share in the docker container.
This works (sort of) but only if I manually run the container with the 
appropriate privilege (for example docker run --rm -it *--cap-add sys_admin* 
 /bin/bash).

Is it possible to configure GAE Flexible to run the gaeapp container with 
specific properties (for example --cap-add sys_admin) ?

Alternatively can anybody suggest a better way to mount the Filestore share 
on the gaeapp container.

Many thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/3bee20c6-1331-4e3a-af3d-ceb5b7edb737%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] what's wrong with my domain: http://35.199.179.111/wp-login.php?redirect_to=http%3A%2F%2Fwww.naturalherbalcoloncleanse.com%2Fwp-admin%2F=1

2017-12-29 Thread tony wang
Hi there,

I just bought a domain from NameCheap and pointed it to my google cloud 
instance where I installed the Wordpress.

If I type my domain: www.naturalherbalcoloncleanse.com, it works fine.

but whenever I try to type in: www.naturalherbalcoloncleanse.com/wp-admin, 
it will go wrong something like this:

http://35.199.179.111/wp-login.php?redirect_to=http%3A%2F%2Fwww.naturalherbalcoloncleanse.com%2Fwp-admin%2F=1

Can someone please help me on this?
thank you
tony

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/47c0a1b7-cf71-4095-9a48-f240a24264c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Datastore on flex nodejs appengine isn't working

2017-02-01 Thread Tony Stark
Since yesterday does not work datastore through the flex evironment. 
Application just not receives the response from the datastore. If I run the 
application locally, everything works. If I try to do those operations in 
app engine - it does not work. The answer does not come from the server. If 
wait a long time, the message from the nginx is  "502 Bad Gateway".

There are no errors in the app; it works locally. And even before yesterday 
everything worked perfectly in the app engine.

https://lynkus-api-test.appspot.com/test - here is no request to the 
datastore, the answer comes from the application.
https://lynkus-api-test.appspot.com - here is a request, but there is no 
answer :(

if you go in the app engine instance, in /var/log/nginx/error.log there are 
reports like this:

2017/02/01 09:15:59 [error] 32#32: *736 upstream prematurely closed 
connection while reading response header from upstream, client: 
130.211.3.225, server: , request: "GET / HTTP/1.1", upstream: 
"http://172.18.0.2:80/;, host: "lynkus-api-test.appspot.com"

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/76145741-2499-464f-9240-d2dbab561710%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Reliability of urlfetch when dealing with servers in China?

2016-03-04 Thread Tony Yang
I am creating an app involving urlfetch with China servers, and I am aware 
that google IPs are generally blocked in China.

Now based on my test results, urlfetch to China websites works without 
errors.

My question is, does that happen most of the time? And, if one day, China 
blocks urlfetch's source IPs (since it comes from a small range and 
probably don't change so often), will Google be responsible to change the 
IPs so that urlfetch can work normally?

In theory Google can choose from a very large pool randomly for urlfetch or 
just do urlfetch from the crawlers' IP. China won't block them.

Cheers,
Tony

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/ed15c30b-a889-42e6-a92a-6efca97f7511%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Our domain was associated with a new GAE project, but requests are still hitting the old project ~15-25% of the time after ~20 hours

2015-03-26 Thread Tony Magliulo
Whoops... Yesterday's date was 2015-03-25

On Thursday, March 26, 2015 at 9:26:46 AM UTC-7, Tony Magliulo wrote:

 Yesterday (2015-03-26) we switched the association of the domain 
 www.odrive.com from one project to another on GAE. The problem is that, 
 after 20 hours, between 15-25% of requests to www.odrive.com are still 
 hitting the old project (depending on the location I am testing from). In 
 fact, they are hitting an old version of the old project. According the GAE 
 stats and logs, there is zero traffic going to any version of the old 
 project, yet I am still hitting it from multiple machines in various 
 geographies. It appears that there is a cached instance and a persisted 
 route for the domain that is being internally resolved by GAE...?

 Has anyone ever seen this happen? Is there any way to speed up proper 
 resolution so that 100% of our traffic hits the intended project?

 Thanks!


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/adf19dc4-2782-4f36-9ecb-81b45e84e1a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Our domain was associated with a new GAE project, but requests are still hitting the old project ~15-25% of the time after ~20 hours

2015-03-26 Thread Tony Magliulo
Yesterday (2015-03-26) we switched the association of the domain 
www.odrive.com from one project to another on GAE. The problem is that, 
after 20 hours, between 15-25% of requests to www.odrive.com are still 
hitting the old project (depending on the location I am testing from). In 
fact, they are hitting an old version of the old project. According the GAE 
stats and logs, there is zero traffic going to any version of the old 
project, yet I am still hitting it from multiple machines in various 
geographies. It appears that there is a cached instance and a persisted 
route for the domain that is being internally resolved by GAE...?

Has anyone ever seen this happen? Is there any way to speed up proper 
resolution so that 100% of our traffic hits the intended project?

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/5324200f-8548-4c37-a251-b208f1dd4518%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Server error trying to delete user in web console permissions view

2014-03-28 Thread Tony França


Not sure if this is the right place for this, forgive me if it isn't.

I also opened a ticket at 
https://code.google.com/p/googleappengine/issues/detail?id=10744thanks=10744ts=1396030335

Steps to reproduce:


1) I go to appengine.google.com
2) I select one of the applications I have access to (either qmaghomolog or 
qmagicobr2)
3) On the left navigation bar, I click on Permissions (under Administration)
4) I see myself listed with Role = Owner
5) I click the Remove button for another user

BUG: I get a new page that says only

 Server Error
 A server error has occurred.
 (link) Return to Applications screen »

And no further information is given.

Please help :-)


Cheers

Tony

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Cross-reference multiple many-to-many relationships. How well does this perform on BigTable?

2013-09-19 Thread Tony França
Sometimes you just gotta ask the specialists. Help anyone?
http://stackoverflow.com/questions/18895586/cross-reference-multiple-many-to-many-relationships-which-database-should-i-pic

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


[google-appengine] Bad deploy day... again

2013-09-03 Thread Tony França
This is getting really annoying.
Bad deploy days have been a recurring issue for us (please see 
https://groups.google.com/forum/#!searchin/google-appengine/qmagtest)
I also opened an issue on appengine issue tracker: 
https://code.google.com/p/googleappengine/issues/detail?id=9917thanks=9917ts=1378228556

Google, please do something about this!

Is anybody else having theses problems?

Also, I'd like to suggest that Bad deploy days be shown on Appengine 
status page - https://code.google.com/status/appengine/
That way I can get a feeling whether this is happening to a lot of people 
or it's just me.



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


[google-appengine] Re: Bad deploy day... again

2013-09-03 Thread Tony França
The appid I'm having problem with is qmagtest

On Tuesday, September 3, 2013 2:22:49 PM UTC-3, Tony França wrote:

 This is getting really annoying.
 Bad deploy days have been a recurring issue for us (please see 
 https://groups.google.com/forum/#!searchin/google-appengine/qmagtest)
 I also opened an issue on appengine issue tracker: 
 https://code.google.com/p/googleappengine/issues/detail?id=9917thanks=9917ts=1378228556

 Google, please do something about this!

 Is anybody else having theses problems?

 Also, I'd like to suggest that Bad deploy days be shown on Appengine 
 status page - https://code.google.com/status/appengine/
 That way I can get a feeling whether this is happening to a lot of people 
 or it's just me.





-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


[google-appengine] push to deploy is broken (repository 'https://code.google.com/id/xxxxxxxxx/' not found)

2013-08-16 Thread Tony França
For some time now, we have been having problems with 
deploymenthttps://groups.google.com/forum/#!searchin/google-appengine/badstatusline/google-appengine/9e2mI5YEocI/jzktdq9n538J
.

I though I had finally found a solution using 
push-to-deployhttps://developers.google.com/appengine/docs/push-to-deploy, 
but it just stopped working.

The Git repository that I'm supposed to push to doesn't seem to exist 
anymore.

I tried disabling and re-enabling push-to-deploy in the app settings.
According to the instructions in the app-settings:

*Note:* If you disable this feature and re-enable it, a new empty Git 
 repository will be created, and the contents of the original one will be 
 deleted.


But when I try to clone the new repo:

$ git clone https://code.google.com/id/AMwlKnyGF-Z/
 Cloning into 'AMwlKnyGF-Z'...
 fatal: repository 'https://code.google.com/id/AMwlKnyGF-Z/' not found


please help.

The app_id in question is *qmagtest*

Thanks
Tony Lâmpada

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


[google-appengine] Re: Deploy issues

2013-08-16 Thread Tony França
And now that's broken too :-(
https://groups.google.com/forum/#!topic/google-appengine/97gbEosJiY0



On Friday, August 9, 2013 12:21:01 PM UTC-3, Tony França wrote:

 I've managed to get around this problem by using the alternative 
 psh-to-deploy method
 https://developers.google.com/appengine/docs/push-to-deploy

 It's working much better so far.



 On Friday, June 7, 2013 1:18:31 PM UTC-3, Renzo Nuccitelli wrote:

  We were experiencing deploy issues yesterday. Here is the stack trace:

 Traceback (most recent call last):
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 2284, in DoUpload
 missing_files = self.Begin()
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 1947, in Begin
 self.Send('/api/appversion/create', payload=config_copy.ToYAML())
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 1892, in Send
 return self.rpcserver.Send(url, payload=payload, **self.params)
   File 
 /home/qmagico/google_appengine/google/appengine/tools/appengine_rpc.py, 
 line 393, in Send
 f = self.opener.open(req)
   File /usr/lib/python2.7/urllib2.py, line 400, in open
 response = self._open(req, data)
   File /usr/lib/python2.7/urllib2.py, line 418, in _open
 '_open', req)
   File /usr/lib/python2.7/urllib2.py, line 378, in _call_chain
 result = func(*args)
   File /usr/lib/python2.7/urllib2.py, line 1215, in https_open
 return self.do_open(httplib.HTTPSConnection, req)
   File 
 /home/qmagico/google_appengine/lib/fancy_urllib/fancy_urllib/__init__.py, 
 line 370, in do_open
 req)
   File /usr/lib/python2.7/urllib2.py, line 1180, in do_open
 r = h.getresponse(buffering=True)
   File /usr/lib/python2.7/httplib.py, line 1030, in uygetresponse
 response.begin()
   File /usr/lib/python2.7/httplib.py, line 407, in begin
 version, status, reason = self._read_status()
   File /usr/lib/python2.7/httplib.py, line 371, in _read_status
 raise BadStatusLine(line)
 BadStatusLine: ''
 Password for jenkins...@gmail.com: Traceback (most recent call last):
   File /home/qmagico/google_appengine/appcfg.py, line 171, in module
 run_file(__file__, globals())
   File /home/qmagico/google_appengine/appcfg.py, line 167, in run_file
 execfile(script_path, globals_)
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 4507, in module
 main(sys.argv)
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 4498, in main
 result = AppCfgApp(argv).Run()
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 2686, in Run
 self.action(self)
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 4233, in __call__
 return method()
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 3245, in Update
 self.UpdateVersion(rpcserver, self.basepath, appyaml, yaml_file_basename)
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 3194, in UpdateVersion
 return appversion.DoUpload(paths, openfunc)
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 2284, in DoUpload
 missing_files = self.Begin()
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 1947, in Begin
 self.Send('/api/appversion/create', payload=config_copy.ToYAML())
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 1892, in Send
 return self.rpcserver.Send(url, payload=payload, **self.params)
   File 
 /home/qmagico/google_appengine/google/appengine/tools/appengine_rpc.py, 
 line 393, in Send
 f = self.opener.open(req)
   File /usr/lib/python2.7/urllib2.py, line 400, in open
 response = self._open(req, data)
   File /usr/lib/python2.7/urllib2.py, line 418, in _open
 '_open', req)
   File /usr/lib/python2.7/urllib2.py, line 378, in _call_chain
 result = func(*args)
   File /usr/lib/python2.7/urllib2.py, line 1215, in https_open
 return self.do_open(httplib.HTTPSConnection, req)
   File 
 /home/qmagico/google_appengine/lib/fancy_urllib/fancy_urllib/__init__.py, 
 line 370, in do_open
 req)
   File /usr/lib/python2.7/urllib2.py, line 1180, in do_open
 r = h.getresponse(buffering=True)
   File /usr/lib/python2.7/httplib.py, line 1030, in getresponse
 response.begin()
   File /usr/lib/python2.7/httplib.py, line 407, in begin
 version, status, reason = self._read_status()
   File /usr/lib/python2.7/httplib.py, line 371, in _read_status
 raise BadStatusLine(line)
 httplib.BadStatusLine: ''

  We have tested our internet connection and it was just fine. We had those 
 problems on another days too. Any a comment about that?

  Thanks,

  Renzo




 -- 
   Renzo Nuccitelli
   www.qmagico.com.br
  


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop

[google-appengine] Re: Deploy issues

2013-08-09 Thread Tony França
I've managed to get around this problem by using the alternative 
psh-to-deploy method
https://developers.google.com/appengine/docs/push-to-deploy

It's working much better so far.



On Friday, June 7, 2013 1:18:31 PM UTC-3, Renzo Nuccitelli wrote:

  We were experiencing deploy issues yesterday. Here is the stack trace:

 Traceback (most recent call last):
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 2284, in DoUpload
 missing_files = self.Begin()
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 1947, in Begin
 self.Send('/api/appversion/create', payload=config_copy.ToYAML())
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 1892, in Send
 return self.rpcserver.Send(url, payload=payload, **self.params)
   File 
 /home/qmagico/google_appengine/google/appengine/tools/appengine_rpc.py, 
 line 393, in Send
 f = self.opener.open(req)
   File /usr/lib/python2.7/urllib2.py, line 400, in open
 response = self._open(req, data)
   File /usr/lib/python2.7/urllib2.py, line 418, in _open
 '_open', req)
   File /usr/lib/python2.7/urllib2.py, line 378, in _call_chain
 result = func(*args)
   File /usr/lib/python2.7/urllib2.py, line 1215, in https_open
 return self.do_open(httplib.HTTPSConnection, req)
   File 
 /home/qmagico/google_appengine/lib/fancy_urllib/fancy_urllib/__init__.py, 
 line 370, in do_open
 req)
   File /usr/lib/python2.7/urllib2.py, line 1180, in do_open
 r = h.getresponse(buffering=True)
   File /usr/lib/python2.7/httplib.py, line 1030, in uygetresponse
 response.begin()
   File /usr/lib/python2.7/httplib.py, line 407, in begin
 version, status, reason = self._read_status()
   File /usr/lib/python2.7/httplib.py, line 371, in _read_status
 raise BadStatusLine(line)
 BadStatusLine: ''
 Password for jenkins...@gmail.com javascript:: Traceback (most recent call 
 last):
   File /home/qmagico/google_appengine/appcfg.py, line 171, in module
 run_file(__file__, globals())
   File /home/qmagico/google_appengine/appcfg.py, line 167, in run_file
 execfile(script_path, globals_)
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 4507, in module
 main(sys.argv)
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 4498, in main
 result = AppCfgApp(argv).Run()
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 2686, in Run
 self.action(self)
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 4233, in __call__
 return method()
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 3245, in Update
 self.UpdateVersion(rpcserver, self.basepath, appyaml, yaml_file_basename)
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 3194, in UpdateVersion
 return appversion.DoUpload(paths, openfunc)
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 2284, in DoUpload
 missing_files = self.Begin()
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 1947, in Begin
 self.Send('/api/appversion/create', payload=config_copy.ToYAML())
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 1892, in Send
 return self.rpcserver.Send(url, payload=payload, **self.params)
   File 
 /home/qmagico/google_appengine/google/appengine/tools/appengine_rpc.py, 
 line 393, in Send
 f = self.opener.open(req)
   File /usr/lib/python2.7/urllib2.py, line 400, in open
 response = self._open(req, data)
   File /usr/lib/python2.7/urllib2.py, line 418, in _open
 '_open', req)
   File /usr/lib/python2.7/urllib2.py, line 378, in _call_chain
 result = func(*args)
   File /usr/lib/python2.7/urllib2.py, line 1215, in https_open
 return self.do_open(httplib.HTTPSConnection, req)
   File 
 /home/qmagico/google_appengine/lib/fancy_urllib/fancy_urllib/__init__.py, 
 line 370, in do_open
 req)
   File /usr/lib/python2.7/urllib2.py, line 1180, in do_open
 r = h.getresponse(buffering=True)
   File /usr/lib/python2.7/httplib.py, line 1030, in getresponse
 response.begin()
   File /usr/lib/python2.7/httplib.py, line 407, in begin
 version, status, reason = self._read_status()
   File /usr/lib/python2.7/httplib.py, line 371, in _read_status
 raise BadStatusLine(line)
 httplib.BadStatusLine: ''

  We have tested our internet connection and it was just fine. We had those 
 problems on another days too. Any a comment about that?

  Thanks,

  Renzo




 -- 
   Renzo Nuccitelli
   www.qmagico.com.br
  

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to 

[google-appengine] Re: Deploy issues

2013-08-08 Thread Tony França
Hi Chris, we're experiencing those same deploy problems again today.
We have a Jenkins installation that allows for one click-deploys, 
This Jenkins job normally takes about 5min to run. It runs automatic tests, 
and does the deploy if they pass.
On healthy builds, about 80% of those 5min is spent running tests. 
Deploying is normally the fast part.

Below there's a few details for the failing builds we are seeing today.
All deploys attempts are for app_id *qmagtest*

You can see that those failed builds are taking a longer time. That is time 
spent during the deploy attempt.
I hope this helps you trace the problem. Please let me know if you need 
more details.
Thanks


Build #1005
Failed with:   
File /usr/lib/python2.7/httplib.py, line 371, in _read_status
raise BadStatusLine(line)
httplib.BadStatusLine: ''
started: Aug 8, 2013 5:15:06 PM (GMT-3)
version: 1601
duration: 8min


Build #1003
Failed with:   
File 
/home/qmagico/google_appengine/lib/fancy_urllib/fancy_urllib/__init__.py, 
line 387, in do_open
raise url_error
urllib2.URLError: urlopen error [Errno 110] Connection timed out
started: Aug 8, 2013 4:50:14 PM (GMT-3)
version: 1601
duration: 20min


Build #999
Failed with:   
File /usr/lib/python2.7/httplib.py, line 371, in _read_status
raise BadStatusLine(line)
httplib.BadStatusLine: ''
started: Aug 8, 2013 3:34:29 PM (GMT-3)
version: master
duration: 7min42sec


Build #995
Failed with:   
File 
/home/qmagico/google_appengine/lib/fancy_urllib/fancy_urllib/__init__.py, 
line 387, in do_open
raise url_error
urllib2.URLError: urlopen error [Errno 110] Connection timed out
started: Aug 8, 2013 12:13:05 PM (GMT-3)
version: 1829
duration: 19min


On Friday, June 7, 2013 1:18:31 PM UTC-3, Renzo Nuccitelli wrote:

  We were experiencing deploy issues yesterday. Here is the stack trace:

 Traceback (most recent call last):
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 2284, in DoUpload
 missing_files = self.Begin()
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 1947, in Begin
 self.Send('/api/appversion/create', payload=config_copy.ToYAML())
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 1892, in Send
 return self.rpcserver.Send(url, payload=payload, **self.params)
   File 
 /home/qmagico/google_appengine/google/appengine/tools/appengine_rpc.py, 
 line 393, in Send
 f = self.opener.open(req)
   File /usr/lib/python2.7/urllib2.py, line 400, in open
 response = self._open(req, data)
   File /usr/lib/python2.7/urllib2.py, line 418, in _open
 '_open', req)
   File /usr/lib/python2.7/urllib2.py, line 378, in _call_chain
 result = func(*args)
   File /usr/lib/python2.7/urllib2.py, line 1215, in https_open
 return self.do_open(httplib.HTTPSConnection, req)
   File 
 /home/qmagico/google_appengine/lib/fancy_urllib/fancy_urllib/__init__.py, 
 line 370, in do_open
 req)
   File /usr/lib/python2.7/urllib2.py, line 1180, in do_open
 r = h.getresponse(buffering=True)
   File /usr/lib/python2.7/httplib.py, line 1030, in uygetresponse
 response.begin()
   File /usr/lib/python2.7/httplib.py, line 407, in begin
 version, status, reason = self._read_status()
   File /usr/lib/python2.7/httplib.py, line 371, in _read_status
 raise BadStatusLine(line)
 BadStatusLine: ''
 Password for jenkins...@gmail.com javascript:: Traceback (most recent call 
 last):
   File /home/qmagico/google_appengine/appcfg.py, line 171, in module
 run_file(__file__, globals())
   File /home/qmagico/google_appengine/appcfg.py, line 167, in run_file
 execfile(script_path, globals_)
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 4507, in module
 main(sys.argv)
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 4498, in main
 result = AppCfgApp(argv).Run()
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 2686, in Run
 self.action(self)
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 4233, in __call__
 return method()
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 3245, in Update
 self.UpdateVersion(rpcserver, self.basepath, appyaml, yaml_file_basename)
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 3194, in UpdateVersion
 return appversion.DoUpload(paths, openfunc)
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 2284, in DoUpload
 missing_files = self.Begin()
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 1947, in Begin
 self.Send('/api/appversion/create', payload=config_copy.ToYAML())
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 1892, in Send
 return self.rpcserver.Send(url, payload=payload, **self.params)
   File 
 

[google-appengine] Re: Deploy issues

2013-06-07 Thread Tony França
Having the same issue as Renzo with our Python app.

Actually sometimes the stack trace is different, besides the 
BadStatusLine, we also get the stacktrace below.
I strongly believe this has nothing to do with my internet connection.

Google, any comments on this?

Thanks 
Tony

Traceback (most recent call last):
  File /home/qmagico/google_appengine/appcfg.py, line 171, in module
run_file(__file__, globals())
  File /home/qmagico/google_appengine/appcfg.py, line 167, in run_file
execfile(script_path, globals_)
  File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, line 
4507, in module
main(sys.argv)
  File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, line 
4498, in main
result = AppCfgApp(argv).Run()
  File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, line 
2686, in Run
self.action(self)
  File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, line 
4233, in __call__
return method()
  File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, line 
3244, in Update
updatecheck.CheckForUpdates()
  File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, line 
629, in CheckForUpdates
runtime=self.config.runtime)
  File 
/home/qmagico/google_appengine/google/appengine/tools/appengine_rpc.py, line 
393, in Send
f = self.opener.open(req)
  File /usr/lib/python2.7/urllib2.py, line 400, in open
response = self._open(req, data)
  File /usr/lib/python2.7/urllib2.py, line 418, in _open
'_open', req)
  File /usr/lib/python2.7/urllib2.py, line 378, in _call_chain
result = func(*args)
  File /usr/lib/python2.7/urllib2.py, line 1215, in https_open
return self.do_open(httplib.HTTPSConnection, req)
  File 
/home/qmagico/google_appengine/lib/fancy_urllib/fancy_urllib/__init__.py, 
line 370, in do_open
req)
  File /usr/lib/python2.7/urllib2.py, line 1180, in do_open
r = h.getresponse(buffering=True)
  File /usr/lib/python2.7/httplib.py, line 1030, in getresponse
response.begin()
  File /usr/lib/python2.7/httplib.py, line 407, in begin
version, status, reason = self._read_status()
  File /usr/lib/python2.7/httplib.py, line 365, in _read_status
line = self.fp.readline()
  File /usr/lib/python2.7/socket.py, line 447, in readline
data = self._sock.recv(self._rbufsize)
  File /usr/lib/python2.7/ssl.py, line 241, in recv
return self.read(buflen)
  File /usr/lib/python2.7/ssl.py, line 160, in read
return self._sslobj.read(len)
ssl.SSLError: The read operation timed out



On Friday, June 7, 2013 1:18:31 PM UTC-3, Renzo Nuccitelli wrote:

  We were experiencing deploy issues yesterday. Here is the stack trace:

 Traceback (most recent call last):
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 2284, in DoUpload
 missing_files = self.Begin()
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 1947, in Begin
 self.Send('/api/appversion/create', payload=config_copy.ToYAML())
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 1892, in Send
 return self.rpcserver.Send(url, payload=payload, **self.params)
   File 
 /home/qmagico/google_appengine/google/appengine/tools/appengine_rpc.py, 
 line 393, in Send
 f = self.opener.open(req)
   File /usr/lib/python2.7/urllib2.py, line 400, in open
 response = self._open(req, data)
   File /usr/lib/python2.7/urllib2.py, line 418, in _open
 '_open', req)
   File /usr/lib/python2.7/urllib2.py, line 378, in _call_chain
 result = func(*args)
   File /usr/lib/python2.7/urllib2.py, line 1215, in https_open
 return self.do_open(httplib.HTTPSConnection, req)
   File 
 /home/qmagico/google_appengine/lib/fancy_urllib/fancy_urllib/__init__.py, 
 line 370, in do_open
 req)
   File /usr/lib/python2.7/urllib2.py, line 1180, in do_open
 r = h.getresponse(buffering=True)
   File /usr/lib/python2.7/httplib.py, line 1030, in uygetresponse
 response.begin()
   File /usr/lib/python2.7/httplib.py, line 407, in begin
 version, status, reason = self._read_status()
   File /usr/lib/python2.7/httplib.py, line 371, in _read_status
 raise BadStatusLine(line)
 BadStatusLine: ''
 Password for jenkins...@gmail.com javascript:: Traceback (most recent call 
 last):
   File /home/qmagico/google_appengine/appcfg.py, line 171, in module
 run_file(__file__, globals())
   File /home/qmagico/google_appengine/appcfg.py, line 167, in run_file
 execfile(script_path, globals_)
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 4507, in module
 main(sys.argv)
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 4498, in main
 result = AppCfgApp(argv).Run()
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line 2686, in Run
 self.action(self)
   File /home/qmagico/google_appengine/google/appengine/tools/appcfg.py, 
 line

[google-appengine] Re: Every day around 9.10 AM Brussels time, huge drop in GAE performances

2013-03-10 Thread Tony Lock
I too am having the same issues. At approximately 4:00pm West Australian 
time, the application starts to misbehave. I am starting to see latencies 
around the 70,000 ms mark, and lots of deadline exceeded errors. Most of 
these are at simple page load steps, not even doing real processing. The 
application is unusable for about 45 minutes to an hour, every day.

It has been consistently bad for about a month now.


On Tuesday, 5 February 2013 16:18:55 UTC+8, gafal wrote:

 I've been experiencing this for almost a week now.

 Requests take 10x longer than usual!!

 It seems to start around 9 and stop around 9:30...


 my app id is myagendapro
 Can anyone have a look? 


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




[google-appengine] No entities persisted when using JPA + Datastore

2012-11-27 Thread Tony Piazza

I am trying convert a Java project using JPA/Cloud SQL to use JPA/Datastore 
instead. I see these messages in the log when running the application:

I 2012-11-26 19:39:13.660 org.datanucleus.TransactionImpl 
internalPreCommit:  calling preCommit on 
org.datanucleus.store.connection.ConnectionManagerImpl$2@17a0b4d
I 2012-11-26 19:39:13.661 org.datanucleus.TransactionImpl 
internalPreCommit:  calling preCommit on 
org.datanucleus.ObjectManagerImpl@aab59f
I 2012-11-26 19:39:13.661 org.datanucleus.TransactionImpl preFlush:  
calling preFlush on 
org.datanucleus.store.connection.ConnectionManagerImpl$2@17a0b4d
I 2012-11-26 19:39:13.661 org.datanucleus.TransactionImpl preFlush:  
calling preFlush on org.datanucleus.ObjectManagerImpl@aab59f

The problem is that I don't see the entities that should be persisted. The 
Datastore Admin says Datastore is empty and the Datastore Viewer can't 
find any kinds associated with my entities. Any ideas as to what might be 
wrong?

Thanks in advance for your help.

-Tony

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/q0EuLKppbLkJ.
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] Redirect loop on app deployment

2012-11-22 Thread Tony Carden
Hi folks,

I'm completely new to app development and to this forum, so please forgive 
both my ignorance and any incorrect use of this forum. I've just deployed 
my first app, which runs fine on my local machine, but which gets stuck in 
a redirect loop when deployed. I've used a version of the user 
authentication system advised here 
https://developers.google.com/appengine/docs/python/users/overview, with 
some modifications to incorporate jinja templates.

Is this a common problem? Should I post my code so you wise folks can see 
what I have or haven't done?

Thanks in anticipation,

Tony

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/ej12FUDNEhYJ.
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: Redirect loop on app deployment

2012-11-22 Thread Tony Carden
Never mind folks...the problem seems to have resolved by itself. I assume 
it must have been a side effect of today's server problems.

Thanks,

Tony

On Friday, 23 November 2012 14:38:07 UTC+11, Tony Carden wrote:

 Hi folks,

 I'm completely new to app development and to this forum, so please forgive 
 both my ignorance and any incorrect use of this forum. I've just deployed 
 my first app, which runs fine on my local machine, but which gets stuck in 
 a redirect loop when deployed. I've used a version of the user 
 authentication system advised here 
 https://developers.google.com/appengine/docs/python/users/overview, with 
 some modifications to incorporate jinja templates.

 Is this a common problem? Should I post my code so you wise folks can see 
 what I have or haven't done?

 Thanks in anticipation,

 Tony


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/LupubFG9Y_gJ.
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] Upgrade GAEProxy to 0.18.0 and fail to connect

2012-10-20 Thread Tony Huang
Market update GAEProxy (Android) to 0.18.0 today and become fail to 
connect. I delete it and restore last version from backup then it work fine.

Please check and fix!

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/CMAmX00rcZcJ.
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] web site not loading

2012-04-10 Thread Tony Martinez
I setup my website (http://www.newyorktony.com) with the app engine
and until Monday 4/9/12 it worked just fine when i tried to get to it
Monday all i got was a blank page and I don't know why. The
Application Default Version URL: http://tonyfrvr.appspot.com brings me
the same blank page.

-- 
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.



Re: [google-appengine] Inaccurately Over Quota

2012-03-22 Thread Tony Parisi
I wasnt on the razors edge... is the point My daily spend is $0.60 plus my
prepurchased instansce hours spend. Beyond the front end hours I have 2-3
cents a day on database reads. The problem is the prepurchased instance
hours are calculating into the daily spend even though when you set your
budget they do not. We are a not for profit preschool so having a budget is
very import to anticipate expenditures.

On Thu, Mar 22, 2012 at 9:40 AM, Andreas a.schmi...@gmail.com wrote:

 why are you living on the edge?
 if you want your site to be up set your budget many times over your daily
 average.
 i understand that you want to control how much you want to spend but that
 means that you are accepting the fact that once that margin is reached your
 app wont be served any more.


 On Mar 22, 2012, at 10:28 AM, agp wrote:

 Last night my site was down because it said I was over my quota when in
 reality I was not.  I prepurchased front end instance hours to allow for
 cost to be spent on other items. I did not want to increase my weekly spend
 so I had to lower my daily spend amount. The daily spend cap though is
 calculating .08 not the pre purchased .05 and also it is not using the
 prepurchase for the calculations at all. I currently each week have excess
 front end hours I am not using, I have not additional cost other then the
 FEIH although even with a that the site is shutting down saying I am over
 quota.  Please advise and or fix my application id is 
 madisonpsahttps://appengine.google.com/dashboard?app_id=s%7Emadisonpsa.


 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine/-/OwIm2UpUz_gJ.
 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.


  --
 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.


-- 
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 to get Application ID at runtime (Java)?

2012-03-17 Thread Tony
Hello, I want to make specific actions depending on application ID, how can 
I do that using Java?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/FVZgSBks3D4J.
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] Is it possible to query Datastore by parameter of Date?

2012-03-13 Thread Tony Yang
Dear Sir,
Would you help the issue below. Is it possible to query Datastore by
parameter of Date?

--- My code 
PersistenceManager pm = PMF.get().getPersistenceManager();
Query query = pm.newQuery(Customer.class);
Date currentDate = new Date();
Date beforeDate = new Date();
long currentdate = currentDate.getTime();
long beforedate = currentdate - 8640*5; //search data in
Customer.class within 5 days
beforeDate.setTime(beforedate);
query.setFilter(date  offsetDate); // date is
column's name in Customer.class
query.declareParameters(Date offsetDate);
ListCustomer conn = (ListCustomer)
pm.newQuery(query).execute(beforeDate);

--- Error message from system is as below :

Class Date for query has not been resolved. Check the query and
any imports specification

Thanks a lot.

-- 
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: Outages?

2012-03-12 Thread Tony
So it keeps shutting down instances, warming them up and eating my money. 
AppID: crystalupdate



   1. 2012-03-12 08:31:44.715  
   
   Failed startup of context 
com.google.apphosting.utils.jetty.RuntimeAppEngineWebAppContext@1e0e954{/,/base/data/home/apps/crystalupdate/32.356258734295133782}
   com.google.apphosting.api.DeadlineExceededException: This request 
(74a86293e2b5f06a) started at 2012/03/12 15:30:43.629 UTC and was still 
executing at 2012/03/12 15:31:44.572 UTC.
at 
com.google.appengine.runtime.Request.process-74a86293e2b5f06a(Request.java)
at java.util.zip.ZipFile.read(Native Method)
at java.util.zip.ZipFile.access$1200(ZipFile.java:57)
at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:476)
at java.util.zip.ZipFile$1.fill(ZipFile.java:259)
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
at sun.misc.Resource.getBytes(Resource.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:273)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2406)
at java.lang.Class.getConstructor0(Class.java:2716)
at java.lang.Class.newInstance0(Class.java:343)
at java.lang.Class.newInstance(Class.java:325)
at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:92)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at 
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:662)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at 
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
at 
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
at 
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at 
com.google.tracing.TraceContext$TraceContextRunnable.runInContext(TraceContext.java:449)
at 
com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:455)
at com.google.tracing.TraceContext.runInContext(TraceContext.java:695)
at 
com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:333)
at 
com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:325)
at 
com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:453)
at java.lang.Thread.run(Thread.java:679)
   
   2.  C 2012-03-12 08:31:44.749  
   
   Uncaught exception from servlet
   javax.servlet.UnavailableException: Initialization failed.
at 
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler(AppVersionHandlerMap.java:211)
at 
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.getHandler(AppVersionHandlerMap.java:171)
at 
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:123)
at 
com.google.apphosting.runtime.JavaRuntime$RequestRunnable.run(JavaRuntime.java:422)
at 
com.google.tracing.TraceContext$TraceContextRunnable.runInContext(TraceContext.java:449)
at 
com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:455)
at com.google.tracing.TraceContext.runInContext(TraceContext.java:695)
at 
com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:333)
at 
com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:325)
at 
com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:453)
at 
com.google.apphosting.runtime.ThreadGroupPool$PoolEntry.run(ThreadGroupPool.java:251)
at java.lang.Thread.run(Thread.java:679)
   
   3.  I 2012-03-12 08:31:44.924  
   
   This request caused a new process to be started for your application, and 
thus caused your application code to be loaded for the first time. This request 
may thus take longer and use more CPU than a typical request for your 
application.
   
   4.  W 2012-03-12 08:31:44.924  
   
   A problem was encountered with the process that handled this request, 
causing it to exit. This is likely to cause a new process to be used for the 
next request to your application. If you see this message frequently, you may 
be throwing exceptions during the initialization of your 

[google-appengine] Help, I changed nothing but my application ate all my resources

2012-03-09 Thread Tony
Now it says Your application is at or near its daily budget limit. It 
just stopped serving. And during all day it was flooding me with errors 
like:


   1. 2012-03-09 09:55:08.090  
   
   Failed startup of context 
com.google.apphosting.utils.jetty.RuntimeAppEngineWebAppContext@537935{/,/base/data/home/apps/crystalupdate/32.356258734295133782}
   com.google.apphosting.api.DeadlineExceededException: This request 
(23186b2f795c1521) started at 2012/03/09 17:54:07.770 UTC and was still 
executing at 2012/03/09 17:55:07.875 UTC.
at 
com.google.appengine.runtime.Request.process-23186b2f795c1521(Request.java)
at java.util.zip.ZipFile.read(Native Method)
at java.util.zip.ZipFile.access$1200(ZipFile.java:57)
at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:476)
at java.util.zip.ZipFile$1.fill(ZipFile.java:259)
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
at sun.misc.Resource.getBytes(Resource.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:273)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2406)
at java.lang.Class.getConstructor0(Class.java:2716)
at java.lang.Class.newInstance0(Class.java:343)
at java.lang.Class.newInstance(Class.java:325)
at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:92)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at 
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:662)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at 
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
at 
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
at 
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at 
com.google.tracing.TraceContext$TraceContextRunnable.runInContext(TraceContext.java:449)
at 
com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:455)
at com.google.tracing.TraceContext.runInContext(TraceContext.java:695)
at 
com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:333)
at 
com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:325)
at 
com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:453)
at java.lang.Thread.run(Thread.java:679)
   
   2.  C 2012-03-09 09:55:08.194  
   
   Uncaught exception from servlet
   javax.servlet.UnavailableException: Initialization failed.
at 
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler(AppVersionHandlerMap.java:211)
at 
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.getHandler(AppVersionHandlerMap.java:171)
at 
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:123)
at 
com.google.apphosting.runtime.JavaRuntime$RequestRunnable.run(JavaRuntime.java:422)
at 
com.google.tracing.TraceContext$TraceContextRunnable.runInContext(TraceContext.java:449)
at 
com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:455)
at com.google.tracing.TraceContext.runInContext(TraceContext.java:695)
at 
com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:333)
at 
com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:325)
at 
com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:453)
at 
com.google.apphosting.runtime.ThreadGroupPool$PoolEntry.run(ThreadGroupPool.java:251)
at java.lang.Thread.run(Thread.java:679)
   
   3.  I 2012-03-09 09:55:09.391  
   
   This request caused a new process to be started for your application, and 
thus caused your application code to be loaded for the first time. This request 
may thus take longer and use more CPU than a typical request for your 
application.
   
   4.  W 2012-03-09 09:55:09.391  
   
   A problem was encountered with the process that handled this request, 
causing it to exit. This is likely to cause a new process to be used for the 
next request to your application. If you see this message frequently, you may 
be 

[appengine-java] Re: Cannot retrieve filename with Complicated Chinese charaters in GAE

2012-02-13 Thread Tony Yang
Dear Sir,

Thanks but the problem is same after changing file encoding as code
below.

System.setProperty(file.encoding, Big5);
or
System.setProperty(file.encoding, UTF-8);



On 2月8日, 下午1時17分, Nichole nichole.k...@gmail.com wrote:
 I just looked at appengine System properties
 (System.getProperty('file.encoding').

 Thefilesystem encoding is set to ANSI_X3.4-1968.  You might tinker
 with trying to
 change that?

 On Feb 6, 10:51 pm, Tony Yang tonyyan...@gmail.com wrote:







  Dear Sir,
  Thanks a lot but the problem is still there.
  Attached more description below.
  1. input some files into directory /war/images/ , they're arefilenames of
  img01.jpg, img02.jpg ...中文img.jpg
  2. Assignfiledirectory in JSPfileby code below.
         FilemyFile = newFile(images/);
          String[] strFiles = myFile.list();
  3. Printfilenamein the assigned directory by JSP code below
           for(int i=0 ; i  strFiles.length ; i++){
  file_name = strFiles[i].toString();
      out.println(file_name);
           }
  4. Thefilenamewith traditional Chinese characters(中文) cannot be printed
  out but others are ok for printing.
  5. The mentioned problem only happened after deploying in GAE cloud but
  didn't happen in local Eclipse development environment.

  Please help and thanks again.

  On Mon, Feb 6, 2012 at 5:05 PM, Nichole nichole.k...@gmail.com wrote:
   With GFS you should be able to use any character in thenameof afile
   or directory except the null character,
   so you just need to form your string using the right encoding.

   String fileName = new String(str, UTF-8);  or use Big5 for encoding?

   And then make sure the jsp prints the character correctly by including
   the encoding in one of several
   ways.  Here's one way:
   %@ page language=java contentType=text/html; UTF-8
   pageEncoding=UTF-8 isELIgnored=false %

   On Feb 3, 7:44 pm, Tony Yang tonyyan...@gmail.com wrote:
Dear Sir,
Would you help me the problem below.
Environment : Java and JSP
Action :retrievefilename fromfilewith Complicated Chinese
characters.
Samplefile: A1-中文.jpg
Response :
1. OK for local Eclipse developing platform, thenameof 中文  can be
retrieved.
2. After deploying in GAE cloud, system sound having problem and skip
thisfileand no response.

Written code in JSPfile:
--
path_string = objFiles[i].toString();
index1 = path_string.lastIndexOf('-')+1;
index2 = path_string.indexOf('.');
file_name = path_string.substring(index1, index2)
%= file_name%
-
---thanks.

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

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



Re: [appengine-java] Re: Cannot retrieve filename with Complicated Chinese charaters in GAE

2012-02-06 Thread Tony Yang
Dear Sir,
Thanks a lot but the problem is still there.
Attached more description below.
1. input some files into directory /war/images/ , they're are file names of
img01.jpg, img02.jpg ...中文img.jpg
2. Assign file directory in JSP file by code below.
File myFile = new File(images/);
String[] strFiles = myFile.list();
3. Print file name in the assigned directory by JSP code below
 for(int i=0 ; i  strFiles.length ; i++){
file_name = strFiles[i].toString();
out.println(file_name);
 }
4. The file name with traditional Chinese characters(中文) cannot be printed
out but others are ok for printing.
5. The mentioned problem only happened after deploying in GAE cloud but
didn't happen in local Eclipse development environment.

Please help and thanks again.


On Mon, Feb 6, 2012 at 5:05 PM, Nichole nichole.k...@gmail.com wrote:

 With GFS you should be able to use any character in the name of a file
 or directory except the null character,
 so you just need to form your string using the right encoding.

 String fileName = new String(str, UTF-8);  or use Big5 for encoding?

 And then make sure the jsp prints the character correctly by including
 the encoding in one of several
 ways.  Here's one way:
 %@ page language=java contentType=text/html; UTF-8
 pageEncoding=UTF-8 isELIgnored=false %


 On Feb 3, 7:44 pm, Tony Yang tonyyan...@gmail.com wrote:
  Dear Sir,
  Would you help me the problem below.
  Environment : Java and JSP
  Action : retrieve filename from file with Complicated Chinese
  characters.
  Sample file : A1-中文.jpg
  Response :
  1. OK for local Eclipse developing platform, the name of 中文  can be
  retrieved.
  2. After deploying in GAE cloud, system sound having problem and skip
  this file and no response.
 
  Written code in JSP file :
  --
  path_string = objFiles[i].toString();
  index1 = path_string.lastIndexOf('-')+1;
  index2 = path_string.indexOf('.');
  file_name = path_string.substring(index1, index2)
  %= file_name%
  -
  ---thanks.

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



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



[appengine-java] Cannot retrieve filename with Complicated Chinese charaters in GAE

2012-02-04 Thread Tony Yang
Dear Sir,
Would you help me the problem below.
Environment : Java and JSP
Action : retrieve filename from file with Complicated Chinese
characters.
Sample file : A1-中文.jpg
Response :
1. OK for local Eclipse developing platform, the name of 中文  can be
retrieved.
2. After deploying in GAE cloud, system sound having problem and skip
this file and no response.

Written code in JSP file :
--
path_string = objFiles[i].toString();
index1 = path_string.lastIndexOf('-')+1;
index2 = path_string.indexOf('.');
file_name = path_string.substring(index1, index2)
%= file_name%
-
---thanks.

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



[google-appengine] The price of Scalability

2011-07-04 Thread Tony
I just read this post http://www-cs-students.stanford.edu/~silver/gae.html 

The author seems unhappy with App Engine's offerings and have switched to 
EC2, saying when the app scales big, the cost is very high (he used the old 
Master/Slave datastore with high latency counted against CPU time).

I myself like app engine a lot because from what I heard it offers good 
scalability without complex setup and maintenance. But I don't have much 
experience with it to say if the claims in the above post are true. 
Especially now there are changes in pricing, I'm afraid the costs may be 
driven a lot higher. 

Can anyone who is having a popular app on app engine give me your thoughts 
on the post? Do you see the new pricing scheme make scaling app a lot more 
expensive?



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/QK2er_qnctwJ.
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] Cannot show image files (static)

2011-06-10 Thread Tony Huang
Hi, I got a problem on showing gif files on GAE. The app.yaml about
the image is listed as follows :

- url: /appengine-noborder-120x30.gif
  static_files: appengine-noborder-120x30.gif
  upload: appengine-noborder-120x30.gif
  mime_type: image/gif

And the program is like this :

# -*- coding: utf-8 -*-
print Content-Type: text/html; charset=utf-8
This site is powered by GAE. br
內部圖檔 : img src='/appengine-noborder-120x30.gif'/br
外部圖檔 : img src=http://code.google.com/appengine/images/appengine-
silver-120x30.gif/br

The GAE reports an error message :

Error: Server Error
The server encountered an error and could not complete your request.
If the problem persists, please report your problem and mention this
error message and the query that caused it.

Can anyone help me with this?

My test site is on : http://yhhuang1966.appspot.com/gae_test.htm
The static image files test is item 2.

-- 
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] Sorting by key

2011-05-11 Thread Tony
Hello,

I can't get sorting by key to work at the app engine control panel.

Each time i get warnings about GQL syntax.

Can anyone give me a working example, please?

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 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Text files bulk upload : any advice ?

2011-04-14 Thread Tony O Dowd
Hi there, this might be helpful. I've recently developed a file
uploaded for an crowd source application I'm involved in and have used
a DiskFileItemFactory. Once you create a factory object you can set
the size of the files that are to be uploaded. Bt default it's 10K but
you cN manually set this  for smaller sizes. here is some code
snippets that may be helpful :-


DiskFileItemFactory factory = new DiskFileItemFactory();  // create
the factory for file uploading
factory.setSizeThreshold(Memory); // this sets the threshold for files
to be held in memory or stored on disk
factory.setRepository(server folder); // defines the location on your
server where the files are to be stored

You  should use this in conjunction with a ServletFileUpload object so
you can bulk load multiple files to your server.

Hope this is helpful,

T.


On Apr 13, 11:53 am, davidgm david.guyonmar...@gmail.com wrote:
 Hi there,

 I've read
 * how to upload one text file - that's ok.
 * how to bulk upload data (csv)  - that's ok also.

 But this doesn't help with for this problem:

 = I need to upload a few dozen of small text files (a few kbytes
 each).

 I need to refresh them sometimes. They will be stored in datastore
 with a few metadata (filename and a release no).

 I've been thinking to merge them into one big file to split then later
 in GAE. But I would rather not do it this way, unless you have a nice
 technique to handle that. They all have special characters of all
 kinds and unicode...

 Do you have any suggestion ?
 Thank you

-- 
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: Just a little help

2011-04-11 Thread Tony O Dowd

Are you using Python or JAVA to build your servlets?

If You're using Java you need to define your servlet in your web.XML
file. You simply define the servlet name, the class it points to and
then the mapping of the servlet name to it's URL. If you checkout the
default web.XML file that is created when you build the default GWT
app in eclipse you'll see a good example of this.

On Apr 11, 7:26 am, Divyahans divyaha...@gmail.com wrote:
 Hi, I'm just starting off with App Engine and was looking for a little
 help.

 I've made Java Servlets on App Engine with the URLs like 
 -http://www.test.appspot.com/test

 But, how would I make a Java Servlet with the URL 
 -http://www.test.appspot.com/test/page2

 Could someone give me some advice?

-- 
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] Redirecting to a web page from a servlet

2011-04-11 Thread Tony O Dowd
Im calling a httpservlet from a GXT FormPanel using the usual
FormPanel.submit() method. This calls the doPost( request, response)
method of the httpservlet. Im using Submit as I'm uploading data to
the sever from a client using a FileUploadField in the FormPanel.

My problem is that by using FormPanel.Submit(), the browser opens a
new tab and  jumps to the HTML page of the httpservlet, thus changing
the focus from my GXT main application running in the browser.

anyone know a neat solution to prevent this and maintain the focus in
the main GXT application tab?

Thanks in advance.

-- 
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 Copy to Another App freaking out - 20 callback requests per second

2011-04-04 Thread Tony Blank
Howdy,

I fired off a copy job to back my data up 3 days ago. I notice that my
app activity has shot through the roof since then. It seems as though
one of the mapreduce copy jobs is looping... It's doing 20 or so
callback requests per second.

I have the mapreduce job ID - any way for me to manually kill it? Been
searching around and I haven't found a way to do that. Anyone have any
ideas?

Awesome, 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 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Using eclipse to build google gadgets...

2011-03-25 Thread Tony O Dowd
You've made an Irish man very happy to read this.stellar stuff!

On Mar 23, 8:24 pm, yuvi yuvalheft...@gmail.com wrote:
 Hi,

 I have been doing that for the last year and about to release a new
 open-source for that Gadglet 

 The CLIENT side is done with GWT library from Google see

 http://code.google.com/p/gwt-google-apis/wiki/GadgetsGettingStarted

 http://gwt-google-apis.googlecode.com/svn/javadoc/gadgets/1.2/index.html

 The SERVER side is implemented on Google App Engine ... in between a
 complete JSON data protocol.

 Feel free to ask more questions directly, and if you are interested
 you can have Gadglet alpha version in about 3 weeks.

 On Mar 23, 6:20 pm, Tony O Dowd tonyat...@gmail.com wrote: Anyone got a 
 good reference to using eclipse to develop google
  gadgets. I traced an article that offered a solution that requires
  lots of additional changes to linkers and other system libraries.
  Surely, there is an easier way. Anyone got a better path to follow?

-- 
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] Using eclipse to build google gadgets...

2011-03-23 Thread Tony O Dowd
Anyone got a good reference to using eclipse to develop google
gadgets. I traced an article that offered a solution that requires
lots of additional changes to linkers and other system libraries.
Surely, there is an easier way. Anyone got a better path to follow?

-- 
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] Can't create a new app using the Google App Engine...

2011-03-22 Thread Tony O Dowd
I've created my first App on the Google App Engine and everything went
well, however, now when I try to create a new application it asks me
to Verify my Account using SMS. As I've already done this previously,
it will not allow me to specify my phone number again. I've tried
using other phone numbers but it just won't let me past this
verification screen

Anybody experience a similar problem and have a solution?

Thanks in advance,

-- 
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.



Re: [appengine-java] Re: Help With Data Modeling (And Performance Questions)

2011-02-12 Thread Tony Chuinard
Thanks Will.  Makes sense.

On Sat, Feb 12, 2011 at 9:46 AM, WillSpecht willspe...@gmail.com wrote:

 I think you should ask yourself what data you need from the user.  I
 know this might not seem like the best way(in a RDBM), but you might
 want to store the information from the user, in the clip.  Especially
 if it is information that doesn't change very often like user name.
 That way you have the information each time you load the clip and
 don't even have to run those expensive queries.  The added work is
 that when a user changes their user name, you need to update a bunch
 of records, but you can do that in a task queue and it probably
 doesn't happen nearly as often as looking at a list of clips does .

 On Feb 11, 1:48 pm, Tony Chuinard tony.chuin...@gmail.com wrote:
  My project consists of thousands of audio clips, each submitted by a user
  (kind of like YouTube).
 
  Currently, the Clip entity is as follows
 
  // 
private long userId;
 
  So userId is the id of the person who made that clip.  Since I want to
 load
  the User object when I load a record, I take my list of recordings (never
  above 20) and do something like this:
 
  SELECT FROM User s WHERE s.id = userIdOfFirst OR s.id = userIdOfSecond
  OR.
 
  This works, and I create a MapLong, User which now allows me to lookup
  users by ID in my app when displaying data to the user, but is this the
 most
  efficient way of doing it?  I was looking at storing a private Key user,
  because I know I can't do private User user, but I don't know if
 replacing
  it with Keys would be a lot more efficient since that long is just a key.
 
  So does that big OR query have any performance implications?  Would I be
  better off doing something like:
  ListUser relevantUsers = new LinkedListUser();
  for (Clip clip : allMyClips) {
relevantUsers.add(em.load(clip.getUserId()));
 
  }
 
  Using the em.load should be really quick because right now the long IS
 the
  key.
 
  Can someone just fill in these gaps for me on my confusion?

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



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



[appengine-java] Help With Data Modeling (And Performance Questions)

2011-02-11 Thread Tony Chuinard
My project consists of thousands of audio clips, each submitted by a user 
(kind of like YouTube).

Currently, the Clip entity is as follows

//  
  private long userId; 

So userId is the id of the person who made that clip.  Since I want to load 
the User object when I load a record, I take my list of recordings (never 
above 20) and do something like this:

SELECT FROM User s WHERE s.id = userIdOfFirst OR s.id = userIdOfSecond 
OR.

This works, and I create a MapLong, User which now allows me to lookup 
users by ID in my app when displaying data to the user, but is this the most 
efficient way of doing it?  I was looking at storing a private Key user, 
because I know I can't do private User user, but I don't know if replacing 
it with Keys would be a lot more efficient since that long is just a key.

So does that big OR query have any performance implications?  Would I be 
better off doing something like:
ListUser relevantUsers = new LinkedListUser();
for (Clip clip : allMyClips) {
  relevantUsers.add(em.load(clip.getUserId()));
}

Using the em.load should be really quick because right now the long IS the 
key.

Can someone just fill in these gaps for me on my confusion?


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



[google-appengine] Re: google app engine stopped opening for me! Help!!

2010-12-02 Thread Tony
I found the answer to this myself last night: I just deleted the
google_appengine_launcher.ini file that was giving me the error.


Hope this helps someone!


-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-appeng...@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 app engine stopped opening for me! Help!!

2010-12-01 Thread Tony
When I try to open google app engine, it gives me an errors Occurred
dialog and tells me to check the log. Here are the log contents:



Traceback (most recent call last):
File GoogleAppEngineLauncher.py, line 42, in module
File wx\_core.pyc, line 7913, in __init__
File wx\_core.pyc, line 7487, in _BootstrapApp
File launcher\app.pyc, line 53, in OnInit
File launcher\app.pyc, line 98, in _CreateModels
File launcher\preferences.pyc, line 68, in __init__
File launcher\preferences.pyc, line 72, in Load
File ConfigParser.pyc, line 267, in read
File ConfigParser.pyc, line 462, in _read
ConfigParser.MissingSectionHeaderError: File contains no section
headers.
file: C:\Documents and
Settings\daxc83/Google\google_appengine_launcher.ini, line: 1
'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'


Please help!


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-appeng...@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] 500 Server Error on https://appengine.google.com

2010-11-14 Thread Tony Chuinard
I've been getting 500 errors and also am unable to use the SDK to do an
app update (the appcfg.sh file is getting 500 errors as well). Is
anyone else experiencing this?

-- 
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-appeng...@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: 500 Server Error on https://appengine.google.com

2010-11-14 Thread Tony Chuinard
Looks fixed now.

-- 
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-appeng...@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.



[appengine-java] The title of email displays wrongly in localization

2010-08-26 Thread Tony
Hello,

I have a problem to dispay the title of email if it includes Chinese.
I tried:
[1]
...
String title = 测试标题;
message.setSubject(title);
...
And
[2]
...
String title = 测试标题;
title = MimeUtility.encodeText(title);
message.setSubject(title);
...

Both titles are displayed as ?. If the program works in
Tomcat (without GAE/GWT), the 2nd is ok.

Please let me know, if you have any idea to handle the title
localization issue?

Thanks in advance,
Tony

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



[google-appengine] Re: Total Stored Data problems...

2010-08-02 Thread Tony Weston

Good point! Bug report submitted now
On Aug 2, 7:08 am, Jaroslav Záruba jaroslav.zar...@gmail.com wrote:
 Are you sure you filled in the summary? It gets enabled afterwards by JS. :)

 On Mon, Aug 2, 2010 at 7:47 AM, Tony Weston 
 tony.west...@googlemail.comwrote:



  Cant raise an issue from this page:
 http://code.google.com/p/googleappengine/issues/entry

  The 'Submit Issue' button is always grayed out :-(

  On Aug 1, 8:12 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote:
   Have you tried to se VAADIM's logging level to 'fine'? I mean to be sure
  you
   know what/when it does?

   On Sun, Aug 1, 2010 at 9:00 PM, Tony Weston tony.west...@googlemail.com
  wrote:

its just 'cleared', and reverted back to total stored data of
0%.

*sigh*

at least my apps working again now, for the time been!

--
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.comgoogle-appengine%2Bunsubscrib
 e...@googlegroups.comgoogle-appengine%2Bunsubscrib
  e...@googlegroups.com
.
For more options, visit this group at
   http://groups.google.com/group/google-appengine?hl=en.

  --
  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-appeng...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2Bunsubscrib 
  e...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.

-- 
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-appeng...@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: Total Stored Data problems...

2010-08-01 Thread Tony Weston
just so you are awaretotal stored data is at 95% now. :-(

-- 
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-appeng...@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: Total Stored Data problems...

2010-08-01 Thread Tony Weston

I haven't files an issue report.yet! - I assumed its probably
something i'm doing wrong, and hoped to get an answer here before
doing so.

I have enabled sessions...the framework I am using, VAADIN, requires
this.  But, arn't sessions stored in ah_session listed in the
datastore statistics?



Thanks,
Tony


On Aug 1, 6:09 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote:
 Just out of curiosity, do you have sessions enabled?
 BTW have you filled an issue report?

 On Sun, Aug 1, 2010 at 6:52 PM, Tony Weston 
 tony.west...@googlemail.comwrote:



  just so you are awaretotal stored data is at 95% now. :-(

  --
  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-appeng...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2Bunsubscrib 
  e...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.

-- 
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-appeng...@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: Total Stored Data problems...

2010-08-01 Thread Tony Weston
Thanks for the reply...

VAADIN does maintain its sessions, and clears them down if requested
to. Examining the data contained within ah_session using the
'Datastore Viewer', it seams to do a good job...

but, this doesn't explain the massive amount (in comparison) of data
in the 'Total Stored Data' quota.


I will file a report...

Thanks,
Tony.

On Aug 1, 7:19 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote:
 On Sun, Aug 1, 2010 at 8:08 PM, Tony Weston 
 tony.west...@googlemail.comwrote:



  I haven't files an issue report.yet! - I assumed its probably
  something i'm doing wrong, and hoped to get an answer here before
  doing so.

 I'm not suggesting otherwise. But seeing that you don't get any
 answers/response here I think it would be next logical step. And even though
 I don't know VAADIN this looks like an inconsistency within the stats.
 BUT, keep in mind when reading the stats that there's some *delay* in the
 data. Maybe your framework cleans something somewhere meanwhile...?

  I have enabled sessions...the framework I am using, VAADIN, requires
  this.  But, arn't sessions stored in ah_session listed in the
  datastore statistics?

 Yeah, like I said, I'm only curious. The entities surely would be listed
 there. Also they wouldn't delete themselves magically I guess. (So you would
 still have 100% space used.)



  Thanks,
  Tony

   On Aug 1, 6:09 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote:
   Just out of curiosity, do you have sessions enabled?
   BTW have you filled an issue report?

   On Sun, Aug 1, 2010 at 6:52 PM, Tony Weston tony.west...@googlemail.com
  wrote:

just so you are awaretotal stored data is at 95% now. :-(

--
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.comgoogle-appengine%2Bunsubscrib
 e...@googlegroups.comgoogle-appengine%2Bunsubscrib
  e...@googlegroups.com
.
For more options, visit this group at
   http://groups.google.com/group/google-appengine?hl=en.

  --
  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-appeng...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2Bunsubscrib 
  e...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.

-- 
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-appeng...@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: Total Stored Data problems...

2010-08-01 Thread Tony Weston
its just 'cleared', and reverted back to total stored data of
0%.

*sigh*

at least my apps working again now, for the time been!

-- 
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-appeng...@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: Total Stored Data problems...

2010-08-01 Thread Tony Weston
Cant raise an issue from this page:
http://code.google.com/p/googleappengine/issues/entry

The 'Submit Issue' button is always grayed out :-(



On Aug 1, 8:12 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote:
 Have you tried to se VAADIM's logging level to 'fine'? I mean to be sure you
 know what/when it does?

 On Sun, Aug 1, 2010 at 9:00 PM, Tony Weston 
 tony.west...@googlemail.comwrote:



  its just 'cleared', and reverted back to total stored data of
  0%.

  *sigh*

  at least my apps working again now, for the time been!

  --
  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-appeng...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2Bunsubscrib 
  e...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.

-- 
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-appeng...@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.



[appengine-java] Re: Is possible a query inside an arrayList?

2010-07-25 Thread Tony Qiu
Of course you can do it.
there is a keyword member of in JP-QL. you can use the JP-QL below
to do what you want.

Query query = new Query(select o from user o where :tag member of
o.tags);
query.setParameter(tag,abc)


On 7月25日, 下午8时28分, salvatore salvatore.bela...@gmail.com wrote:
 Hi i've  problem
 How a can query a data inside an ArrayList?
 I use low level Datastore API
 the data is structured like this
 entity (kind 'User')
 -String username
 -String pass
 -ArrayListString tags
 I want to query all the user with a specific role
 my code
          //...
         DatastoreService ds=
 DatastoreServiceFactory.getDatastoreService();
         Query query = new Query(User);
         query.addFilter(tag, Query.FilterOperator.EQUAL,
 admin);   // -HERE
         PreparedQuery pq = ds.prepare(query);
         IterableEntity it = pq.asIterable();
          //...

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



[appengine-java] One-to-many relationship

2010-06-15 Thread Tony
I've followed the GAE docs on setting up one-to-many relationship but
I'm still having trouble in retrieving the collection data back. I
have no problem getting the other non-collection properties back. Here
are my classes:

@PersistenceCapable
public class User{

@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key key;

@Persistent
private String uniqueId;

@Persistent
private String email;

@Persistent
private ListAddress addresses = new ArrayListAddress() ;
...
}

@PersistenceCapable
public class Phone{

@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key key;

@Persistent
private String number;
...
}

public class UserDaoImpl implements UserDao {


public void insertUser(User user) {
if(user.getKey() == null) {
com.google.appengine.api.datastore.Key key =
KeyFactory.createKey(User.class.getSimpleName(), user.getEmail());
user.setKey(key);
}
PersistenceManager pm =
PersistenceManagerWrapper.getPersistenceManager();
notNull(user);
try {
pm.makePersistent(user);
} finally {
pm.close();
}
}

@SuppressWarnings(unchecked)
public User getUser(String uniqueId) {
PersistenceManager pm =
PersistenceManagerWrapper.getPersistenceManager();
Query query = pm.newQuery(User.class);
query.setFilter(uniqueId == uniqueIdParam);
query.declareParameters(String uniqueIdParam);
User user = null;
try {
ListUser users = (ListUser)(query.execute(uniqueId));
//TODO abstract this
if(users.size()  0)
user = users.get(0);
} finally {
pm.close();
}
return user;
}
}

public class UserDaoImplTest {
 @Test
public void getUserTest() {
User user = createTestUser();
assertNotNull(The user object should not be null, user);
userDao.insertUser(user);

User returnedUser = userDao.getUser(TEST_USER_ID);
assertNotNull(The returnedUser object should not be null,
returnedUser);
Assert.assertPropertyEqualsExcludeProperties(User Object,
user, returnedUser, );

}
}

When I run the test, all the properties for User is populated but the
list of Phone if I get is empty.

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



[google-appengine] Problems with email from App Engine.

2010-06-01 Thread Tony Of The Woods
I set up a simple app that emails comments submitted on the site to
myself.

Firstly it's not completely clear from the docs what constitutes a
legal sender for an email.  Is it all of the following? :
(a) a registered developer of the application
(b) any legal receive address for the app, eg:
exam...@myappid.appspotmail.com
(c) the gmail address of any user logged in through the google login
service

No matter what I put in there I cannot successfully send any mail to
myself.  My mails do show up in the items sent count on the quota page
but they never get delivered.  I notice elsewhere that that have been
problems delivering to hotmail.  My email address is on one of the
mail.com domains.  Is it possible there is a glitch getting to
mail.com - or perhaps a blacklisting misunderstanding?

If I can send from exam...@myappid.appspotmail.com then I guess I
could put in a receiver process so I could see the bounced headers.
Is that the most sensible way of going about things?  Or maybe just
associate a gmail account with the app?


-- 
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-appeng...@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://peek-a-boo.appspot.com/

2010-04-29 Thread Tony Jackson
I notice this url is appearing before a number of urls in google and
google is reading the website thru this proxy. Is there a way google
can recognize this proxy and not read urls directly from it because it
is also giving the error This Google App Engine application is
temporarily over its serving quota

-- 
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-appeng...@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://peek-a-boo.appspot.com/

2010-04-29 Thread Tony Jackson
I notice a lot of google app websites are proxy servers, and what I
think people can do is basically submit a url with the proxy server in
front of it to google and google will index it but it will also allow
you take down a competitor's website with this method, perhaps this is
an issue that the google apps department might look into? because once
google indexes the website with the google app proxy server in front
of it, the website will not longer be accessible to the google
visitors because it will produce a 503 error.

On Apr 29, 10:41 am, Barry Hunter barrybhun...@googlemail.com wrote:
 If its your application its proxying, you could block it.

 Requests from AppEngine go via UrlFetch API, which adds a user-agent
 identifying the app in question.

 AppEngine-Google; (+http://code.google.com/appengine;appid: x)

 (alternatively if dont want to block it totally, add meta robots
 nofollow,noindex to pages you serve via the proxy)

 On 29 April 2010 18:36, Tony Jackson upperh...@gmail.com wrote:

  I notice this url is appearing before a number of urls in google and
  google is reading the website thru this proxy. Is there a way google
  can recognize this proxy and not read urls directly from it because it
  is also giving the error This Google App Engine application is
  temporarily over its serving quota

  --
  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-appeng...@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-appengine+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/google-appengine?hl=en.

 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://groups.google.com/group/google-appengine?hl=en.

-- 
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-appeng...@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] Using ClientLogin: HOSTED vs GOOGLE

2010-03-06 Thread tony
There are lots of postings about how to use ClientLogin to
programmatically authenticate with a Google App Engine app. For the
account type, they all recommend using HOSTED_OR_GOOGLE. This is
wrong, and I will explain why.

There are two kinds of accounts in the Google world. The ones you
create for GMail, etc are Google accounts. The ones you create for
Apps for Domains are Hosted accounts. You can use a Hosted Account
email to make a Google Account, thus creating an email address that is
associated with both kinds of accounts.

Your Google App Engine app can be configured to work with (1) Google
Accounts or (2) Hosted Accounts for a particular domain.

Assume that we are developing an app for Google Accounts. A user
enters in an email address that is associated with a Google Account
and a Hosted Account. Google will use their Google Account for the
login. This all works fine.

Now, if we use ClientLogin with this same email address and use
HOSTED_OR_GOOGLE for the account type, login will be successful, but
it will use the Hosted Account, since the Hosted Account takes
precedence. As I mentioned above, you cannot use a Hosted Account for
an app that expects a Google Account. So the authentication will not
work.

So, when using ClientLogin to authenticate with a Google App Engine
app, you need to use GOOGLE for the account type if the app is for
Google Accounts, or HOSTED for the account type if the app is for a
domain.

..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-appeng...@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 to get User when running Task Queue

2010-02-22 Thread Tony
Hi Guys,

I am trying to use Task Queues to do sth. But unfortunately I can use
UserService to get the current user in the task queue invoked Servlet.
What shall I do then?

Regards
Tony Luo

-- 
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-appeng...@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.



[appengine-java] Re: Eclipse hangs at startup, Ubuntu

2010-02-12 Thread Tony
Hello,

I do have the same Problem (Ubuntu 9.10, Eclipse Galileo, Google
Plugin) my, web-inf/lib folder is under source control.

I found out that it helps, when i delete the contents of the web-inf/
lib folder prior to starting eclipse. Eclipse then will start without
problem and i can get the deleted libraries back from the svn
repository...

tony

On Jan 22, 4:23 pm, Rajeev Dayal rda...@google.com wrote:
 Hi,


 What is the name of your project, and the name of your App Engine SDK? I'm
 trying to decipher (in our code) where the message Updating
 myproject/...ne - 1.3.0 comes from.


 When Eclipse starts up, the SDKs will automatically copy over the necessary
 jars to your project's war/WEB-INF/lib folder. I think that's what is
 happening here. This should not cause a freeze-up in the IDE though.


 Is your war/WEB-INF/lib folder version-controlled, and are you using some
 sort of version-control plugin in Eclipse? If so, does it help if you remove
 the war/WEB-INF/lib folder from version control?


 Rajeev




 On Thu, Jan 14, 2010 at 7:33 AM, pgoetz pgo...@pgoetz.de wrote:
  On Jan 14, 11:41 am, Blessed Geek blessedg...@gmail.com wrote:
   Is any of your resources sitting in a foreign file system like smb,
   ntfs or nfs?


  No, all of my resources are local. They are attached to a SVN
  repository, but the subversion plugin does not communicate with the
  repository at that time.


   And do you have many projects mounted like I do? I had the same
   problem and I had to kill/restart the connector process to the foreign
   file system, whenever this happens. I would notice thrashing going own
   in the connection and eclipse got stuck.


  Again no. It is the only project in this workspace (just a test
  project).


   [...]
   Perhaps, you could turn autobuild off everytime you exit eclipse so
   that it when eclipse is started, it would not autobuild - and turn it
   back on when eclipse startup has quieted down.


  That was a hint in the right direction, I think. I have disabled the
  google plugin, closed the project, reactivated the plugin and after a
  startup and some time for eclipse to organize itself, I opened the
  project. That did the trick.
  In my opinion this is not a very elegant solution, but it works for me
  so far.


  Thank you very much for your help!


  Greetings,


  Peter


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







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



[google-appengine] Re: Error: Server Error from specific domain bound to the app

2010-02-02 Thread tony
I am seeing the same issue.

..tony..

On Feb 2, 6:13 am, burg burga...@gmail.com wrote:
 My app -www.9folds.com- is getting Server Error message:
 Error: Server Error

 The server encountered an error and could not complete your request.
 If the problem persists, please report your problem and mention this
 error message and the query that caused it.

 However, when trying to load from the appspot domain, all looks good 
 -http://13.latest.nine9folds.appspot.com/

 This is a new issue and appeared only today. No code changes / domain
 changes / any changes were made during this time.

 Help?

 Thanks,
 Alon

-- 
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-appeng...@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: Sitewide 500 errors

2010-02-02 Thread tony
I am still seeing this. Must be something systemic. BTW, I am
sometimes seeing the error even when going directly to appspot.com.

..tony..

On Feb 2, 5:32 am, Matthew Trinneer matt.trinn...@gmail.com wrote:
 I'm seeing the same thing this morning too.  Nothing in my logs, but
 site is inaccessible using Safari 4.0.4 (www.bijout.com)

 Error Message

 Error: Server Error

 The server encountered an error and could not complete your request.
 If the problem persists, please report your problem and mention this
 error message and the query that caused it.

 /Error Message

 On Feb 2, 8:00 am, Jesse Grosjean je...@hogbaysoftware.com wrote:



  I'm seeing the following error on all of my app engine sites
  including:

 https://appengine.google.com/http://www.hogbaysoftware.com/http://www...
  ...

  -
  Error: Server Error

  The server encountered an error and could not complete your request.
  If the problem persists, please report your problem and mention this
  error message and the query that caused it.

-- 
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-appeng...@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: Sitewide 500 errors

2010-02-02 Thread tony
Now the status page itself is giving 500 errors!

http://code.google.com/status/appengine

..tony..

On Feb 2, 9:52 am, John Gardner hux...@gmail.com wrote:
 This is also affecting deployments.

 I was getting a 500 error while deploying a new release.

 Running appcfg.py with --no_cookies seems to work around the
 problem, but of course you have to log in every time.

 On Feb 2, 11:37 am, Jason (Google) apija...@google.com wrote:



  Hi Everyone. We are currently investigating an issue that is affecting many
  App Engine applications using the Users API, causing the behavior and errors
  reported in this thread and others. At this point, it looks to have been
  caused by a recent back-end change in the Google Accounts service, and
  clearing your cookies fixes the problem, at least temporarily. I will update
  this thread when I have any new information, and I appreciate your patience
  as we work to resolve this as soon as possible.

  - Jason

  On Tue, Feb 2, 2010 at 9:04 AM, Xlorep DarkHelm ch...@darkhelm.org wrote:
   Getting this as well. Curiously, one of my apps looks like it just
   might work (and then doesn't)http://showsort.darkhelm.orgbutthe
   actual appengine site is totally unavailable (500 error).

   On Feb 2, 5:10 am, Jesse Grosjean je...@hogbaysoftware.com wrote:
Not sure what is going on exactly. Maybe a local problem... though the
rest of the web works. Anyway:

   https://appengine.google.com/

Now works for me. As do my appspot related URLS:

   http://hogbaysoftware.appspot.com/http://simpletextws.appspot.com/

But I'm still seeing a sitewide 500 error when I try to access my
sites through their normal URLS:

   http://www.simpletext.ws/http://www.hogbaysoftware.com/

Same error message:

-
Error: Server Error

The server encountered an error and could not complete your request.
If the problem persists, please report your problem and mention this
error message and the query that caused it.

   --
   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-appeng...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2Bunsubscrib
e...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-appengine?hl=en.

-- 
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-appeng...@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: App Engine Terms Conditions Atrocious?

2009-08-06 Thread Tony

I think the key here is: ...for the sole purpose of enabling Google
to provide
you with the Service in accordance with its privacy policy.

In other words, Google may reproduce/distribute your content
throughout its network as necessary to provide you with the App Engine
Service.  If they did not have this right, there would be no way for
your users to access your data, as it is all stored on servers that
you do not own.

On Aug 5, 3:53 am, webpaage webpa...@gmail.com wrote:
 I am quite positive about using the App Engine to roll out our new
 project except that I wonder someone from Google can explain what the
 following clauses in the TC actually mean? :

 Google reserves the right (but shall have no obligation) to pre-
 screen, review, flag, filter, modify, refuse or remove any or all
 Content from the Service...

 and

 By submitting, posting or displaying the Content on or through the
 Service you give Google a worldwide, royalty-free, and non-exclusive
 license to reproduce, adapt, modify, translate, publish, publicly
 perform, publicly display and distribute such Content for the sole
 purpose of enabling Google to provide you with the Service in
 accordance with its privacy policy. Furthermore, by creating an
 Application through use of the Service, you give Google a worldwide,
 royalty-free, and non-exclusive license to reproduce, adapt, modify,
 translate, publish, publicly perform, publicly display and distribute
 such Application for the sole purpose of enabling Google to provide
 you with the Service in accordance with its privacy policy.

 and

 Google is constantly innovating in order to provide the best possible
 experience for its users. You acknowledge and agree that the form and
 nature of the Service which Google provides may change from time to
 time without prior notice to you, subject to the terms in Sections 4.3
 and 10.2. Changes to the form and nature of the Service will be
 effective with respect to all versions of the Service (including the
 Deprecated Version of the Service); examples of changes to the form
 and nature of the Service include without limitation changes to fee
 and payment policies, security patches, added functionality, and other
 enhancements.

 If this means that our Intellectual property rights are totally
 surrendered while using GAE, then I think its not giving developers
 any sense of assurance, much less receiving the best possible
 experience.

 Please kindly advise.

 -Samuel Koh
--~--~-~--~~~---~--~~
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: My app is getting filtered by sorry.google.com!

2009-08-06 Thread Tony

It works for me?

On Aug 6, 10:04 am, Joshua Smith jesm...@kaon.com wrote:
 We're getting ready to launch our new web site, using google app
 engine as the deployment platform.

 We've been testing it at appspot.com (app id is kaoncom)

 To continue testing, I set up a DNS CNAME for testing.kaon.com to
 point to google, and it worked for about a day.

 Now if we go tohttp://testing.kaon.comwe're getting:

 We're sorry...

 ... but your query looks similar to automated requests from a computer virus 
 or spyware application. To protect our users, we can't process your request 
 right now.

 We'll restore your access as quickly as possible, so try again soon. In the 
 meantime, if you suspect that your computer or network has been infected, 
 you might want to run a virus checker or spyware remover to make sure that 
 your systems are free of viruses and other spurious software.

 If you're continually receiving this error, you may be able to resolve the 
 problem by deleting your Google cookie and revisiting Google. For 
 browser-specific instructions, please consult your browser's online support 
 center.

 If your entire network is affected, more information is available in the 
 Google Web Search Help Center.

 We apologize for the inconvenience, and hope we'll see you again on Google.

 Is this caused by the name testing in the domain?  If so, I can
 easily change that, since it will soon be www.

 Please help ASAP, as we were planning on rolling out tomorrow!

 Thanks.
 -Joshua
--~--~-~--~~~---~--~~
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 support

2009-08-06 Thread Tony

Why not charge a monthly fee for apps to get a static IP (like Amazon
does)?  Scarcity of supply seems like a bit of a cop-out to me - it's
not apparent that a majority of app engine apps require this support.
The customers you're losing because of this, however, are customers
that plan to process e-commerce transactions online without looking
like a phishing scam.  Customers that make money on your service are
more likely to spend money on your service.

On Aug 5, 3:55 am, Nick Johnson (Google) nick.john...@google.com
wrote:
 Hi J Singh,

 Due to the way SSL works, this is not currently possible without
 allocating an IP address for each App Engine domain that would use SSL
 - which itself isn't very practical due to IPv4 address scarcity.

 The latest version of SSL supports using a single IP address for
 multiple sites with different certificates, but browser support for
 this version is not yet nearly widespread enough to make it a
 practical alternative.

 -Nick Johnson



 On Wed, Aug 5, 2009 at 5:39 AM, J Singhj.si...@earlystageit.com wrote:
  For an appengine-based site,https://abc.appspot.comis currently supported
  buthttps://www.abc.comcan not be supported. I know there is a technical
  hurdle to cross but didn't know if any techniques had been proposed for
  being able to usewww.abc.comwith SSL connections?

  Thanks.

  J Singh

  Managing Director
  Early Stage IT
  (978) 760-2055
 http://www.earlystageit.com

 --
 Nick Johnson, Developer Programs Engineer, 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 
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 support

2009-08-06 Thread Tony

Fair enough.  I'm fine with we're working on solutions, as long as
it's not sorry, wait for the world to upgrade to FF3/IE8.

On Aug 6, 10:21 am, Nick Johnson (Google) nick.john...@google.com
wrote:
 Hi Tony,

 We're looking into solutions. It's not as simple as it may first
 appear - in the case of a service like Amazon EC2, your server resides
 at only a single physical location, and so does the IP address you
 rent. In contrast, App Engine apps are served from IPs at Google
 datacenters around the globe.

 -Nick Johnson



 On Thu, Aug 6, 2009 at 3:18 PM, Tonyfatd...@gmail.com wrote:

  Why not charge a monthly fee for apps to get a static IP (like Amazon
  does)?  Scarcity of supply seems like a bit of a cop-out to me - it's
  not apparent that a majority of app engine apps require this support.
  The customers you're losing because of this, however, are customers
  that plan to process e-commerce transactions online without looking
  like a phishing scam.  Customers that make money on your service are
  more likely to spend money on your service.

  On Aug 5, 3:55 am, Nick Johnson (Google) nick.john...@google.com
  wrote:
  Hi J Singh,

  Due to the way SSL works, this is not currently possible without
  allocating an IP address for each App Engine domain that would use SSL
  - which itself isn't very practical due to IPv4 address scarcity.

  The latest version of SSL supports using a single IP address for
  multiple sites with different certificates, but browser support for
  this version is not yet nearly widespread enough to make it a
  practical alternative.

  -Nick Johnson

  On Wed, Aug 5, 2009 at 5:39 AM, J Singhj.si...@earlystageit.com wrote:
   For an appengine-based site,https://abc.appspot.comiscurrently supported
   buthttps://www.abc.comcannot be supported. I know there is a technical
   hurdle to cross but didn't know if any techniques had been proposed for
   being able to usewww.abc.comwithSSL connections?

   Thanks.

   J Singh

   Managing Director
   Early Stage IT
   (978) 760-2055
  http://www.earlystageit.com

  --
  Nick Johnson, Developer Programs Engineer, App Engine

 --
 Nick Johnson, Developer Programs Engineer, 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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: App Engine Terms Conditions Atrocious?

2009-08-06 Thread Tony

I am not a lawyer, and I don't work for Google, so I'm not saying your
concerns are illegitimate, but that clause seems like legal
boilerplate to me - as serving your content could conceivably be
interpreted as publishing, translating, performing, displaying,
distributing, etc. by the morass of global intellectual property laws,
they're covering all their bases.

Again, I'm not a lawyer, but I interpret it as in order for us to
provide you this service, we require these rights and I expect that I
can terminate this agreement at any time by ceasing use of the
service.

However, you make a good point - what if an App Engine app becomes the
next Facebook/Myspace/Twitter?  Could Google use these terms
nefariously?  Probably, and so maybe some clarification would be
helpful, but I don't think there's much cause for alarm.

On Aug 6, 10:33 am, Tudor Constantin tudorconstan...@gmail.com
wrote:
 Tony, if that would be so, they would ask the right to
 EXECUTE/INTERPRET or something similar your code, not to  give Google
 a worldwide, royalty-free, and non-exclusive
 license to reproduce, adapt, modify, translate, PUBLISH, publicly
 perform, publicly DISPLAY and distribute such Content for the sole
 purpose of enabling Google to provide you with the Service in
 accordance with its privacy policy.

 'the sole purpose of enabling Google to provide you with the Service'
 could be interpreted like some sort of a deal: you want our service,
 you give us access and rights over your code

 What about the people who are paying for the service? they are not
 allowed to keep their software proprietary either?

 Would that clause be valid if, for example, you have a very successful
 site/application that could raise the interest of google to buy it and
 you don't want to sell at their price? This clause is so more
 interesting because, probably 95% of the people who develop
 applications for GAE think and hope those will need to be very
 scalable - so, very successful - and between learning all the things
 related to scalability in their native language they rather
 Python/Java and program under some restrictions.

 So, is it possible that we want our applications to be so successful
 to force google to bring that clause into discussion?



 On Thu, Aug 6, 2009 at 5:00 PM, Tonyfatd...@gmail.com wrote:

  I think the key here is: ...for the sole purpose of enabling Google
  to provide
  you with the Service in accordance with its privacy policy.

  In other words, Google may reproduce/distribute your content
  throughout its network as necessary to provide you with the App Engine
  Service.  If they did not have this right, there would be no way for
  your users to access your data, as it is all stored on servers that
  you do not own.

  On Aug 5, 3:53 am, webpaage webpa...@gmail.com wrote:
  I am quite positive about using the App Engine to roll out our new
  project except that I wonder someone from Google can explain what the
  following clauses in the TC actually mean? :

  Google reserves the right (but shall have no obligation) to pre-
  screen, review, flag, filter, modify, refuse or remove any or all
  Content from the Service...

  and

  By submitting, posting or displaying the Content on or through the
  Service you give Google a worldwide, royalty-free, and non-exclusive
  license to reproduce, adapt, modify, translate, publish, publicly
  perform, publicly display and distribute such Content for the sole
  purpose of enabling Google to provide you with the Service in
  accordance with its privacy policy. Furthermore, by creating an
  Application through use of the Service, you give Google a worldwide,
  royalty-free, and non-exclusive license to reproduce, adapt, modify,
  translate, publish, publicly perform, publicly display and distribute
  such Application for the sole purpose of enabling Google to provide
  you with the Service in accordance with its privacy policy.

  and

  Google is constantly innovating in order to provide the best possible
  experience for its users. You acknowledge and agree that the form and
  nature of the Service which Google provides may change from time to
  time without prior notice to you, subject to the terms in Sections 4.3
  and 10.2. Changes to the form and nature of the Service will be
  effective with respect to all versions of the Service (including the
  Deprecated Version of the Service); examples of changes to the form
  and nature of the Service include without limitation changes to fee
  and payment policies, security patches, added functionality, and other
  enhancements.

  If this means that our Intellectual property rights are totally
  surrendered while using GAE, then I think its not giving developers
  any sense of assurance, much less receiving the best possible
  experience.

  Please kindly advise.

  -Samuel Koh

 --
 Neither the footer nor anything else in this E-mail is intended to or
 constitutes an electronic signature and/or legally binding agreement

[google-appengine] Re: Is there a way to have /blog url in GAE display wordpress blog

2009-08-06 Thread Tony

I'm not an SEOer, but would it be sufficient to define a /blog handler
in app.yml, and have it point to a simple script that returns a 302
redirect to blog.domain.com?

On Aug 5, 8:33 am, J j.si...@earlystageit.com wrote:
 Could you elaborate a bit on for SEO reasons? Do you want the blog
 keywords to help elevate you site rankings?

 I serve my blog on the web site using a widget. Check 
 outhttp://www.earlystageit.com/blog. Something tells me it doesn't quite
 address your requirement.

 On Aug 4, 4:59 pm, Jai sharma...@gmail.com wrote:

  Hi Natalie,

  On the lines of solution offered by Adam, you can also write an xmlrpc
  client which can use the wordpress metaweblog 
  APIhttp://codex.wordpress.org/XML-RPC_Support. It is much more work but
  you can create a UI of your own.

  You can compose, edit and delete any blog using the API.

  There is a good articlehttp://brizzled.clapper.org/id/80forwriting
  xmlrpc client on app engine.

  Regards.

  On Aug 3, 10:32 am, Natalie Gordon natalie.gor...@gmail.com wrote:

   Hi,

   I have my app running fine in a subdomain my.url.com. I have a related
   blog built with wordpress on blog.url.com. For SEO reasons, I'm being
   asked if there is a way to serve our blog on my.url.com/blog.

   I can't think of a way to do this. Anyone have any ideas, creative or
   otherwise?

   Thanks!
   Natalie Gordonhttp://lenguajero.com
--~--~-~--~~~---~--~~
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 have /blog url in GAE display wordpress blog

2009-08-06 Thread Tony

If you're feeling adventurous, you could always run Wordpress on App
Engine :P (http://blog.caucho.com/?p=196)
Or port to an App Engine-compatible blog engine (http://
bloog.billkatz.com/)

On Aug 6, 11:00 am, Tony fatd...@gmail.com wrote:
 I'm not an SEOer, but would it be sufficient to define a /blog handler
 in app.yml, and have it point to a simple script that returns a 302
 redirect to blog.domain.com?

 On Aug 5, 8:33 am, J j.si...@earlystageit.com wrote:

  Could you elaborate a bit on for SEO reasons? Do you want the blog
  keywords to help elevate you site rankings?

  I serve my blog on the web site using a widget. Check 
  outhttp://www.earlystageit.com/blog. Something tells me it doesn't quite
  address your requirement.

  On Aug 4, 4:59 pm, Jai sharma...@gmail.com wrote:

   Hi Natalie,

   On the lines of solution offered by Adam, you can also write an xmlrpc
   client which can use the wordpress metaweblog 
   APIhttp://codex.wordpress.org/XML-RPC_Support. It is much more work but
   you can create a UI of your own.

   You can compose, edit and delete any blog using the API.

   There is a good articlehttp://brizzled.clapper.org/id/80forwriting
   xmlrpc client on app engine.

   Regards.

   On Aug 3, 10:32 am, Natalie Gordon natalie.gor...@gmail.com wrote:

Hi,

I have my app running fine in a subdomain my.url.com. I have a related
blog built with wordpress on blog.url.com. For SEO reasons, I'm being
asked if there is a way to serve our blog on my.url.com/blog.

I can't think of a way to do this. Anyone have any ideas, creative or
otherwise?

Thanks!
Natalie Gordonhttp://lenguajero.com
--~--~-~--~~~---~--~~
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: Webservice authentication (Python)

2009-07-15 Thread Tony

Since I happened to have this up, here's a bit of sample code to get
an authentication cookie for an appspot app...

from google.appengine.api import urlfetch
from urllib import urlencode
email = request.POST['username']
passwd = request.POST['password']
serv_root = http://myapp.appspot.com;
target = 'http://myapp.appspot.com/null'
app_name = myapp-1.0
auth_uri = 'https://www.google.com/accounts/ClientLogin'
authreq_data = urlencode({ Email:   email,
  Passwd:  passwd,
  service: ah,
  source:  app_name,
  accountType: HOSTED_OR_GOOGLE })
result = urlfetch.fetch(auth_uri, authreq_data, method=urlfetch.POST,
follow_redirects=False)
auth_dict = dict(x.split(=) for x in result.content.split(\n) if
x)
auth_token = auth_dict[Auth]
serv_args = {}
serv_args['continue'] = target
serv_args['auth'] = auth_token
serv_uri = %s/_ah/login?%s % (serv_root, urlencode(serv_args))
result2 = urlfetch.fetch(serv_uri, follow_redirects=False,
method=urlfetch.GET)
### here's the cookie which will authenticate future requests
cookie = result2.headers['set-cookie'].split(';')[0]
# cookie[0] = ACSID
# cookie[1] = HFSDJHSDFHSDJFHSDJFHSJFSDfsdjfhsjdfhsjdfh...
--~--~-~--~~~---~--~~
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: Eating one's own dog food

2009-07-15 Thread Tony

Though I realize this is not exactly what you're asking, the concept
of GAE is that it exposes some of the infrastructure that all Google
applications rely on (i.e. Datastore) for others to use.  So, in a
sense, Google's various applications were using App Engine before App
Engine existed.  As far as I know, every Google service runs on the
same homogeneous infrastructure, which is part of what makes it so
reliable (and why the only available languages are Python and Java,
languages used internally at Google).

But I don't work there, so maybe I'm completely off-base.

On Jul 15, 12:53 pm, richard emberson richard.ember...@gmail.com
wrote:
 Eating one's own dog 
 foodhttp://en.wikipedia.org/wiki/Eating_one's_own_dog_food
 or in this case:
 Using one's own cloud.

 Amazon' cloud is based upon the IT technology they use
 within Amazon.
 Salesforce.com's Force.com offering is what they used to
 build their CRM system.

 These cloud vendors Eat their own dog food.

 If a cloud vendor does not use their cloud offering for
 their other products and/or internal systems, one
 would have to assume that the cloud is viewed as
 a technology ghetto within their own corporation - good
 enough for others but not for ourselves.

 So, concerning the Google App Engine, are other groups
 within Google clamoring to port or build their offerings
 on top of the App Engine? If so, please be specific, what
 Google products and infrastructure and what are the schedules
 for their hosting on GAE?

 Is the GAE group supporting the Google Docs group as they
 move to use GAE? How about gmail, will the Google Gmail
 group be relying on GAE support? I have not seen emails
 from either of those internal Google groups on the GAE
 mailing list. Lastly, when will Google search be supported
 by the GAE group;

 Will those groups have to live under the same quota restrictions
 while they evaluate using GAE?  If not, why not? If they
 are unreasonable for an internal evaluation, what makes them
 reasonable for an external evaluation?

 Evaluating whether or not GAE should be used for a particular
 application is not FREE even if one gets a very small slice
 of GAE resources with which to do the evaluation.
 Tens or hundreds of hours go into determine if GAE has
 the right characteristics and quotas that limit how fast one
 can work makes it worse. (Yes one can $$ for higher quotas,
 but during the evaluation phase $$ is out of the question.)

 Richard Emberson

 --
 Quis custodiet ipsos custodes
--~--~-~--~~~---~--~~
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: Move sub-app to new appspot instance?

2009-07-15 Thread Tony

Ultimately the question the TOS is asking is: are multiple appspot
apps being used to circumvent quotas/limits?

It would seem to me that a facebook-clone app like you describe would
see considerable savings by splitting into multiple apps (because of
the free quota allotted to each app), which I imaging Google would
frown upon.  However, if your subapp has different requirements that
might justify it being moved to a new app id (for example, a different
group of developers who shouldn't have access to the main app's
dashboard, etc), you might get some leniency.

On Jul 15, 12:00 pm, echeek xaviereni...@gmail.com wrote:
 In my GAE development, I'm wondering if an offshoot sub-application of
 my main application merits being an appspot instance of its own. The
 new sub-application is related but doesn't share any data with the
 primary app and could be used by other parties. Would moving this sub-
 app to its own appspot instance violate the TOS?

 Previous discussion considered unconclusively if a Facebook-clone
 where various services (i.e. images, messaging, walls, etc.) are split
 to different appspot instances would be allowed. This is similar to my
 question however there is no data exchange in my situation.
--~--~-~--~~~---~--~~
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: Errors and quotas..

2009-07-15 Thread Tony

Yes.  You pay for all CPU cycles used, and all requests count toward
your request total.

On Jul 15, 2:22 pm, bvelasquez bvelasq...@gmail.com wrote:
 Hello,

 I'm curious if returning an error on a request still counts towards
 your quota?  I have a request that is being made, which is not
 authorized based on my sites security.  I return an error
 immediately.  However, does this request still count?  Could someone
 basically make repeated requests to your site and artificially inflate
 the cost of the application by using more CPU cycles than would
 normally be used?

 Thank you,

 Barry
--~--~-~--~~~---~--~~
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: Webservice authentication (Python)

2009-07-15 Thread Tony

The response has the Set-cookie header set, which will cause the
user's browser to save the cookie and then present it on the next
request (after redirected by the 302).  In my code I've opted not to
follow the redirect, and extracted the cookie myself, because it's the
urlfetch service doing the request, not the user.  You can then either
return a response to the user with a Set-cookie HTTP header (causing
their browser to save the cookie), or handle it some other way (return
it in the body and set the cookie with Javascript, for example).

I think I misunderstood your original question, though, and you're
looking for something different.  You want to get an authorization
cookie and then use it to make repeated requests with urlfetch, not
with a browser?  If that's the case, you're going to want to capture
the Set-cookie header from the second response, and supply that in
future requests (setting the Cookie header for urlfetch).

Basically, urlfetch will follow redirects but it won't handle cookies
automatically - so what's happening is it's ignoring the Set-cookie
header and following the redirect, and being denied because it's not
supplying a cookie.


On Jul 15, 2:58 pm, epb esbenbu...@gmail.com wrote:
 I can see why Tony's version would work. His algorithm has two
 steps:

 1. Get the authorization token using ClientLogin (which I also managed
 to do).
 2. Use the uri servername/_ah/login to get the auth. cookie.

 The appengine_rpc module seems to do authentication in a similar way:

 A. Try to access the app. This results in a redirect to a location
 that starts withhttps://www.google.com/accounts/ServiceLogin
 B. Get a auth. token (like step 1 above)
 C. Use auth. token to get auth. cookie.
 D. Try to access the app. again (this is where it fails in my case...)

 Anyway, step C is performed using the function below:

 ---

 def _GetAuthCookie(self, auth_token):
     Fetches authentication cookies for an authentication token.

     Args:
       auth_token: The authentication token returned by ClientLogin.

     Raises:
       HTTPError: If there was an error fetching the authentication
 cookies.
     
     continue_location = http://localhost/;
     args = {continue: continue_location, auth: auth_token}
     login_path = os.environ.get(APPCFG_LOGIN_PATH, /_ah)
     req = self._CreateRequest(%s://%s%s/login?%s %
                               (self.scheme, self.host, login_path,
                                urllib.urlencode(args)))
     try:
       response = self.opener.open(req)
     except urllib2.HTTPError, e:
       response = e
     if (response.code != 302 or
         response.info()[location] != continue_location):
       raise urllib2.HTTPError(req.get_full_url(), response.code,
 response.msg,
                               response.headers, response.fp)
     self.authenticated = True

 --

 It seems to me, that we do nothing with the response in this
 function?? Shouldn't we save the cookie in the response like Tony's
 does above, and then use it when we try to log in again?

 On Jul 15, 1:06 pm, epb esbenbu...@gmail.com wrote:

  Thanks for your answers.

  As I understand Nick's response, I only need to use appengine_rpc.py
  for the entire process. I tried the following:

  ---

  def passwdFunc():
      return ('my_email','my_passwd')

  rpcServer = appengine_rpc.HttpRpcServer
  ('myapp.appspot.com',passwdFunc,None,'myAppName')
  blah = rpcServer.Send('/')

  ---

  This gave me a 302 error and the following log:

  ---

  Server: myapp.appspot.com
  Sending HTTP request:
  POST /? HTTP/1.1
  Host: myapp.appspot.com
  X-appcfg-api-version: 1
  Content-type: application/octet-stream

  Got http error, this is try #1
  Got 302 redirect. 
  Location:https://www.google.com/accounts/ServiceLogin?service=ahcontinue=http...
  nue%3Dhttp://myapp.appspot.com/
  ltmpl=gmahname=MyAppNamesig=46378246321321312
  Sending HTTP request:
  POST /? HTTP/1.1
  Host: myapp.appspot.com
  X-appcfg-api-version: 1
  Content-type: application/octet-stream

  Got http error, this is try #2

  ---

  It seems to me that the Send() function should do all authentication-
  work automatically and re-direct to the app page after logging in.
  Right?

  Anyway, I'll try out Tonys solution also..

  On Jul 15, 11:18 am, Tony fatd...@gmail.com wrote:

   Since I happened to have this up, here's a bit of sample code to get
   an authentication cookie for an appspot app...

   from google.appengine.api import urlfetch
   from urllib import urlencode
   email = request.POST['username']
   passwd = request.POST['password']
   serv_root = http://myapp.appspot.com;
   target = 'http://myapp.appspot.com/null'
   app_name = myapp-1.0
   auth_uri = 'https://www.google.com/accounts/ClientLogin'
   authreq_data = urlencode({ Email:   email,
                                     Passwd:  passwd,
                                     service: ah,
                                     source:  app_name

[google-appengine] Re: Webservice authentication (Python)

2009-07-15 Thread Tony

I believe that the difference between urlfetch and urllib2 is
superficial - App Engine makes all requests using urlfetch, regardless
of which lib you use in your code.

On Jul 15, 4:55 pm, epb esbenbu...@gmail.com wrote:
 On Jul 15, 4:05 pm, Tony fatd...@gmail.com wrote:

  The response has the Set-cookie header set, which will cause the
  user's browser to save the cookie and then present it on the next
  request (after redirected by the 302).  In my code I've opted not to
  follow the redirect, and extracted the cookie myself, because it's the
  urlfetch service doing the request, not the user.  You can then either
  return a response to the user with a Set-cookie HTTP header (causing
  their browser to save the cookie), or handle it some other way (return
  it in the body and set the cookie with Javascript, for example).

  I think I misunderstood your original question, though, and you're
  looking for something different.  You want to get an authorization
  cookie and then use it to make repeated requests with urlfetch, not
  with a browser?  If that's the case, you're going to want to capture
  the Set-cookie header from the second response, and supply that in
  future requests (setting the Cookie header for urlfetch).

 Yes, that is exactly what I want :) My client app. is not browser-
 based. I guess I'll just use your method then.. appengine_rpc must be
 intended for browser apps only, as it does nothing to capture the
 auth. cookie. I could of course extend the appengine_rpc module to
 capture the cookie, but the module uses urllib2.OpenerDirector.open()
 to open URLs and this is perhaps not the way to go in my case? I am
 not sure what the difference is between urlfetch() and open() it
 seems like I can get the headers (and hereby the cookie) by using info
 () on the response from open().



  Basically, urlfetch will follow redirects but it won't handle cookies
  automatically - so what's happening is it's ignoring the Set-cookie
  header and following the redirect, and being denied because it's not
  supplying a cookie.

  On Jul 15, 2:58 pm, epb esbenbu...@gmail.com wrote:

   I can see why Tony's version would work. His algorithm has two
   steps:

   1. Get the authorization token using ClientLogin (which I also managed
   to do).
   2. Use the uri servername/_ah/login to get the auth. cookie.

   The appengine_rpc module seems to do authentication in a similar way:

   A. Try to access the app. This results in a redirect to a location
   that starts withhttps://www.google.com/accounts/ServiceLogin
   B. Get a auth. token (like step 1 above)
   C. Use auth. token to get auth. cookie.
   D. Try to access the app. again (this is where it fails in my case...)

   Anyway, step C is performed using the function below:

   ---

   def _GetAuthCookie(self, auth_token):
       Fetches authentication cookies for an authentication token.

       Args:
         auth_token: The authentication token returned by ClientLogin.

       Raises:
         HTTPError: If there was an error fetching the authentication
   cookies.
       
       continue_location = http://localhost/;
       args = {continue: continue_location, auth: auth_token}
       login_path = os.environ.get(APPCFG_LOGIN_PATH, /_ah)
       req = self._CreateRequest(%s://%s%s/login?%s %
                                 (self.scheme, self.host, login_path,
                                  urllib.urlencode(args)))
       try:
         response = self.opener.open(req)
       except urllib2.HTTPError, e:
         response = e
       if (response.code != 302 or
           response.info()[location] != continue_location):
         raise urllib2.HTTPError(req.get_full_url(), response.code,
   response.msg,
                                 response.headers, response.fp)
       self.authenticated = True

   --

   It seems to me, that we do nothing with the response in this
   function?? Shouldn't we save the cookie in the response like Tony's
   does above, and then use it when we try to log in again?

   On Jul 15, 1:06 pm, epb esbenbu...@gmail.com wrote:

Thanks for your answers.

As I understand Nick's response, I only need to use appengine_rpc.py
for the entire process. I tried the following:

---

def passwdFunc():
    return ('my_email','my_passwd')

rpcServer = appengine_rpc.HttpRpcServer
('myapp.appspot.com',passwdFunc,None,'myAppName')
blah = rpcServer.Send('/')

---

This gave me a 302 error and the following log:

---

Server: myapp.appspot.com
Sending HTTP request:
POST /? HTTP/1.1
Host: myapp.appspot.com
X-appcfg-api-version: 1
Content-type: application/octet-stream

Got http error, this is try #1
Got 302 redirect. 
Location:https://www.google.com/accounts/ServiceLogin?service=ahcontinue=http...
nue%3Dhttp://myapp.appspot.com/
ltmpl=gmahname=MyAppNamesig=46378246321321312
Sending HTTP request:
POST /? HTTP/1.1

[google-appengine] Re: sendmail InvalidSenderError

2009-07-15 Thread Tony

The FROM address must either be a.) the currently logged in user, or
b.) a registered admin of the app.  If you want to get around that
limitation, you'll have to utilize a service external to GAE.

On Jul 15, 6:02 pm, thebrianschott schott.br...@gmail.com wrote:
 Wooble,

 Thanx, I did not realize that sendmail
 has that limitation. Is there a workaround
 within the gae, or do I need to revise the
 instructions to my app to tell users that
 they will need to forward messages from
 within their gmail account?

 Brian
--~--~-~--~~~---~--~~
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: simultaneous dynamic requests, max blob size, multi-blob?

2009-07-15 Thread Tony

I'm pretty sure #1 is correct.  Of course, it's not a hard limit in
the sense that the 31st request is dropped, rather it's queued, but
yes it's unfortunate.

On Jul 15, 10:33 pm, Jeff Enderwick jeff.enderw...@gmail.com wrote:
 1) I saw that 30 was listed somewhere as the max simultaneous dynamic
 requests for an app. Is this really true? Even if I am paying, and I
 have a very popular app? I see the math indicating that one can retire
 400/sec with 75ms latency, but I am sure that GOOG-internal apps
 aren't held to this limit of 30. Is this really a hard limit?

 2) Great to see that Service for storing and serving large files is
 on deck. Can y'all give any indication whether this will be
 accomplished by making blobs bigger (or adding some sort of uberblob)?
 Any indications on new max size would be great.

 3) Along those lines, has anyone implemented something like multi-blob
 fragmentation/reassembly for storing  serving things greater than
 1MB?

 Thanks!
 Jeff
--~--~-~--~~~---~--~~
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: Querying for N random records on Appengine datastore

2009-07-14 Thread Tony

If the number of entities in the kind is reasonably small, you could
do:

keys = Kind.all(keys_only=True).fetch(MAX_ENTITIES)

Pick x keys out of that list, and then use db.get() to fetch them.

Otherwise, johnP's suggestion is probably best, but I don't see why
you need the extra overhead of pickling/unpickling the list.  Just
store the keys in a ListProperty(indexed=False).

On Jul 14, 1:07 pm, Bennomatic readyass...@gmail.com wrote:
 I was just thinking this last night when I wasn't at my computer.
 Darn you for publishing my good idea first! :)

 It doesn't bring the number of queries down to 1, but it does bring
 them down to 2, at least on the request side.

 Of course, it also means one extra transactions every time a new
 entity is created, so I don't know if there's any net savings, but
 this does seem like a reasonable way to address the issue at hand.

 -Ben

 On Jul 12, 11:08 pm, johnP j...@thinkwave.com wrote:

   Dont know quite how would implement a fifo buffer on AppEngine, would
   almost certainly use the datastore, so is going to be expensive...

  A possibility is to maintain an index, which is a pickled list of
  entity keys, stored as a blob somewhere.  You'll need to maintain the
  index by adding/removing keys as you add/remove entities.  But then,
  when you need to make a random choice, just unpickle the list, grab
  any five keys from the list, and db.get([keys]).

  johnP

  On Jul 11, 12:41 pm, Barry Hunter barrybhun...@googlemail.com wrote:

   On 11/07/2009, Devel63 danstic...@gmail.com wrote:

 Barry, I understand your objections below, but do you have a better
 approach?

   no, I dont. The way in my first reply is the best I can think off. Not
   totally uniform, but dont think any 'random' solution is going to be,
   unless you keep the data uptodate - which is not practical on
   AppEngine.

   A reasonably good solution, is to use a FIFO buffer, when the queue is
   empty you get all keys, and shuffle them and add to the queue. then
   getting random results is a matter of poping that many keys off the
   queue, and fetching them.

   Dont know quite how would implement a fifo buffer on AppEngine, would
   almost certainly use the datastore, so is going to be expensive.

 Assigning random numbers to entities is guaranteed to be worse.  If
 you are worried about an entity being deleted and opening a gap in the
 sequence, imagine the thousand-fold gaps you will see with random ID
 generation (e.g. 1, 10001, 10002, 2, ...).

 See below.

 On Jul 10, 3:03 pm, Barry Hunter barrybhun...@googlemail.com wrote:

 On 10/07/2009, Devel63 danstic...@gmail.com wrote:

    The best way is to assign a one-up counter to each record as you
    create it, then call random.randint(1,max_counter) to determine 
the
    desired record.

    To retrieve multiple random entities in a query, do a filter('IN 
',
    [my random nums]).

  doent work that well once records start getting deleted (get the same
  issue, non uniform distribution)

If an app needs to support entity deletion, you can still ensure
 uniformity by running a periodic cron job to compress the counter
 sequence.

  nor does it work if you filtering at the same time :(

Correct, in that the distribution is no longer uniform.  But this is
 also true of the random ID approach. I admit that the random ID
 approach seems appealing at first, but when you actually look into it,
 you'll find that you are guaranteed that many results will be 3X more
 likely than others, or worse.  It IS better in the case that you want
 to randomize based on time of entity creation, but there are other
 ways to deal with this.

 I would love it if someone could come up with a good way to do true
 random results of an arbitrary query set!!

    Note that behind the scenes this generates multiple queries, so 
you're
    not saving much time.

    On Jul 10, 7:34 am, Wooble geoffsp...@gmail.com wrote:
     Highly non-optimal solution: have a cron job assign new random 
numbers
     to your entities often enough to simulate randomness.  Even 
just re-
     assigning numbers to entities that have been previously 
selected might
     work.  This involves a lot more CPU as you'd be doing writes, 
but
     shifts the work from request time to a background process so 
your
     users don't see the added latency for doing N queries.

     Another possible solution would be to fetch keys only for X*N 
entities
     (where greater X's produce more apparent randomness) then 
choose N of
     those keys to actually fetch entities.

     On Jul 9, 12:33 pm, aloo aleem.maw...@gmail.com wrote:

      Hi all,

      I'm trying to write a GQL query that returns N random records 
of a
      specific kind. My current implementation works but 

[google-appengine] PCI compliance for transmitting cardholder data?

2009-07-13 Thread Tony

Has anyone attempted to achieve PCI compliance for an App Engine app
that transmits (without storing) cardholder data (e.g., Paypal's
Payments Pro version)?  I was just curious if anyone has had their
app scanned and passed, or if off-site payment processing (e.g. Google
Checkout) is the only option for e-commerce on 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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Is this HTTPS workaround secure?

2009-07-13 Thread Tony

Rather than redirect users to https://appname.appspot.com, I set up an
external server with my SSL cert and nginx reverse proxying SSL
requests to app engine - e.g. it proxies https://secure.mydomain.com
to https://myapp.appspot.com.  As far as I can tell, it works fine (in
testing).  However, it just feels like I'm maybe doing something
foolish, here.  The data is never sent unencrypted over the wire, and
the chain of trust doesn't seem to be broken (user trusts me, via my
SSL cert, and I trust myapp.appspot.com), but I figured I'd ask in
case this is an obvious hey, don't do that, idiot! scenario I don't
know about.
--~--~-~--~~~---~--~~
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 fast delete a complete datastore, please

2009-07-13 Thread Tony

There is no such option, but something that will speed up your deletes
significantly is to do a keys_only query.  The query you are currently
using fetches all 300 entities into memory (including their
properties, etc) - but you only need the key to delete the entity.
Try something like query = Homedata.all(keys_only=True) and you
should be able to delete more entities per batch for less cpu.
However, it's still going to be a long and cpu-intensive operation for
25000+ entities.

On Jul 12, 12:53 pm, jacqueslep jacquesle...@gmail.com wrote:
 Hello,
 i try to delete all records in a datastore, a simple table with a time
 serie of int values
 there are more than 25000 entries

 when i do :

    homedata_query = Homedata.all()
    homedatas = homedata_query.fetch(300)
    db.delete(homedatas)

 if the fetch count is greater then 300 i receive a timeout
 so i have to repeat this a huge number of time

 it did take me about 20 min to do that
 and it cost  2.38  CPU hours because the CPU sec used /sec was up to 8
 This is not useable, i want to store (and be able to delete) more than
 100k entries,
 deleting 300 by 300 would take more than one hour to complete and cost
 8h of cpu

 what is the trick to instant delete, like the -c option in the App
 Engine SDK ?

 btw can someone explain how the cpu sec used /sec are computed
--~--~-~--~~~---~--~~
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: Queue isEmpty() method

2009-07-13 Thread Tony

If you submit this as a feature request, I'd star it.  This would also
greatly simplify some code I'm currently using.

On Jul 11, 4:11 am, Paulo V. pvill...@gmail.com wrote:
 It would be extremely useful to have an isEmpty() method on task
 queues.  An application we are building is going through hoops to
 indirectly detect when all tasks in a queue have completed.  The
 isEmpty() method would greatly simplify a wide class of applications
 which combine sequential phases each of which is decomposed into a
 large number of asynchronous tasks.
--~--~-~--~~~---~--~~
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: PLEASE HELP ME FIGHT GOOGLE SPAM

2009-07-12 Thread Tony

I'm just curious, how did you miss the first two replies to this
thread which gave you the (easily found) link to report App Engine
apps that are in violation of Google's TOS?

On Jul 12, 7:36 pm, Paul NOSPAM jelst...@netzero.com wrote:
 Weeble's wobble, but they don't fight spam.

 The 'point' Wobble, is that there is NO PLACE on the site, where you
 can find, to report the SPAM... so it continues, as yet today, ANOTHER
 one from the spammers at Google...

 Hey buddy! Are you interested in any merchandise? At mallbrand we
 provide the best brands such as lacoste, Louis Vuitton, Prada, DG,
 Versace and many more of these luxurious brands, offering from t-
 shirts to watches at a very affordable price! We use the best quality
 material in our products, and thrive for customer satisfaction. Do the
 right thing and shop at ShowAllPic today! Go tohttp://ttwaitapp22.appspot.com

 On Jul 11, 12:05 pm, Wooble geoffsp...@gmail.com wrote:

  On Jul 11, 10:34 am, Paul NOSPAM jelst...@netzero.com wrote:

   Most of this CRAP already goes into my SPAM folder, however some slips
   through.   I really don't understand why everyone seems to be missing
   the point.

  The point that the developer mailing list somehow just because the
  appropriate place to report abuse?  Yes, we all missed that.
--~--~-~--~~~---~--~~
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: PLEASE HELP ME FIGHT GOOGLE SPAM

2009-07-08 Thread Tony

http://code.google.com/support/bin/request.py?contact_type=AppEngineContact

On Jul 7, 6:03 pm, Paul NOSPAM jelst...@netzero.com wrote:
 Hello,

 I have a yahoo e-mail account, where I am getting TONS of spam, that
 are advertising a website like this -http://caatainc1.appspot.com/

 I traced the domain back to Google, and called them, because sending
 dozens of e-mails resulted in nothing happening.   Guess what?
 Calling them does no good either!!   I did get a little girl, who
 directed me to the APPSPOT.com site, where I could complain about the
 spam, but guess what?   there is NO contact information for reporting
 this crap!!

 So, if someone on this board could PLEASE let me know how I can stop
 these assholes, from continuing to SPAM me from their GOOGLE appspot,
 using their GMAIL account, I would GREATLY appreciate it.
--~--~-~--~~~---~--~~
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: Reading the app.yaml version string from python?

2009-07-06 Thread Tony

You can access the global environment variable CURRENT_VERSION_ID -
from the docs:

CURRENT_VERSION_ID: The major and minor version of the currently
running application, as X.Y. The major version number (X) is
specified in the app's app.yaml file. The minor version number (Y)
is set automatically when each version of the app is uploaded to App
Engine. On the development web server, the minor version is always
1.

I believe memcache and datastore are shared across all versions of the
app, so keep that in mind.

On Jul 6, 2:56 pm, mckoss mck...@gmail.com wrote:
 I'd like to be able to know what version of my application is
 currently running?  Is there an API for reading this string at
 runtime?

 (I want to use this for flushing cache entries from memcache that are
 version-specific).
--~--~-~--~~~---~--~~
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: Trying to get my compiled gwt code to work on appengine-python

2009-07-05 Thread Tony

If you post the relevant portions of your app.yaml it might be easier
to see what the problem is - I'm personally running a GWT frontend and
python backend on my app right now and it's working fine.  I have
static mappings for css files and for the application directory (with
the compiled html permutations, etc), and I have django treat the base
html file as a template.

On Jul 4, 5:44 pm, bucaro haml...@gmail.com wrote:
 The code works fine locally but as soon as I upload the directory and
 url mappings I get a 500 error.

 I use a static mapping to map the directory where the gwt code is to a
 URL path but for some reason appengine doesn't like it.

 Any ideas?
--~--~-~--~~~---~--~~
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: Performance improvements

2009-06-23 Thread Tony

The quote is real, but unless my english is way off, I'm pretty sure
that sentence does not imply that the reduction in quota is part of
the performance improvements.

On Jun 23, 2:23 am, GenghisOne mdkach...@gmail.com wrote:
 cc -- Is that quote for real or are you just using a dramatic device
 to illustrate your point?

 On Jun 22, 7:14 pm, cc c...@gamegiants.net wrote:

  along with many performance improvements, we will be reducing the
  free quota levels

  On Jun 22, 7:11 pm, cc c...@gamegiants.net wrote:

   I think you misread the doublespeak the reduction in the quota IS the
   performance improvement

   On Jun 22, 6:05 am, luddep lud...@gmail.com wrote:

Hello,

So the free quotas have been reduced today and according to the docs
(http://code.google.com/appengine/docs/quotas.html#Free_Changes) there
are going to be some performance improvements as well, will there be
any information released regarding what actual improvements they are?
(i.e., datastore related, etc)

Thanks!
- Ludwig
--~--~-~--~~~---~--~~
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: GAE + Eclipse Plug-In + Subversion

2009-06-23 Thread Tony

I have not used this particular plugin but this might point you in the
right direction: Eclipse stores project information in .project (or
similar) file in your project directory (and maybe others, like
a .settings folder).  My guess is Subversion's default settings
ignores files that start with . (dot) when committing changes (since
it stores data in .svn folders).  You can either:

a.) commit the Eclipse dot-files and do import an existing project
on your second workspace
b.) don't commit the dot-files, and create a new project on your
second workspace (and use the repository checkout as the initial
directory)

That should work, if I understand your question right.

On Jun 23, 7:40 am, stefan77 stefan.ortma...@googlemail.com wrote:
 Hello,

 i need some help with a team setup for the GAE in Eclipse with
 Subversion.
 I've created a GAE Project in Eclipse and created a repository with
 the Eclipse Team function (Subversive Plug-in) on a Subversion-Server.
 Creation and commits work.
 But i cannot check it out on another workplace (also Eclipse+GAE
 Plugin is installed).
 I've tried to just check out the project but then the GAE Plugin does
 not detect the project as GAE supported.
 And when i first create a GAE Project and then checkout the sources it
 will also not work because of the source structure.
 Has someone experiences or ideas, how do i get it work?

 Regards,
 Stefan
--~--~-~--~~~---~--~~
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: Datastoer design for high performance query / group membership / venn diagram self joins

2009-06-23 Thread Tony

You could do something like this (I'm writing python instead of java
but you get the idea):

class User(db.Model):
  matchesInitiated = db.ListProperty(db.Key)
  matchesAttempted = db.ListProperty(db.Key)

class Match(db.Model)
  interesting_property = db.StringProperty()

The properties on User contain db.Keys of Match entities that the User
relates to.  When you want to get all matches for a user, you just
merge the two properties into one list of keys and db.get
(list_of_keys).  No queries, even.

On Jun 22, 6:31 pm, tiburondude david.jonathan.nel...@gmail.com
wrote:
 Hi,

 I have an app with two entities that need (maybe) to interrelate in
 the typical sql join sense.

 Users
 -
 userId  Long

 Matches
 initiatingUserId Long
 attemptingUserId Long
 matched  boolean

 From my UI I can get the data populated properly but I end up with
 this in one row:

 initiatingUserId = 1
 attempingUserId = 2
 matched = true

 What I want is when user 1 goes to this section of the app, to get a
 list of all records with matched = true, where the currently logged in
 user is in EITHER initiatingUserId OR attemptingUserId.  This can't be
 done in the sql sense using a logical OR, since that's not supported
 in the datastore since it doesn't perform well.

 Of course I can do two queries and join the dataset, but this
 introduces some serious pain in the workaround regarding paging on a
 large dataset.  Not to mention two queries per request just sounds
 slow/wrong.

 I watched the excellent video from google IO 2009 that instructs us to
 think of these things as group membership queries, and to do venn
 diagram self joins.

 So I was thinking the solution may be to remodel the entities like so:

 - Remove the Matches entity completely
 - change the Users entity to this:

 Users:
 -
 Listint initiatingUserIds
 ListInt attemptingUserIds

 I'm struggling to write the query that would then retrieve this data.

 Anyone have any ideas on this design?

 Thanks a bunch!
 David
--~--~-~--~~~---~--~~
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 class Body(db.Model): ok?

2009-06-23 Thread Tony

Have you added any Body entities to your datastore?  Sometimes I get
HTTP 500 errors in the console viewer for models with no existing
entities.

On Jun 23, 1:09 pm, Jesse Grosjean je...@hogbaysoftware.com wrote:
 I've just added a new model class to my app that's defined like this:

 class Body(db.Model):
         content = db.TextProperty()

 It seems to be working fine in my server code, but for some reason it
 doesn't show up in the list of entities shown by the App Engine
 Console Data Viewer. Also when I run a direct query in the console
 for:

 SELECT * FROM Body

 I get a page that reports:

 Server Error
 A server error has occurred.

 Can someone help me figure out what is going on?

 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] Task Queue Back-off Times

2009-06-23 Thread Tony

I've looked through the source in the SDK but I can't find any code
relating to the back-off times when tasks fail (I think because the
SDK doesn't actually process queues automatically?).

Does anyone know what the back-off/retry times are for failed
attempts?  The documentation says at worst, once a day but I was
hoping for something a little more specific.  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: Task Queue API Users

2009-06-23 Thread Tony

I think (correct me if I'm wrong) that what Colin is saying is that if
User A is logged in, and performs an action on a page which enqueues a
task, and the task hits a webhook, the webhook should be able to
operate just as if User A had logged in, and hit the webhook url (so
users.get_current_user() should return the user that enqueued the
task).

The workaround seems pretty easy, though, just pass the required
information in the payload: if user is None: user = db.get(request.get
('userkey')), or if user is None: username = db.get(request.get
('username')) or what have you.

Or maybe he's just saying you should be able to assign more granular
permissions like:

- url: /hook
  login: [admin, cron]

Or maybe I'm missing his point entirely :P


On Jun 23, 9:02 am, hawkett hawk...@gmail.com wrote:
 Hi Nick,

   Bug filed -http://code.google.com/p/googleappengine/issues/detail?id=1751

  I'm not sure I see the problem - what user would you expect to see listed
  when a webhook is being called by the cron ortaskqueuesystem?

 The problem is that the handler code needs to have an understanding of
 the particular calling client.  This tightly couples the handler code
 to the calling mechanism.  I totally wrecks the idea that the protocol
 should allow loose coupling of the two end points.  From my
 perspective, that's bad architecture.  If I explicitly say I need a
 user (admin or otherwise) to access a URI, then the system should make
 sure that URI is not accessed unless there is a user.  Once you start
 introducing edge cases - 'It's true unless this, or unless that', the
 platform becomes 'clunky'. app.yml is an interface contract, and
 currently asynch breaks that contract. That contract is far more
 important than one client's (GAE system) difficulty (which user?)
 conforming to it.  My 2c anyway.  Thanks,

 Colin

 On Jun 23, 10:46 am, Nick Johnson (Google) nick.john...@google.com
 wrote:



  Hi hawkett,

  The bug you found earlier, withTaskQueueaccesses returning 302s instead
  of executing correctly, is definitely a bug in the dev_appserver. Can you
  please file a bug on the issue tracker?

  On Mon, Jun 22, 2009 at 11:18 PM, hawkett hawk...@gmail.com wrote:

   Hi,

     I've deployed an app to do some tests on live app engine, and the
   following code

   currentUser = users.get_current_user()
   if currentUser is not None:
     logging.info(Current User - ID: %s, email: %s, nickname: %s %
   (currentUser.user_id(), currentUser.email(), currentUser.nickname()))

   logging.info(is admin? %s % users.is_current_user_admin())

   yields:  'is admin? False'

   as the total log output.  This is code that is run directly from a
   handler in app.yaml that specified - 'login:admin'

   This represents a pretty big problem - it means you can't rely on
   'login:admin' to produce a user that is an admin.

  On the contrary - only administrators and the system itself (eg, cron and
 taskqueueservices) will be able to access login: admin handlers.
  However, when access is by a service, no user is specified, so
  is_current_user_admin() will naturally return False, not because it's not
  an admin access, but because there's no current user.

   I'm guessing that
   the goal of theTaskQueueAPI is to be usable on generic URLs - e.g.
   in a RESTful application, the full CRUD (and more) functionality is
   exposed via a dynamic set of URL's that more than likely are not
   specifically for theTaskQueueAPI - however the above situation
   means you really have to code explicitly for theTaskQueueAPI,
   because the meaning of the directives in app.yaml is not reliable.  It
   looks like cron functionality works like this as well, and that has
   been around for a while.  Use cases such as write-behind outlined in
   Brett's IO talk are significantly limited by being unable to predict
   whether you will get a user or not (especially if you intend to hit
   RESTful URI that could just as easily be hit by real users).  Sure,
   there are ways to code around it, but it's not pretty.

  I'm not sure I see the problem - what user would you expect to see listed
  when a webhook is being called by the cron ortaskqueuesystem?

  -Nick Johnson

   I've added a defect to the issue tracker here -
  http://code.google.com/p/googleappengine/issues/detail?id=1742

   I'm keen to understand how google sees this situation, and whether the
   current situation is here to stay, or something short term to deliver
   the functionality early.  Cheers,

   Colin

   On Jun 22, 4:31 pm, Nick Johnson (Google) nick.john...@google.com
   wrote:
Hi hawkett,

My mistake. This sounds like a bug in the SDK - can you please file a
   bug?

-Nick Johnson

On Mon, Jun 22, 2009 at 4:25 PM, hawkett hawk...@gmail.com wrote:

 Hi Nick,

 In my SDK (just the normal mac download), I can inspect thequeuein
 admin console, and have a 'run' and 'delete' button next to eachtask
 in thequeue.  When I press 'run', 

[google-appengine] Re: newbie question: Alternatives of auto_increment

2009-06-23 Thread Tony

It depends on what exactly you need it for.  If you need it for the
total count, you can use the count() method on queries (slow) or
maintain a counter on another entity (good), or on a collection of
entity shards (better).  If you want to know how many entities of a
kind you've created ever (even if some are deleted), you can use the
key_name property to implement your own auto_increment policy.
Something like this (mind you this code is probably terrible :P):

class Counter(db.Model):
  count = db.IntegerProperty()

class Item(db.Model):
  some_prop = db.StringProperty()
  created_at = db.DateTimeProperty(auto_now_add=True)

  @classmethod
  def new_item(cls):
counter = Counter.get_by_key_name(item_counter)
count = counter.count
counter.count += 1
counter.put()

## or, something like this, which wouldn't require you to maintain
a counter (but requires a query)
count = Item.all(keys_only=True).order(-created_at).get().name
().split(_)[1]

return cls(key_name=num_+str(count+1))


On Jun 22, 9:17 pm, Captain___nemo fireball...@gmail.com wrote:
 Hi,
 I am new in google app engine.

 I am a PHP-MySql developer. I used auto increment (integer type)
 always in my database. It helps for total count, works as primary key
 and so on. But as I can see auto_increment is not available for Data
 Store. I was wondering what is the alternative idea that Data Store
 provides and recommend us to use?

 Thanks in advance.
--~--~-~--~~~---~--~~
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: Shifting applications between google and google apps.

2009-06-23 Thread Tony

As of now, there is no way to change your authentication setting from
Google Accounts to Google Apps-only, or vice versa, and you can't
delete an application or otherwise re-use the name.  It sucks, I'm
currently in the same situation as you.
http://code.google.com/p/googleappengine/issues/detail?id=335

On Jun 22, 7:06 pm, Matt mjwat...@gmail.com wrote:
 Hi there,

 I got a small problem that I need to sort out with Google App Engine.

 When I first signed up to develop for GAE I used my regular Google
 account and dutifully registered  the name of a product my company is
 developing.

 I've realized that I should have signed up using my companies Google
 Apps account instead.

 So at the moment I've got a registered application under my regular
 Google account that I need to move across to my companies Google
 Apps account.

 What should I do? Can I delete the registered application from within
 my account and then add it to my apps domain? Will that work?

 I don't want to lose the registered application name as it's very
 important to us.

 I've also read that there is some work in progress sort out issues
 like this. Is that something I should wait for instead?

 I'd really appreciate an answer for this as it's potentially holding
 back our application deployment.

 Thanks for your time.
 Matt
--~--~-~--~~~---~--~~
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: Does cron jobs take more time to init than normal handlers

2009-06-23 Thread Tony

I'm pretty sure the cron service simply calls a url and reports
whether it got status code 200 or not.  Other than that, there
shouldn't be much difference.  You should try profiling two requests,
one from cron and one from a browser, and comparing them to see what
the real difference is.

On Jun 23, 6:25 pm, Mariano Benitez mari...@benitez.nu wrote:
 Hello,

 Now that I got cron, I moved something I used to do in a normal
 handler to use a cache and refresh every 5 minutes.

 What I discovered now is that what used to take 400ms in the normal
 handler is now taking 800+ms in the cron handler. (I do the exact same
 thing, really)

 I don't know if cron handlers are being cached or since I do it not
 very frequently I have to pay that price.

 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: Best way to get support for Google App Engine issues

2009-06-23 Thread Tony

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

This is about your only other option, though of course it doesn't
solve the privacy issue or ensure timeliness.  The lack of an
individual trouble ticket system like you describe is unusual for a
paid service.  Fortunately the Google folks on this group are quite
responsive and helpful, but like you say, there's only so much they
can do.

On Jun 23, 12:36 pm, gae123 pa...@gae123.com wrote:
 I have been using the GAE for about a year now. On the positive side,
 I had very few problems. Pretty much everything works as described in
 the documentation.

 As far as I can remember, I had three incidents where I needed support
 from Google. At the end all my issues were resolved by the great
 Google folks who monitor the group BUT not in a very timely manner.

 In the first incident, my problem was resolved in a couple of days. In
 the other two incidents it took 5-8 days. In the most recent case,
 that took 8 days we lost valuable time because of the following
 reasons:

 1) The Google Engineer who first handled my case what in an overseas
 timezone (Nick is in Ireland, I am in California) and the latency of
 requests responses was 24 hours
 2) Since I did not want to reveal information about my site in a
 public forum I sent it through private e-mail that was classified as
 spam
 3) Another user who had nothing to do with me intervened to the thread
 with his issues and confused the situation

 So I am wondering,

 1. Is there a better way to get support? You know some application
 (proably part of the dashboard) where you file a ticket, you describe
 the issue and its priority  and you get back a ticket number,  you
 have an option to keep it private between Google and you etc? In GAE
 spirit develpers could even get a few tickets free per month and then
 pay if they go over their ticket quotas :-)
 2. If not, s something like that or even better than that in the
 plans?
 3. In the meantime, I described what I did to get support, should I
 have done something in a different way?

 Thanks

 PS: In all three issuesthe problem was around indexes problems. There
 seems to be a bug where if some index quota is exceeded the indexes
 get in some weird state and Google personnel has to intervene.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



  1   2   >