google-app-engine

Object is blank after getting it from Google Datastore

I asked question before asking if it is possible to save complex class composition in to the Google Datastore inside Google AppEngine with Java, but I was not clear enough and lazy to post all my class but after a lot of hours of struggle I start giving up. So here is more detailed question with the code. I know this kind of stuff shoul...

Easy way to authenticate POST requests from a Google Android client to Google App Engine?

I'd like to be able to send a POST request from an Android app to App Engine and have it linked to the user's Google account. I read that you need to obtain an authentication token and send it with the POST request. Does Android provide a way to request this token? And how would GAE process it? I feel like this should be easy and I...

Exposing Entity IDs of Google Datastore data

Is it save to expose entity ids of data that is in Google Datastore. For example in my code i have entity with this id: @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) @Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true") private String id; The id is going to be similar to this: agptZeERtzaWYvS...

How to browse local Java App Engine datastore?

It seems there is no equivalent of Python App Engine's _ah/admin for the Java implementation of Google App Engine. Is there a manual way I can browse the datastore? Where are the files to be found on my machine? (I am using the App Engine plugin with Eclipse on OS X). ...

How big is a cloud?

I'm trying to come up with some data on how many much computing power the current cloud platforms represent. (Microsoft Azure, Amazon Elastic Compute Cloud, Google App Engine. Others?) Stuff like how many physical/virtual machines, storage space. How many datacentres are the big players setting up/running already. Any metrics would be f...

how to implement this in GQL(Google Query Language)

In MySQL it's like: select * from table1 where column1 in ('a','b','c'); how to do that in GQL? ...

Good open-source examples of using entity groups in App Engine?

I know all details about how entity groups work in GAE's storage, but yesterday (at the App Engine meetup in Palo Alto), as a presenter was explaining his use of entity groups, it struck me that I've never really made use of them in my own GAE apps, and I don't recall seeing them used in open-source GAE apps I've used. So, I suspect I'v...

Querying for N random records on Appengine datastore

Hi all, I'm trying to write a GQL query that returns N random records of a specific kind. My current implementation works but requires N calls to the datastore. I'd like to make it 1 call to the datastore if possible. I currently assign a random number to every kind that I put into the datastore. When I query for a random record I gen...

DataNucleus Enhancer flakey?

I'm creating a GWT app in Google App Engine, and using Google data store. Does anybody else have the problem of the DataNucleus being flakey as all get out? I can save a class, and DataNucleus will do it's thing just fine. If I change ANYTHING in the class (even adding whitespace) and then save, I get the following error: DataNucle...

GWT and Key object

I'm writing Java app using GWT on Google AppEngine. So I have JDO Entities on Server side and POJO DTOs on Client's side. For some of my entities I have to use Key objects for ids Pojo's cannot have that object because that is not standard class. is there any easy work around for this so I can use Key object on server side and String or ...

Google Application Engine - Using URL Fetch Service

I've looked at http://code.google.com/appengine/docs/java/urlfetch/overview.html but the code does not show a pooling example, i mean if i want to fetch www.example.com/1.html, www.example.com/3.html, www.example.com/3.html, ...., www.example.com/1000.html I'd have to open 1000 connection and close 1000 connections. I think I could just...

Datastore access optimization

I'm writing a small program to record reading progress, the data models are simple: class BookState(db.Model): isbn = db.StringProperty() title = db.StringProperty(required=True) pages = db.IntegerProperty(required=True) img = db.StringProperty() class UpdatePoint(db.Model): book = db.ReferenceProperty(BookState)...

Google App Engine, getting started

Hi, I have wanted to try GAE since launch, but coming from ASP .NET and VS, I couldn't find development tools I feel comfortable with. As I want to use this to get comfortable with non-Microsoft technologies, I don't care which language I use, be it Java or Python, plus having no idea about any of them I hope this is a good form of ta...

Basic File upload in GWT

I'm trying to figure out how to upload one file using GWTs FileUpload widget. I'm using GWT and Google AppEngine with Java but I would like to upload file to my own Linux server. I have the following code already but now I can't figure out how to submit my file to the Google AppServer server and save it to another server: public class ...

Saving Large file using GWT + GAE + S3 path

I'm building app that will store large video files to the server and then user will be able to view them. For my app I'm using GWT + GAE/J and to store files I would like to use S3 account. But as we know that you can upload max 10mb to GAE. I have asked this kind of question before and the answer that I have accepted will work only if y...

Safety of Python 'eval' For List Deserialization

Are there any security exploits that could occur in this scenario: eval(repr(unsanitized_user_input), {"__builtins__": None}, {"True":True, "False":False}) where unsanitized_user_input is a str object. The string is user-generated and could be nasty. Assuming our web framework hasn't failed us, it's a real honest-to-god str instance f...

Google App Engine: Datastore not a traditional relation database. What is meant by this?

From the GAE getting started guide Because the App Engine datastore is not a traditional relational database, queries are not specified using SQL. Instead, you can prepare queries using a SQL-like query language we call GQL. What do they mean by "not a traditional relational database" and what implications does this have ot...

How to keep an App Engine/Java app running with deaf requests from a Java/Python web cron?

App Engine allows you 30 seconds to load your application My application takes around 30 seconds - sometimes more, sometimes less. I don't know how to fix this. If the app is idle (does not receive a request for a while), it needs to be re-loaded. So, to avoid the app needing to be reloaded, I want to simulate user activity by pingin...

Google App Engine: How to pass value to my request handler?

Absolute beginner question: I have a template file index.html that looks like this: ... <FRAMESET ROWS="10%, *"> <FRAME SRC="/top_frame"> <FRAME SRC="{{ bottom_frame_url }}"> </FRAMESET> ... And a request handler for /top_frame that looks like this: class TopFrame(webapp.RequestHandler): def get(self): ... ...

Does main.py or app.yaml determine the URL used by the App Engine cron task in this example?

In this sample code the URL of the app seems to be determined by this line within the app: application = webapp.WSGIApplication([('/mailjob', MailJob)], debug=True) but also by this line within the app handler of app.yaml: - url: /.* script: main.py However, the URL of the cron task is set by this line: url: /tasks/summary So ...