google-app-engine

Server Programming - Simple Multiplayer Game - Which protocol and technologies?

Hi All, I have a year's experience writing client code but none with server stuff. I want to restrain the question a bit so I'll simplify what I'm trying to achieve. I want to write server code such that two clients (Browser or iPhone / Android) can connect, when two player have connected they see a timer count down to zero. The clock ...

What JVM language + web framework do you use with Google Appengine Java?

Looking for the least bumpy (and most productive ) ride for a web 2.0 idea... Groovy/Grails, Scala/Lift, Groovy/Gaelyk, OR.... Please share your experience. ...

reading logs in google app engine

after launching your app on google app engine. you can use the 'logs' page in the admin console to see a how many requests were made, any http:// 404 errors etc. It's hard to make sense of how many visitors you really got and or others. Am I missing something here ? Can somebody tell me how to read logs on a google app engine. Many ...

Figuring out duration of an event in Python

This is a very noobish question, so I apologize in advance! I have two time stamps for start and end of the event. They are stored in as datetime.datetime in UTC. What I need to do is figure out the duration of the event. I tried subtracting one from the other, but receive error: Traceback (most recent call last): 02. File '/base/pyt...

google app engine proxy workaround

I am trying to build a google app engine app in Java. The app is trying to get information from another site. On my computer I am behind a firewall and need to connect to the site through a proxy. Google app engine does not allow the use of java.net.proxy. Is there a way to configure eclipse so it knows that when I use URL.getContent...

XML serialization for Groovy classes

For an application build on Spring MVC + Groovy + Google App Engine i need simple XML serializer/marchaller. I'v tried: XStream - it doesn't work on Google App Engine, because it uses restricted (at GAE) classes Jaxb2 - it doesn't work with Groovy classes, because groovy class have additional (hidden) fields (like metaClass, etc) Xml...

app engine URL class logging warning

What is the preferred method of fetching a url and it's content in app-engine? This is how I'm doing it now: URL google = new URL("http://www.google.com"); google.openStream(); and this is the warning I get Mar 6, 2010 4:11:50 AM org.apache.commons.httpclient.HttpMethodBase getResponseBody WARNING: Going to buffer response body of l...

struts2 rest plugin on google app engine

I am trying to deploy struts2 with the rest plugin onto the Google app engine... I have copied the showcase files to a GAE project created in Eclipse. The compilation and upload works fine. When I hit the index.jsp, which forwards me to /orders I get a 404. When I check the logs, there is no error, just a warning (as below). The Orde...

Python: Classname same as file/module name leads to inheritence issue?

My code worked fine when it was all in one file. Now, I'm splitting up classes into different modules. The modules have been given the same name as the classes. Perhaps this is a problem, because MainPage is failing when it is loaded. Does it think that I'm trying to inherit from a module? Can module/class namespace collisions happen? M...

Looking for opinions on using Objectify-appengine instead of JDO in GAE-J

I've been slowly and a bit painfully working my way up the datastore/JDO learning curve in GAE. Recently I've found a framework called Objectify that is supposed to be somewhere between the very-simple Datastore native API and the complex JDO. I've been reading up on it and it does seem attractive. What I want to know is, if anyone ha...

Java JDO Problem (Google App Engine), What after (PersistenceManager)pm.close

Hello, I'm a newbie in JDO. I use eclipse. After I use (PersistenceManager) pm.close for test, now I delete this pm.close. However I still could not find a way to open or create a new one, even after I restarted the computer. Every time, PersistenceManager show this error, Object Manager has been closed And I could not find a way to d...

Custom User Management for Google App Engine Java

I am using GAE Java for a multi-user application. There are multiple users with different roles. Each user can login, do some operations and logout. The business restricts me from using Google User Service and I need to implement my own for authentication and session management. Can anyone please share with me how should I go about impl...

How do you NOT automatically dereference a db.ReferenceProperty in Google App Engine?

Suppose I have class Foo(db.Model): bar = db.ReferenceProperty(Bar) foo = Foo.all().get() Is there a way for me to do foo.bar without a query being made to Datastore? The docs say that foo.bar will be an instance of Key, so I would expect to be able to do foo.bar.id() and be able to get the id of the Bar that's associated with foo...

Sending gzipped form data

I've heard how browsers can receive gzipped pages from the server. Can they also gzip form data that they send to the server? And if it's possible, how would I decompress this data on the server? I'm using AppEngine's webapp module, but a general explanation / pointers to tutorials would be sufficient. I've done some googling to no avai...

Delete data from google app enigne?

I created one table in Google App Engine .I stored and retrieved data from Google App Engine. But i don't know how to delete data from Google App Engine datastore. ...

storing app settings on Google App Engine

I need to store settings for my Google App Engine project. Currently I have: class Settings(db.Model): rate = db.IntegerProperty(default=4) ... And when I want to use it: Settings.get_or_insert('settings') This feels clumsy so is there a better way (without using Django)? ...

App Engine, Python: problem updating datastore record

I need to update a record in the datastore, but instead of updated record I get always a new record. My model: class PageModel(db.Model): title = db.StringProperty() content = db.TextProperty() reference = db.SelfReferenceProperty() user = db.UserProperty(auto_current_user = True) created = db.DateTimeProperty...

Django: using variables as array indices?

I am trying to create a template that will put items in a table. Controller: items = Item.all().order('name').fetch(10) template_values = {'items': items, 'headers': ['Name', 'Price', 'Quantity']} render('Views/table.html', self, template_values) Template: <table> <tr> {% for header in headers...

How to use HTTP method DELETE on Google App Engine?

I can use this verb in the Python Windows SDK. But not in production. Why? What am I doing wrong? The error message includes (only seen via firebug or fiddler) Malformed request or something like that My code looks like: from google.appengine.ext import db from google.appengine.ext import webapp class Handler(webapp.RequestHand...

How to check if datetime is older than 20 seconds.

Hello! This is my first time here so I hope I post this question at the right place. :) I need to build flood control for my script but I'm not good at all this datetime to time conversions with UTC and stuff. I hope you can help me out. I'm using the Google App Engine with Python. I've got a datetimeproperty at the DataStore database w...