google-app-engine

Is it safe to use ComputedProperty?

I need support for computed properties in App Engine. I downloaded the latest source release to try and implement them myself. Whilst going through code, I came across a property class that already seems to do exactly what I need. class ComputedProperty(Property): """Property used for creating properties derived from other values. ...

create entity - google app engine - most convenient way?

whats the most simple way to create a new entity in google app engine? i used now a simple servlet form, but it is annoying to upload a project only because you want to create a new entity. i am using eclipse with java. ( creating entities is documented on google only for python ) ...

How to sort by a counter when using sharded counters

I have an application where the main entity is a Story and users can vote for each story. Each vote increments a vote_count for the story. I am concerned about write contention on the story so I plan to use a sharded counter for each story to track the votes. Now my question: how could I get a list of stories ordered by number of vo...

Bandwidth usage in Google App Engine

How can I find out how my bandwidth is used in Google App Engine? I want to extract the top bandwidth hogs so I can cut down on my outgoing bandwidth usage. ...

Google app engine: fails on deployment but works perfectly locally -- nonresponsive html form submit button

I have a small test App running on GAE under the default free quota. It runs fine locally. When deployed on GAE (appspot), some parts of it do not work. Appspot dashboard does not show any error in the logs. Added code to trap quota limits is not triggered. Why is there a variation between the App running locally, versus failing when upl...

DJANGO + Google App Engine, Getting Started Tutorial

I'm very interested in finding a up-to-date tutorial that shows steps for getting DJANGO running on Google App Engine, anyone know of any such tutorials? Surprisingly, Google's App Engine DJANGO docs are almost a year old. What gives? ...

unknown host exception from android to GAE

Hi, I am trying to post from android to GAE, I am getting unknown host exception. Here is my code, HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost("http://silver-kites.appspot.com"); try { // Add your data List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>...

Google App Engine with Picasa and JavaScript preview

Hi Does anyone have example code on Google App Engine platform with Picasa API and JavaScript preview? Pete ...

Google app engine with Picasa

hi I on Google app engine platform, I have problem applying the Gdata api for Picasa. In the html: <input type="file" name="img"/> In the python: imgs = self.request.get_all('img') In the example code of http://code.google.com/apis/picasaweb/docs/1.0/developers_guide_python.html album_url = '/data/feed/api/user/%s/albumid/%s' ...

final static variables are reset in Google App Engine Cloud

I have a GWT+GAE web app with several service and modules. I am using the module functionlity of mvp4g. All of my services extends: public abstract class BaseServiceImpl extends RemoteServiceServlet { protected final static Map USERS = new HashMap(); I use USERS to store my current active user sessions. Once I user authenticates him...

CMS on app engine / gae: vosao alternatives?

i recently stumbled upon http://www.vosao.org/ it seems to be the most advanced cms for app engine so before i start coding with vosao, i wanted to know if there are tangible alternatives to vosao? ...

Problem with login ,userService , lost session - google app angine

Hi I'm creating my application and i want integrate it with google account and I have following problems: I want to authorize the user and get back to this pages and after share some data from google calendar. So this is my code snippet to create the login url (index.jsp) boolean b= true; UserService userService = UserServiceFactory...

Asynchronously pull data from datastore and draw map

Hi, I have a Spring MVC 3 app (that uses JSP) running on Google App Engine and saving information on the Datastore. I'm using the Google Maps API v3 to project some of the data on maps by drawing shapes, colouring etc. My database will potentionally hold millions of entries. I was wondering what the best way is to keep pulling data fro...

Appengine datastore not updating multiple records

votergroup = db.GqlQuery("SELECT * FROM Voter WHERE lastname = :1", 'AGEE') for voter in votergroup: voter.email = '[email protected]' db.put(votergroup) The above code doesn't seem to be updating the records as it shows in the appengine documentation. I also tried using a query object to no avail. I kn...

Unable to rollback GAE Deployment Transaction

I am trying to use the appcfg.sh in the GAE Java SDK to rollback a stuck (in progress) deployment. However the rollback is failing because I have an space character in the Folder name for the Project: appengine-java-sdk-1.3.5/bin/appcfg.sh rollback "workspace/Crowded\ Intelligence/war/" (fails) appengine-java-sdk-1.3.5/bin/appcfg.sh rol...

does anyone had success in posting from android emulator to GAE?

does anyone had success in POSTing from android emulator to GAE? I am trying and I am getting Unknown Host Exception. Do I need to do some settings in emulator? Please help me. I am using HttpClient and HttpPost, and also set uses INTERNET permission. ...

[gae] problem transaction commit, retry , ConcurrentModificationException

Hello, i've got some problems with transactions when there is the exception java.util.ConcurrentModificationException. When i've got this exception, i tried a retry but when i'm looking in my datastore viewer my incrementation didn't work. For example when i'm testing with 30 simultaneous users, my data was incremented 28 times. 2 i...

Google app engine: reference property that references to 4 models or more

hy I need to add a property to a model that can reference 4 different models: class WorldObject(db.Model): # type can only accept: text, image, profile, position # this should be like a set property in relational database and not a string type = db.StringProperty(required = True) # ???: this can be a reference to Profil...

How to check if DataStore Indexes are being served on AppEngine?

How can I check if datastore Indexes as defined in index.yaml are serving in the python code? I am using Python 1.3.6 AppEngine SDK. ...

How to decode the pixels in a JPG in App Engine (using pure python) ?

Using python App Engine I need to convert a JPG image that is one 9 MB file (of Pakistan's floods) into many PNG tiles. For the PNG part, I already know how to use PyPNG, which is great. Note: PIL cant be used with App Engine. So how do I decode the JPG into pixel data? ...