Hi,
I am looking for the simplest way to upload and store an image (file) to the GAE (java).
Googling for hours without any simple and clear result... : (
found this link:
http://code.google.com/intl/fr/appengine/kb/java.html#fileforms
but i still don't know how to store an image, and how to retrieve it...
I am looking for simple servl...
Hi all,
I don't know how to make a GqlQuery that order by a property of the ReferenceProperty.
In this case, I want to get all the Seat but order by the id of the Room
The GqlQuery reference does not allow a join, so how do you approach in this case?
class Room(db.Model):
id = db.IntegerProperty()
dimension = db.StringPropert...
So I have an app that if I'm honest doesn't really need transactional integrity (lots of updates, none of them critical). So I was planning on simply leaving entity groups by the wayside for now. But I'd still like to understand it (coming from a relational background).
The way I see it, all queries for my app will be on a user by use...
I have been trying to use an ajax-style file upload component (like the dojox file upload component) with google app engine, and have a progress bar.
The javascript side of things is fine, but i am wondering how to organise things on the server side?
Is is possible to access the data as it is being uploaded within google app engine, ...
I am looking for a Chess AI that can be run on Google App Engine. Most chess AI's seem to be written in C and so can not be run on the GAE. It needs to be strong enough to beat a casual player, but efficient enough that it can calculate a move within a single request (less than 10 secs).
Ideally it would be written in Python for easier ...
Can someone provide some simple code about how to use an encoded key in Java for the Google app engine. The sample code is a little bit confusing. Suppose I have an employee class and I want the primary key to be manually constructed with a format of "name, email, phone" for example a sample key would be"James Smith,[email protected]...
According to the documentation for Google App Engine for Java:
The App Engine Java SDK includes a
template logging.properties file, in
the appengine-java-sdk/config/user/
directory. To use it, copy the file to
your WEB-INF/classes directory (or
elsewhere in the WAR), then the system
property java.util.logging.config.file
...
According to the App Engine documentation, you can set system properties and environment variables for your app in the deployment descriptor and App Engine sets the following system properties when it initializes the JVM on an app server:
* file.separator
* path.separator
* line.separator
* java.version
* java.vendor
* java.vendor.url
*...
So I want to physically get rid of debugging code before deploying it to appengine.
What I'm doing right now is a simple check:
settings.py:
DEBUG = os.environ['HTTP_HOST'] == 'localhost'
from settings import DEBUG
if DEBUG:
#ensure I haven't screwed smth up during refactoring
But this check will be consuming CPU cycles during ea...
I am asking this in very general sense. Both from cloud provider and cloud consumer's perspective. Also the question is not for any specific kind of application (in fact the intention is to know which type of applications/domains can fit into which of the cloud slab -SaaS PaaS IaaS).
My understanding so far is:
IaaS: Raw Hardware (Proc...
Hi I want some help in building a Phone book application on python and put it on google app engine. I am running a huge db of 2 million user lists and their contacts in phonebook. I want to upload all that data from my servers directly onto the google servers and then use a UI to retrieve the phone book contacts of each user based on his...
Has anyone used Maven, Grails, and App Engine together?
I can use Maven with Grails and Grails with App Engine, but using them in concert gives me the following error:
The command 'grails run-app' is not supported with AppEngine. Use 'grails app-engine' to start the application
Is there any way to "pass through" the Maven goal to ...
I'm trying to store some data in a binary file:
import os, pickle
o = some_object()
file = open('test', 'wb') #this causes the error
pickle.dump(o, file)
file.close()
I get this error: IOError: invalid mode: wb
It doesn't work (neither on test server or GAE itself), apparantly because it does't have the write permission.
How can I ...
I want to sort list of strings with respect to user language preference. I have a multilanguage Python webapp and what is the correct way to sort strings such way?
I know I can set up locale, like this:
import locale
locale.setlocale(locale.LC_ALL, '')
But this should be done on application start (and doc says it is not thread-safe!...
I'm reading up on Google App engine and I'm thinking of using it as a CDN for a project I'm working on. As far as I can tell, there's two ways to store data. I could use a datastore or I could put files in a directory.
I was brought up believing it's a bad idea to store large binary data in a database, but according to Google, the dat...
This question is partially related to an older question (Any CMS is Google App Engine compatible?) , but is slightly more general. It seems that in most CMS systems, the most fragile failure point is the database. Traditional database implementations scale poorly and will never be able to handle unforeseen spikes of traffic. Since Goo...
Hi!
I tried User(email = email) and User.all().filter('email = ', email).get(), but both of them don't work for me.
Thanks
...
How do I setup Account Registration, Login, etc in Grails when developing for the Google App Engine? Normally I would use the Acegi plugin but I've read that it doesn't work with Google App Engine.
For reference, I'm using the Grails app-engine and gorm-jpa plugins.
...
I've been search for quite a while with no success. My project isn't using Django, is there a simple way to serialize App Engine models (google.appengine.ext.db.Model) into JSON or do I need to write my own serializer? My model class is fairly simple. For instance:
class Photo(db.Model):
filename = db.StringProperty()
title = d...
Can I use the login:required feature of app.yaml when I create a totally google separate user login? How? (Google App Engine)
...