google-app-engine

Uploading file on Google App Engine using Datastore and 30 sec response time limitation.

Will the response timer on google app engine start upon submitting the web page's form? If I'm going to upload a file that is greater than 1MB, I could split the files to 1MB to fit in the limitation of the Google App Engine Datastore. Now, my concern is if the client's internet connection is slow, it would eat up the 30 seconds timer r...

Avoiding polling on services like Heroku and Google App Engine?

I do not think there's a way to do this but I thought I'd ask to see what workarounds people are using to avoid polling on Heroku and/or GAE. How are you sending out notifications in somewhat real-time from these apps? ...

Google App Engine and SQL LIKE

Is there any way to query GAE datastore with filter similar to SQL LIKE statement? For example, if a class has a string field, and I want to find all classes that have some specific keyword in that string, how can I do that? It looks like JDOQL's matches() don't work... Am I missing something? Any comments, links or code fragments are ...

I am looking for good read-ups for Java programming using app-engine

I am trying to make a website using Java on google app-engine. Can you suggest any good readups to get me up to speed on this? ...

Can I write parts of the Google App Engine code in Java, other parts in Python ?

Google App Engine supports both Python and Java application development. Can I have both in the same application? ...

Is it a typo in this JSP where it says "</a>>"?

I found this example in the App Engine documentation. 1 <% 2 UserService userService = UserServiceFactory.getUserService(); 3 if (!userService.isUserLoggedIn()) { 4 %> 5 Please <a href="<%=userService.createLoginURL("/newlogin.jsp")>">log in</a>> 6 <% } else { %> 7 Welcome, <%= userService.getCurrentUser().getNi...

How do I temporarily disable AppStats in my Google App Engine application?

I recently configured my app to use the new AppStats feature of GAE. However, while debugging it, the extremely verbose logging from AppStats is annoying & I'd like to disable it while I'm debugging and then turn it back on later. Surely there is a single line I can add to or modify in a config file that will let me do this. ...

DataNucleus Enhancer, JDO and Specifying Column Names

I'm working with DataNucleus as part of a Google App Engine project and I'm having a bit of trouble with columns in persistence. @PrimaryKey(column = "user_id") @Column(name = "user_id") @Persistent(name = "user_id", column = "user_id", valueStrategy = IdGeneratorStrategy.IDENTITY) private Key m_id; @Column(name = "user_name") @Persist...

Looping Redirect with PyFacebook and Google App Engine

I have a Python Facebook project hosted on Google App Engine and use the following code to handle initialization of the Facebook API using PyFacebook. # Facebook Initialization def initialize_facebook(f): # Redirection handler def redirect(self, url): logger.info('Redirecting the user to: ' + url) self.response....

App engine datastore - query on Enum fields.

I am using GAE(Java) with JDO for persistence. I have an entity with a Enum field which is marked as @Persistent and gets saved correctly into the datastore (As observed from the Datastore viewer in Development Console). But when I query these entities putting a filter based on the Enum value, it is always returning me all the entities ...

I want to make a Google App Engine application; have a decent JavaSE/Swing + Javascript/(X)HTML + relational database (SQL) background

Can you refer me to a good starting place for learning GAE from what I already know? I plan to make a fairly elaborate application, and I'm not completely certain on where to start or how far I'll need to go (JavaEE?). I'd rather hear from someone who already knows what's involved than start off by guessing and stumbling. ...

Simplest way to store a value in Google App Engine Python?

I'm lazy! And I just want to store one single string value. That's all! Can I jump over any kind of Modeling and just store a value? ...

What's the meaning of the question mark inside the angle brackets: <? extends java.lang.Comparable>

In App Engine, according to the JavaDoc, the getTypeRank method has this signature: public static int getTypeRank(java.lang.Class<? extends java.lang.Comparable> datastoreType) In the method signature there is a question mark inside the angle brackets: <? extends java.lang.Comparable> What does it signify? ...

App Engine Development Server CPU usage

Is there a way to measure or monitor how much of the server's CPU my app will be using for a particular task/query, etc? In many tutorials you see people talking about optimization, and that some operations are CPU 'expensive'. Thanks ...

Google AppEngine + Local JUnit Tests + Jersey framework + Embedded Jetty

I use Google Appengine for Java (GAE/J). On top, I use the Jersey REST-framework. Now i want to run local JUnit tests. The test sets up the local GAE development environment ( http://code.google.com/appengine/docs/java/tools/localunittesting.html ), launches an embedded Jetty server, and then fires requests to the server via HTTP a...

App Engine (Python) Datastore Precall API Hooks

Background So let's say I'm making app for GAE, and I want to use API Hooks. BIG EDIT: In the original version of this question, I described my use case, but some folks correctly pointed out that it was not really suited for API Hooks. Granted! Consider me helped. But now my issue is academic: I still don't know how to use hooks in ...

App Engine Datastore - devserver limits

I'm trying to test the efficiency of the Google App Engine Datastore database. I want to know how fast it will query over a large dataset. And by large, I mean like 5-10mil entities of the same kind. The devserver only lets me input 1000 entities of the same kind. Is there a way to up this limit? Thanks ...

GAE python database object design for simple list of values

I'm really new to database object design so please forgive any weirdness in my question. Basically, I am use Google AppEngine (Python) and contructing an object to track user info. One of these pieces of data is 40 Achievement scores. Do I make a list of ints in the User object for this? Or do I make a separate entity with my user id...

How do I get the URL of an HTTP redirect's target?

I am writing client-side Python unit tests to verify whether the HTTP 302 redirects on my Google App Engine site are pointing to the right pages. So far, I have been calling urllib2.urlopen(my_url).geturl(). However, I have encountered 2 issues: the URL returned by geturl() does not appear to include URL query strings like ?k1=v1&k2=v2...

How do you modify sys.path in Google App Engine (Python)?

I've tried adding the following line to my handler script (main.py), but it doesn't seem to work: sys.path.append('subdir') subdir lives in the my root directory (i.e. the one containing app.yaml). This doesn't seem to work, because when I try to import modules that live in subdir, my app explodes. ...