[google-appengine] Re: GAE getting CAPTCHA-locked by Google Apps?

2010-04-09 Thread Lucas
I don't know if you've resolved this issue or not, but I think I've
found a way around the problem.
Try using the datastore to save the auth string for future use.  If
the auth string stops working, have your application run reAuth().
Replace all occurrences of SERVICE with the Google service for which
you're using ClientLogin.
I haven't tested the code, but it goes a little something like this:

import urllib, urllib2, re
from google.appengine.ext import db

class Auth(db.Model):
  authtype = db.StringProperty()
  content = db.StringProperty()

def reAuth():
  auth_req_data =
urllib.urlencode({'accountType':'GOOGLE','Email':GOOGLE_ACCOUNT,'Passwd':GOOGLE_PASSWORD,'service':SERVICE,'source':YOUR_APP_NAME})
  auth_req_url = 'https://www.google.com/accounts/ClientLogin'
  auth_req = urllib2.Request(auth_req_url, auth_req_data)
  try: response = urllib2.urlopen(auth_req)
  except urllib2.URLError, e:
print e
exit(e)
  result = re.findall('Auth=([-_A-z0-9]+)', response)
  if result: result=result[0]
  newAuth = Auth()
  newAuth.authtype = 'SERVICE'
  newAuth.content = result
  newAuth.put()
  return result

data = db.GqlQuery("SELECT * FROM Auth WHERE authtype =
'SERVICE'").get()
if data:  auth = data.content  #Use existing authstring
else:  auth = reAuth()  #Use new authstring


On Mar 18, 1:36 am, Jan Z  wrote:
> Hi Tim - no, we're not.  A session might be created for a user based
> on their activity, so maybe a few times a day.
>
> We're definitely not hammering the system...
>
> J
>
> On Mar 18, 2:14 am, Tim Hoffman  wrote:
>
> > I have had problems in the past where I was using a lot of remote_api
> > calls into appengine.
>
> > What I found was, on each call I wasn't reusing an already
> > authenticated session, which meant after a number of calls
> > I would be hit with acaptchalock.  (it seems higher up google
> > infrastructure didn't like me creating new authenticated session for
> > each call - aside from the fact it isn't very efficient ;-)
>
> > Maybe thats whats happening in your case, it might be worthing
> > checking to see if you are creating a new authenticated session
> > frequently.
>
> > Rgds
>
> > T
>
> > On Mar 16, 4:15 am, Jan Z  wrote:
>
> > > gdata ClientLogin calls from GAE (and from GAE only) appear to get
> > > frequent spuriousCAPTCHAlocks.
>
> > > By "spurious" I mean that another ClientLogin attempt a couple of
> > > seconds later succeeds (with same credentials), so there is no need
> > > for users to actually go through the unlockcaptcha step.
>
> > > We can reproduce this on GAE reliably (as in acaptchaoccurring one
> > > or more times for every five attempts) using gdata (python) or
> > > straight protocol access with urlfetch.    Same code runs on local SDK
> > > without encountering a singlecaptcha.
>
> > > So it looks like the API iscaptcha-locking the GAE.
>
> > > We have an existing support case #00618963 for this, would be great to
> > > get someone from the GAE team to have a look please?
>
> > > Jan

-- 
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] New GAE/J app fails to start - FATAL ERROR in native method: processing of -javaagent failed

2010-04-09 Thread vogella
Hi,

I create a new GAE/J app via the Eclipse Plugin. Directly after
creation I try to run it via Run-As -> Webapplication and I receive
the following error:

java.lang.NoSuchFieldError: strm
at java.util.zip.Inflater.initIDs(Native Method)
at java.util.zip.Inflater.(Unknown Source)
at java.util.zip.ZipFile.getInflater(Unknown Source)
at java.util.zip.ZipFile.getInputStream(Unknown Source)
at java.util.zip.ZipFile.getInputStream(Unknown Source)
at java.util.jar.JarFile.hasClassPathAttribute(Unknown Source)
at
java.util.jar.JavaUtilJarAccessImpl.jarFileHasClassPathAttribute(Unknown
Source)
at sun.misc.URLClassPath$JarLoader.getClassPath(Unknown Source)
at sun.misc.URLClassPath.getLoader(Unknown Source)
at sun.misc.URLClassPath.getResource(Unknown Source)
FATAL ERROR in native method: processing of -javaagent failed
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(Unknown
Source)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(Unknown
Source)
Exception in thread "main"


Previously I was able to create GAE/J. Mz Java version is Java(TM) SE
Runtime Environment (build 1.6.0_19-b04) and I'm on Window XP.

Any advice?

Best regards, Lars

-- 
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] claiming unavailable appspot subdomain

2010-04-09 Thread Vez
I am currently the owner of mixnote.com. For my app, I require a
subdomain for each user. I see that Google App Engine does not
currently support subdomains for custom domains, so I would at least
like to use mixnote.appspot.com. (I had to take "mixnotecom" instead.)
Unfortunately, this is listed as unavailable from the "Create an
Application" page. I also see that there is no public app currently
running there. Is there any possibility that I could get this address?
If someone else has chosen the "mixnote" app identifier, I would like
to contact them and ask for 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: Just started getting OverQuotaError . I'm not over quota

2010-04-09 Thread Timofey Koolin
You can over quota per one minute, it isn't show on dashboard.

On 9 апр, 05:51, Waleed Abdulla  wrote:
> This started about 20 minutes ago at 6:23pm. A lot of my requests are
> failing with
>
>     google.appengine.runtime.apiproxy_errors.OverQuotaError
>
> However, the dashboard and the Quota Details page show that everything is
> normal.  app id is "networkedblogs". I'd appreciate your quick response.
>
> Waleed

-- 
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: Use Of Deprecated Code

2010-04-09 Thread Wooble


On Apr 9, 11:32 pm, JoeM  wrote:
> I checked and saw that since I upgraded to Ubuntu 9.10 the Python has
> been changed to Python 2.6.4.  However your theory about lack of
> Python
> 2.5 being the cause of the deprecation messages is refuted by the fact
> that when
> I ran with Python 2.5.4 I got the same deprecation warnings for md5
> only much more of them.
> I fixed my 2.5.4 as advised and they went away.
>
> In any event now that it is known that md5 has been hacked it should
> be fixed not swept
> under any rug.
>
> Just an FYI Google appengine runs fine with Python 2.6.4.

md5 isn't deprecated in python 2.6 because it's been hacked; hashlib
consolidates the scattered hashing modules into 1.  It still lets you
use md5.

also:
[~] % python
Python 2.5.4 (r254:67916, Jul  7 2009, 23:51:24)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import md5
>>> ^D
[~] % python2.6
Python 2.6.2 (r262:71600, Jul 17 2009, 11:51:35)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import md5
__main__:1: DeprecationWarning: the md5 module is deprecated; use
hashlib instead
>>>

YMMV.

-- 
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: Use Of Deprecated Code

2010-04-09 Thread Tim Hoffman

I am running 2.5.4 on 9.10 and don't get the deprecation warning and
never have with appengine and I have.

As for MD5 being hacked, yep but the ramifications of that are
dependent on why it is being used.
If you are using it to generate hashes to compare files that only you
have access too then I would suggest there is little or no risk.
So that isn't exactly sweeping things under the rug.

And as for 2.6.4 yes it runsappengine fine in dev, and your code base
will work
in prod right up until you start using any code with the "with"
statement for instance.

There are more than a few postings in this group where people cant get
things to work
purely because they have been using 2.6.x

Rgds

T


On Apr 10, 11:32 am, JoeM  wrote:
> I checked and saw that since I upgraded to Ubuntu 9.10 the Python has
> been changed to Python 2.6.4.  However your theory about lack of
> Python
> 2.5 being the cause of the deprecation messages is refuted by the fact
> that when
> I ran with Python 2.5.4 I got the same deprecation warnings for md5
> only much more of them.
> I fixed my 2.5.4 as advised and they went away.
>
> In any event now that it is known that md5 has been hacked it should
> be fixed not swept
> under any rug.
>
> Just an FYI Google appengine runs fine with Python 2.6.4.
>
> Joe
>
> On Apr 8, 10:06 pm, Wooble  wrote:
>
>
>
> > App Engine runs on python 2.5, where md5 is not deprecated.  It's
> > unlikely google will "fix" this, since the error is caused by you
> > using an unsupported python version.
>
> > On Apr 8, 4:13 pm, JoeM  wrote:> Hello,
>
> > > This post is directed to the appengine developers who work for Google.
>
> > > In the past I have, on my local appengine server, fixed source code
> > > to
> > > eliminate use of deprecated code.  But going forward I see it is much
> > > better if the fix is made at the source of the distribution.
>
> > > I am running Ubuntu 9.10 on my desktop system where I run the local
> > > appengine server and I get the message below when I start the server.
>
> > > /home/joe/google_appengine_1.3.2/google/appengine/tools/appcfg.py:41:
> > > DeprecationWarning: the sha module is deprecated; use the hashlib
> > > module instead
> > >   import sha
> > > /home/joe/google_appengine_1.3.2/google/appengine/tools/
> > > dev_appserver_login.py:33: DeprecationWarning: the md5 module is
> > > deprecated; use hashlib instead
> > >   import md5
>
> > > Joe

-- 
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: Use Of Deprecated Code

2010-04-09 Thread JoeM
Just to make my reply clear :

"my 2.5.4"  =  "my local google applengine source running witn Python
2.5.4"

On Apr 9, 11:32 pm, JoeM  wrote:
> I checked and saw that since I upgraded to Ubuntu 9.10 the Python has
> been changed to Python 2.6.4.  However your theory about lack of
> Python
> 2.5 being the cause of the deprecation messages is refuted by the fact
> that when
> I ran with Python 2.5.4 I got the same deprecation warnings for md5
> only much more of them.
> I fixed my 2.5.4 as advised and they went away.
>
> In any event now that it is known that md5 has been hacked it should
> be fixed not swept
> under any rug.
>
> Just an FYI Google appengine runs fine with Python 2.6.4.
>
> Joe
>
> On Apr 8, 10:06 pm, Wooble  wrote:
>
> > App Engine runs on python 2.5, where md5 is not deprecated.  It's
> > unlikely google will "fix" this, since the error is caused by you
> > using an unsupported python version.
>
> > On Apr 8, 4:13 pm, JoeM  wrote:> Hello,
>
> > > This post is directed to the appengine developers who work for Google.
>
> > > In the past I have, on my local appengine server, fixed source code
> > > to
> > > eliminate use of deprecated code.  But going forward I see it is much
> > > better if the fix is made at the source of the distribution.
>
> > > I am running Ubuntu 9.10 on my desktop system where I run the local
> > > appengine server and I get the message below when I start the server.
>
> > > /home/joe/google_appengine_1.3.2/google/appengine/tools/appcfg.py:41:
> > > DeprecationWarning: the sha module is deprecated; use the hashlib
> > > module instead
> > >   import sha
> > > /home/joe/google_appengine_1.3.2/google/appengine/tools/
> > > dev_appserver_login.py:33: DeprecationWarning: the md5 module is
> > > deprecated; use hashlib instead
> > >   import md5
>
> > > Joe

-- 
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: Use Of Deprecated Code

2010-04-09 Thread JoeM
I checked and saw that since I upgraded to Ubuntu 9.10 the Python has
been changed to Python 2.6.4.  However your theory about lack of
Python
2.5 being the cause of the deprecation messages is refuted by the fact
that when
I ran with Python 2.5.4 I got the same deprecation warnings for md5
only much more of them.
I fixed my 2.5.4 as advised and they went away.

In any event now that it is known that md5 has been hacked it should
be fixed not swept
under any rug.

Just an FYI Google appengine runs fine with Python 2.6.4.

Joe

On Apr 8, 10:06 pm, Wooble  wrote:
> App Engine runs on python 2.5, where md5 is not deprecated.  It's
> unlikely google will "fix" this, since the error is caused by you
> using an unsupported python version.
>
> On Apr 8, 4:13 pm, JoeM  wrote:> Hello,
>
> > This post is directed to the appengine developers who work for Google.
>
> > In the past I have, on my local appengine server, fixed source code
> > to
> > eliminate use of deprecated code.  But going forward I see it is much
> > better if the fix is made at the source of the distribution.
>
> > I am running Ubuntu 9.10 on my desktop system where I run the local
> > appengine server and I get the message below when I start the server.
>
> > /home/joe/google_appengine_1.3.2/google/appengine/tools/appcfg.py:41:
> > DeprecationWarning: the sha module is deprecated; use the hashlib
> > module instead
> >   import sha
> > /home/joe/google_appengine_1.3.2/google/appengine/tools/
> > dev_appserver_login.py:33: DeprecationWarning: the md5 module is
> > deprecated; use hashlib instead
> >   import md5
>
> > Joe

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



Re: [google-appengine] google.appengine.api.mail.InvalidEmailError and invalid_email_reason

2010-04-09 Thread david ignacio
this has been filed as bug 3070

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

thanks

On Fri, Apr 9, 2010 at 18:16, Ikai L (Google)  wrote:
> Hi Dave,
> Yes, please file an issue in our issue tracker:
> http://code.google.com/p/googleappengine/issues/list
>
> On Wed, Apr 7, 2010 at 10:18 AM, Dave  wrote:
>>
>> Hi-
>>
>> I was writing a request handler that sent an email address and was
>> very surprised when my unit tests failed due to is_email_valid
>> returning unexpected false positives.  Upon further investigation of
>> the sdk source[1], turns out that invalid_email_reason is doing a very
>> very basic string validation and not actually checking any valid email
>> address guidelines.
>>
>> I created a list of very basic email address problems that I had
>> expected to get caught[2], and it looks like the live version of gae
>> is doing the same thing.
>>
>> I have seen many email validation regexes was really hoping that this
>> function did what I had expected.  Should I file a bug w/a patch?  Or
>> are there other workarounds that anyone else has used?  Just sending
>> and catching an Error (not InvalidEmailError for the listed reasons
>> though)?
>>
>> links:
>> [1] invalid_email_reason source in google code
>>
>> http://code.google.com/p/googleappengine/source/browse/trunk/python/google/appengine/api/mail.py#115
>> [2] test handler and response source
>> http://gist.github.com/359138
>>
>> --
>> 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.
>>
>
>
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> http://googleappengine.blogspot.com | http://twitter.com/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-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.
>

-- 
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] Prerelease: New Appengine Bulkloader

2010-04-09 Thread Matthew Blain
I’d like to announce a wider prerelease of the new App Engine
Bulkloader configuration format. This new format extends the existing
bulkloader with a new format with several advantages:

  * Semi-Automatic configuration generation: The SDK can generate a
bulkloader configuration based on your existing data.
  * Supports more data formats. CSV support has been extended to files
with headers, basic XML support has been added, and it is simpler to
use alternate text encodings in the files. Additional and custom data
connectors are now easier to create.
  * Easier to use -- the new syntax is more declarative and
descriptive than the old one. Developers who use languages other than
Python no longer need to write code in the Python language, although
the Python SDK is still required to run the tool.

To try out the new bulkloader, please visit http://bulkloadersample.appspot.com/
. Preliminary documentation is available on the README on that site
along with a version of the 1.3.2 Python SDK containing the new
bulkloader.

You can send feedback to the group or directly to me.

--Matthew Blain
Google App Engine Team
matthew.blain+bulkloa...@google.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-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.



Re: [google-appengine] google.appengine.api.mail.InvalidEmailError and invalid_email_reason

2010-04-09 Thread Ikai L (Google)
Hi Dave,

Yes, please file an issue in our issue tracker:

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

On Wed, Apr 7, 2010 at 10:18 AM, Dave  wrote:

> Hi-
>
> I was writing a request handler that sent an email address and was
> very surprised when my unit tests failed due to is_email_valid
> returning unexpected false positives.  Upon further investigation of
> the sdk source[1], turns out that invalid_email_reason is doing a very
> very basic string validation and not actually checking any valid email
> address guidelines.
>
> I created a list of very basic email address problems that I had
> expected to get caught[2], and it looks like the live version of gae
> is doing the same thing.
>
> I have seen many email validation regexes was really hoping that this
> function did what I had expected.  Should I file a bug w/a patch?  Or
> are there other workarounds that anyone else has used?  Just sending
> and catching an Error (not InvalidEmailError for the listed reasons
> though)?
>
> links:
> [1] invalid_email_reason source in google code
>
> http://code.google.com/p/googleappengine/source/browse/trunk/python/google/appengine/api/mail.py#115
> [2] test handler and response source
> http://gist.github.com/359138
>
> --
> 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.
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
http://googleappengine.blogspot.com | http://twitter.com/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-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.



Re: [google-appengine] Re: Accessing Amazon SimpleDB from Google App Engine

2010-04-09 Thread Ikai L (Google)
The reason this code isn't working is because it's build on top of Apache
Commons HttpClient. You'll need to use URL and URLConnection to make your
REST calls instead.

This is definitely possible, as people have created a Python library for
doing this:

http://code.google.com/p/appengine-simpledb/source/browse/#svn/trunk

You're using Java. I haven't seen anything in my searches for examples
making SimpleDB calls in Java (probably because developers just use App
Engine's datastore for persistence). You'll likely have to roll your own
client against the REST spec:

http://docs.amazonwebservices.com/AmazonSimpleDB/latest/DeveloperGuide/index.html?MakingRESTRequests.html

On Fri, Apr 9, 2010 at 2:41 PM, deuce4  wrote:

> I tried with this
>//below gives error: java.lang.NoClassDefFoundError: org/apache/
> commons/httpclient/HttpMethod
>
> //AmazonSimpleDB sdb = new AmazonSimpleDBClient(new
> PropertiesCredentials(
> //
> ClockServlet.class.getResourceAsStream("AwsCredentials.properties")));
> //
> //
> System.out.println("===");
> //System.out.println("Getting Started with Amazon SimpleDB");
> //
> System.out.println("===\n");
> //
> //
> //// Create a domain
> //String myDomain = "MyStore";
> //System.out.println("Creating domain called " + myDomain
> + ".\n");
> //sdb.createDomain(new CreateDomainRequest(myDomain));
> //
> //// List domains
> //System.out.println("Listing all domains in your account:
> \n");
> //for (String domainName :
> sdb.listDomains().getDomainNames()) {
> //System.out.println("  " + domainName);
> //}
> //System.out.println();
>
> I don't have the URL fetch code attempt anymore--mostly I have the
> fundamental question of how to create a custom connection object like
> the sdb above into a Google App Engine URL Fetch connection object.
>
> I'm a novice with Google App Engine
>
> Any specific help would be super appreciated in connecting a Amazon
> SImpleDB to a Java Servlet in Google App Engine.
>
> thanks
>
> On Apr 10, 7:10 am, deuce4  wrote:
> > On Apr 9, 3:23 pm, deuce4  wrote:
> >
> > > Is there any elegant way to access data stored in Amazon's Simple DB
> > > from a Google
>  application?
> >
> > > I tried using URLfetch, but failed.  Any ideas?
> >
> > I suppose I am new at this, and wasn't able to get the libraries
> > working.  Any chance of seeing an outline of the process from someone
> > who is knowledgable in accessing outside data?
>
> --
> 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.
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
http://googleappengine.blogspot.com | http://twitter.com/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-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: Error while downloading data

2010-04-09 Thread Matthew Blain
This may be http://code.google.com/p/googleappengine/issues/detail?id=3027
-- you can use an older version of the SDK or edit the line to remove
the extra parentheses.


On Apr 9, 6:37 am, vivpuri  wrote:
> Tried from windows box too(above out is from Mac), and even there i
> got the same error.

-- 
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: Accessing Amazon SimpleDB from Google App Engine

2010-04-09 Thread deuce4
I tried with this
//below gives error: java.lang.NoClassDefFoundError: org/apache/
commons/httpclient/HttpMethod

//AmazonSimpleDB sdb = new AmazonSimpleDBClient(new
PropertiesCredentials(
//
ClockServlet.class.getResourceAsStream("AwsCredentials.properties")));
//
//
System.out.println("===");
//System.out.println("Getting Started with Amazon SimpleDB");
//
System.out.println("===\n");
//
//
//// Create a domain
//String myDomain = "MyStore";
//System.out.println("Creating domain called " + myDomain
+ ".\n");
//sdb.createDomain(new CreateDomainRequest(myDomain));
//
//// List domains
//System.out.println("Listing all domains in your account:
\n");
//for (String domainName :
sdb.listDomains().getDomainNames()) {
//System.out.println("  " + domainName);
//}
//System.out.println();

I don't have the URL fetch code attempt anymore--mostly I have the
fundamental question of how to create a custom connection object like
the sdb above into a Google App Engine URL Fetch connection object.

I'm a novice with Google App Engine

Any specific help would be super appreciated in connecting a Amazon
SImpleDB to a Java Servlet in Google App Engine.

thanks

On Apr 10, 7:10 am, deuce4  wrote:
> On Apr 9, 3:23 pm, deuce4  wrote:
>
> > Is there any elegant way to access data stored in Amazon's Simple DB
> > from a Google
 application?
>
> > I tried using URLfetch, but failed.  Any ideas?
>
> I suppose I am new at this, and wasn't able to get the libraries
> working.  Any chance of seeing an outline of the process from someone
> who is knowledgable in accessing outside data?

-- 
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: Accessing Amazon SimpleDB from Google App Engine

2010-04-09 Thread deuce4


On Apr 9, 3:23 pm, deuce4  wrote:
> Is there any elegant way to access data stored in Amazon's Simple DB
> from a Google Appspot application?
>
> I tried using URLfetch, but failed.  Any ideas?

I suppose I am new at this, and wasn't able to get the libraries
working.  Any chance of seeing an outline of the process from someone
who is knowledgable in accessing outside data?

-- 
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] View this page "Google App Engine Open Source Projects"

2010-04-09 Thread Jason (Google)
Added InstantShout

Click on 
http://groups.google.com/group/google-appengine/web/google-app-engine-open-source-projects
- or copy & paste it into your browser's address bar if that doesn't
work.

-- 
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: Task Queue implementation details

2010-04-09 Thread dhruvbird
Thanks Nick :-)

-Dhruv.


On Apr 9, 2:26 pm, "Nick Johnson (Google)" 
wrote:
> Hi,
>

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



Re: [google-appengine] Re: Counting query results > 1000

2010-04-09 Thread Patrick Twohig
I can't use a cursor, it has to happen in one request.  I tried using a
sharded counter to provide an estimation of ranking, but that has proven
unsuccessful.

On Thu, Apr 8, 2010 at 11:55 PM, Tim Hoffman  wrote:

> Hi
>
> You will need to use a cursor combined with a keys_only query (for
> efficiency) and keep
> resubmitting the cursor until you get all the results.
>
> If you plan to do this in appengine process rather than via the
> remote_api you will probably need to use a chain of tasks
> to achieve the result if you have a lot of entities.
>
> In python it looks  something like the following (I don't do any work
> with java on app engine)
>
> def count(query):
>   i = 0
>   while True:
>  result = query.fetch(1000)
>  i = i + len(result)
>  if len(result) < 1000:
>  break
>  cursor = query.cursor()
>  query.with_cursor(cursor)
>   return i
>
> myquery = mymodels.MyModel.all(keys_only=True)
>
> x = count(myquery)
>
> Hope this helps
>
> Rgds
>
> T
>
>
> On Apr 9, 7:36 am, Patrick Twohig  wrote:
> > I'm trying to figure out a way to count entities matching a certain
> > criteria.  I was thinking of doing a key-only query and using
> > PreparedQuery.countEntities() (Java).  However, when I do that, it always
> > returns a value no higher than 1000.  Is there a way to get an accurate
> > count of all entities matching a query without having to do something
> > like
> >
> > int count = datastore.prepare( query.setKeysOnly()
> > ).asList(FetchOptions.Builder.limit(Integer.MAX_VALUE)).size() ?
> >
> > Thanks,
> > Patrick.
> >
> > --
> > Patrick H. Twohig.
> >
> > Namazu Studios
> > P.O. Box 34161
> > San Diego, CA 92163-4161
> >
> > --
> > 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.
>
>


-- 
Patrick H. Twohig.

Namazu Studios
P.O. Box 34161
San Diego, CA 92163-4161

-- 
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: Downloading Primary Keys with appcfg.py

2010-04-09 Thread Benjamin
 i did find this posting
http://groups.google.com/group/google-appengine-java/browse_thread/thread/4282ec1ecf8b9171/da12ef2ba4f2f172?lnk=gst&q=bulkloader+dump+and+restore#da12ef2ba4f2f172

but i still get the error above. I'm wondering if the solution above
only works for the key type and not Long keys.

-- 
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] Downloading Primary Keys with appcfg.py

2010-04-09 Thread Benjamin
I'm downloading data from my production data store into a CSV using
appcfg.py and the remote_API  everything works great but i can't seem
to download the identity column. All of my persisteny properties come
down just fine. The property marked with :

@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
public Long id;

isn't accessible.  I'm assuming i just don't know how to create the
model correctly since i'm new to python.  I'm getting a
MissingPropertyError: ID message

I'm thinking it's somthing simple regarding how i'm setting the id
= ..   in both my exporter and model
Here is my model:

class NimbitsUser(db.Model):
id = db.IntegerProperty()   < wrong eh?
email = db.StringProperty()
user = db.StringProperty()
userkey = db.StringProperty()
dateCreated = db.DateProperty()

and my exporter:

class UserExporter(bulkloader.Exporter):
def __init__(self):
bulkloader.Exporter.__init__(self, 'NimbitsUser',
 [('email', str, None),
  ('user', str, None),
  ('userkey', str, None),
  ('dateCreated', str, None),
   ('id', int, None)
 ])

exporters = [UserExporter]

-- 
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: Email from address

2010-04-09 Thread prgmratlarge
I understand. And I began creating all the addresses as developers,
until I hit an error. It seems there's a maximum of 15 developers per
app. So there goes that idea...

On Apr 9, 3:48 am, "Wesley C (Google)"  wrote:
> unfortunately at this point, we do not allow arbitrary email addresses
> as senders unless they are developers or administrators of the app.
>
> a few other people have cited that they would like this feature, and
> if you would as well, please go "star" the issue and perhaps add your
> own comment:
>
> http://code.google.com/p/googleappengine/issues/detail?id=2766
>
> -- wesley
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> "Core Python Programming", Prentice Hall, (c)2007,2001
> "Python Fundamentals", Prentice Hall, (c)2009
>   http://corepython.com
>
> wesley.j.chun :: wesc+api-at-google-dot-com
> developer relations :: google app engine
> @app_engine :: googleappengine.blogspot.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-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: Being Charged for The API call mail.Send() took too long to respond and was cancelled errors

2010-04-09 Thread prgmratlarge
+1 the same happens to me all the time

On Apr 9, 11:08 am, Ray Malone  wrote:
> I know there is an issue open on sending mail and the API erroring
> out.  My code will try again and logs if the email was sent to prevent
> dups, but, I'm being charged for emails that are not being sent.  The
> email counter still increments even though this error occurs.
>
> The API call mail.Send() took too long to respond and was cancelled.

-- 
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] View this page "Google App Engine Open Source Projects"

2010-04-09 Thread Jason (Google)
Added gae-sessions

Click on 
http://groups.google.com/group/google-appengine/web/google-app-engine-open-source-projects
- or copy & paste it into your browser's address bar if that doesn't
work.

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



Re: [google-appengine] Mark as default a deployed version programmatically

2010-04-09 Thread Nick Johnson (Google)
Hi Pedro,

Currently the only way to switch default versions is via the admin console.
If you're using a continuous build process, the easiest way to make sure
it's the default version is to use the same version name consistently.

-Nick Johnson

On Fri, Apr 9, 2010 at 1:19 PM, Pedro Fraca  wrote:

> Hi All:
>
> I'm using a Continuous Deployment system to deploy my app on Google's
> servers, I need to know if is possible to mark as default a version
> using appcfg.py parameters or using another way.
>
>
> Cheers,
>
> Pedro.
>
> --
> 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.
>
>


-- 
Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. ::
Registered in Dublin, Ireland, Registration Number: 368047
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

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



Re: [google-appengine] Email from address

2010-04-09 Thread Jaroslav Záruba
"The sender must be either the address of a registered developer for the
application, or the address of the user for the current request signed in
with a Google Account."
mea culpa :)

2010/4/9 Jaroslav Záruba 

> Am I wrong thinking this should be mentioned here? :)
> http://code.google.com/appengine/docs/java/mail/usingjavamail.html
>
>  Best
> regards
>   J. Záruba
>
>
> On Fri, Apr 9, 2010 at 9:48 AM, Wesley C (Google) 
> 
> > wrote:
>
>> unfortunately at this point, we do not allow arbitrary email addresses
>> as senders unless they are developers or administrators of the app.
>>
>> a few other people have cited that they would like this feature, and
>> if you would as well, please go "star" the issue and perhaps add your
>> own comment:
>>
>> http://code.google.com/p/googleappengine/issues/detail?id=2766
>>
>> -- wesley
>> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>> "Core Python Programming", Prentice Hall, (c)2007,2001
>> "Python Fundamentals", Prentice Hall, (c)2009
>>http://corepython.com
>>
>> wesley.j.chun :: wesc+api-at-google-dot-com
>> developer relations :: google app engine
>> @app_engine :: googleappengine.blogspot.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-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.
>>
>>
>

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



Re: [google-appengine] Email from address

2010-04-09 Thread Jaroslav Záruba
Am I wrong thinking this should be mentioned here? :)
http://code.google.com/appengine/docs/java/mail/usingjavamail.html

Best
regards
  J. Záruba

On Fri, Apr 9, 2010 at 9:48 AM, Wesley C (Google)

> wrote:

> unfortunately at this point, we do not allow arbitrary email addresses
> as senders unless they are developers or administrators of the app.
>
> a few other people have cited that they would like this feature, and
> if you would as well, please go "star" the issue and perhaps add your
> own comment:
>
> http://code.google.com/p/googleappengine/issues/detail?id=2766
>
> -- wesley
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> "Core Python Programming", Prentice Hall, (c)2007,2001
> "Python Fundamentals", Prentice Hall, (c)2009
>http://corepython.com
>
> wesley.j.chun :: wesc+api-at-google-dot-com
> developer relations :: google app engine
> @app_engine :: googleappengine.blogspot.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-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.
>
>

-- 
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] Mark as default a deployed version programmatically

2010-04-09 Thread Pedro Fraca
Hi All:

I'm using a Continuous Deployment system to deploy my app on Google's
servers, I need to know if is possible to mark as default a version
using appcfg.py parameters or using another way.


Cheers,

Pedro.

-- 
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] Multiple domain registration and user registration

2010-04-09 Thread Sharath
* I am creating a business portal on google appengine, what are the
steps? I do have the same site on PHP.
* How can my users register with mysite ? Also login using openid,
further creating an ID using the same ID.
* How do we create a sub-domain for some of my users -

.mydomain.com  (free and ads)- and then use googleapps for
their business
mydomain.com  (payment)  - and then use googleapps to manage
their business.

I am totally new to googleapps and would appreciate any guidance and
mentoring

-- 
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] Being Charged for The API call mail.Send() took too long to respond and was cancelled errors

2010-04-09 Thread Ray Malone
I know there is an issue open on sending mail and the API erroring
out.  My code will try again and logs if the email was sent to prevent
dups, but, I'm being charged for emails that are not being sent.  The
email counter still increments even though this error occurs.

The API call mail.Send() took too long to respond and was cancelled.

-- 
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: Task Queue implementation details

2010-04-09 Thread peterk
A question re. 'stable storage'...

...is it possible that might be opened up in a more general way in the
future? Even with limitations on how much an app can store at a time
or whatnot?

Memcache is nice, but the unpredictability of it makes it a no-no for
me in some cases.

But if there was some kind of temporary stable storage that was as
fast to write to as it is to add a task to the queue, that could be a
nice layer in between datastore and memcache.

Sorry to go off topic...

On Apr 9, 10:26 am, "Nick Johnson (Google)" 
wrote:
> Hi,
>
> On Fri, Apr 9, 2010 at 5:16 AM, dhruvbird  wrote:
> > Hello folks at Google,
> >  I was wondering if you would be open to describing certain internals
> > of the Task Queue so that we can get a better understanding of it, and
> > potentially use the learnings to replicate it for use as a Task/
> > Message Queue. We have a requirement for a task queue, so I was
> > wondering if there is a chance to understand what appengine is using.
>
> You might want to look into using a ready-made solution such 
> ashttp://www.rabbitmq.com/
>
> >  I have a few specific questions too. I'll just go ahead and write
> > them out, so if it is okay, then you could reply to those.
>
> > 1. Are the tasks persisted on stable storage when they are added to
> > the queue?
>
> Yes.
>
> > 2. Is there special handling for named tasks and tasks with an ETA?
>
> All tasks have an ETA - the default is just 'now'. Named tasks have special
> handling in that they result in tombstone records to prevent duplicate names
> being enqueued.
>
> > 3. Can you disclose numbers as to how well a task queue instance on a
> > single machine performs (with reliable message delivery and no ETA/
> > named tasks)?
>
> Sorry, no.
>
> > 4. What is the typical load on a single task queue server instance?
>
> We can't disclose that, either.
>
> > 5. What is used to communicate between different task queue instances
> > and between the appengine API and the task queue (protobuf, etc..??)
>
> Google uses Protocol Buffers extensively.
>
> > 6. Are you planning to open source the task queue server any time soon/
>
> No. Our task queue depends on a large amount of internal infrastructure, and
> open sourcing it would require open sourcing all of that, too.
>
> -Nick Johnson
>
>
>
>
>
> > Do you use a message queue that is available off the shelf and build
> > stuff around it?
>
> > Regards,
> > -Dhruv.
>
> > --
> > 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 > e...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.
>
> --
> Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. ::
> Registered in Dublin, Ireland, Registration Number: 368047
> Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
> 368047

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



Re: [google-appengine] How to do Reversed Ajax Call crossing user on GAE

2010-04-09 Thread Ulrich

g3 insight wrote:

We are facing one problem when implementing reversed ajax call
crossing users on GAE
It is a game center, many client users join the game and play
together.
We supposed that there is a singleton Game Center instance, and all
user is saved in user list within this Game Center instance.
Then, if UserA did one request in game, and want to ask whether UserB
accept it, then system(server side) will do one reverse ajax call to
UserB to ask his response when processing UserA's request.
Also, when there is any data update on user or game, we will also use
reverse ajax call to push those new data to each client user in
UserList which is saved in Game Center instance.
Now, we understood the Game Center class will be initialized in
different server (JVM), so Game Center is not singleton instance on
GAE.
Also we found that it is very difficult to do reverse ajax call
crossing users on GAE, because we can not do reverse ajax call to
client UserY who is on serverB, when system is processing request of
UserX on serverA.
Any idea for handling this type Reverse Ajax Solution (Comet) on GAE?

  
Afaik, push notifications / Comet is currently not supported and using 
things like long polling is not possible, too. But you could possibly 
use the XMPP service 
() for push 
notifications.


-Ulrich

--
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: Singleton class become double instance in GAE

2010-04-09 Thread Tim Hoffman
Hi

Probably your only possibility will be for the Game Center instance to
hold the current state in memcache, so that all
instances of the Game Center see the same state.  Load the state on
each request. Remember each running  instance is single threaded.

Your main problem will be to stop multiple requests overwriting state
in memcache hopefully your data structure may not mean this happens.
Also I would consider a task that is constantly copying the memcache
state to the datastore so that if
the memcache data is lost you can recreate it from a recent copy in
the datastore.

T

On Apr 9, 9:45 pm, g3 insight  wrote:
> Yes, it is causing problem for our solution.
> Let me explain our solution on GAE.
>
> It is a game center, many client users join the game and play
> together.
> We supposed that there is a singleton Game Center instance, and all
> user is saved in user list within this Game Center instance.
> Then, if UserA did one request in game, and want to ask whether UserB
> accept it, then system(server side) will do one reverse ajax call to
> UserB to ask his response when processing UserA's request.
> Also, when there is any data update on user or game, we will also use
> reverse ajax call to push those new data to each client user in
> UserList which is saved in Game Center instance.
>
> Now, we understood the Game Center class will be initialized in each
> server (JVM), so Game Center is not singleton instance on GAE.
> Also we found that it is becoming difficult to do reverse ajax call
> crossing users on GAE, because we can not do reverse ajax call to
> client UserY who is on serverB, when system is processing request of
> UserX on serverA.
>
> Any idea for handling this type Reverse Ajax Solution (Comet) on GAE?
>
> On 4月6日, 午後12:44, "Mr. Rajiv Bakulesh Shah"  wrote:
>
>
>
> > Hi there.
>
> > Are you sure that you have a problem?  Remember that Google App Engine is a 
> > cloud, and that your app could be running on multiple independent 
> > individual nodes.  Each node could initialize one single instance of 
> > yoursingleton, as expected.
>
> > Good luck,
> > Raj
>
> > On Apr 5, 2010, at 9:49 AM, g3 insight wrote:
>
> > > We are meeting one strange thing when we do testing on GAE.
> > > The problem is that we implemented a GameCenter class as below.
> > > It is asingletonclass in system, but we found it always initialize
> > > multiple instances based on logs.
> > > Please check the source code and info log below.
> > > Could you explain why it happens and how to resolve it?
>
> > > Source Code:
> > > public class GameCenter implements IGameCenter {
> > >   static final long serialVersionUID = -1L;
> > >   private static GameCenter instance = null;
> > >   private long instanceNumber = -1;
> > >   private GameCenter() {
> > >       instanceNumber = System.currentTimeMillis();
> > >       initRoom();
> > >       hostClientProxy = new HostClientProxyImpl();
> > >       chatCenter = new ChatCenter(null);
> > >       log.info("GameCenter constructor---   :  " + instanceNumber);
> > >       dataVersion = 0;
> > >   }
> > >   public static synchronized GameCenter getInstance() {
> > >       if(instance == null){
> > >           instance =new GameCenter();
> > >       }
> > >       return instance;
> > >   }
> > > }
>
> > > Info Log in GAE:
> > > 04-05 07:29AM 47.910 GameCenter : GameCenter constructor--- :
> > > 1270477784633
> > > 04-05 07:27AM 48.654 GameCenter : GameCenter constructor--- :
> > > 1270477664172
>
> > > --
> > > 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] How to do Reversed Ajax Call crossing user on GAE

2010-04-09 Thread g3 insight
We are facing one problem when implementing reversed ajax call
crossing users on GAE
It is a game center, many client users join the game and play
together.
We supposed that there is a singleton Game Center instance, and all
user is saved in user list within this Game Center instance.
Then, if UserA did one request in game, and want to ask whether UserB
accept it, then system(server side) will do one reverse ajax call to
UserB to ask his response when processing UserA's request.
Also, when there is any data update on user or game, we will also use
reverse ajax call to push those new data to each client user in
UserList which is saved in Game Center instance.
Now, we understood the Game Center class will be initialized in
different server (JVM), so Game Center is not singleton instance on
GAE.
Also we found that it is very difficult to do reverse ajax call
crossing users on GAE, because we can not do reverse ajax call to
client UserY who is on serverB, when system is processing request of
UserX on serverA.
Any idea for handling this type Reverse Ajax Solution (Comet) on GAE?

-- 
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: Singleton class become double instance in GAE

2010-04-09 Thread g3 insight
Yes, it is causing problem for our solution.
Let me explain our solution on GAE.

It is a game center, many client users join the game and play
together.
We supposed that there is a singleton Game Center instance, and all
user is saved in user list within this Game Center instance.
Then, if UserA did one request in game, and want to ask whether UserB
accept it, then system(server side) will do one reverse ajax call to
UserB to ask his response when processing UserA's request.
Also, when there is any data update on user or game, we will also use
reverse ajax call to push those new data to each client user in
UserList which is saved in Game Center instance.

Now, we understood the Game Center class will be initialized in each
server (JVM), so Game Center is not singleton instance on GAE.
Also we found that it is becoming difficult to do reverse ajax call
crossing users on GAE, because we can not do reverse ajax call to
client UserY who is on serverB, when system is processing request of
UserX on serverA.

Any idea for handling this type Reverse Ajax Solution (Comet) on GAE?





On 4月6日, 午後12:44, "Mr. Rajiv Bakulesh Shah"  wrote:
> Hi there.
>
> Are you sure that you have a problem?  Remember that Google App Engine is a 
> cloud, and that your app could be running on multiple independent individual 
> nodes.  Each node could initialize one single instance of yoursingleton, as 
> expected.
>
> Good luck,
> Raj
>
> On Apr 5, 2010, at 9:49 AM, g3 insight wrote:
>
>
>
> > We are meeting one strange thing when we do testing on GAE.
> > The problem is that we implemented a GameCenter class as below.
> > It is asingletonclass in system, but we found it always initialize
> > multiple instances based on logs.
> > Please check the source code and info log below.
> > Could you explain why it happens and how to resolve it?
>
> > Source Code:
> > public class GameCenter implements IGameCenter {
> >   static final long serialVersionUID = -1L;
> >   private static GameCenter instance = null;
> >   private long instanceNumber = -1;
> >   private GameCenter() {
> >       instanceNumber = System.currentTimeMillis();
> >       initRoom();
> >       hostClientProxy = new HostClientProxyImpl();
> >       chatCenter = new ChatCenter(null);
> >       log.info("GameCenter constructor---   :  " + instanceNumber);
> >       dataVersion = 0;
> >   }
> >   public static synchronized GameCenter getInstance() {
> >       if(instance == null){
> >           instance =new GameCenter();
> >       }
> >       return instance;
> >   }
> > }
>
> > Info Log in GAE:
> > 04-05 07:29AM 47.910 GameCenter : GameCenter constructor--- :
> > 1270477784633
> > 04-05 07:27AM 48.654 GameCenter : GameCenter constructor--- :
> > 1270477664172
>
> > --
> > 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] Re: Error while downloading data

2010-04-09 Thread vivpuri
Tried from windows box too(above out is from Mac), and even there i
got the same error.

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



Re: [google-appengine] Am I allowed to do this?

2010-04-09 Thread Nick Johnson (Google)
Hi Spines,

This is a legitimate use of multiple apps - though I would strongly suggest
simply structurally separating your code inside a single app - it'll be much
simpler, faster, and probably cleaner.

-Nick Johnson

On Thu, Apr 8, 2010 at 7:03 PM, Spines  wrote:

> I want to use 2 apps for my website.  The first app would run the
> website, and second app would be a bunch of random functions exposed
> by an api.
>
> The reason I don't want to lump it into one app is because I want to
> cleanly separate the code of the random functions and the code that
> runs the website.  Also I plan to very rarely update the first app,
> but update the random functions relatively frequently, and I don't
> want to have to worry about breaking something in the website when I
> update the functions.
>
> The first app's software is like a wiki website, and the second app
> provides widgets that can be embedded in the wiki pages.
>
> I'm not doing this to try to get more free quota, I'm completely fine
> with paying.
>
> Is this allowed?  Since two apps are basically being used for just one
> website?
>
> --
> 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.
>
>


-- 
Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. ::
Registered in Dublin, Ireland, Registration Number: 368047
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

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



Re: [google-appengine] Backup datastore and use on localhost

2010-04-09 Thread Nick Johnson (Google)
Hi,

After downloading it, you need to load it into your local dev_appserver
before you can use it.

-Nick Johnson

On Thu, Apr 8, 2010 at 7:43 PM, vivpuri  wrote:

> Can someone please let me what is the process to backup the live
> datastore, and use the resulting file on localhost. I have tried using
> this option -
> http://code.google.com/appengine/docs/python/tools/uploadingdata.html#Downloading_Data_from_App_Engine
> - to download data. Data does get downloaded, but when i try to use it
> on localhost nothing shows up in the local admin console. Does the
> backup filename needs to have a particular extension?
>
> --
> 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.
>
>


-- 
Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. ::
Registered in Dublin, Ireland, Registration Number: 368047
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

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



Re: [google-appengine] Recieving emails with invalid email addresses

2010-04-09 Thread Nick Johnson (Google)
Hi Tom,

This is the standard format for sender names and email addresses.

-Nick Johnson

On Fri, Apr 9, 2010 at 12:32 AM, Tom  wrote:

> Hello!
> I have written a temporary email app using Google App Engine, in
> python. My app works fine, but I have one complaint. While testing my
> deployed app I sent an email to one of the addresses, from my gmail.
> It was processed fine, but it appears the sender address string is in
> the following format: "sharpblade ".
>
> I am not worried about this because my production app will handle
> automatically sent emails I imagine, which proberbly won't have this
> issue. I also have a feeling it is a gmail specific problem.
>
> Is there any workaround to get the "real" senders address?
>
> ~Tom
>
> --
> 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.
>
>


-- 
Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. ::
Registered in Dublin, Ireland, Registration Number: 368047
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

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



Re: [google-appengine] Task Queue implementation details

2010-04-09 Thread Nick Johnson (Google)
Hi,

On Fri, Apr 9, 2010 at 5:16 AM, dhruvbird  wrote:

> Hello folks at Google,
>  I was wondering if you would be open to describing certain internals
> of the Task Queue so that we can get a better understanding of it, and
> potentially use the learnings to replicate it for use as a Task/
> Message Queue. We have a requirement for a task queue, so I was
> wondering if there is a chance to understand what appengine is using.
>

You might want to look into using a ready-made solution such as
http://www.rabbitmq.com/


>  I have a few specific questions too. I'll just go ahead and write
> them out, so if it is okay, then you could reply to those.
>
> 1. Are the tasks persisted on stable storage when they are added to
> the queue?
>

Yes.


> 2. Is there special handling for named tasks and tasks with an ETA?
>

All tasks have an ETA - the default is just 'now'. Named tasks have special
handling in that they result in tombstone records to prevent duplicate names
being enqueued.


> 3. Can you disclose numbers as to how well a task queue instance on a
> single machine performs (with reliable message delivery and no ETA/
> named tasks)?
>

Sorry, no.


> 4. What is the typical load on a single task queue server instance?
>

We can't disclose that, either.


> 5. What is used to communicate between different task queue instances
> and between the appengine API and the task queue (protobuf, etc..??)
>

Google uses Protocol Buffers extensively.


> 6. Are you planning to open source the task queue server any time soon/
>

No. Our task queue depends on a large amount of internal infrastructure, and
open sourcing it would require open sourcing all of that, too.

-Nick Johnson


> Do you use a message queue that is available off the shelf and build
> stuff around it?
>
> Regards,
> -Dhruv.
>
> --
> 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.
>
>


-- 
Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. ::
Registered in Dublin, Ireland, Registration Number: 368047
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

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



Re: [google-appengine] Accessing Amazon SimpleDB from Google App Engine

2010-04-09 Thread Nick Johnson (Google)
Hi,

You should be able to access it as you would anywhere else. Can you be more
specific about what failed?

-Nick Johnson

On Fri, Apr 9, 2010 at 6:23 AM, deuce4  wrote:

> Is there any elegant way to access data stored in Amazon's Simple DB
> from a Google Appspot application?
>
> I tried using URLfetch, but failed.  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-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.
>
>


-- 
Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. ::
Registered in Dublin, Ireland, Registration Number: 368047
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

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



Re: [google-appengine] Email from address

2010-04-09 Thread Wesley C (Google)
unfortunately at this point, we do not allow arbitrary email addresses
as senders unless they are developers or administrators of the app.

a few other people have cited that they would like this feature, and
if you would as well, please go "star" the issue and perhaps add your
own comment:

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

-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
"Python Fundamentals", Prentice Hall, (c)2009
   http://corepython.com

wesley.j.chun :: wesc+api-at-google-dot-com
developer relations :: google app engine
@app_engine :: googleappengine.blogspot.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-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: sending ics attachment in meeting notification

2010-04-09 Thread Ron
sorry, I didn't make it clear, I'm sending as an email attachment

message = mail.EmailMessage()
...
message.attachments = [('meeting.ics', cal.as_string())]
message.send()

cal is an icalender.Calendar object


On Apr 8, 1:43 am, "Ikai L (Google)"  wrote:
> You should be able to set the content type header on a response. Can you
> post your code if you're doing this and it isn't happening?
>
>
>
>
>
> On Wed, Apr 7, 2010 at 3:10 AM, Ron  wrote:
> > when sending an ics attachment with meeting information
>
> > the header that comes through for the part is like this
> > Content-Type: text/calendar
> > MIME-Version: 1.0
> > Content-Disposition: attachment; filename="meeting.ics"
>
> > but it needs to be like this
> > Content-Type: text/calendar; charset=utf-8; method=REQUEST;
> > name=meeting.ics
>
> > so that the email client can pick it up as a meeting request
>
> > is it possible to do this?
>
> > Thanks
> > Ron
>
> > --
> > 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 > e...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App 
> Enginehttp://googleappengine.blogspot.com|http://twitter.com/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-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.