[google-appengine] Re: Change compute engine billing account to non-business

2016-01-17 Thread Markus Jonsson
Okay, I was trying to start paying VAT but whatever then. 

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


[google-appengine] Re: Change compute engine billing account to non-business

2016-01-13 Thread Markus Jonsson
Still wondering about this...

On Saturday, January 9, 2016 at 11:11:40 PM UTC+1, Adam (Cloud Platform 
Support) wrote:
>
> It's not clear what you mean. Can you explain the billing account setting 
> you're trying to change and what you need to do? Perhaps a screen shot 
> would help for clarification.
>
> On Saturday, January 9, 2016 at 2:14:09 PM UTC-5, Markus Jonsson wrote:
>>
>> How do i do that?
>>
>> It's not availiable...
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/11f658c9-c0a5-481a-970b-033dfb0615ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Change compute engine billing account to non-business

2016-01-09 Thread Markus Jonsson
I want to change my billing account VAT status from business to non-business, 
or personal or whatever the alternative is.. 

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


[google-appengine] Change compute engine billing account to non-business

2016-01-09 Thread Markus Jonsson
How do i do that?

It's not availiable...

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


[google-appengine] [PHP] Datastore.php / Windows Dev AppEngine produces CGI/FastCGI

2015-08-20 Thread Markus Frosch
I'm using AppEngine under Windows for development. I've tried to create 
data in Datastore.

Unfortunately CGI/FastCGI will gone every time I call the demo script 
https://github.com/amygdala/appengine_php_datastore_example/blob/master/datastore_connect.php




I've found that this line is producing the issue.

$service_dataset->commit($dataset_id, $req, []);


After looking to the Datastore.php from this lib I've replaced return value 
by a simple return.

  /**

   * Commit a transaction, optionally creating, deleting or modifying some
   * entities. (datasets.commit)
   *
   * @param string $datasetId Identifies the dataset.
   * @param Google_CommitRequest $postBody
   * @param array $optParams Optional parameters.
   * @return Google_Service_Datastore_CommitResponse
   */
  public function commit($datasetId, Google_Service_Datastore_CommitRequest 
$postBody, $optParams = array())
  {
$params = array('datasetId' => $datasetId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return;
return $this->call('commit', array($params), 
"Google_Service_Datastore_CommitResponse");
  }

The issue was gone. As expected without data in the Google Datastore.

After deploying this to the cloud the script is working well. So I think 
it's only a local issue.
Is there anybody who have/has the same issue?


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


[google-appengine] Basic Questions to get the Google App Engine

2015-03-21 Thread Markus N

Hi, 
I have any question before I decide to use Google App Engine for deploying 
our Apps.
I read the Google websites, but it does not make sense of me, sorry I am a 
newbie.
Is it necessary to have the Google Cloud Platform to get the Google App 
Engine?
I thought, the Google App Engine ist free, but the Google Cloud Plattform 
is only free for 60 days?!?!

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


[google-appengine] Re: App deployment stuck and then failed with "version not ready"

2014-09-26 Thread Markus A.
Also great:

<https://lh3.googleusercontent.com/-ZqigzkUv1UM/VCWhLrSjmUI/ADk/l7aAAvFErQo/s1600/Updates.png>
...



On Friday, September 26, 2014 9:57:23 AM UTC-7, Markus A. wrote:
>
> Getting frequent errors from the admin page (appengine.google.com) also:
>
> Error: Server ErrorThe server encountered an error and could not complete 
> your request.
>
> Please try again in 30 seconds.
>
> On Friday, September 26, 2014 9:54:28 AM UTC-7, Markus A. wrote:
>>
>> Same problem here right now...
>>
>> Also, the admin console is EXTREMELY slow...
>>
>>
>> On Wednesday, September 12, 2012 8:05:28 PM UTC-7, gks wrote:
>>>
>>> I am unable to deploy to my apps in the past 20 hrs. All deployments 
>>> stuck at the stage of "Verifying availability of frontend" and eventually 
>>> failed with "Version not ready".
>>>
>>> My AppIDs are aos-prod-1 & aos-prod-2.
>>>
>>> Any help will be greatly appreciated!
>>>
>>

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


[google-appengine] Re: App deployment stuck and then failed with "version not ready"

2014-09-26 Thread Markus A.
My previous post contained a screen-shot... For some reason it's being 
displayed in the quoted text, so click "show quoted text" for the post to 
make sense...

On Friday, September 26, 2014 10:18:05 AM UTC-7, Markus A. wrote:
>
> Also great:
>
>
> <https://lh5.googleusercontent.com/-NXEVsc4XFK4/VCWfmZT-puI/ADY/h4vT1IQRMO4/s1600/Updates.png>
>
>
> On Friday, September 26, 2014 9:57:23 AM UTC-7, Markus A. wrote:
>>
>> Getting frequent errors from the admin page (appengine.google.com) also:
>>
>> Error: Server ErrorThe server encountered an error and could not 
>> complete your request.
>>
>> Please try again in 30 seconds.
>>
>> On Friday, September 26, 2014 9:54:28 AM UTC-7, Markus A. wrote:
>>>
>>> Same problem here right now...
>>>
>>> Also, the admin console is EXTREMELY slow...
>>>
>>>
>>> On Wednesday, September 12, 2012 8:05:28 PM UTC-7, gks wrote:
>>>>
>>>> I am unable to deploy to my apps in the past 20 hrs. All deployments 
>>>> stuck at the stage of "Verifying availability of frontend" and eventually 
>>>> failed with "Version not ready".
>>>>
>>>> My AppIDs are aos-prod-1 & aos-prod-2.
>>>>
>>>> Any help will be greatly appreciated!
>>>>
>>>

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


[google-appengine] Re: App deployment stuck and then failed with "version not ready"

2014-09-26 Thread Markus A.


Also great:

<https://lh5.googleusercontent.com/-NXEVsc4XFK4/VCWfmZT-puI/ADY/h4vT1IQRMO4/s1600/Updates.png>


On Friday, September 26, 2014 9:57:23 AM UTC-7, Markus A. wrote:
>
> Getting frequent errors from the admin page (appengine.google.com) also:
>
> Error: Server ErrorThe server encountered an error and could not complete 
> your request.
>
> Please try again in 30 seconds.
>
> On Friday, September 26, 2014 9:54:28 AM UTC-7, Markus A. wrote:
>>
>> Same problem here right now...
>>
>> Also, the admin console is EXTREMELY slow...
>>
>>
>> On Wednesday, September 12, 2012 8:05:28 PM UTC-7, gks wrote:
>>>
>>> I am unable to deploy to my apps in the past 20 hrs. All deployments 
>>> stuck at the stage of "Verifying availability of frontend" and eventually 
>>> failed with "Version not ready".
>>>
>>> My AppIDs are aos-prod-1 & aos-prod-2.
>>>
>>> Any help will be greatly appreciated!
>>>
>>

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


[google-appengine] Re: App deployment stuck and then failed with "version not ready"

2014-09-26 Thread Markus A.
Getting frequent errors from the admin page (appengine.google.com) also:

Error: Server ErrorThe server encountered an error and could not complete 
your request.

Please try again in 30 seconds.

On Friday, September 26, 2014 9:54:28 AM UTC-7, Markus A. wrote:
>
> Same problem here right now...
>
> Also, the admin console is EXTREMELY slow...
>
>
> On Wednesday, September 12, 2012 8:05:28 PM UTC-7, gks wrote:
>>
>> I am unable to deploy to my apps in the past 20 hrs. All deployments 
>> stuck at the stage of "Verifying availability of frontend" and eventually 
>> failed with "Version not ready".
>>
>> My AppIDs are aos-prod-1 & aos-prod-2.
>>
>> Any help will be greatly appreciated!
>>
>

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


[google-appengine] Re: App deployment stuck and then failed with "version not ready"

2014-09-26 Thread Markus A.
Same problem here right now...

Also, the admin console is EXTREMELY slow...


On Wednesday, September 12, 2012 8:05:28 PM UTC-7, gks wrote:
>
> I am unable to deploy to my apps in the past 20 hrs. All deployments stuck 
> at the stage of "Verifying availability of frontend" and eventually failed 
> with "Version not ready".
>
> My AppIDs are aos-prod-1 & aos-prod-2.
>
> Any help will be greatly appreciated!
>

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


[google-appengine] Encoding overhead of binary data (Blob) in Datastore

2014-09-24 Thread Markus A.
This should be an easy one, but I can't find any definitive information in 
the docs (in fact, some statements there contradict each other outright 
<http://stackoverflow.com/questions/18243242/does-google-appengine-store-binary-data-in-the-datastore-as-plain-8-bit-or-as-ut/26024697#26024697>
):

Let's say I have two applications, both of them store 10,000 entities that 
have exactly one unindexed property of type Blob. For application 1, each 
blob contains *100kB* of random 8-bit binary data and for application 2, 
they each contain *200kB* of random 8-bit binary data.

Does this imply that the storage requirement for application 2 is about 1GB 
more (10,000 entities x 100kB more per entity)? Or is the binary data 
encoded in some way that creates significant overhead?

For example, if it was UTF-8 encoded, the difference would be 1.5GB as each 
8-bit character has an equal probability of taking up 1 byte (<128) or 2 
bytes (>=128)?


Thanks,

  Markus

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


[google-appengine] Allowed characters in Key names / Key name generation methods

2014-09-24 Thread Markus A.
For duplicate-entry-detection, I would like to generate named Entity-Keys 
from a sequentially increasing index. (Entity "1", Entity "2", Entity "3", 
...)

>From what I read about tablet-splitting and hot-spots, I understand that I 
should avoid using just the text-string of the number as the key, since 
that will eventually lead to many entities being stored physically very 
close to each other (Entity "10" is right next to Entity "11", ...).

I am trying to figure out a quick and easy way to generate (preferably 
minimal-length) Key names that spread the data nicely across storage 
locations.

If I read correctly, named Keys are passed to the DataStore as UTF-8 
encoded bytes, and any sorting on the Key is then performed versus these 
UTF-8 bytes.

So, my current idea is to simply take my index value and generate a Key 
name from it by expressing it as characters base-128 in little endian byte 
order:

*String *keyName = *new String*(*new char*[] {(*char*) (index & 0x7F), (
*char*) ((index >>> 7) & 0x7F), (*char*) ((index >>> 14) & 0x7F), ...});


Should this work, or are there any restrictions on which 7-bit values I can 
use? For example, is 0x00 reserved for some end-of-string marker or 
similar? Would values in the non-displayable ASCII regions somehow 
interfere with the Application Dashboard?

Or is there a better method altogether to generate such keys?


Thanks,

  Markus

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


[google-appengine] Re: Does AppEngine BlobStore support Chunked Transfer Encoding for uploads (getting Status 411: Length required)?

2012-10-30 Thread Markus Ansmann
In case someone does care:

The dev-server does NOT support chunked transfer encoding, but the 
production server DOES. I guess we just need to write two versions of our 
code that switch mode of operation based on the upload url...

On Monday, October 29, 2012 12:47:01 PM UTC-7, Markus Ansmann wrote:
>
> I'm heaving a really hard time finding documentation on a very basic 
> question about AppEngine:
>
> Does the BlobStore support Chunked Transfer Encoding for uploads?
>
> I'm using an HttpURLConnection object in Java with setChunkedStreamingMode 
> to upload a file in a multipart/form-data type request using the following 
> code to set up the connection:
>
> HttpURLConnection cxn = (HttpURLConnection) new URL(uploadUrl).
> openConnection();
> cxn.setRequestMethod("POST");
> cxn.setChunkedStreamingMode();
> cxn.setRequestProperty("Content-Type", "multipart/form-data; boundary=-");
> cxn.setDoOutput(true);
> cxn.connect();
>
> The dev-server answers my request with Status 411: Length required. Does 
> this mean that chunked transfer mode is not supported, or am I initializing 
> the connection incorrectly? Does the production server act differently 
> here? Is this behavior a consequence of specifying a max upload size when 
> generating the upload url?
>
> If I simply comment out the line cxn.setChunkedStreamingMode();, 
> everything works perfectly, but I'd rather not do this, so I don't have to 
> buffer hundreds of MB in memory before sending the request...
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/igcHhfw0JB4J.
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] Does AppEngine BlobStore support Chunked Transfer Encoding for uploads (getting Status 411: Length required)?

2012-10-29 Thread Markus Ansmann
I'm heaving a really hard time finding documentation on a very basic 
question about AppEngine:

Does the BlobStore support Chunked Transfer Encoding for uploads?

I'm using an HttpURLConnection object in Java with setChunkedStreamingMode 
to upload a file in a multipart/form-data type request using the following 
code to set up the connection:

HttpURLConnection cxn = (HttpURLConnection) new URL(uploadUrl).
openConnection();
cxn.setRequestMethod("POST");
cxn.setChunkedStreamingMode();
cxn.setRequestProperty("Content-Type", "multipart/form-data; boundary=-");
cxn.setDoOutput(true);
cxn.connect();

The dev-server answers my request with Status 411: Length required. Does 
this mean that chunked transfer mode is not supported, or am I initializing 
the connection incorrectly? Does the production server act differently 
here? Is this behavior a consequence of specifying a max upload size when 
generating the upload url?

If I simply comment out the line cxn.setChunkedStreamingMode();, 
everything works perfectly, but I'd rather not do this, so I don't have to 
buffer hundreds of MB in memory before sending the request...

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/9E9_NHwkp4UJ.
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] surplus import in 'Blobstore Python API Overview' documentation

2012-06-22 Thread Markus Pielmeier
Hi,


I think there is a surplus import in the blobstore python API overview 
documentation ( 
https://developers.google.com/appengine/docs/python/blobstore/overview?hl=en#Complete_Sample_App
 ). 
I think the import 'from google.appengine.ext.webapp import template' could 
be removed from the listing below the headline 'Complete Sample 
Application'.

I hope anybody who is responsible for the documentation reads this :-)


Markus

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/W2qdIsPWLaIJ.
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] Determine remote IP for Blob Upload

2012-06-14 Thread Markus Ansmann
Hi everyone!

Just a very quick question:
Is there a way to determine the remote IP of the client that uploaded a 
Blob to App Engine? The regular ".getRemoteAddr()" function 
returns the IP of the Google server that handled the upload and at least in 
dev-mode, the only extra header field I see is "X-AppEngine-BlobUpload = 
true", which isn't helpful.

Thanks,

  Markus

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



Re: [google-appengine] Google App Engine as Jabber Server

2012-03-20 Thread Markus Unger

>
> I want that a use myuser@app...@appspot.com can use app...@appspot.com as 
> a jabber server and they should connect via a native client like PSI or 
> Trillian...
>

ANYTHING@APP_ID.appspotchat.com is just another use of the backend account 
app...@appspot.com 

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

2012-03-20 Thread Markus Unger

>
> Hey!
>
>
This is not an option. I need no accounts on the backend. I need it as 
client.. so that I can use it in native clients like trillian or psi. 

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



[google-appengine] Google App Engine as Jabber Server

2012-03-20 Thread Markus Unger
Hey!

Is there a way to create accounts for my current Google App Engine Account? 
Currently I can just use app...@appspot.com to send and receive messages. 
But I still want to create my own accounts with password maybe like this

user1_app...@appspot.com

Is this possible with the current GAE?

Regards,

Markus

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

2012-03-19 Thread Markus Unger
Hello!

I have GAE App with XMPP Support and I can receive and send messages with 
my account exam...@appspot.com

But is there a way to create a new xmpp Account for my domain 
maybe exampl...@apppost.com or exampl...@apppost.com ?

Currently the xmpp Service allows to send and receive messages but is there 
a way to create additional accounts like a pure XMPP Server?

Regards,

Markus

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



Re: [google-appengine] Re: Need documentation of various limits/quotas regarding concurrent requests

2012-02-23 Thread Markus
It's really too bad, that AWS doesn't use the same datastore. Or do they 
maybe have something similar? :)

Markus

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



Re: [google-appengine] Re: Need documentation of various limits/quotas regarding concurrent requests

2012-02-23 Thread Markus
Hey Robert,

what a small world! Maybe we should post a feature request to the channels 
api people.

Do you know if it's possible with any of these other solutions to host 
their javascript libraries from your server as well? Preferably in a way 
that you won't have to check every hour whether they updated their 
server-side code to break compatibility with your version of the client 
library?

Which solution did you end up using?


Thanks,

Markus

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



Re: [google-appengine] Re: Need documentation of various limits/quotas regarding concurrent requests

2012-02-22 Thread Markus
interesting... beaconpush actually offers pretty much exactly what I'm 
looking for.

There's just one big problem, that the Channels API (and probably 
beaconpush as well) have for me: I'm working on a security-focused service, 
and the last thing that I can afford to do is have my page open random 
non-https requests to any domains other than the one from the main page. 
Especially not TALKGADGET.google.com. Even though "beaconpush.com" already 
sounds a lot less gossipy, I still don't think it would be a good idea. At 
least I would find such a page highly suspicious if I cared about my data 
being safe with them. Even including external javascript libraries is 
something I'd really like to avoid.

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



Re: [google-appengine] Re: Need documentation of various limits/quotas regarding concurrent requests

2012-02-22 Thread Markus
I have pretty much come to the same conclusion. For this I think I'll have 
to go to AWS. I just wanted to make sure that I didn't miss any clever 
little detail that would suddenly make it all possible and so much more 
elegant on AppEngine. This has happened to me before several times, 
especially when it came to transactions, queries, etc. in the datastore.

None-the-less, a limit of 6 concurrent requests on a back just seems 
ridiculously little, no? Especially if you take into account the fact that 
backends were specifically designed for long-running requests. Let's say 
you only use the backend to quickly compile a report for the client by 
spidering a whole bunch of pages, i.e. long time, but virtually no CPU use, 
you could only service 6 of these requests simultaneously, unless you want 
to somehow slice up the tasks and write your own scheduler to interleave 
their execution...

Backends seem like they aren't fully thought through yet... At least not as 
much as the rest of GAE.

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



Re: [google-appengine] Re: Need documentation of various limits/quotas regarding concurrent requests

2012-02-22 Thread Markus
Now THAT could actually be a real alternative, then! (Maybe I have to learn 
Go next?)

Two pieces of information that would be needed to ensure that this would be 
viable:

   - Do you know if Go still has a limit on the number of simultaneous 
   requests, though, even if not determined by the thread-count?
   - Is there a way to have a Go routine "block" on a Semaphore or 
   something until another Go routine signals it to continue?

Thank you!

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



Re: [google-appengine] Re: Need documentation of various limits/quotas regarding concurrent requests

2012-02-22 Thread Markus
I have pretty much come to the same conclusion. For this I think I'll have 
to go to AWS. I just wanted to make sure that I didn't miss any clever 
little detail that would suddenly make it all possible and so much more 
elegant on AppEngine. This has happened to me before several times, 
especially when it came to transactions, queries, etc. in the datastore.

None-the-less, a limit of 6 concurrent requests on a back just seems 
ridiculously little, no? Especially if you take into account the fact that 
backends were specifically designed for long-running requests. Let's say 
you only use the backend to quickly compile a report for the client by 
spidering a whole bunch of pages, i.e. long time, but virtually no CPU use, 
you could only service 6 of these requests simultaneously, unless you want 
to somehow slice up the tasks and write your own scheduler to interleave 
their execution...

Backends seem like they aren't fully thought through yet...

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/Ek_-Vz8ldW8J.
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: Need documentation of various limits/quotas regarding concurrent requests

2012-02-21 Thread Markus
Ouch! Really??? This is a MAJOR deal-breaker for one of my projects.

But if that's the case, what good is ? Is it
really only there to limit the number of requests even further?
Wouldn't it be brilliantly sensible and useful to use this setting to
specify the size of the thread pool?

Do you know if this is a soft-limit? I.e. could I request an increase?
With the app I'm working on, I'd love to have many 10s of thousands of
requests simultaneously locked in a wait() on a single backend. This
should consume virtually no CPU and probably not much memory either.
But with 10 threads (i.e. 10 requests) per instance, there is no way
this would work.

In case you guessed it: I am indeed trying to build my own much
improved version of the Channels API.

Thank you for the data-point. This might also explain the 6-request-
limit for my backend, if there are 4 other things going on in parallel
that I didn't initiate.

Markus



On Feb 21, 8:46 pm, Jeff Schnitzer  wrote:
> I suspect one of the missing pieces of information is that multithreaded
> Java instances can only handle 10 threads right now (or so I have been
> told).
>
> Jeff
>
>
>
>
>
>
>
> On Tue, Feb 21, 2012 at 2:05 PM, Markus  wrote:
> > Hi,
>
> > first of all, let me say that I think AppEngine is one of the greatest
> > ideas ever. I love the concepts behind it; even some of the
> > restrictions it comes with that allow it to be so scalable.
>
> > Unfortunately, though, I keep running into random undocumented limits,
> > that force me to rewrite my code frequently, or to even abandon GAE
> > for certain projects altogether.
>
> > Right now, I am fighting with concurrent requests and have found
> > several limits that I didn't see documented anywhere and I am not sure
> > whether I should be seeing them, or whether I am doing something
> > wrong. So I am hoping one of the Google engineers is available and can
> > give some background info regarding some of the limits/quotas/strange
> > behaviors I found with one of my test apps:
>
> > - Frontend instances can handle only about 30 requests/s (qps). (I've
> > seen that number mentioned in posts somewhere, but I can't find it in
> > the docs.)
>
> > - Frontend instances keep getting created by the scheduler "randomly",
> > sometimes already when I only have 2-3 requests pending, even if I set
> > the respective Application settings to max 1 idle instance and max 15s
> > request latency.
>
> > - Backend instances can handle only 10 requests/s (qps), independent
> > of instance class. (I haven't seen this mentioned anywhere.)
>
> > - Backend instances can only have 6 requests open simultaneously,
> > independent of how I set max-concurrent-requests. (Someone mentioned
> > this in a post in 2009 for a frontend instance, but I can't find any
> > infos on backends.)
>
> > - My backend sends "503 Service unavailable" errors randomly, if there
> > are too many requests pending. Unfortunately I can't get a number on
> > when this happens (how many requests is too many). Also, I found this
> > surprising since I thought that the whole point of backends was to not
> > have these sorts of limits.
>
> > Any light anyone can shed on these questions would be much
> > appreciated.
>
> > I am most interested in the  setting in
> > backends.xml. Should this do something? I guess if I had written GAE
> > (I wish), this would specify the size of the thread-pool for request
> > servlets? Is there a limit/quota for how high I can set this number?
>
> > Are there any differences in these limits between paid and free apps?
> > How about Python vs. Java?
>
> > Do the 9 hours per day of free backend use also apply for paid apps?
> > (Or more general: are all free quotas still free for paid apps?)
>
> > And, I guess, the question that non-Google-engineers can answer to
> > help me in this quest is:
>
> > - Has anyone been able to exceed any of the above mentioned limits? If
> > so, do you know how?
>
> > Thank you very much for your help,
>
> >  Markus
>
> > PS: Is there a chance we can get all quotas/pricing information on a
> > single page? Currently there are:
> > -http://code.google.com/appengine/docs/quotas.html
> > -http://code.google.com/appengine/docs/billing.html
> > -http://www.google.com/enterprise/cloud/appengine/pricing.html
> > -http://code.google.com/appengine/docs/java/backends/overview.html
> > (at the bottom)
> > - the Dashboard of the app itself
> > - and potentially many others that I haven't found yet
>
> &

[google-appengine] Re: Need documentation of various limits/quotas regarding concurrent requests

2012-02-21 Thread Markus
I have been looking through the archives, but maybe with the wrong
keywords. Maybe you have a couple of pointer for me which posts I
should look at?

On Feb 21, 8:30 pm, "Brandon Wirtz"  wrote:
> You aren't understanding the scheduler. There are a number of good posts in
> this forum on the topic. Check the archives.

-- 
You 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] Detecting request abortion in Java AppEngine

2012-02-21 Thread Markus
Hi,

I have a request that takes a little while to complete (many seconds).
Is there a way to detect whether the user or some network problem has
already aborted the request? This would allow me to save myself the
server-load of continuing the result generation, which won't go
anywhere anyways.

I tried the following in Dev-Mode, but neither worked (haven't checked
yet whether it behaves differently in production mode):

- Checking whether resp.getOutputStream completes without throwing an
IOException (it does, even after the request is gone).
- Checking whether there was an Interrupt sent to the servlet thread
(nope).


Thanks,

  Markus

-- 
You 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] Need documentation of various limits/quotas regarding concurrent requests

2012-02-21 Thread Markus
Hi,

first of all, let me say that I think AppEngine is one of the greatest
ideas ever. I love the concepts behind it; even some of the
restrictions it comes with that allow it to be so scalable.

Unfortunately, though, I keep running into random undocumented limits,
that force me to rewrite my code frequently, or to even abandon GAE
for certain projects altogether.

Right now, I am fighting with concurrent requests and have found
several limits that I didn't see documented anywhere and I am not sure
whether I should be seeing them, or whether I am doing something
wrong. So I am hoping one of the Google engineers is available and can
give some background info regarding some of the limits/quotas/strange
behaviors I found with one of my test apps:

- Frontend instances can handle only about 30 requests/s (qps). (I've
seen that number mentioned in posts somewhere, but I can't find it in
the docs.)

- Frontend instances keep getting created by the scheduler "randomly",
sometimes already when I only have 2-3 requests pending, even if I set
the respective Application settings to max 1 idle instance and max 15s
request latency.

- Backend instances can handle only 10 requests/s (qps), independent
of instance class. (I haven't seen this mentioned anywhere.)

- Backend instances can only have 6 requests open simultaneously,
independent of how I set max-concurrent-requests. (Someone mentioned
this in a post in 2009 for a frontend instance, but I can't find any
infos on backends.)

- My backend sends "503 Service unavailable" errors randomly, if there
are too many requests pending. Unfortunately I can't get a number on
when this happens (how many requests is too many). Also, I found this
surprising since I thought that the whole point of backends was to not
have these sorts of limits.

Any light anyone can shed on these questions would be much
appreciated.

I am most interested in the  setting in
backends.xml. Should this do something? I guess if I had written GAE
(I wish), this would specify the size of the thread-pool for request
servlets? Is there a limit/quota for how high I can set this number?

Are there any differences in these limits between paid and free apps?
How about Python vs. Java?

Do the 9 hours per day of free backend use also apply for paid apps?
(Or more general: are all free quotas still free for paid apps?)


And, I guess, the question that non-Google-engineers can answer to
help me in this quest is:

- Has anyone been able to exceed any of the above mentioned limits? If
so, do you know how?


Thank you very much for your help,

  Markus



PS: Is there a chance we can get all quotas/pricing information on a
single page? Currently there are:
- http://code.google.com/appengine/docs/quotas.html
- http://code.google.com/appengine/docs/billing.html
- http://www.google.com/enterprise/cloud/appengine/pricing.html
- http://code.google.com/appengine/docs/java/backends/overview.html
(at the bottom)
- the Dashboard of the app itself
- and potentially many others that I haven't found yet

-- 
You 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: JAVA: Problem with concurrent requests and "threadsafe true" tag

2012-02-17 Thread Markus
Well, then... This lead me to a work-around:

Simply create a  for an entire directory and then
just send every request to a different "file" in that directory.

Now, the question remains: Should we be doing this with all requests
to guarantee efficient multi-threading?

-- 
You 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: JAVA: Problem with concurrent requests and "threadsafe true" tag

2012-02-17 Thread Markus
Potentially interesting new piece of information:

If I create a second  in my web.xml to the same Wait-
, I can lock up one request with each. So, the requests must
be put into a pending queue very early in the process, potentially
even before the decision Java vs. Python is made. So maybe this is a
Python problem as well...

Does this mean that if you write a GWT app using the RemoteService way
to make remote procedure calls, which all run through a single
 on your server, you have effectively rendered multi-
threading useless?

-- 
You 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] JAVA: Problem with concurrent requests and "threadsafe true" tag

2012-02-17 Thread Markus
Hi everyone,

I'm seeing a strange concurrent-requests problem with a very simple
test and am not sure whether it's a bug, a feature, or whether I am
doing something wrong:

Using App-Engine 1.6.1, I wrote the following test-app (modulo the
usual imports and xml files):

--8<--

public class Wait extends HttpServlet {
public static final Semaphore SEMAPHORE = initSemaphore();

private static Semaphore initSemaphore() {
Semaphore result = new Semaphore(1, true);
result.acquireUninterruptibly();
return result;
}

public void doGet(HttpServletRequest req, HttpServletResponse resp) {
SEMAPHORE.acquireUninterruptibly();
SEMAPHORE.release();
resp.getWriter().println("Got event");
}
}

--8<--

public class Release extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse resp) {
Wait.SEMAPHORE.release();
Wait.SEMAPHORE.acquireUninterruptibly();
resp.getWriter().println("Sent event");
}
}

--8<--

Now, what I was hoping to see is that I can send several GET requests
to the Wait servlet and have them all "lock up" until I send a GET
request to Release. What instead I see is that a request to Release
releases the Wait requests only ONE at a time. With a little bit of
System.out.println magic, I was able to determine that the reason for
this is that any further requests to Wait don't actually make it into
the doGet-method before the first one is fully handled. In fact,
adding a second copy of the Wait class as follows:

--8<--

public class Wait2 extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse resp) {
Wait.SEMAPHORE.acquireUninterruptibly();
Wait.SEMAPHORE.release();
resp.getWriter().println("Got event");
}
}

--8<--

allows me to "lock up" one request to Wait and a second one to Wait2
and release them both with a single request to Release.

Deploying the app, I also see that AppEngine launches a second
instance after I have 2 requests pending (which of course renders
Release ineffective, if it happens in a different instance from the
one holding the Wait).

This behavior seems independent of whether I have true in my application-web.xml file or not.

What's strange to me is the inconsistency:
 - On the one hand it clearly allows multi-threaded request handling
inside one instance as I can release a GET request to Wait with a
seperate, simultaneous GET request to Release.
 - On the other hand, it seems to disallow multi-threading within the
same HttpServlet object.
 - Neither one seems to be influenced by true.

A couple of side notes:
- As far as I can tell, the dev-server and the production server
behave identically here.
- I know that I should probably be using Channels instead to achieve
this, but they have two problems for me, namely the lack of fan-out
and the page sending requests to talkgadget.google.com (which might
make users a bit skeptical if you're trying to build a security-
focused service). Also, I'd like to understand this exact issue
independent of potential other approaches as it has a direct impact on
billing (multiple requests to the same Servlet triggering more
instances).


I am hoping that one of you might have a thought on how I could crack
this.


Thanks,

  Markus

-- 
You 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] App Engine Connected Android Support

2011-12-21 Thread Markus Unger
Hello!

Today I saw the new Connection between App Engine and Android. Seems
to be cool to send Messages via C2DM...

But in the Run and Debug Documentation it sounds like the User must
submit the CloudTask...

http://code.google.com/intl/de-DE/eclipse/docs/appeng_android_run_debug.html#run_android

I only know that the Android app requires Permission, but must the app
submit CloudTask too?

I think many users may disagree with this option...

Anybody know if the user must submit this permission?

Thanks for Help!

Regards, Markus

-- 
You 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] JPA Embedded Objects

2011-08-25 Thread Markus
Hey!

I try to test JPA features, so I currently try embedded Objects.

Entity User


@Entity
@SuppressWarnings("serial")
public class UserDO implements Serializable {

@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
protected Long id;

protected String nickname;
protected Email email;
protected Date lastLogin;

@Embedded
protected Adress adress;

public UserDO() {
}

}

I added a Adress Object.

@Embeddable
public class Adress {

protected String street;
protected String town;
   ...
}


Everything works fine and if i get a user and to user.getAdress() I
get the correct Object.

But when I need maybe 1000 Users... How is the best pratice...
currently I use this code:

List data = new ArrayList();

EntityManager em = EMF.get();
try {
 Query query = em.createQuery( "SELECT e from " +
UserDO.class.getName() + " e" );
 data.addAll( query.getResultList() );
 for(UserDO u : data) {
 u.getAdress();
 }
} finally {
em.close();
}

Is there no way to say... load this object everytime I receive the
UserDO?

Thanks for help!

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



[google-appengine] JPA Version

2011-08-23 Thread Markus
Hello!

I would like to know, which version of JPA is currently supported by
GAE.

Thanks for reply!

Regards, Markus

-- 
You 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: javax.el.PropertyNotFoundException: Could not find property typeDO in class xxx.xxx.ImageDO

2011-05-09 Thread Markus
Omg... a realy realy stupid error. Thanks for help...

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



[google-appengine] javax.el.PropertyNotFoundException: Could not find property typeDO in class xxx.xxx.ImageDO

2011-05-09 Thread Markus
I have a nice error. I developed a simple JDO Class:

public class ImageDO extends CommonData {

@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
@Unique
protected Key id;

@Persistent
protected String key;

@Persistent
protected String name;

@Persistent
protected Text description;

@Persistent
protected Date created;

@Persistent
protected Key type;

@NotPersistent
protected ImageTypeDO typeData;

}

The Key type is the Key to the ImageTypeDo. So i can get the type of
any kind of ImageDO. Local it works fine, I get the key and the
typeData. But if I deploy live I get the following error:

javax.el.PropertyNotFoundException: Could not find property typeDO in
class xxx.xxx.ImageDO
at javax.el.BeanELResolver.toBeanProperty(BeanELResolver.java:442)
at javax.el.BeanELResolver.getValue(BeanELResolver.java:300)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:
231)
at org.apache.el.parser.AstValue.getValue(AstValue.java:123)
at
org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:
186)
at
org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:
935)
at
org.apache.jsp.content.user.register.register_jsp._jspService(register_jsp.java:
112)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

It's seem that the class I have local have the attribute and the live
class has it not. Could this be? I thought what I devevlop at local it
runs on the google live server.

Regards, Markus

-- 
You 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: You do not have permission to modify this app (app_id=u'XXX').

2011-05-09 Thread Markus
I found the problem. After update the Eclipse Plugin forget my account
data. In Eclipse und the bottom statusbar on the left border.. there
is the account you've signed in. So I just clicked, updates my account
data and could update my apps.

Thanks for help guys!

-- 
You 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] You do not have permission to modify this app (app_id=u'XXX').

2011-05-08 Thread Markus
Hey.. after the Google Plugin updated, i can't upload my app...

I getting these error message:

java.io.IOException: Error posting to URL:
https://appengine.google.com/api/appversion/create?app_id=XXX&version=1&;
403 Forbidden

You do not have permission to modify this app (app_id=u'tXXX').

I have only one account for the app and it's marked as "owner" so.. I
have no idea what happend. I looked for the email that is defined in
the eclipse plugin but I didn't find them.. anybody an idea?

Regards Markus

-- 
You 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 NOT NULL

2011-03-15 Thread Markus
Hey,

I try to use JDO in Google App Engine to get all Servers that have a
published date != null. But I find no way...


Query q = pm.newQuery(ServerDO.class);
q.setFilter("published != null");
q.setOrdering("name ASC");


I tried also IS NOT NULL and declare a parameter which I set to
null...

Can anybody help me? I don't think that this query should be heavy...

Regards,

Markus

-- 
You 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] JDO Drop Columns/Attribute

2011-03-09 Thread Markus Unger
Hey...

I tried some tests with JDO and the Google App Engine. So I created a
simple object:


@PersistenceCapable(identityType = IdentityType.APPLICATION)
@SuppressWarnings("serial")
public class CareerDO extends CommonData {

public CareerDO() {
}

public CareerDO(String key, Long sort) {
this.key = key;
this.sort = sort;
}

@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
@Unique
protected Key id;

@Persistent(nullValue = NullValue.NONE)
@Index
protected String key;

@Persistent(nullValue = NullValue.NONE)
protected Long sort;

@Persistent
protected Set races = new HashSet();

}

It works fine and the Set of Keys is the reference for another object.
But what will happen when I don't longer not a field? Ok, I delete the
attributes and remove the annotation. But in my tests, the attribute
ist still alive in the database. So how does it work with a drop or
add column?

Regards,

Markus Unger

-- 
You 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] JDO GUI Tools

2011-03-09 Thread Markus Unger
Hey,

does anybody know something about an GUI Tool for JDO Development
especially for Google App Engine?

Thanks for help

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



[google-appengine] Is a real-time multiplayer game using Google App Engine feasible?

2011-02-19 Thread Markus Roth
I am currently developing a real-time multiplayer game, and have been
evaluating various cloud-based hosting solutions. I am unsure whether
App Engine fits my needs, and would be grateful for any feedback.

In essence, I want the system to work like this: Player A calculates
round n, and generates a hash out of the game state at the end of that
round. He then sends his commands for that round, and the hash, as a
http POST to the server. Player B does the same thing, in parallel.

The server, while handling the POST from a player, first writes the
received hash code to the memcache. If the hash from the other player
is not yet in the memcache, it waits and periodically checks the
memcache for the other players hash. As soon as both hashes are in the
memcache, it compares them for equality. If they are equal, the server
sends the commands of each player to the respectively other one as the
http response.

A round like that should last around half a second, meaning two
requests per player per second.

Of course, this way of doing it will only work if there are at least
two instances of the application running, as two requests must be
dealt with in parallel. Also, the memory cache must be consistent over
all instances, be fairly reliable, and update immediately.

Is there a way to enforce that two instances of the app are always
running? Are there glaringly obvious flaws in my design? Do you think
an architecture like this might work on App Engine? If not, what could
based solution would you suggest?

I have also posted this question to StackOverflow[1]

Thank you very much for your feedback.

[1]http://stackoverflow.com/questions/5045329/is-a-real-time-
multiplayer-game-using-google-app-engine-feasible

-- 
You 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] Store Image in Google Apps Engine database

2009-11-03 Thread Markus

Hi!

I try to store a image in my google app engine application. I followed
this documentation: 
http://code.google.com/appengine/docs/python/images/usingimages.html

My db.Model:

class Image(db.Model):
  image = db.BlobProperty()
  name = db.StringProperty()

My Form:


Name:
Image:




My insertImage class:

class insertImage(webapp.RequestHandler):
  def post(self):

name = self.request.get('name')
image = self.request.get('file')

setImage(name, image)

self.redirect('/')

def setImage(name, image):
dbm = MyDbModel.Image()
dbm.image = db.Blob(image)
dbm.name = name
dbm.put()

But after I click the "submit"-button of my online form I get this
error message:

google_appengine/google/appengine/api/datastore_types.py", line 1057,
in __new__
type(arg).__name__)
TypeError: Blob() argument should be str instance, not unicode

I also tried "dbm.image = db.Blob(open(image).read())" in my setImage
class. Which I found here: 
http://code.google.com/appengine/docs/python/datastore/typesandpropertyclasses.html#Blob

But this result in this error:

google_appengine/google/appengine/tools/dev_appserver.py", line 1079,
in __init__
super(FakeFile, self).__init__(filename, mode, bufsize, **kwargs)
IOError: [Errno 2] No such file or directory: u'MyImage.jpg'

Do you have an idea what's wrong?

Thanks a lot!
Markus
--~--~-~--~~~---~--~~
You 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] compare to db.key's

2009-09-20 Thread Markus

Hello,

I have two db.Models let's call it Model A and Model B.

Model B has an field "ref = db.ReferenceProperty(A)"

Now I know a db.key from a database entry in A and want to find all
database entries of B which referes to that specific entry in A.

I tried a naive approach:

# first get all entries from B
datas = db.GqlQuery("SELECT * FROM B")

#
for B in data:
#if B.ref == familarKeyFromA:
  # found an entry in B who referes to A
  ...

But this doesn't work. I get no results. But i know that there exists
entries in B with a reference to an entry in A (familarKeyFromA).

Probably the simple "if B.ref == familarKeyFromA" doesn't work. But
how can I compare to db.key's?

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



[google-appengine] Re: Access from non-browser-based application?

2009-08-12 Thread Markus

Hi,

On Aug 11, 8:02 pm, NealWalters  wrote:
> This maybe what you are asking 
> about?http://code.google.com/appengine/articles/remote_api.html

indeed, this looks really good. :-)

But the example doesn't work here.
I'm running the guestbook example on localhost:8080 and want to access
it with a client program.

I have changed my helloworld  app.yaml to:

application: helloworld
version: 1
runtime: python
api_version: 1

handlers:
- url: /.*
  script: helloworld.py
- url: /remote_api
  script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py
  login: admin

and the client code looks like:

#!/usr/bin/python
import code
import getpass
import sys

sys.path.append("~/googleapp/google_appengine")
sys.path.append("~/googleapp/google_appengine/lib/yaml/lib")

from google.appengine.ext.remote_api import remote_api_stub
from google.appengine.ext import db

def auth_func():
  return raw_input('Username:'), getpass.getpass('Password:')

if len(sys.argv) < 2:
  print "Usage: %s app_id [host]" % (sys.argv[0],)
app_id = sys.argv[1]
if len(sys.argv) > 2:
  host = sys.argv[2]
else:
  host = 'localhost:8080'

remote_api_stub.ConfigureRemoteDatastore(app_id, '/remote_api',
auth_func, host)

code.interact('App Engine interactive console for %s' % (app_id,),
None, locals())

But if i try to run the program i get this error message:

$ python client.py helloworld
Traceback (most recent call last):
  File "client.py", line 9, in 
from google.appengine.ext.remote_api import remote_api_stub
ImportError: No module named google.appengine.ext.remote_api


Any idea what's wrong?

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



[google-appengine] Access from non-browser-based application?

2009-08-11 Thread Markus

Hello!

the last days i read a lot about google app engine but I couldn't find
the answere to one question.

I searching a solution where I can access with a non-browser-based
application the database (read/write). Is this possible with google
app engine? I found this example in the Cookbock[1]. This seems like
something I'm searchning for.  But if i want to deploy the app to more
users it would be bad to put my google auth-data into the app. The
other users should only be able to access the application as they
would use it in a browser but with a stand-alone client.

So my question: Is it possible to create a google app which allows
other users with a special usename/password to access the app from a
non-browser-based application but with no further rights?
Can you point me to some examples or documentation if this is possible
and if it's not possible do you know a solution which would fit my
needs?

[1]
http://appengine-cookbook.appspot.com/recipe/authenticate-from-non-browser-based-application/?id=ahJhcHBlbmdpbmUtY29va2Jvb2tyngELEgtSZWNpcGVJbmRleCJAYWhKaGNIQmxibWRwYm1VdFkyOXZhMkp2YjJ0eUdnc1NDRU5oZEdWbmIzSjVJZ3hWVWt4R1pYUmphQ0JCVUVrTQwLEgZSZWNpcGUiQWFoSmhjSEJsYm1kcGJtVXRZMjl2YTJKdmIydHlHZ3NTQ0VOaGRHVm5iM0o1SWd4VlVreEdaWFJqYUNCQlVFa00yDA

Thanks a lot!
Markus

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



[google-appengine] Re: Data model in folder

2009-03-18 Thread Hilbert Markus
by your import statement i guess you have the following structure:

DataModels/
__init__.py
AccountData.py

inside AccountData.py is a class or even method with the name Accounts  
defined.

is that correct?

regards
iham


On Mar 18, 2009, at 5:52 PM, Ronn Ross wrote:

> I apologize for the previous message. I figure out the issue.  
> Although I'm am still receiving this error:
> : cannot import name Accounts
>   args = ('cannot import name Accounts',)
>   message = 'cannot import name Accounts'
>
> I added the __init__.py file and I'm using this line to include it:
> from DataModels.AccountData import Accounts
>
> Thanks.
>
> On Wed, Mar 18, 2009 at 12:37 PM, Ronn Ross   
> wrote:
> I added a blank __init__.py file in my DataModels folder and I  
> receive this:
> : __init__() got an unexpected keyword  
> argument 'Required'
>   args = ("__init__() got an unexpected keyword argument  
> 'Required'",)
>   message = "__init__() got an unexpected keyword argument  
> 'Required'"
>
> Do I have to add anything to the __init__.py file?
>
> On Wed, Mar 18, 2009 at 11:54 AM, Hilbert Markus  > wrote:
> hi ronn,
>
> to access a folder in python (using import) you must place an empty  
> __init__.py file inside that DataModels folder.
> this tells python that this folder as a package.
>
> regards iham
>
> On Mar 18, 2009, at 2:22 PM, Ronn Ross wrote:
>
>> I have placed my data model in a separate folder. For example:
>> DataModels/AccountData.py
>>
>> Now I want to import it into my main controller. I'm trying:
>> from DataModels.AccountData import Accounts
>>
>> it give me this error when I try to run it:
>> : No module named AccountData
>>   args = ('No module named AccountData',)
>>   message = 'No module named AccountData'
>>
>> What am I doing wrong. Can someone help? thx
>>
>>
>>
>
>
>
>
>
>
> >


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



[google-appengine] Re: Data model in folder

2009-03-18 Thread Hilbert Markus
hi ronn,

to access a folder in python (using import) you must place an empty  
__init__.py file inside that DataModels folder.
this tells python that this folder as a package.

regards iham

On Mar 18, 2009, at 2:22 PM, Ronn Ross wrote:

> I have placed my data model in a separate folder. For example:
> DataModels/AccountData.py
>
> Now I want to import it into my main controller. I'm trying:
> from DataModels.AccountData import Accounts
>
> it give me this error when I try to run it:
> : No module named AccountData
>   args = ('No module named AccountData',)
>   message = 'No module named AccountData'
>
> What am I doing wrong. Can someone help? thx
>
> >


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