google-app-engine

GQL query with numeric id in datastore viewer

I want to build GQL query to get an object using its numeric id. I'm doing this in Datastore viewer in App management console, so I can't use Model.get_by_id(numeric_id). Something like SELECT * FROM Model WHERE id = <numeric_id> also doesn't work. ...

Google App Engine Python: How to display textarea value in mail

I have a html form with <textarea name="message"></textarea> and I get the value by message = self.request.get('message'). Then I do mail api message = mail.EmailMessage(sender="[email protected]", subject="Testing") message.to = '[email protected]' message.html = """The Message: %s """ % (message) message.send() The problem is I can only...

What security issues need to be addressed when working with Google App Engine?

I've been considering using Google App Engine for a few hobby projects. While they won't be handling any sensitive data, I'd still like to make them relatively secure for a number of reasons, like learning about security, legal, etc. What security issues need to be addressed when working with Google App Engine? Are they the same issues...

Running Facebook Connect on localhost

Hi, I can't run facebook connect on localhost. I am using app-engine on pydev. I configured the site in facebook to : http://localhost:8080 but it returns an error : API Error Code: 100 API Error Description: Invalid parameter Error Message: next is not owned by the application. Is there a way to work with facebook on localhost? Tha...

multipart/form-data and java.lang.NoClassDefFoundError: java.rmi.server.UID is a restricted class

I'm having this jsp page. <form method="post" action="addBook.do?reqCode=submit" enctype="multipart/form-data"> <input type="file" name="myfile" /> </form> When I submit, I got this error java.lang.NoClassDefFoundError: java.rmi.server.UID is a restricted class. Please see the Google App Engine developer's guide for more details. at...

Parsing facebook oauth access_token string

Facebook returns access tokens in the form of a string: 'access_token=159565124071460|2.D98PLonBwOyYWlLMhMyNqA__.3600.1286373600-517705339|bFRH8d2SAeV-PpPUhbRkahcERfw&expires=4375' Is there a way to parse the access_token without using regex? I'm afraid using regex would be unaccurate since I don't know what FB uses as access tokens...

Pixel by pixel operation on image in Google App Engine using Python

I would like to go over an image and do some pixel by pixel operation. The image API provided by Google App Engine seems to be incapable to do this. And it doesn't include Python Imaging Library. So, how should I proceed with it. Thanks.. ...

Spring MVC on GAE: Slow Load Time

Hello All! I recently deployed a Spring MVC application to google app engine, and the intial load time is about 7sec. Once the application is loaded, the app is quite responsive. But, if the app is idle for more than 1 minute (there isn't ANY traffic to it) the app needs to be again reloaded by GAE, which, takes about 7sec as well. For...

Efficiently retrieving entities that match any element of a set of ids

I'm writing software to provide feedback to people across many categories. For example, I might have 30 employees and 40 standards of evaluation (e.g. "arrives on time," "is polite," "appears to brush his teeth," etc). At arbitrary times, the supervisor can submit a piece of feedback like "employee 3 gets a 5/5 for standard 8 (he smell...

Adding tasks on taskqueue

I have task queue that adds task to second queue, while second queue is paused. Is it possible to add task to task-queue which is paused? ...

Expert developer on the Microsoft stack, can't decide between GAE or Microsoft stack

I am creating a website with a friend to try and make some money. Basically, we want to let users aggregate data from different social networking site's APIs (FaceBook, Twitter, etc.) and do some cool things with the data. My non-developer friend is sold on the Google App Engine because it costs nothing at first, and then you pay as yo...

Establishing entity groups while maintaining access to Long ids

I'm using the appengine datastore, and all of my entities have Long ids as their PrimaryKey. I use those ids to communicate with the client, since the full-fledged Keys take much more bandwidth to transmit. Now, I want to form entity groups so that I can do complex operations within transactions, and it seems from http://code.google.co...

Which exception is throw by URLFetchService for timeouts?

The Google App Engine UrlFetchService has a setDeadline FetchOption which is suppose to raise an exception when tripped. The app can specify the maximum amount of time to wait when it makes the call. If the maximum wait time is exceeded, the call raises an exception. Which Exception? If it is an IOException, how should I discrimi...

getting authToken of a Google Account in Android

Hi, I am trying to model an app based on http://code.google.com/p/jumpnote/ authBundle = am.getAuthToken(account, APPENGINE_SERVICE_NAME, needAuthAction == NEED_AUTH_NOTIFICATION, null, null).getResult(); authToken = authBundle.getString(AccountManager.KEY_AUTHTOKEN); authToken is returned null in this case. ...

django-nonrel on Google App Engine - Implications of using ListField for ManyToMany

I am working on a Google App Engine application and I am relatively new at this. I have built an app already in Django and have a model using a field type of ManyToMany. I am aware that django-nonrel does not support many-to-many field types of Django. So I am considering using ListField instead. Questions: - What is the implication ...

Google App Engine (Python)- Strange behaviour of REMOTE_ADDR

In order to make the registration process on my website easy, I allow users to enter their email address which I will send a verification code to or alternatively they can solve a captcha. The problem is that in order to prevent robots from registering accounts (with fake emails) I limit the number of registrations allowed per IP addres...

Created HTTP response to be the same as accessing .jpg in Python

I want to server an image file but accept some attributes for processing before hand using Python and google app engine. Where I would normally have 'http://www.domain.com/image/desiredImage.jpg' as the image to server. I want to be able to add some tracking to it so I can do something similar to 'http://www.domain.com/image/desired...

Learning Google App Engine & BigTable

I have a traditional RDBMS based PHP app that I need to convert over to GAE and would like to properly learn how BigTable works prior to doing this. However, I'd kinda like to do it through sample problems or examples that show the maximal way to think about and utilize a non RDBMS platform such as BigTable... It seems that this would...

Lightweight & Fast REST Server library for java?

Hi, I'm looking for a lightweight REST library. It must be small (in kb size) & Fast (In total execution time). The optimal solution is a single jar without any dependencies what so ever. The application is designed to run on the AppEngine so the library should work on GAE/J platform. Thanks for the helping, Maxim. ...

Ways to implement Janrain Engage (RPXNow) on Google App Engine?

What a some possible solutions to best implement Janrain Engage (RPX Now) on Google App Engine? ...