[google-appengine] Re: why there are Datastore API and Memcache usage for a blank django site?

2009-08-07 Thread Holger

additional note:

If you calculate resources you have to differ between 'one-time-use'
and 'huge-traffic-use'.

At first request Google makes your code available in cache. The
resources needed for this transfer (unpacking of zip etc) are needed
only a single time as long as there are other requests coming in.

That's the reason the first request may take 4 seconds answer time
whereas following requests are answered much faster.

If you want to test what resourced are needed in case of huge traffic
you have to make sure that your requests are repeated faster then 2-3
seconds. Otherwise the cached data might already have been deleted in
the meantime.

So using a professional framework like Django slows down only the
first request for 1-2 seconds. The following requests are answered as
fast as without Django.

--~--~-~--~~~---~--~~
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: so now there is SearchableModel, officially?

2009-08-07 Thread baytiger

I was browsing around the documentation for the very same aim. What
does this even mean? allowing multiple properties? It's been allowing
multiple properties for a while to be indexed?

The problem is that the cap on the indexing makes it impossible to use
searchablemodel for entities that have more than around 300-400 words.
(Which is most articles you'd ever want to make searchable).





On Aug 7, 3:59 am, Kuber  wrote:
> In the python sdk 1.2.4 release note, i see this: "Enhancement 
> toSearchableModelallowing multiple properties to be indexed."
> Yes, we've heard about it for several months. But have google ever
> mentioned this thing in any official documentation before it's
> "enhanced"?
> Looking forward to google's documentation on 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: Insertion Performance

2009-08-07 Thread Martyn

After some more detailed logging I have isolated the problem and it is
worrying.

It so happens that I make several memcache requests, I had assumed
that since I was making
calls to the Datastore API, any delay would be due to that, but it
turns out that around
half the delay is due to the memcache calls.

Specifically, I am seeing ~13ms latency for each memcache (single get/
put/increment), and since I am
making typically 5 calls, I am seeing ~65ms delay due to this.

This is in contradiction with AppEngine System status that indicates
memcache latency ~4-5ms.

Of course, what is meant by latency vs call elapsed is a little
ambiguous, but the figures for Datastore latency
tie up with what I see in my request logs.

In other words I time the api call/return and I see around the same
figures for Datastore latency but almost three times the memcache
latency.

Is this a problem specific to the Java API perhaps?

If I batch three memcache puts using putAll, I see 13ms for the three
rather than 39ms.

On 30 July, 19:47, Martyn  wrote:
> I am using the low-level Java Datastore interface and writing a
> "transactional" store - where each entity stores a number of data
> updates in a single Blob.
> Each transaction requires two updates, one to a Header entity, and one
> to the new transaction data entity.  Keys for each are created
> explicitly.  This has a number of advantages, specifically with regard
> to guaranteed transaction isolation and caching potential.
> However, I am disappointed with the insertion performance.  I use the
> DatastoreService put(Iterable) to invoke the two updates witha single
> API call (or rather one update and one insert), but I am seeing >120ms
> request times in the logs. The log trace confirms the delay is largely
> down to the datastore put.
>
> Am I missing something, or is this really the best I can hope for?
> Apart from the blob data, which is normally ~1k, a couple of debug
> properties (Date and VM hash) are included but set using
> setUnindexedProperty.
>
> Any help/advice appreciated.
--~--~-~--~~~---~--~~
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: Only 10 records can fetch via remote_api ?

2009-08-07 Thread Tom Wu
Sorry to bother you guys.

This is my problem. Wrong definition.

Best Regards
Tom Wu


2009/8/7 Holger 

>
> They are fetched in packets of up to ten.
>
> If you want to download all entities of a kind use the following code:
>
> http://code.google.com/appengine/docs/python/tools/uploadingdata.html#Creating_Exporter_Classes
>
> If you do remote individually and need more than ten entities
> downloaded to your machine fetch several packets of them.
>
> >
>

--~--~-~--~~~---~--~~
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: Storing Data using Google App Engine

2009-08-07 Thread Martyn

Hi Anna,

Objects are saved as Entities in the AppEngine Datastore.

Datastore uses Google BigTable to store data.  BigTable is Googles
distributed database.  It is not a conventional relational database.

You can find plenty of info on the web, just search for "datastore
BigTable"

hope that helps

- Martyn

On 6 Aug, 16:44, Anna  wrote:
> Hello,
>
> http://code.google.com/appengine/docs/java/datastore/overview.html
>
> After reviewing this document I am a little confused on how google
> stores data.
>
> In the example is the Employee object saved in the form of a flat
> file?
>
> If anyone could explain I would appreciate it.
>
> Thanks
> Anna
--~--~-~--~~~---~--~~
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: Problem deploying demo application

2009-08-07 Thread Nick Johnson (Google)

Hi,

In order to see what error you are getting, you need to log in to the
admin console, and click on 'Logs'.

-Nick Johnson

On Wed, Aug 5, 2009 at 11:00 AM, squalo1...@nuoto.it wrote:
>
> Hi everyone.
> I'm new to Google App Engine and I'm using Eclipse 3.4 with the plugin
> downloaded from Google.
> When I create a new Web-Application project Eclipse set the
> appropriate directories, libraries etc...
> Running locally the web-app I can see the "Hello App Engine" page with
> the available servlets and, when i follow the link to the servlet,
> appears the mighty "Hello, world". So locally there are no errors.
> Unfortunately, when I deploy the application, the link to the servlet,
> simply doesn't work: it gives me a 500 error response (Server Error),
> without any information about "what error happened".
> Can anyone help me please?
> P.S.: Sorry if my English isn't completely correct
>
> >
>



-- 
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] Datastore CPU Time included in general CPU Time

2009-08-07 Thread mbac...@googlemail.com

Hello everyone,

it seems like the used Datastore CPU Time is also counted against the
general CPU Time quota. At least that is my guess after watching my
CPU Time usage grow while using the remote API for datastore gets and
puts. Current example quota:

CPU Time: 19%, 1.20 of 6.50 CPU hours
Datastore CPU Time: 2%, 1.18 of 62.11 CPU hours

Is this correct? If that is the case, is there any reason for this? I
don't see why I have 62.11 Datastore CPU hours available, while I can
only use ~6.50 of them. And even that is not correct, because every
query requires a minimum amount of general CPU time.

Thanks in advance.

Best regards,
Marc
--~--~-~--~~~---~--~~
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: Datastore CPU Time included in general CPU Time

2009-08-07 Thread Nick Johnson (Google)

Hi mback2k,

That's correct. The reason for this is that only CPU time is a billed
quota - datastore CPU time is a non-billed quota, and there to provide
transparency, as well as to prevent accidental abuse.

By enabling billing, you can, of course, use a lot more than 6.5 CPU
hours a day.

-Nick Johnson

On Fri, Aug 7, 2009 at 9:41 AM,
mbac...@googlemail.com wrote:
>
> Hello everyone,
>
> it seems like the used Datastore CPU Time is also counted against the
> general CPU Time quota. At least that is my guess after watching my
> CPU Time usage grow while using the remote API for datastore gets and
> puts. Current example quota:
>
> CPU Time: 19%, 1.20 of 6.50 CPU hours
> Datastore CPU Time: 2%, 1.18 of 62.11 CPU hours
>
> Is this correct? If that is the case, is there any reason for this? I
> don't see why I have 62.11 Datastore CPU hours available, while I can
> only use ~6.50 of them. And even that is not correct, because every
> query requires a minimum amount of general CPU time.
>
> Thanks in advance.
>
> Best regards,
> Marc
> >
>



-- 
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: Google Wave new line character

2009-08-07 Thread Jason Salas

Thanks Andi!

On 8/7/09, Andi Albrecht  wrote:
>
> On Fri, Aug 7, 2009 at 6:54 AM, Jason
> Salas wrote:
>>
>> hi andi,
>>
>> the num and num2 arguments for the add() method are the input taken by
>> the bot, if the user types in "?add num num2".  (i ripped the command
>> syntax  used by the grauni...@appspot.com bot.  actually...now that
>> you mention it, the only thing i could think of that would make it
>> respond in that fashion would be that the user clicks the 'Done'
>> button on the blip or presses Shift-Enter to submit the blip, which i
>> guess would create a newline.  is there a way to suppress that end of
>> line?
>
> I don't know where the newline comes from. Maybe it's there for some
> good reason.
> However, I think the best thing you can do is to validate user input
> (always an good idea :)), e.g.
>
> def add(num1, num2):
>   if not isinstance(num1, basestring) or not isinstance(num2, basestring):
> # actually that shouldn't happen as you receive strings, anyway
> respond with an error
>   num1 = num1.strip()
>   num2 = num2.strip()  # this would remove any whitespace chars incl. new
> lines
>   if not num1.isdigit() or not num2.isdigit():
> # both arguments must only contain digits, otherwise the user
> input is invalid
>   res = int(num1)+int(num2)
>   ...
>
> Andi
>
>>
>>
>>
>> On Fri, Aug 7, 2009 at 2:19 PM, Andi
>> Albrecht wrote:
>>>
>>> On Fri, Aug 7, 2009 at 12:46 AM, Jason
>>> Salas wrote:

 now that i'm in the office and have my code handy, here's the routine
 i'm using:

 def add(num,num2):
        sum = str(int(num) + int(num2))
        return 'The sum of %s and %s is: %s' % (num,num2,sum)
>>>
>>> Given this code example, I think the only answer is that num2 is the
>>> string "6\n".Where does num2 come from?
>>>

 the output, as printed within a new blip and within my GAE logs, is:

 "The sum of 5 and 6\n is: 11"

 thoughts?

 On Fri, Aug 7, 2009 at 6:39 AM, Jason
 Salas wrote:
> I have this problem, too...I'm working in Python and doing string
> interpolation and the outputted content that gets printed in a new
> blip for some reason has a newline. I can't figure out why.
>
> On 8/6/09, jamz2010  wrote:
>>
>> Hi all,
>>
>> I am having some issues with reading the last blip from my wavelet in
>> my robot. I have used the line
>>
>> String sLastBlip = e.getBlip().getDocument().getText();
>>
>> to get me the last blip that was added to the wave but it appears to
>> be automatically adding a new line to the end of the wave. I have
>> tried using
>>
>> sLastBlip = sLastBlip.replaceAll("\n", "n").replaceAll("\r", "r");
>>
>> to remove all the new line characters from the string but this doesn't
>> appear to work. I can use
>>
>> sLastBlip = sLastBlip.substring(0, sLastBlip.length()-1);
>>
>> to remove the last character from the string but if the user puts
>> there own new line in it wont work. Does anyone know what character
>> google wave uses for a new line?
>>
>> Thanks
>>
>> James
>>
>> >>
>>
>

 >

>>>
>>> >
>>>
>>
>> >
>>
>
> >
>

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



[google-appengine] Re: Datastore CPU Time included in general CPU Time

2009-08-07 Thread mbac...@googlemail.com

Thanks Nick, I guess I will have to do the data conversion on multiple
days then.

On Aug 7, 10:47 am, "Nick Johnson (Google)" 
wrote:
> Hi mback2k,
>
> That's correct. The reason for this is that only CPU time is a billed
> quota - datastore CPU time is a non-billed quota, and there to provide
> transparency, as well as to prevent accidental abuse.
>
> By enabling billing, you can, of course, use a lot more than 6.5 CPU
> hours a day.
>
> -Nick Johnson
>
> On Fri, Aug 7, 2009 at 9:41 AM,
>
>
>
>
>
> mbac...@googlemail.com wrote:
>
> > Hello everyone,
>
> > it seems like the used Datastore CPU Time is also counted against the
> > general CPU Time quota. At least that is my guess after watching my
> > CPU Time usage grow while using the remote API for datastore gets and
> > puts. Current example quota:
>
> > CPU Time: 19%, 1.20 of 6.50 CPU hours
> > Datastore CPU Time: 2%, 1.18 of 62.11 CPU hours
>
> > Is this correct? If that is the case, is there any reason for this? I
> > don't see why I have 62.11 Datastore CPU hours available, while I can
> > only use ~6.50 of them. And even that is not correct, because every
> > query requires a minimum amount of general CPU time.
>
> > Thanks in advance.
>
> > Best regards,
> > Marc
>
> --
> 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: My benchmarks say query is faster than get

2009-08-07 Thread Nick Johnson (Google)

2009/8/7 Oliver Zheng :
>
> On Aug 6, 5:27 pm, Alkis Evlogimenos ('Αλκης Ευλογημένος)
>  wrote:
>> You are doing multiple db.get calls while you do a single Query.fetch.
>
> But isn't the point of db.get for multiples a direct real-time (i.e.
> constant time) grab? Where as a query searches through an index first,
> and then does the same grab. If that is true, the time required by a
> query is that multi-get plus index searching. Unless searching through
> the index actually gives you time back, something is not right here.

Queries fetch the entities in parallel - as do bulk gets. Thus, the
time taken for the entity-fetching part of a query or a bulk get is
proportional to the time required to fetch the slowest entity (plus
some overhead transmitting the response back), not linear with the
number of entities.

-Nick Johnson

>
> Oliver
> >
>



-- 
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: Style question: Should urls have a slash at the end

2009-08-07 Thread Nick Johnson (Google)

Hi Emilien,

Largely a matter of taste, but my suggestion would be this: If your
URL has other URLs 'under' it (eg, /users/ and /users/john), it should
end with a slash; if not, it should not. This helps with relative
URLs, too - a relative URL from /users to /users/john has to include
the whole fragment ('users/john'), while a relative URL from /users/
only has to include 'john'.

In any case, sending redirects to the 'correct' version is a good
idea, particularly in the direction of adding trailing slashes.

-Nick Johnson

On Thu, Aug 6, 2009 at 11:58 PM, Emilien Klein wrote:
>
> Hi,
>
> This is a question purely about style. Should the urls of our App
> Engine applications end with a slash or not?
>
> In one of my first applications, I had set up a 301 redirect if you
> queried the page without a trailing slash to the page with the slash.
> Example:
> http://reply.appspot.com/about -> http://reply.appspot.com/about/
>
> Do you think that urls should have a slash at the end or not? And
> whatever's your opinion on this subject, do you think that we should
> redirect the other option to the "real" url (with slash to no slash,
> or no slash to with slash)???
>
> There seems to be different point of view on this subject, so I'd like
> to hear yours!
>
> Cheers,
> Emilien Klein.
> >
>



-- 
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: My benchmarks say query is faster than get

2009-08-07 Thread 'Αλκης Ευλογημένος
The problem is that you are *not* doing a multi-get for the get 20 case. You
do 20 gets sequentially.

2009/8/7 Oliver Zheng 

>
> On Aug 6, 5:27 pm, Alkis Evlogimenos ('Αλκης Ευλογημένος)
>  wrote:
> > You are doing multiple db.get calls while you do a single Query.fetch.
>
> But isn't the point of db.get for multiples a direct real-time (i.e.
> constant time) grab? Where as a query searches through an index first,
> and then does the same grab. If that is true, the time required by a
> query is that multi-get plus index searching. Unless searching through
> the index actually gives you time back, something is not right here.
>
> Oliver
> >
>


-- 

Alkis

--~--~-~--~~~---~--~~
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: Problem deploying demo application

2009-08-07 Thread Roberto Eguaglia

Hi Nick,

that's my log in the admin console (it's not in the "Error" logs, but
in the "Request")
#

   1.
  08-07 02:34AM 03.175 /demo 500 103ms 0cpu_ms 0kb Mozilla/5.0
(X11; U; Linux x86_64; it; rv:1.9.0.12) Gecko/2009071200 SUSE/
3.0.12-0.1.2 Firefox/3.0.12,gzip(gfe)
  See details

  82.58.115.90 - - [07/Aug/2009:02:34:03 -0700] "GET /demo HTTP/
1.1" 500 0 "http://hello-demo.appspot.com/"; "Mozilla/5.0 (X11; U;
Linux x86_64; it; rv:1.9.0.12) Gecko/2009071200 SUSE/3.0.12-0.1.2
Firefox/3.0.12,gzip(gfe)"

I can't explain myself why the application generated by default
doesn't work (it works only in the develpoment environment...)

On 7 Ago, 10:39, "Nick Johnson (Google)" 
wrote:
> Hi,
>
> In order to see what error you are getting, you need to log in to the
> admin console, and click on 'Logs'.
>
> -Nick Johnson
>
>
>
> On Wed, Aug 5, 2009 at 11:00 AM, squalo1...@nuoto.it 
> wrote:
>
> > Hi everyone.
> > I'm new to Google App Engine and I'm using Eclipse 3.4 with the plugin
> > downloaded from Google.
> > When I create a new Web-Application project Eclipse set the
> > appropriate directories, libraries etc...
> > Running locally the web-app I can see the "Hello App Engine" page with
> > the available servlets and, when i follow the link to the servlet,
> > appears the mighty "Hello, world". So locally there are no errors.
> > Unfortunately, when I deploy the application, the link to the servlet,
> > simply doesn't work: it gives me a 500 error response (Server Error),
> > without any information about "what error happened".
> > Can anyone help me please?
> > P.S.: Sorry if my English isn't completely correct
>
> --
> 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: Error uploading app to GAE

2009-08-07 Thread ego008
try following
appcfg.py [options] rollback 

2009/8/6 Kashif 

>
> Here is the error I am receiving - any ideas what's wrong and possible
> fixes?
>
> G:\Program Files (x86)\Google\google_appengine>appcfg.py update \gae
> \HoityToity\
> Scanning files on local disk.
> Initiating update.
> 2009-08-05 18:11:40,773 ERROR appcfg.py:1272 An unexpected error
> occurred. Aborting.
> Traceback (most recent call last):
>  File "G:\Program Files (x86)\Google\google_appengine\google\appengine
> \tools\appcfg.py", line 1250, in DoUpload
>missing_files = self.Begin()
>  File "G:\Program Files (x86)\Google\google_appengine\google\appengine
> \tools\appcfg.py", line 1045, in Begin
>version=self.version, payload=self.config.ToYAML())
>  File "G:\Program Files (x86)\Google\google_appengine\google\appengine
> \tools\appengine_rpc.py", line 344, in Send
>f = self.opener.open(req)
>  File "G:\Python25\lib\urllib2.py", line 381, in open
>response = self._open(req, data)
>  File "G:\Python25\lib\urllib2.py", line 399, in _open
>'_open', req)
>  File "G:\Python25\lib\urllib2.py", line 360, in _call_chain
>result = func(*args)
>  File "G:\Python25\lib\urllib2.py", line 1107, in http_open
>return self.do_open(httplib.HTTPConnection, req)
>  File "G:\Python25\lib\urllib2.py", line 1082, in do_open
>raise URLError(err)
> URLError: 
> Traceback (most recent call last):
>  File "G:\Program Files (x86)\Google\google_appengine\appcfg.py",
> line 60, in 
>run_file(__file__, globals())
>  File "G:\Program Files (x86)\Google\google_appengine\appcfg.py",
> line 57, in run_file
>execfile(script_path, globals_)
>  File "G:\Program Files (x86)\Google\google_appengine\google\appengine
> \tools\appcfg.py", line 2303, in 
>main(sys.argv)
>  File "G:\Program Files (x86)\Google\google_appengine\google\appengine
> \tools\appcfg.py", line 2294, in main
>result = AppCfgApp(argv).Run()
>  File "G:\Program Files (x86)\Google\google_appengine\google\appengine
> \tools\appcfg.py", line 1458, in Run
>self.action(self)
>  File "G:\Program Files (x86)\Google\google_appengine\google\appengine
> \tools\appcfg.py", line 2182, in __call__
>return method()
>  File "G:\Program Files (x86)\Google\google_appengine\google\appengine
> \tools\appcfg.py", line 1730, in Update
>lambda path: open(os.path.join(basepath, path), 'rb'))
>  File "G:\Program Files (x86)\Google\google_appengine\google\appengine
> \tools\appcfg.py", line 1250, in DoUpload
>missing_files = self.Begin()
>  File "G:\Program Files (x86)\Google\google_appengine\google\appengine
> \tools\appcfg.py", line 1045, in Begin
>version=self.version, payload=self.config.ToYAML())
>  File "G:\Program Files (x86)\Google\google_appengine\google\appengine
> \tools\appengine_rpc.py", line 344, in Send
>f = self.opener.open(req)
>  File "G:\Python25\lib\urllib2.py", line 381, in open
>response = self._open(req, data)
>  File "G:\Python25\lib\urllib2.py", line 399, in _open
>'_open', req)
>  File "G:\Python25\lib\urllib2.py", line 360, in _call_chain
>result = func(*args)
>  File "G:\Python25\lib\urllib2.py", line 1107, in http_open
>return self.do_open(httplib.HTTPConnection, req)
>  File "G:\Python25\lib\urllib2.py", line 1082, in do_open
>raise URLError(err)
> urllib2.URLError: 
>
> >
>


-- 
gae-django-cms (GD-cms)
a multi-user CMS running on GAE 一个基于GAE多用户的CMS
sample http://cmsdome.appspot.com/
projects http://code.google.com/p/gae-django-cms/

--~--~-~--~~~---~--~~
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: Problem deploying demo application

2009-08-07 Thread Nick Johnson (Google)

Hi Roberto,

What is your App ID?

Did you make any modifications at all from the default app?

-Nick Johnson

On Fri, Aug 7, 2009 at 10:39 AM, Roberto Eguaglia wrote:
>
> Hi Nick,
>
> that's my log in the admin console (it's not in the "Error" logs, but
> in the "Request")
> #
>
>   1.
>      08-07 02:34AM 03.175 /demo 500 103ms 0cpu_ms 0kb Mozilla/5.0
> (X11; U; Linux x86_64; it; rv:1.9.0.12) Gecko/2009071200 SUSE/
> 3.0.12-0.1.2 Firefox/3.0.12,gzip(gfe)
>      See details
>
>      82.58.115.90 - - [07/Aug/2009:02:34:03 -0700] "GET /demo HTTP/
> 1.1" 500 0 "http://hello-demo.appspot.com/"; "Mozilla/5.0 (X11; U;
> Linux x86_64; it; rv:1.9.0.12) Gecko/2009071200 SUSE/3.0.12-0.1.2
> Firefox/3.0.12,gzip(gfe)"
>
> I can't explain myself why the application generated by default
> doesn't work (it works only in the develpoment environment...)
>
> On 7 Ago, 10:39, "Nick Johnson (Google)" 
> wrote:
>> Hi,
>>
>> In order to see what error you are getting, you need to log in to the
>> admin console, and click on 'Logs'.
>>
>> -Nick Johnson
>>
>>
>>
>> On Wed, Aug 5, 2009 at 11:00 AM, squalo1...@nuoto.it 
>> wrote:
>>
>> > Hi everyone.
>> > I'm new to Google App Engine and I'm using Eclipse 3.4 with the plugin
>> > downloaded from Google.
>> > When I create a new Web-Application project Eclipse set the
>> > appropriate directories, libraries etc...
>> > Running locally the web-app I can see the "Hello App Engine" page with
>> > the available servlets and, when i follow the link to the servlet,
>> > appears the mighty "Hello, world". So locally there are no errors.
>> > Unfortunately, when I deploy the application, the link to the servlet,
>> > simply doesn't work: it gives me a 500 error response (Server Error),
>> > without any information about "what error happened".
>> > Can anyone help me please?
>> > P.S.: Sorry if my English isn't completely correct
>>
>> --
>> 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: does URL fetch support partial content request through "Accept-Ranges" and "Accept-Length" headers?

2009-08-07 Thread Nick Johnson (Google)

Hi GhostHeaven,

URLFetch will transmit those headers to the site you're requesting
from, yes. It's up to the site to support partial requests, however.

-Nick Johnson

On Thu, Aug 6, 2009 at 3:55 AM, GhostHeaven wrote:
>
> 1MB is really not enough in some cases.
>
> >
>



-- 
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: IP ranges

2009-08-07 Thread Nick Johnson (Google)

Hi Danny,

Are you asking about the IP ranges that the URLFetch service makes
requests from? If so, you can look at Google's SPF records to
determine what ranges outgoing requests will be made from - for
example by doing "dig -t TXT _netblocks.google.com".

If you're asking about the IPs App Engine accepts requests on, that's
not published anywhere. You can, of course, see what IPs you get
locally by doing a DNS lookup on ghs.google.com.

-Nick Johnson

On Wed, Aug 5, 2009 at 10:42 PM, Danny wrote:
>
> I am wondering if GAE allows their IP ranges to be listed publicly. If
> so, what are they? If not actual ranges then perhaps how many IP
> addresses, broken down into classes (A/B/C)? Thanks!
>
> Danny
>
> >
>



-- 
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: Issues in Create an aplication

2009-08-07 Thread Nick Johnson (Google)

Hi Koba,

If you created the applications with your Apps domain, you need to log
in at http://appengine.google.com/a/aquaventure.com.br to see them.

-Nick Johnson

On Thu, Aug 6, 2009 at 1:08 PM, Koba wrote:
>
> Nick
>
> I created some aplications in the site, but it doesn´t apear anywhere.
> Could you please help me ?
>
> Thanks
> Koba
>
> >
>



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

2009-08-07 Thread Jaap Taal
Every time dev_appserver starts up it checks for a new version of the
SDK Checking
for updates to the SDK

Yesterday the SDK was updated to 1.2.4
There's no --version flag to either dev_appserver or appcfg and the VERSION
file still mentions 1.2.3

I think dev_appserver should output SDK version if checking is enabled, this
way you can see whether update is working...

Jaap

--~--~-~--~~~---~--~~
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: Problem deploying demo application

2009-08-07 Thread Roberto Eguaglia

Hi Nick,

My App ID is hello-demo; I've created it after my other application
gave me the same error.

I didn't make any modifications from the default app.
If you want I can post the code

On 7 Ago, 11:43, "Nick Johnson (Google)" 
wrote:
> Hi Roberto,
>
> What is your App ID?
>
> Did you make any modifications at all from the default app?
>
> -Nick Johnson
>
>
>
> On Fri, Aug 7, 2009 at 10:39 AM, Roberto Eguaglia wrote:
>
> > Hi Nick,
>
> > that's my log in the admin console (it's not in the "Error" logs, but
> > in the "Request")
> > #
>
> >   1.
> >      08-07 02:34AM 03.175 /demo 500 103ms 0cpu_ms 0kb Mozilla/5.0
> > (X11; U; Linux x86_64; it; rv:1.9.0.12) Gecko/2009071200 SUSE/
> > 3.0.12-0.1.2 Firefox/3.0.12,gzip(gfe)
> >      See details
>
> >      82.58.115.90 - - [07/Aug/2009:02:34:03 -0700] "GET /demo HTTP/
> > 1.1" 500 0 "http://hello-demo.appspot.com/"; "Mozilla/5.0 (X11; U;
> > Linux x86_64; it; rv:1.9.0.12) Gecko/2009071200 SUSE/3.0.12-0.1.2
> > Firefox/3.0.12,gzip(gfe)"
>
> > I can't explain myself why the application generated by default
> > doesn't work (it works only in the develpoment environment...)
>
> > On 7 Ago, 10:39, "Nick Johnson (Google)" 
> > wrote:
> >> Hi,
>
> >> In order to see what error you are getting, you need to log in to the
> >> admin console, and click on 'Logs'.
>
> >> -Nick Johnson
>
> >> On Wed, Aug 5, 2009 at 11:00 AM, squalo1...@nuoto.it 
> >> wrote:
>
> >> > Hi everyone.
> >> > I'm new to Google App Engine and I'm using Eclipse 3.4 with the plugin
> >> > downloaded from Google.
> >> > When I create a new Web-Application project Eclipse set the
> >> > appropriate directories, libraries etc...
> >> > Running locally the web-app I can see the "Hello App Engine" page with
> >> > the available servlets and, when i follow the link to the servlet,
> >> > appears the mighty "Hello, world". So locally there are no errors.
> >> > Unfortunately, when I deploy the application, the link to the servlet,
> >> > simply doesn't work: it gives me a 500 error response (Server Error),
> >> > without any information about "what error happened".
> >> > Can anyone help me please?
> >> > P.S.: Sorry if my English isn't completely correct
>
> >> --
> >> 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: Basic Event Tracking Question

2009-08-07 Thread Nick Johnson (Google)

Hi Markitecht,

It sounds like your best option is to have a single Interaction entity
for each unique string. You can use the key name to ensure uniqueness.
Then, to record a new interaction, in a transaction fetch the existing
one (if any), increment the count, and store it.

If you expect some interactions to be very popular (more than a few
updates a second), you should probably look into sharded counters.

-Nick Johnson

On Wed, Aug 5, 2009 at 7:15 PM, Markitecht wrote:
>
> I am writing a dirt-simple tracking API.
>
> For the sake of explanation, i will over-simplify my question even
> further.
>
> I have an endpoint that accepts one item of string metadata, and saves
> a new instance of an Interaction object.
>
> (the interaction object also saves the user and the date created)
>
> How do i query Interaction to return the most popular
> 'interactions' (using those string metadata values), with a count for
> each?
>
> This seems *so* simple, but i just can't figure out how to do it on
> AE.
>
> Thanks,
> Christopher
>
> >
>



-- 
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: List of logged in users

2009-08-07 Thread Nick Johnson (Google)

Hi Sam,

HTTP has no concept of sessions or browser windows - so there's no way
to know if a browser window is still open short of using AJAX and
regularly pinging the application, as you suggest.

-Nick Johnson

On Thu, Aug 6, 2009 at 6:51 PM, Sam wrote:
>
> Hello,
>
> Is it possible to get a list of users currently logged into a specific
> application?  This would assume that (a) the user has been
> authenticated to the application and (b) that the application window/
> tab is still open.
>
> I'm writing an app where one user invites a second user to play a card
> game and I'm having trouble finding a way to identify the universe of
> potential invitees.  I thought about having all of the users
> constantly update the memcache to notify the application that they
> were still logged in and then filter out all the users who hadn't
> pinged in the past 5000 ms, but I was wondering if there was a better
> way.
>
> Thanks,
>
> Sam
>
> >
>



-- 
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: Model entities no more accessible

2009-08-07 Thread Nick Johnson (Google)

Hi Dominique,

There was a brief issue yesterday where building new indexes would
cause issues with existing ones. This has since been fixed, and all
indexes should now be correct. Can you verify you are no longer
experiencing this problem?

-Nick Johnson

On Thu, Aug 6, 2009 at 5:44 AM, dom.eav wrote:
>
> Hello Group,
>
> I spent a few days porting a web app to GAE using app-engine-patch
> 1.0.2.3 (last stable version) and the last SDK. Everything went fine,
> and the app went live yesterday.
>
> Today, as I was doing some template modifications, I noticed the
> following things:
>
> - one of my queries on a model was giving an empty list (which was
> weird)
> - the django admin listing for this model also gives an empty list
> (panic)
> - my data seems to be fine when accessed through GAE datastore
> explorer (???)
>
> What's going on? My data is here but it looks like it is unreachable
> from the app-engine-patch wrapper. I quickly restored my app code to
> the point it was *before* the problem occured, I even tried to run
> vacuum_indexes but it did not help. Other entities seem perfectly fine
> and are accessible everywhere.
>
> Any ideas about what occurred and how I could fix things?
>
> Dominique
>
> >
>



-- 
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: No Adsense mobile support for Google App Engine?

2009-08-07 Thread Nick Johnson (Google)

Hi Neo42,

What sort of support are you looking for? Adsense for mobile should
work on any site served to mobile browsers - the fact that it's hosted
on App Engine should be immaterial.

-Nick Johnson

On Thu, Aug 6, 2009 at 6:06 PM, Neo42 wrote:
>
> Does Adsense for mobile not support google app engine?  It looks like,
> for the worst case, I could just use standard google ads.
>
> Thanks,
> Neo42
> >
>



-- 
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: Model entities no more accessible

2009-08-07 Thread Dominique Eav

Hi Nick,

Thanks for your answer. It looks like the problem was the one you're 
describing: I ended up deleting all the indexes, and everything was back 
on tracks afterwards.

Dominique

Nick Johnson (Google) a écrit :
> Hi Dominique,
> 
> There was a brief issue yesterday where building new indexes would
> cause issues with existing ones. This has since been fixed, and all
> indexes should now be correct. Can you verify you are no longer
> experiencing this problem?
> 
> -Nick Johnson
> 
> On Thu, Aug 6, 2009 at 5:44 AM, dom.eav wrote:
>> Hello Group,
>>
>> I spent a few days porting a web app to GAE using app-engine-patch
>> 1.0.2.3 (last stable version) and the last SDK. Everything went fine,
>> and the app went live yesterday.
>>
>> Today, as I was doing some template modifications, I noticed the
>> following things:
>>
>> - one of my queries on a model was giving an empty list (which was
>> weird)
>> - the django admin listing for this model also gives an empty list
>> (panic)
>> - my data seems to be fine when accessed through GAE datastore
>> explorer (???)
>>
>> What's going on? My data is here but it looks like it is unreachable
>> from the app-engine-patch wrapper. I quickly restored my app code to
>> the point it was *before* the problem occured, I even tried to run
>> vacuum_indexes but it did not help. Other entities seem perfectly fine
>> and are accessible everywhere.
>>
>> Any ideas about what occurred and how I could fix things?
>>
>> Dominique
>>
> 
> 
> 

--~--~-~--~~~---~--~~
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: GQL "IS NOT NULL" and "LIKE" queries

2009-08-07 Thread ssprauer

thank you so much for this guys!
you rock...cant wait to try this tomorrow hehehe

On Aug 6, 10:08 pm, Hrishikesh Bakshi 
wrote:
> Basic MySQL Like functionality using Java
>
> Step 1: Fetch the whole table
>
> Step 2: For each row:
> query= query.toLowerCase();
> temp = dbname.getTablename().toLowercase
>
> if(temp.contains(query)){
> //do stuff...
>
> }
>
> Hope it helps..
>
> On Thu, Aug 6, 2009 at 3:21 PM, Barry Hunter 
> wrote:
>
>
>
>
>
>
>
> > You cant do full 'like' capabilities, but can do basic 'startswith'
> > using the trick mentiond here:
>
> >http://code.google.com/appengine/docs/python/datastore/queriesandinde...
>
> > Also have a look around for the various 'full text' search implementations.
>
> > For 'NOT' you do have != which will probably work with 'None' which is
> > close to a python equivalent of null. This will have to variable
> > subsituation rather than a string constant to put the 'none' there
> > though.
>
> > 2009/8/6 ssprauer :
>
> > > I am looking forward to code some GQL queries that would retrieve data
> > > like SQL "IS NOT NULL" and "LIKE" queries.
>
> > > I would be very grateful to see an example...
>
> > > Cheers,
>
> > > Steve
>
> > --
> > Barry
>
> > -www.nearby.org.uk-www.geograph.org.uk-
>
> --
> Hrishikesh Bakshi
--~--~-~--~~~---~--~~
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: Google Wave new line character

2009-08-07 Thread Jason Salas

that did the trick...but i'm still wondering why only the second
argument would get the "\n".  methinks it has something to do with
being the final character in the string before the blip is submitted.

On Fri, Aug 7, 2009 at 6:48 PM, Jason
Salas wrote:
> Thanks Andi!
>
> On 8/7/09, Andi Albrecht  wrote:
>>
>> On Fri, Aug 7, 2009 at 6:54 AM, Jason
>> Salas wrote:
>>>
>>> hi andi,
>>>
>>> the num and num2 arguments for the add() method are the input taken by
>>> the bot, if the user types in "?add num num2".  (i ripped the command
>>> syntax  used by the grauni...@appspot.com bot.  actually...now that
>>> you mention it, the only thing i could think of that would make it
>>> respond in that fashion would be that the user clicks the 'Done'
>>> button on the blip or presses Shift-Enter to submit the blip, which i
>>> guess would create a newline.  is there a way to suppress that end of
>>> line?
>>
>> I don't know where the newline comes from. Maybe it's there for some
>> good reason.
>> However, I think the best thing you can do is to validate user input
>> (always an good idea :)), e.g.
>>
>> def add(num1, num2):
>>   if not isinstance(num1, basestring) or not isinstance(num2, basestring):
>>     # actually that shouldn't happen as you receive strings, anyway
>> respond with an error
>>   num1 = num1.strip()
>>   num2 = num2.strip()  # this would remove any whitespace chars incl. new
>> lines
>>   if not num1.isdigit() or not num2.isdigit():
>>     # both arguments must only contain digits, otherwise the user
>> input is invalid
>>   res = int(num1)+int(num2)
>>   ...
>>
>> Andi
>>
>>>
>>>
>>>
>>> On Fri, Aug 7, 2009 at 2:19 PM, Andi
>>> Albrecht wrote:

 On Fri, Aug 7, 2009 at 12:46 AM, Jason
 Salas wrote:
>
> now that i'm in the office and have my code handy, here's the routine
> i'm using:
>
> def add(num,num2):
>        sum = str(int(num) + int(num2))
>        return 'The sum of %s and %s is: %s' % (num,num2,sum)

 Given this code example, I think the only answer is that num2 is the
 string "6\n".Where does num2 come from?

>
> the output, as printed within a new blip and within my GAE logs, is:
>
> "The sum of 5 and 6\n is: 11"
>
> thoughts?
>
> On Fri, Aug 7, 2009 at 6:39 AM, Jason
> Salas wrote:
>> I have this problem, too...I'm working in Python and doing string
>> interpolation and the outputted content that gets printed in a new
>> blip for some reason has a newline. I can't figure out why.
>>
>> On 8/6/09, jamz2010  wrote:
>>>
>>> Hi all,
>>>
>>> I am having some issues with reading the last blip from my wavelet in
>>> my robot. I have used the line
>>>
>>> String sLastBlip = e.getBlip().getDocument().getText();
>>>
>>> to get me the last blip that was added to the wave but it appears to
>>> be automatically adding a new line to the end of the wave. I have
>>> tried using
>>>
>>> sLastBlip = sLastBlip.replaceAll("\n", "n").replaceAll("\r", "r");
>>>
>>> to remove all the new line characters from the string but this doesn't
>>> appear to work. I can use
>>>
>>> sLastBlip = sLastBlip.substring(0, sLastBlip.length()-1);
>>>
>>> to remove the last character from the string but if the user puts
>>> there own new line in it wont work. Does anyone know what character
>>> google wave uses for a new line?
>>>
>>> Thanks
>>>
>>> James
>>>
>>> >>
>>>
>>
>
> >
>

 >

>>>
>>> >
>>>
>>
>> >>
>>
>

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



[google-appengine] Twitter4j problem

2009-08-07 Thread Nuno
Does anybody here used twitter4j?

i'm trying to use it on my project to fetch some queries.

In my local app it works very well and fast, but when i upload it to GAE,
the query takes too long and expires.

is there any kind of configuration that i may be missing?


thanks a lot!

Att

Bruno Bilescky

Wants to learn GWT? Read my blog / Quer aprender a programar? leia meu blog

http://tcninja.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-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 new applications

2009-08-07 Thread Tane Piper

Hi there,

I have an existing GAE account, but have been unable to find any help
on the issue in the subject.

When I log in, I can see my older apps there, but when I try create a
new app, it takes me to the SMS confirm page.  I enter my mobile
number and I see "The phone number has been sent too many messages or
has already been used to confirm an account".

Annoyingly I don't have another number I can use to verify this
account.  Is there any way this can be reset at all?

Thanks,
Tane
--~--~-~--~~~---~--~~
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: Can't create new applications

2009-08-07 Thread Nick Johnson (Google)

Hi,

If you are having trouble with SMS verification, or want an additional
account activated, please fill out the following form:

http://appengine.google.com/waitlist/sms_issues

(This is from the following FAQ
http://code.google.com/appengine/kb/sms.html#error )

Once you fill out this form, you should receive access within a day or two.

Happy coding,

Nick Johnson


On Fri, Aug 7, 2009 at 3:26 PM, Tane Piper wrote:
>
> Hi there,
>
> I have an existing GAE account, but have been unable to find any help
> on the issue in the subject.
>
> When I log in, I can see my older apps there, but when I try create a
> new app, it takes me to the SMS confirm page.  I enter my mobile
> number and I see "The phone number has been sent too many messages or
> has already been used to confirm an account".
>
> Annoyingly I don't have another number I can use to verify this
> account.  Is there any way this can be reset at all?
>
> Thanks,
> Tane
> >
>



-- 
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: Can't create new applications

2009-08-07 Thread Tane Piper

Hah!  must have missed that, My search foo must have been off today
(much like my productivity :p)

On Aug 7, 3:32 pm, "Nick Johnson (Google)" 
wrote:
> Hi,
>
> If you are having trouble with SMS verification, or want an additional
> account activated, please fill out the following form:
>
> http://appengine.google.com/waitlist/sms_issues
>
> (This is from the following 
> FAQhttp://code.google.com/appengine/kb/sms.html#error)
>
> Once you fill out this form, you should receive access within a day or two.
>
> Happy coding,
>
> Nick Johnson
>
>
>
> On Fri, Aug 7, 2009 at 3:26 PM, Tane Piper wrote:
>
> > Hi there,
>
> > I have an existing GAE account, but have been unable to find any help
> > on the issue in the subject.
>
> > When I log in, I can see my older apps there, but when I try create a
> > new app, it takes me to the SMS confirm page.  I enter my mobile
> > number and I see "The phone number has been sent too many messages or
> > has already been used to confirm an account".
>
> > Annoyingly I don't have another number I can use to verify this
> > account.  Is there any way this can be reset at all?
>
> > Thanks,
> > Tane
>
> --
> 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: Proposal: __index__ support to make certain datastore/query operations more efficient

2009-08-07 Thread tav

Hey Julian,

> That's an interesting idea, for that particular use case.
>
> If I reformulate the "relation index entities" query as I understand
> it:
> 1. [datastore]Traverse the index and return entity keys
> 2. [app engine]Transform returned keys to retrieve parent entity
> 3. [datastore] Batch get of entities
>
> Your idea:
> 1. [datastore]Traverse the index and to get entity keys
> 3. [datastore] Batch get of entities
>
> So you would save step 2, a roundtrip app engine - datastore, not sure
> that's substantial though.

Nice reformulation! However, my proposal would be just a single step:

1. [datastore] Traverse the index and return entities

The only additional cost should be an additional if/else clause when
*writing* entities -- the datastroe would have to look to see if the
entity has an __index__ property. Quite a minimal cost given the
savings otherwise!

Why should it just be a single step? Because of the way that the
datastore works (at least according to the presentation that Ryan gave
last year):

* http://snarfed.org/space/datastore_talk.html

According to it (slide 21):

* Each row in an index table includes the index data and entity key

With my proposal, when an entity is indexed, the key defined in its
__index__ property will be used in place of its own key when the
indexes are constructed...

Of course these special "related entities" would still be accessible
by using their key names...

Hope that makes sense.

-- 
love, tav

plex:espians/tav | t...@espians.com | +44 (0) 7809 569 369
http://tav.espians.com | http://twitter.com/tav | skype:tavespian

--~--~-~--~~~---~--~~
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: Insertion Performance

2009-08-07 Thread Nick Johnson (Google)

Hi Martyn,

The Java interface to the Memcache API, unfortunately, is noticeably
slower than the Python version. This is the cause of the discrepancies
you're seeing here. As always, using the batch interface to minimize
round trips is a good idea.

Please do file a bug, though - the discrepancy between runtimes is
something we'd like to address.

-Nick Johnson

On Fri, Aug 7, 2009 at 8:58 AM, Martyn wrote:
>
> After some more detailed logging I have isolated the problem and it is
> worrying.
>
> It so happens that I make several memcache requests, I had assumed
> that since I was making
> calls to the Datastore API, any delay would be due to that, but it
> turns out that around
> half the delay is due to the memcache calls.
>
> Specifically, I am seeing ~13ms latency for each memcache (single get/
> put/increment), and since I am
> making typically 5 calls, I am seeing ~65ms delay due to this.
>
> This is in contradiction with AppEngine System status that indicates
> memcache latency ~4-5ms.
>
> Of course, what is meant by latency vs call elapsed is a little
> ambiguous, but the figures for Datastore latency
> tie up with what I see in my request logs.
>
> In other words I time the api call/return and I see around the same
> figures for Datastore latency but almost three times the memcache
> latency.
>
> Is this a problem specific to the Java API perhaps?
>
> If I batch three memcache puts using putAll, I see 13ms for the three
> rather than 39ms.
>
> On 30 July, 19:47, Martyn  wrote:
>> I am using the low-level Java Datastore interface and writing a
>> "transactional" store - where each entity stores a number of data
>> updates in a single Blob.
>> Each transaction requires two updates, one to a Header entity, and one
>> to the new transaction data entity.  Keys for each are created
>> explicitly.  This has a number of advantages, specifically with regard
>> to guaranteed transaction isolation and caching potential.
>> However, I am disappointed with the insertion performance.  I use the
>> DatastoreService put(Iterable) to invoke the two updates witha single
>> API call (or rather one update and one insert), but I am seeing >120ms
>> request times in the logs. The log trace confirms the delay is largely
>> down to the datastore put.
>>
>> Am I missing something, or is this really the best I can hope for?
>> Apart from the blob data, which is normally ~1k, a couple of debug
>> properties (Date and VM hash) are included but set using
>> setUnindexedProperty.
>>
>> Any help/advice appreciated.
> >
>



-- 
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: Your application is exceeding a quota: Datastore Indices Count

2009-08-07 Thread inamorix

Hi GAE Team,

My app got a message "Your application is exceeding a quota: Datastore
Indices Count" after vacuum_indexes, but my app has only 14 indexes.

Please help if this is the same issue.
My app ID is "shareappscreen"

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] Transactions

2009-08-07 Thread Cornel

Hello. I'm using app engine to write a business application. I've read
that during a transaction one can modify only entities within the same
entity group. How would one approach the following scenario? :

Consider the "Account object" with the "Owner" and "Credit" fields.

If i want to make a credit transfer between accounts A and B
(A.credit--; B.credit++), it must be done in a single transaction.
That can only happen if A and B are in the same entity group (from
what i understand)

Since a credit transfer can be done between any two random accounts, i
must put them all in the same entity group; but this way, two
unrelated transfers (A to B and C to D let's say) cannot be done at
the same time anymore. Which again is not desired (i understand that
having a single big entity group is bad practice)

I think this is a pretty general problem (not related only to this
scenario), so how is it solved?

--~--~-~--~~~---~--~~
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] Query string parameter encoding

2009-08-07 Thread Baba Ganoush

Hi all,

please pardon my ignorance (I am new to Python and App Engine). I am
encountering an issue with a query string parameter I am trying to
decrypt.

The following code
val = self.request.get('ciph')
>>> t\x88h{\xbe\xc2\x86\...@\xf5\xf8\xaek"\xbf@
len(val)
>>> 43
obj = AES.new(conf['secretKey'], AES.MODE_ECB)
return obj.decrypt(val)
>>> ValueError: Input strings must be a multiple of 16 in length

When I run this same code in an interactive shell the length returned
is 16.
Can someone please poor some fool a bone on this one?

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] Memcache - how much space?

2009-08-07 Thread taylorbarstow

Hi all,

I assume that each application has an upper limit on how much cache
space it is allowed to occupy.  Does anyone know if this is correct?
And if so, what is the limit on cache space?

I'm sorry if this is covered elsewhere -- I have looked extensively
but haven't found anything.

Many thanks,
Taylor

--~--~-~--~~~---~--~~
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] I can't manage app engine at http://appengine.google.com.

2009-08-07 Thread acco...@hongtao.name

Hi,

I registered some apps succesfully, but I can't manage then at
http://appengine.google.com.

Any suggestion?

Thank you 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] url fetch not responding --DeadlineExceededException

2009-08-07 Thread Manav

Caused by: com.google.apphosting.api.DeadlineExceededException: This
request (9760f7a8e71decf4) started at 2009/08/07 02:47:20.944 UTC and
was still executing at 2009/08/07 02:47:50.325 UTC.
at sun.misc.Unsafe.park(Native Method)
at java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source)
at
java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos
(Unknown Source)
at
java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos
(Unknown Source)
at java.util.concurrent.CountDownLatch.await(Unknown Source)
at com.google.net.rpc.util.RpcWaiter.waitForRpcsToFinish
(RpcWaiter.java:96)
at com.google.apphosting.runtime.ApiProxyImpl.doSyncCall
(ApiProxyImpl.java:89)
at com.google.apphosting.runtime.ApiProxyImpl.access$000
(ApiProxyImpl.java:36)
at com.google.apphosting.runtime.ApiProxyImpl$1.run(ApiProxyImpl.java:
60)
at com.google.apphosting.runtime.ApiProxyImpl$1.run(ApiProxyImpl.java:
56)

--~--~-~--~~~---~--~~
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: About the latest release (1.2.4)

2009-08-07 Thread nebulabug

Can somebody explain more no

# Composite indexes no longer required for certain types of key
queries.
# Enhancement to SearchableModel allowing multiple properties to be
indexed.

On Aug 7, 6:49 am, johntray  wrote:
> I'm with you. 1.2.4 is a big disappointment.
>
> On Aug 6, 9:38 pm, Emilien Klein  wrote:
>
> > Is it just me or does it seem that this new release adds
> > functionalities that don't seem to be on the list of that many people?
>
> > The 3 issues that are linked to 
> > fromhttp://code.google.com/p/googleappengine/wiki/SdkReleaseNotes
> > for release 1.2.4 were starred by respectively 2,1, and a whopping 5
> > persons! Making the assumption that these are all different people,
> > that means that 8 persons have directly asked for these
> > improvements...
>
> > I'm not criticizing the release, just questioning the priorities...
> > It's nice to somewhat improve the queries and the Remote API, but
> > aren't there other features that seem to be much more urgent? What
> > happened to the important points of the Roadmap to be done around June
> > 2009, if I remember 
> > well?http://code.google.com/intl/fr/appengine/docs/roadmap.html
> > Quite a lot of the things on this page seem to be much more urgent
> > than what's just been released...
>
> > Or maybe am I just asking too much???

--~--~-~--~~~---~--~~
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] URl Fetch giving issues---

2009-08-07 Thread Manav


Caused by: com.google.apphosting.api.DeadlineExceededException: This
request (50641b626b6b5c2f) started at 2009/08/06 20:52:02.955 UTC and
was still executing at 2009/08/06 20:52:32.086 UTC.
at sun.misc.Unsafe.park(Native Method)
at java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source)
at
java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos
(Unknown Source)
at
java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos
(Unknown Source)
at java.util.concurrent.CountDownLatch.await(Unknown Source)
at com.google.net.rpc.util.RpcWaiter.waitForRpcsToFinish
(RpcWaiter.java:96)
at com.google.apphosting.runtime.ApiProxyImpl.doSyncCall
(ApiProxyImpl.java:89)
at com.google.apphosting.runtime.ApiProxyImpl.access$000
(ApiProxyImpl.java:36)
at com.google.apphosting.runtime.ApiProxyImpl$1.run(ApiProxyImpl.java:
60)
at com.google.apphosting.runtime.ApiProxyImpl$1.run(ApiProxyImpl.java:
56)
at java.security.AccessController.doPrivileged(Native Method)
at com.google.apphosting.runtime.ApiProxyImpl.makeSyncCall
(ApiProxyImpl.java:56)
at com.google.apphosting.runtime.ApiProxyImpl.makeSyncCall
(ApiProxyImpl.java:36)
at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:79)
at com.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch
(URLFetchServiceImpl.java:28)
at
com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler
$Connection.fetchResponse(URLFetchServiceStreamHandler.java:389)
at
com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler
$Connection.getInputStream(URLFetchServiceStreamHandler.java:289)
at
com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler
$Connection.getResponseCode(URLFetchSe

--~--~-~--~~~---~--~~
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] but do not have access to this account.

2009-08-07 Thread acco...@hongtao.name

Hello,
I have already signed up for an App Engine account, but do not have
access to this account.
Aaron~

--~--~-~--~~~---~--~~
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] Why I can not login to my account?

2009-08-07 Thread acco...@hongtao.name

Why I can not login to my account?

--~--~-~--~~~---~--~~
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: Transactions

2009-08-07 Thread Corneliu Paul Lupulet
Hello

I don't think my message got on the group:

On Thu, Aug 6, 2009 at 10:30 PM, Cornel  wrote:

> Hello. I'm using app engine to write a business application. I've read
> that during a transaction one can modify only entities within the same
> entity group. How would one approach the following scenario? :
>
> Consider the "Account object" with the "Owner" and "Credit" fields.
>
> If i want to make a credit transfer between accounts A and B
> (A.credit--; B.credit++), it must be done in a single transaction.
> That can only happen if A and B are in the same entity group (from
> what i understand)
>
> Since a credit transfer can be done between any two random accounts, i
> must put them all in the same entity group; but this way, two
> unrelated transfers (A to B and C to D let's say) cannot be done at
> the same time anymore. Which again is not desired (i understand that
> having a single big entity group is bad practice)
>
> I think this is a pretty general problem (not related only to this
> scenario), so how is it solved?




-- 
Corneliu Paul Lupulet

--~--~-~--~~~---~--~~
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] Transactions cross entity groups

2009-08-07 Thread Cornel

(I've posted this message one day ago but it did not appear on the
group discussion list, so i will post it again. Hope i am not spamming
or anything)


Hello. I'm using app engine to write a business application. I've read
that during a transaction one can modify only entities within the same
entity group. How would one approach the following scenario? :

Consider the "Account object" with the "Owner" and "Credit" fields.

If i want to make a credit transfer between accounts A and B
(A.credit--; B.credit++), it must be done in a single transaction.
That can only happen if A and B are in the same entity group (from
what i understand)

Since a credit transfer can be done between any two random accounts, i
must put them all in the same entity group; but this way, two
unrelated transfers (A to B and C to D let's say) cannot be done at
the same time anymore. Which again is not desired (i understand that
having a single big entity group is bad practice)

I think this is a pretty general problem (not related only to this
scenario), so how is it solved?

--~--~-~--~~~---~--~~
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] Query with numeric comparison

2009-08-07 Thread Cornel

How can i make a query like this  "... where field > number" ?
Lexically "55" < "6", and that's what i think the query will return,
but it is not what i want. So how can i save the number field (as a
string) such that it will behave equivalent to the numeric comparison.

--~--~-~--~~~---~--~~
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: Twitter4j problem

2009-08-07 Thread Manav

I have the same issue...I think its combination of App Engine URL
Fetch Service and Twitter API having a higher latency that usual.

On Aug 7, 9:06 am, Nuno  wrote:
> Does anybody here used twitter4j?
>
> i'm trying to use it on my project to fetch some queries.
>
> In my local app it works very well and fast, but when i upload it to GAE,
> the query takes too long and expires.
>
> is there any kind of configuration that i may be missing?
>
> thanks a lot!
>
> Att
>
> Bruno Bilescky
>
> Wants to learn GWT? Read my blog / Quer aprender a programar? leia meu blog
>
> http://tcninja.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-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: Twitter4j problem

2009-08-07 Thread Technobabbler

same with me. I had worked before, but today it didn't work.

com.google.apphosting.runtime.HardDeadlineExceededError: This request
(292bf0b95c82157) started at 2009/08/07 14:44:48.442 UTC and was still
executing at 2009/08/07 14:45:18.146 UTC.

please help me.

On 8월7일, 오후10시06분, Nuno  wrote:
> Does anybody here used twitter4j?
>
> i'm trying to use it on my project to fetch some queries.
>
> In my local app it works very well and fast, but when i upload it to GAE,
> the query takes too long and expires.
>
> is there any kind of configuration that i may be missing?
>
> thanks a lot!
>
> Att
>
> Bruno Bilescky
>
> Wants to learn GWT? Read my blog / Quer aprender a programar? leia meu blog
>
> http://tcninja.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-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] Maximum rate of e-mail recipients

2009-08-07 Thread Evaldas Taroza

I am reading the quatas of appengine for email:
http://code.google.com/appengine/docs/quotas.html#Mail.

I can send 1 an email to 8 recipients per minute. Does it mean that
when I send an email to 10 recipients at once I will get the
OverQuotaError? Or will this email go to all recipients but at the
speed of 8 recipients per minute?

Evaldas

--~--~-~--~~~---~--~~
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: GQL "IS NOT NULL" and "LIKE" queries

2009-08-07 Thread Wooble



On Aug 6, 4:08 pm, Hrishikesh Bakshi 
wrote:
> Basic MySQL Like functionality using Java
>
> Step 1: Fetch the whole table

Doesn't scale; once your "table" is big enough, you're going to start
exceeding the request deadline.
--~--~-~--~~~---~--~~
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: Problem deploying demo application

2009-08-07 Thread Roberto Eguaglia

DemoServlet.java
package com.demo;

import java.io.IOException;
import javax.servlet.http.*;

@SuppressWarnings("serial")
public class DemoServlet extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
resp.setContentType("text/plain");
resp.getWriter().println("Hello, world");
}
}

index.html









  

Hello App Engine
  

  
Hello App Engine!


  
Available Servlets:
  
  
Demo
  

  



web.xml

http://www.w3.org/2001/XMLSchema-instance";
xmlns="http://java.sun.com/xml/ns/javaee";
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; version="2.5">

Demo
com.demo.DemoServlet


Demo
/demo


index.html





On 7 Ago, 11:57, Roberto Eguaglia  wrote:
> Hi Nick,
>
> My App ID is hello-demo; I've created it after my other application
> gave me the same error.
>
> I didn't make any modifications from the default app.
> If you want I can post the code
>
> On 7 Ago, 11:43, "Nick Johnson (Google)" 
> wrote:
>
> > Hi Roberto,
>
> > What is your App ID?
>
> > Did you make any modifications at all from the default app?
>
> > -Nick Johnson
>
> > On Fri, Aug 7, 2009 at 10:39 AM, Roberto Eguaglia 
> > wrote:
>
> > > Hi Nick,
>
> > > that's my log in the admin console (it's not in the "Error" logs, but
> > > in the "Request")
> > > #
>
> > >   1.
> > >      08-07 02:34AM 03.175 /demo 500 103ms 0cpu_ms 0kb Mozilla/5.0
> > > (X11; U; Linux x86_64; it; rv:1.9.0.12) Gecko/2009071200 SUSE/
> > > 3.0.12-0.1.2 Firefox/3.0.12,gzip(gfe)
> > >      See details
>
> > >      82.58.115.90 - - [07/Aug/2009:02:34:03 -0700] "GET /demo HTTP/
> > > 1.1" 500 0 "http://hello-demo.appspot.com/"; "Mozilla/5.0 (X11; U;
> > > Linux x86_64; it; rv:1.9.0.12) Gecko/2009071200 SUSE/3.0.12-0.1.2
> > > Firefox/3.0.12,gzip(gfe)"
>
> > > I can't explain myself why the application generated by default
> > > doesn't work (it works only in the develpoment environment...)
>
> > > On 7 Ago, 10:39, "Nick Johnson (Google)" 
> > > wrote:
> > >> Hi,
>
> > >> In order to see what error you are getting, you need to log in to the
> > >> admin console, and click on 'Logs'.
>
> > >> -Nick Johnson
>
> > >> On Wed, Aug 5, 2009 at 11:00 AM, 
> > >> squalo1...@nuoto.it wrote:
>
> > >> > Hi everyone.
> > >> > I'm new to Google App Engine and I'm using Eclipse 3.4 with the plugin
> > >> > downloaded from Google.
> > >> > When I create a new Web-Application project Eclipse set the
> > >> > appropriate directories, libraries etc...
> > >> > Running locally the web-app I can see the "Hello App Engine" page with
> > >> > the available servlets and, when i follow the link to the servlet,
> > >> > appears the mighty "Hello, world". So locally there are no errors.
> > >> > Unfortunately, when I deploy the application, the link to the servlet,
> > >> > simply doesn't work: it gives me a 500 error response (Server Error),
> > >> > without any information about "what error happened".
> > >> > Can anyone help me please?
> > >> > P.S.: Sorry if my English isn't completely correct
>
> > >> --
> > >> 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: My benchmarks say query is faster than get

2009-08-07 Thread Oliver Zheng

On Aug 7, 1:33 am, "Nick Johnson (Google)" 
wrote:
> Queries fetch the entities in parallel - as do bulk gets. Thus, the
> time taken for the entity-fetching part of a query or a bulk get is
> proportional to the time required to fetch the slowest entity (plus
> some overhead transmitting the response back), not linear with the
> number of entities.

Right, but that doesn't explain why queries takes *shorter* time than
a bulk get!

On Aug 7, 2:24 am, Alkis Evlogimenos ('Αλκης Ευλογημένος)
 wrote:
> The problem is that you are *not* doing a multi-get for the get 20 case. You
> do 20 gets sequentially.

How so? Is db.get(list()) not a parallel get?

Oliver
--~--~-~--~~~---~--~~
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: Query with numeric comparison

2009-08-07 Thread Nick Johnson (Google)

Hi Cornel,

Why not just save the numeric fields as, well, numbers?
IntegerProperty exists for this purpose.

-Nick Johnson

On Fri, Aug 7, 2009 at 1:32 PM, Cornel wrote:
>
> How can i make a query like this  "... where field > number" ?
> Lexically "55" < "6", and that's what i think the query will return,
> but it is not what i want. So how can i save the number field (as a
> string) such that it will behave equivalent to the numeric comparison.
>
> >
>



-- 
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: Query string parameter encoding

2009-08-07 Thread Nick Johnson (Google)

Hi Baba,

It looks like you're trying to pass binary data through a URL by
copying and pasting it. The escape sequences that Python strings use
(\xxx) are not the same as the escape sequences used in URLs (%xx), so
the result is that your browser is escaping your
already-python-escaped string. What you get in 'val' is not the 16
character binary string, but the 43 character escaped representation
of the string.

Your best bet is to use an encoding such as base64 for any data you
pass in via forms (eg, query string parameters), and decode it in your
app before using it.

-Nick Johnson

On Fri, Aug 7, 2009 at 12:07 AM, Baba Ganoush wrote:
>
> Hi all,
>
> please pardon my ignorance (I am new to Python and App Engine). I am
> encountering an issue with a query string parameter I am trying to
> decrypt.
>
> The following code
> val = self.request.get('ciph')
 t\x88h{\xbe\xc2\x86\...@\xf5\xf8\xaek"\xbf@
> len(val)
 43
> obj = AES.new(conf['secretKey'], AES.MODE_ECB)
> return obj.decrypt(val)
 ValueError: Input strings must be a multiple of 16 in length
>
> When I run this same code in an interactive shell the length returned
> is 16.
> Can someone please poor some fool a bone on this one?
>
> Thanks in advance
>
> >
>



-- 
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: About the latest release (1.2.4)

2009-08-07 Thread Tom Wu
*+1
*

*# Composite indexes no longer required for certain types of key queries.
# Enhancement to SearchableModel allowing multiple properties to be indexed.
*



2009/8/7 nebulabug 

>
> Can somebody explain more no
>
> # Composite indexes no longer required for certain types of key
> queries.
> # Enhancement to SearchableModel allowing multiple properties to be
> indexed.
>
> On Aug 7, 6:49 am, johntray  wrote:
> > I'm with you. 1.2.4 is a big disappointment.
> >
> > On Aug 6, 9:38 pm, Emilien Klein  wrote:
> >
> > > Is it just me or does it seem that this new release adds
> > > functionalities that don't seem to be on the list of that many people?
> >
> > > The 3 issues that are linked to fromhttp://
> code.google.com/p/googleappengine/wiki/SdkReleaseNotes
> > > for release 1.2.4 were starred by respectively 2,1, and a whopping 5
> > > persons! Making the assumption that these are all different people,
> > > that means that 8 persons have directly asked for these
> > > improvements...
> >
> > > I'm not criticizing the release, just questioning the priorities...
> > > It's nice to somewhat improve the queries and the Remote API, but
> > > aren't there other features that seem to be much more urgent? What
> > > happened to the important points of the Roadmap to be done around June
> > > 2009, if I remember well?
> http://code.google.com/intl/fr/appengine/docs/roadmap.html
> > > Quite a lot of the things on this page seem to be much more urgent
> > > than what's just been released...
> >
> > > Or maybe am I just asking too much???
>
> >
>

--~--~-~--~~~---~--~~
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: GQL "IS NOT NULL" and "LIKE" queries

2009-08-07 Thread Hrishi


If you are thinking of using the LIKE statement of MySQL, you should
not be having a huge table.

If you have entries in 1s, it works great.

On Aug 7, 12:12 pm, Wooble  wrote:
> On Aug 6, 4:08 pm, Hrishikesh Bakshi 
> wrote:
>
> > Basic MySQL Like functionality using Java
>
> > Step 1: Fetch the whole table
>
> Doesn't scale; once your "table" is big enough, you're going to start
> exceeding the request deadline.
--~--~-~--~~~---~--~~
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: Proposal: __index__ support to make certain datastore/query operations more efficient

2009-08-07 Thread Andy Freeman

> With my proposal, when an entity is indexed, the key defined in its
> __index__ property will be used in place of its own key when the
> indexes are constructed...

Cute, but there's no way to guarantee that there's an object with that
key.

Also, redirecting queries this way means that there's no way to get
the key (or entity) via a query so the entity can be updated, deleted,
etc.

On Aug 7, 8:16 am, tav  wrote:
> Hey Julian,
>
> > That's an interesting idea, for that particular use case.
>
> > If I reformulate the "relation index entities" query as I understand
> > it:
> > 1. [datastore]Traverse the index and return entity keys
> > 2. [app engine]Transform returned keys to retrieve parent entity
> > 3. [datastore] Batch get of entities
>
> > Your idea:
> > 1. [datastore]Traverse the index and to get entity keys
> > 3. [datastore] Batch get of entities
>
> > So you would save step 2, a roundtrip app engine - datastore, not sure
> > that's substantial though.
>
> Nice reformulation! However, my proposal would be just a single step:
>
> 1. [datastore] Traverse the index and return entities
>
> The only additional cost should be an additional if/else clause when
> *writing* entities -- the datastroe would have to look to see if the
> entity has an __index__ property. Quite a minimal cost given the
> savings otherwise!
>
> Why should it just be a single step? Because of the way that the
> datastore works (at least according to the presentation that Ryan gave
> last year):
>
> *http://snarfed.org/space/datastore_talk.html
>
> According to it (slide 21):
>
> * Each row in an index table includes the index data and entity key
>
> With my proposal, when an entity is indexed, the key defined in its
> __index__ property will be used in place of its own key when the
> indexes are constructed...
>
> Of course these special "related entities" would still be accessible
> by using their key names...
>
> Hope that makes sense.
>
> --
> love, tav
>
> plex:espians/tav | t...@espians.com | +44 (0) 7809 569 
> 369http://tav.espians.com|http://twitter.com/tav| skype:tavespian
--~--~-~--~~~---~--~~
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 handle MemoryError

2009-08-07 Thread Jesse Grosjean

I'm getting the following error in app engine:

Traceback (most recent call last):
  File "/base/python_lib/versions/1/google/appengine/ext/webapp/
__init__.py", line 509, in __call__
handler.post(*groups)
  File "/base/data/home/apps/hogbaywriteroom/1.335453192513689606/
documents.py", line 650, in post
self.put(account_id, document_id)
  File "/base/data/home/apps/hogbaywriteroom/1.335453192513689606/
documents.py", line 297, in g
return f(*new_args, **kw)
  File "/base/data/home/apps/hogbaywriteroom/1.335453192513689606/
documents.py", line 312, in g
return f(*new_args, **kw)
  File "/base/data/home/apps/hogbaywriteroom/1.335453192513689606/
documents.py", line 683, in put
patches = dmp.patch_toText(dmp.patch_make(version_content,
content))
  File "/base/data/home/apps/hogbaywriteroom/1.335453192513689606/
diff_match_patch.py", line 1364, in patch_make
diffs = self.diff_main(text1, b, True)
  File "/base/data/home/apps/hogbaywriteroom/1.335453192513689606/
diff_match_patch.py", line 111, in diff_main
diffs = self.diff_compute(text1, text2, checklines)
  File "/base/data/home/apps/hogbaywriteroom/1.335453192513689606/
diff_match_patch.py", line 177, in diff_compute
diffs = self.diff_map(text1, text2)
  File "/base/data/home/apps/hogbaywriteroom/1.335453192513689606/
diff_match_patch.py", line 346, in diff_map
v_map1[d][(x, y)] = True
MemoryError

It's happening when the user submits two big files to diff. I can't
seem to find any mention of this error in the forums, can someone tell
me exactly what it means? It it possible to catch it, and continue? Or
a recommended process for dealing with MemoryErrors?

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



[google-appengine] Re: Proposal: __index__ support to make certain datastore/query operations more efficient

2009-08-07 Thread tav

Hey Andy,

> Cute, but there's no way to guarantee that there's an object with that
> key.

Very good point!

Would require an additional check in the if/else clause on write of
the related entity which should raise an error if the entity it points
to doesn't exist...

And if all entities that were "__index__'ed" were kept in a separate
table -- much like the Kind table, then perhaps that could be checked
when an entity is about to be deleted and if a referrant related
entity is still around, an Exception could be raised?

Thoughts?

> Also, redirecting queries this way means that there's no way to get
> the key (or entity) via a query so the entity can be updated, deleted,
> etc.

Sure. But one should always be able to get the entity directly using
it's key name -- i tend to have predictable key_names for my related
entities -- and perhaps even use the transaction descendant queries
that landed yesterday in 1.2.4?

-- 
love, tav

plex:espians/tav | t...@espians.com | +44 (0) 7809 569 369
http://tav.espians.com | http://twitter.com/tav | skype:tavespian

--~--~-~--~~~---~--~~
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: Twitter4j problem

2009-08-07 Thread Nuno
i was inspecting the code of the twitter4j last release, and i think there
are some classes that maybe not allowed by gae.

I will try to verify this, and if needed i will make a patch.



Att

Bruno Bilescky

Wants to learn GWT? Read my blog / Quer aprender a programar? leia meu blog

http://tcninja.blogspot.com




On Fri, Aug 7, 2009 at 11:38 AM, Manav  wrote:

>
> I have the same issue...I think its combination of App Engine URL
> Fetch Service and Twitter API having a higher latency that usual.
>
> On Aug 7, 9:06 am, Nuno  wrote:
> > Does anybody here used twitter4j?
> >
> > i'm trying to use it on my project to fetch some queries.
> >
> > In my local app it works very well and fast, but when i upload it to GAE,
> > the query takes too long and expires.
> >
> > is there any kind of configuration that i may be missing?
> >
> > thanks a lot!
> >
> > Att
> >
> > Bruno Bilescky
> >
> > Wants to learn GWT? Read my blog / Quer aprender a programar? leia meu
> blog
> >
> > http://tcninja.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-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 there a per-page quota?

2009-08-07 Thread NealWalters

On my appspot dashboard, under "Current Load" I have a few yellow
yield signs.  The hover-over tool-tip says "This URI uses a high
amount of CPU and may soon exceed its quota".  Does that mean there is
some limit per page?

Thanks,
Neal

--~--~-~--~~~---~--~~
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: About the latest release (1.2.4)

2009-08-07 Thread 'Αλκης Ευλογημένος
On Fri, Aug 7, 2009 at 1:00 PM, nebulabug  wrote:

>
> Can somebody explain more no
>
> # Composite indexes no longer required for certain types of key
> queries.


Example queries:

db.MyModel.all().ancestor()

This doesn't need an ancestor index anymore since ancestors are stored in
the key.

db.MyModel.all().ancestor().filter('__key__ >', ...)

Likewise.


>
> # Enhancement to SearchableModel allowing multiple properties to be
> indexed.
>
> On Aug 7, 6:49 am, johntray  wrote:
> > I'm with you. 1.2.4 is a big disappointment.
> >
> > On Aug 6, 9:38 pm, Emilien Klein  wrote:
> >
> > > Is it just me or does it seem that this new release adds
> > > functionalities that don't seem to be on the list of that many people?
> >
> > > The 3 issues that are linked to fromhttp://
> code.google.com/p/googleappengine/wiki/SdkReleaseNotes
> > > for release 1.2.4 were starred by respectively 2,1, and a whopping 5
> > > persons! Making the assumption that these are all different people,
> > > that means that 8 persons have directly asked for these
> > > improvements...
> >
> > > I'm not criticizing the release, just questioning the priorities...
> > > It's nice to somewhat improve the queries and the Remote API, but
> > > aren't there other features that seem to be much more urgent? What
> > > happened to the important points of the Roadmap to be done around June
> > > 2009, if I remember well?
> http://code.google.com/intl/fr/appengine/docs/roadmap.html
> > > Quite a lot of the things on this page seem to be much more urgent
> > > than what's just been released...
> >
> > > Or maybe am I just asking too much???
>
> >
>


-- 

Alkis

--~--~-~--~~~---~--~~
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: About the latest release (1.2.4)

2009-08-07 Thread johnP

Were there any changes on the production server that would cause the
datastore_cache recipe to stop working?

http://appengine-cookbook.appspot.com/recipe/seamless-memcache-caching-of-all-entities

johnP


On Aug 7, 1:14 pm, Alkis Evlogimenos ('Αλκης Ευλογημένος)
 wrote:
> On Fri, Aug 7, 2009 at 1:00 PM, nebulabug  wrote:
>
> > Can somebody explain more no
>
> > # Composite indexes no longer required for certain types of key
> > queries.
>
> Example queries:
>
> db.MyModel.all().ancestor()
>
> This doesn't need an ancestor index anymore since ancestors are stored in
> the key.
>
> db.MyModel.all().ancestor().filter('__key__ >', ...)
>
> Likewise.
>
>
>
>
>
> > # Enhancement to SearchableModel allowing multiple properties to be
> > indexed.
>
> > On Aug 7, 6:49 am, johntray  wrote:
> > > I'm with you. 1.2.4 is a big disappointment.
>
> > > On Aug 6, 9:38 pm, Emilien Klein  wrote:
>
> > > > Is it just me or does it seem that this new release adds
> > > > functionalities that don't seem to be on the list of that many people?
>
> > > > The 3 issues that are linked to fromhttp://
> > code.google.com/p/googleappengine/wiki/SdkReleaseNotes
> > > > for release 1.2.4 were starred by respectively 2,1, and a whopping 5
> > > > persons! Making the assumption that these are all different people,
> > > > that means that 8 persons have directly asked for these
> > > > improvements...
>
> > > > I'm not criticizing the release, just questioning the priorities...
> > > > It's nice to somewhat improve the queries and the Remote API, but
> > > > aren't there other features that seem to be much more urgent? What
> > > > happened to the important points of the Roadmap to be done around June
> > > > 2009, if I remember well?
> >http://code.google.com/intl/fr/appengine/docs/roadmap.html
> > > > Quite a lot of the things on this page seem to be much more urgent
> > > > than what's just been released...
>
> > > > Or maybe am I just asking too much???
>
> --
>
> Alkis
--~--~-~--~~~---~--~~
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 benchmarks say query is faster than get

2009-08-07 Thread 'Αλκης Ευλογημένος
Oh I see you time only the last db.get() call. Nevertheless you are still
not comparing apples to apples. In the db.get case you fetch entities and in
the query case you fetch keys only.

2009/8/7 Oliver Zheng 

>
> On Aug 7, 1:33 am, "Nick Johnson (Google)" 
> wrote:
> > Queries fetch the entities in parallel - as do bulk gets. Thus, the
> > time taken for the entity-fetching part of a query or a bulk get is
> > proportional to the time required to fetch the slowest entity (plus
> > some overhead transmitting the response back), not linear with the
> > number of entities.
>
> Right, but that doesn't explain why queries takes *shorter* time than
> a bulk get!
>
> On Aug 7, 2:24 am, Alkis Evlogimenos ('Αλκης Ευλογημένος)
>  wrote:
> > The problem is that you are *not* doing a multi-get for the get 20 case.
> You
> > do 20 gets sequentially.
>
> How so? Is db.get(list()) not a parallel get?
>
> Oliver
> >
>


-- 

Alkis

--~--~-~--~~~---~--~~
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: Twitter4j problem

2009-08-07 Thread Peter

Twitter was defending against a DOS attack this week - maybe that's
part of your problem?

On Aug 7, 1:01 pm, Nuno  wrote:
> i was inspecting the code of the twitter4j last release, and i think there
> are some classes that maybe not allowed by gae.
>
> I will try to verify this, and if needed i will make a patch.
>
> Att
>
> Bruno Bilescky
>
> Wants to learn GWT? Read my blog / Quer aprender a programar? leia meu blog
>
> http://tcninja.blogspot.com
>
> On Fri, Aug 7, 2009 at 11:38 AM, Manav  wrote:
>
> > I have the same issue...I think its combination of App Engine URL
> > Fetch Service and Twitter API having a higher latency that usual.
>
> > On Aug 7, 9:06 am, Nuno  wrote:
> > > Does anybody here used twitter4j?
>
> > > i'm trying to use it on my project to fetch some queries.
>
> > > In my local app it works very well and fast, but when i upload it to GAE,
> > > the query takes too long and expires.
>
> > > is there any kind of configuration that i may be missing?
>
> > > thanks a lot!
>
> > > Att
>
> > > Bruno Bilescky
>
> > > Wants to learn GWT? Read my blog / Quer aprender a programar? leia meu
> > blog
>
> > >http://tcninja.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-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] twitter oauth

2009-08-07 Thread Ben Adida

Hi folks,

I've been developing an app that does logins via twitter's oauth API.
I'm using twitteroauth-python

http://github.com/harperreed/twitteroauth-python/tree/master

which has been working great in my dev environment. Unfortunately, now
that I'm starting to deploy, I'm getting errors at the point where the
code obtains a Request Token from Twitter. Specifically, the response
is empty. In parallel, I'm doing the same thing from my dev
environment, and it's successful.

Has anyone seen this? Is there something weird about the request going
out to Twitter from GAE that's causing an issue? How can I debug this
more closely?
--~--~-~--~~~---~--~~
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: twitter oauth

2009-08-07 Thread Jason Salas

i saw something about OAuth being down...probably not your code.  :)

On Sat, Aug 8, 2009 at 8:15 AM, Ben Adida wrote:
>
> Hi folks,
>
> I've been developing an app that does logins via twitter's oauth API.
> I'm using twitteroauth-python
>
> http://github.com/harperreed/twitteroauth-python/tree/master
>
> which has been working great in my dev environment. Unfortunately, now
> that I'm starting to deploy, I'm getting errors at the point where the
> code obtains a Request Token from Twitter. Specifically, the response
> is empty. In parallel, I'm doing the same thing from my dev
> environment, and it's successful.
>
> Has anyone seen this? Is there something weird about the request going
> out to Twitter from GAE that's causing an issue? How can I debug this
> more closely?
> >
>

--~--~-~--~~~---~--~~
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: twitter oauth

2009-08-07 Thread Ben Adida


Yeah, yesterday I didn't think it was an issue, given the Twitter
downtime, but today it's working fast and well from my desktop machine
in dev, so I don't understand.

I've logged more info, and I'm getting what seems to be the dreaded
applicationerror 5, a timeout.. but again it's super fast from my
desktop machine contacting Twitter, so... any ideas?

Thanks!

-Ben

On Aug 7, 3:19 pm, Jason Salas  wrote:
> i saw something about OAuth being down...probably not your code.  :)
>
> On Sat, Aug 8, 2009 at 8:15 AM, Ben Adida wrote:
>
> > Hi folks,
>
> > I've been developing an app that does logins via twitter's oauth API.
> > I'm using twitteroauth-python
>
> >http://github.com/harperreed/twitteroauth-python/tree/master
>
> > which has been working great in my dev environment. Unfortunately, now
> > that I'm starting to deploy, I'm getting errors at the point where the
> > code obtains a Request Token from Twitter. Specifically, the response
> > is empty. In parallel, I'm doing the same thing from my dev
> > environment, and it's successful.
>
> > Has anyone seen this? Is there something weird about the request going
> > out to Twitter from GAE that's causing an issue? How can I debug this
> > more closely?
--~--~-~--~~~---~--~~
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: twitter oauth

2009-08-07 Thread Ben Adida


Just an update... I've verified that the exact URL I'm trying to fetch
from within GAE gets a response from Twitter, in my browser, in < 1
second. Since it's an oAuth request, the fact that I'm able to copy it
from the logs and use it successfully means that GAE hasn't even
issued the request to Twitter at all. Something is off with the GAE-to-
Twitter connectivity...

-Ben

On Aug 7, 3:15 pm, Ben Adida  wrote:
> Hi folks,
>
> I've been developing an app that does logins via twitter's oauth API.
> I'm using twitteroauth-python
>
> http://github.com/harperreed/twitteroauth-python/tree/master
>
> which has been working great in my dev environment. Unfortunately, now
> that I'm starting to deploy, I'm getting errors at the point where the
> code obtains a Request Token from Twitter. Specifically, the response
> is empty. In parallel, I'm doing the same thing from my dev
> environment, and it's successful.
>
> Has anyone seen this? Is there something weird about the request going
> out to Twitter from GAE that's causing an issue? How can I debug this
> more closely?
--~--~-~--~~~---~--~~
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: new version of django

2009-08-07 Thread Rodrigo

Typos: I meant to GAE, not the SDK.

On 3 ago, 14:12, Jaap Taal  wrote:
> Hi Rodrigo,
> You'll have to install django 1.0 your self. This is quit easy if you use
> easy_install.
>
> Jaap
>
> On Sun, Aug 2, 2009 at 8:14 PM, Rodrigo  wrote:
>
> > When do you guys are going to add to the SDK the new version of
> > Django?.
--~--~-~--~~~---~--~~
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: Query string parameter encoding

2009-08-07 Thread Baba Ganoush

Awesome thanks, that did the trick.

Thanks for the help


On Aug 7, 9:26 am, "Nick Johnson (Google)" 
wrote:
> Hi Baba,
>
> It looks like you're trying to pass binary data through a URL by
> copying and pasting it. The escape sequences that Python strings use
> (\xxx) are not the same as the escape sequences used in URLs (%xx), so
> the result is that your browser is escaping your
> already-python-escaped string. What you get in 'val' is not the 16
> character binary string, but the 43 character escaped representation
> of the string.
>
> Your best bet is to use an encoding such as base64 for any data you
> pass in via forms (eg, query string parameters), and decode it in your
> app before using it.
>
> -Nick Johnson
>
>
>
> On Fri, Aug 7, 2009 at 12:07 AM, Baba Ganoush 
> wrote:
>
> > Hi all,
>
> > please pardon my ignorance (I am new to Python and App Engine). I am
> > encountering an issue with a query string parameter I am trying to
> > decrypt.
>
> > The following code
> > val = self.request.get('ciph')
>  t\x88h{\xbe\xc2\x86\...@\xf5\xf8\xaek"\xbf@
> > len(val)
>  43
> > obj = AES.new(conf['secretKey'], AES.MODE_ECB)
> > return obj.decrypt(val)
>  ValueError: Input strings must be a multiple of 16 in length
>
> > When I run this same code in an interactive shell the length returned
> > is 16.
> > Can someone please poor some fool a bone on this one?
>
> > Thanks in advance
>
> --
> 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] For my database drop, whom I request to ?

2009-08-07 Thread Hyri

Hi,
My GAE/J over it's data quota & cpu quota.

I just want to drop my tables without named "Interest"

and I just want to stop my all cron jobs before I fix up something.

But I cannot deploy my empty cron.xml
When I tried to deploy, it occur errors when it update Indexes.

So I want to request drop my tables and drop my cron jobs

But I dont know whom I mail to.

If you have any idea, thanks for teaching me :)


--~--~-~--~~~---~--~~
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 benchmarks say query is faster than get

2009-08-07 Thread Oliver Zheng

On Aug 7, 1:33 pm, Alkis Evlogimenos ('Αλκης Ευλογημένος)
 wrote:
> Oh I see you time only the last db.get() call. Nevertheless you are still
> not comparing apples to apples. In the db.get case you fetch entities and in
> the query case you fetch keys only.

There is a benchmark for keys_only query and another query for getting
objects (bottom of the page). I am comparing that one with the db.get
().

I am still clueless as to why the query is faster than the get. :(

Oliver
--~--~-~--~~~---~--~~
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 benchmarks say query is faster than get

2009-08-07 Thread 'Αλκης Ευλογημένος
Are you talking about this one:
A. query 20setup

from benchmark.models import Test
from google.appengine.ext import db
import datetime
import random

random.seed(datetime.datetime.now())
key = db.Key.from_path(Test.kind(), random.randrange(1, 1000))

timing

Test.all().filter('__key__ <=', key).fetch(20)


First, the query gets 20 entities sequentially in key order. Keys are stored
in order so they more likely than not hit a single machine. The db.get
lookups multiple keys which might hit more than one machine. Since the call
will wait for all the machines to return you effectively wait for the
slowest machine to return the results.

Second are you sure you are getting 20 entities out of this? What if the id
returned by random is 1?

2009/8/8 Oliver Zheng 

>
> On Aug 7, 1:33 pm, Alkis Evlogimenos ('Αλκης Ευλογημένος)
>  wrote:
> > Oh I see you time only the last db.get() call. Nevertheless you are still
> > not comparing apples to apples. In the db.get case you fetch entities and
> in
> > the query case you fetch keys only.
>
> There is a benchmark for keys_only query and another query for getting
> objects (bottom of the page). I am comparing that one with the db.get
> ().
>
> I am still clueless as to why the query is faster than the get. :(
>
> Oliver
> >
>


-- 

Alkis

--~--~-~--~~~---~--~~
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 benchmarks say query is faster than get

2009-08-07 Thread Oliver Zheng

On Aug 7, 1:33 pm, Alkis Evlogimenos ('Αλκης Ευλογημένος)
 wrote:
> Oh I see you time only the last db.get() call. Nevertheless you are still
> not comparing apples to apples. In the db.get case you fetch entities and in
> the query case you fetch keys only.

There is a benchmark for keys_only query and another query for getting
objects (bottom of the page). I am comparing that one with the db.get
().

I am still clueless as to why the query is faster than the get. :(

Oliver
--~--~-~--~~~---~--~~
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: GQL "IS NOT NULL" and "LIKE" queries

2009-08-07 Thread Wooble



On Aug 7, 12:56 pm, Hrishi  wrote:
> If you are thinking of using the LIKE statement of MySQL, you should
> not be having a huge table.
>
> If you have entries in 1s, it works great.

I've never been able to fetch anywhere close to 10,000 entities in a
single request.  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-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: I can't manage app engine at http://appengine.google.com.

2009-08-07 Thread Wooble



On Aug 7, 11:53 am, "acco...@hongtao.name" 
wrote:
> Hi,
>
> I registered some apps succesfully, but I can't manage then 
> athttp://appengine.google.com.
>
> Any suggestion?
>
> Thank you in advance!

Try http://appengine.google.com/a/hongtao.name
--~--~-~--~~~---~--~~
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: For my database drop, whom I request to ?

2009-08-07 Thread Wooble

You have to do it yourself by deleting all of the entities.

The best way to do this is to fetch batches of keys and delete the
records in a batch.

On Aug 7, 7:11 pm, Hyri  wrote:
> Hi,
> My GAE/J over it's data quota & cpu quota.
>
> I just want to drop my tables without named "Interest"
>
> and I just want to stop my all cron jobs before I fix up something.
>
> But I cannot deploy my empty cron.xml
> When I tried to deploy, it occur errors when it update Indexes.
>
> So I want to request drop my tables and drop my cron jobs
>
> But I dont know whom I mail to.
>
> If you have any idea, thanks for teaching me :)
--~--~-~--~~~---~--~~
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 handle MemoryError

2009-08-07 Thread Andi Albrecht

On Fri, Aug 7, 2009 at 7:25 PM, Jesse Grosjean wrote:
>
> I'm getting the following error in app engine:
>
> Traceback (most recent call last):
>  File "/base/python_lib/versions/1/google/appengine/ext/webapp/
> __init__.py", line 509, in __call__
>    handler.post(*groups)
>  File "/base/data/home/apps/hogbaywriteroom/1.335453192513689606/
> documents.py", line 650, in post
>    self.put(account_id, document_id)
>  File "/base/data/home/apps/hogbaywriteroom/1.335453192513689606/
> documents.py", line 297, in g
>    return f(*new_args, **kw)
>  File "/base/data/home/apps/hogbaywriteroom/1.335453192513689606/
> documents.py", line 312, in g
>    return f(*new_args, **kw)
>  File "/base/data/home/apps/hogbaywriteroom/1.335453192513689606/
> documents.py", line 683, in put
>    patches = dmp.patch_toText(dmp.patch_make(version_content,
> content))
>  File "/base/data/home/apps/hogbaywriteroom/1.335453192513689606/
> diff_match_patch.py", line 1364, in patch_make
>    diffs = self.diff_main(text1, b, True)
>  File "/base/data/home/apps/hogbaywriteroom/1.335453192513689606/
> diff_match_patch.py", line 111, in diff_main
>    diffs = self.diff_compute(text1, text2, checklines)
>  File "/base/data/home/apps/hogbaywriteroom/1.335453192513689606/
> diff_match_patch.py", line 177, in diff_compute
>    diffs = self.diff_map(text1, text2)
>  File "/base/data/home/apps/hogbaywriteroom/1.335453192513689606/
> diff_match_patch.py", line 346, in diff_map
>    v_map1[d][(x, y)] = True
> MemoryError
>
> It's happening when the user submits two big files to diff. I can't
> seem to find any mention of this error in the forums, can someone tell
> me exactly what it means? It it possible to catch it, and continue? Or
> a recommended process for dealing with MemoryErrors?

Hi Jesse,

MemoryError means that your code consumes too much memory. AFAICT you
can catch this error and return a short HTTP (error) response, but to
avoid it you should have a closer look at your code to identify parts
where you store data in memory.

Andi

>
> Thanks,
> Jesse
> >
>

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



[google-appengine] Re: Twitter4j problem

2009-08-07 Thread Technobabbler

I don't think so because yesterday late night the twitter's service
was good but Twitter4J still doesn't work at all.


On Aug 8, 7:02 am, Peter  wrote:
> Twitter was defending against a DOS attack this week - maybe that's
> part of your problem?
>
> On Aug 7, 1:01 pm, Nuno  wrote:
>
>
>
> > i was inspecting the code of the twitter4j last release, and i think there
> > are some classes that maybe not allowed by gae.
>
> > I will try to verify this, and if needed i will make a patch.
>
> > Att
>
> > Bruno Bilescky
>
> > Wants to learn GWT? Read my blog / Quer aprender a programar? leia meu blog
>
> >http://tcninja.blogspot.com
>
> > On Fri, Aug 7, 2009 at 11:38 AM, Manav  wrote:
>
> > > I have the same issue...I think its combination of App Engine URL
> > > Fetch Service and Twitter API having a higher latency that usual.
>
> > > On Aug 7, 9:06 am, Nuno  wrote:
> > > > Does anybody here used twitter4j?
>
> > > > i'm trying to use it on my project to fetch some queries.
>
> > > > In my local app it works very well and fast, but when i upload it to 
> > > > GAE,
> > > > the query takes too long and expires.
>
> > > > is there any kind of configuration that i may be missing?
>
> > > > thanks a lot!
>
> > > > Att
>
> > > > Bruno Bilescky
>
> > > > Wants to learn GWT? Read my blog / Quer aprender a programar? leia meu
> > > blog
>
> > > >http://tcninja.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-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: I got a HTTP 500 error, when using a HEAD request

2009-08-07 Thread Suke Lin

I'm using Python. I don't how to handle incoming head requests.It's
different from handling get/post requests?

On Jun 30, 8:17 am, "Jeff S (Google)"  wrote:
> Hi Suke Lin,
>
> What does the code look like for your servlet or request handler? You will
> need to define your own code to handle incoming head requests (I'm not sure
> if you are using Java or Python).
>
> Thank you,
>
> Jeff
>
>
>
> On Sat, Jun 27, 2009 at 3:21 AM, Suke Lin  wrote:
>
> > every time when I using a HEAD request, I got a HTTP 500 error. (using
> > GET request is OK)
>
> > I debug in development environment, there is a WARNING saying:
> > dropping unexpected body in response to head request.
>
> > can you tell me what's the problem ?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---