google-app-engine

serialize java objects to objective c plist

Hi, I have a java web server (google app engine to be precise) and which works with an iPhone app written in objective C. I'd like to transfer data from the server to the client - specifically I'd like to serialize my plain old java objects to an objective c plist string so that it can be easily parsed by the client iphone. Are there an...

how do I make a python gql query with a hardcoded string?

I'd like to create a gql query through my browser dashboard to easily look up specific entries, i.e. something like: SELECT * FROM MyEntity where mString = "SpecificEntity" but I can't quite get the syntax right. I see a lot of examples using parameter binding/substitution (not sure what it is called), but I don't know how to simply ...

Attaching Files to Email in App Engine?

How do I attach a file located on Web URL to an email using google app engine (Python)? I have the file located at say: http://www.abc.com/files/file.pdf I want to attach this to an email and send it to a user on app engine. How do I do this? ...

Storing a file in the blobstore from a URL in app engine?

I want to retrieve a file form a URL like http://www.abc.com/files/file.pdf and store in the blobstore... how do I do this? Right now it only allows from form posts ... ...

Difference between Blob and a file

Hey! What is the difference between saving a file (e.g. AVI) as a Blob in the datastore to saving it as a normal AVI file on a webserver? Thanks! Joel ...

grails + app-engine upload error

I am using grails 1.3.3 and app-engine plugin 0.8.10; my test case is: upload.gsp: <form action="/test/process" method="post" enctype="multipart/form-data"> <input type="file" name="file"/> <input type="submit"/> </form> TestController has: def process = { println request.getFile("file").inputStream.text } First time...

App Engine: create object inside a transaction

I'm writing a site on GAE-Java + Objectify which lets users create their own pages, with unique URL. I haven't been able to figure out a clear way to ensure that when two users try to claim the same url at the same time, only one user gets it. This is what I'm trying to avoid: User 1 does a check - its available User 2 does a check - ...

GQL Query Optimization and Table Architecture

I've been working with Google App Engine and I'm running into some slow performance with some of my data queries. I've read that designing an App Engine datastore is a different mindset from working with SQL databases and I'm not sure I'm doing this the best way. I have two questions to try to get on the right track: Specifically: I ...

[GAE Java] Entity groups

Hey, I'm experimenting a bit with google app engine and the lack of a transaction di framework is missing. I'm implementing it as good as I can, but I'm hitting the same exception again and again: can't operate on multiple entity groups in a single transaction. found both Element... I have read the documentation (http://code.google.com/...

How to cancel tasks in a Google App Engine task queue from within your code

I'm working on a GAE app that will take a comma separated list and create a batch job out of it. I want to add one task to the task queue from any one batch job at a given time. The problem with this is that if a task can't be executed it will just keep repeating for ever and the rest of the tasks will never get added to the queue. Is th...

Google App Engine - Bulkloading using RemoteApiServlet - Billing

I am using the App Engine RemoteApiServlet and the Bulkloader to load data into the datastore. As the dataset that i was uploading was huge (a million entities) I enabled "Billing" on my application and set the max. daily budget to $5 and later to $10. After i loaded the entities, using the App Engine admin console, i determined that i ...

Securing a deployed Roo/GWT application

Hi everybody, I recently succeded in uploading a Roo/GWT project on Google App Engine. But, how can I secure it from the Google App Engine application dashboard? Is there a way to tell to GAE to put a Google Login Box at the start and set a list of authorized accounts? Thank you very much, Regards. ...

Open source managed runtime environments (MRTE) server for Java?

Hi, all. I want to enable the users of my website to upload their Java programs as a set of jar files. Of course I want to restrict the classes they can see or use, along with the underlying machine resources such as the heap, the threads, the disk, the consumed processor, etc, etc. I want a server to manage, store and run those user ...

Has anybody run Wicket application on Google-App-Engine?

We have a lot of Wicket based applications being run out of a standalone Java Tomcat server. We are planning to move some of this into Google App Engine. Has anybody tried running similar applications (Wicket heavy) on GAEJ? Are there any troubles with session handling in GAEJ (documentation indicates it should work - http://code.google....

GAE java.lang.IllegalStateException: Must call one of set*BlobStorage() first.

I am trying to upload a file in GAE using the Blobstore API. I am getting the following exception when running the GAE server locally (dev mode): WARNING: /_ah/upload/ag10cmlwc2NoZWR1bGVychsLEhVfX0Jsb2JVcGxvYWRTZXNzaW9uX18YFQw java.lang.IllegalStateException: Must call one of set*BlobStorage() first. at com.google.appengine.api.blobsto...

Google One time token problem

String requestUrl = AuthSubUtil.getRequestUrl(Constants.RETURN_URL,Constants.GOOGLE_DOCS_URL, false, true); return "redirect:"+requestUrl; After sign in using google account and grant access, it takes me to RETURN_URL with appened token but i am get invalid token like this http://myurl?token=1/AIUEL-JKEA_KEIOI always starts with to...

app engine - how can i increase the datastore item size limit

how can i increase the datastore item size limit, which is now only 1 MB, in app engine? if i buy more storage what will happen to this limit? thanks ...

Retrieving an entity from GAE datastore by key

If I have the google assigned key of an entity in my datastore, say ag1iYXRjaC1nZW5lcmljchcLEgxCYXRjaGVzTW9kZWwiBUpvYiAyDA, is there a way I can easily fetch the entity by this key? I've tried using .get_by_id(), .filter('__key__=', 'ag1iYXRjaC1nZW5lcmljchcLEgxCYXRjaGVzTW9kZWwiBUpvYiAyDA') and can't seem to find anything that works. Any ...

Google App Engine: tasks vs threads?

I have a local scientific application that uses threads to process independent pieces of a large calculation. My group would like this to become a web application, so now I'm figuring out how to port it (so please forgive any complete bonehead statements). I'm using Google App Engine to take care of the "web" part of it, but I'm still ...

App Engine - Datastore vs Blobstore for user uploaded profile pics?

Which one should I use? What are the pros and cons to using each? The images will all be less than 100 kilobytes. 3 kilobyte thumbnails of each image will be retrieved quite often, like 2 to 5 on each page view on average. Which would be better to use, considering latency in retrieving the images, cost in CPU time of retrieving the ...