I'm planning to write a web application on Google App Engine using Java. Each user needs to log in first to see all the secure account information. I have the following questions:
Is Google Users Service equal to SSL? I use Google Users Service to authenticate the user. After redirecting from the Google Accounts sign-in page to my web ...
While testing my Google App Engine application, I search for links which include app engine keys. For example:
/story/ag5yZXBsaWUtdGVzdGluZ3IMCxIFU3RvcnkY-w0M/
What characters are allowed in these keys? I had been using the regex [a-zA-Z0-9], but it seems "-" is also allowed. What else?
Is there a reference on this? I can't find it i...
I've got VMWare Fusion (2.0.6) running on my mac osx10.6.2. I've also got the GAE (python) SDK on the mac, operating on port 8082. I'd like to be able to view my GAE pages in the SDK from the windows image, without uploading the app somewhere.
I've got tomcat installed on the mac; macname:8080 works (with required "http://") to access...
Hello, I am working on a Google App Engine application, and have been facing some issues with a GQL query and an if statement. This is the code:
q = Song.gql("WHERE title = :1", self.request.get('song_title'))
q.get()
if q:
r = "Excisting Results Found: <br />"
print q
for song in q:
r += song.title+" by "+song.artis...
I'm using the new experimental taskqueue for java appengine and I'm trying to create tasks that aggregate statistics in my datastore. I'm trying to count the number of UNIQUE values within all the entitities (of a certain type) in my datastore. More concretely, say entity of type X has a field A. I want to count the NUMBER of unique valu...
I need to resize and crop an image to a specific width and height. I was able to construct a method that will create a square thumbnail, but I'm unsure on how to apply this, when the desired thumbnail is not square.
def rescale(data, width, height):
"""Rescale the given image, optionally cropping it to make sure the result image has the...
I know this is not programming related, but it is relevant only to programmers.
I am in Australia and was trying to signup for Google app engine. The require you to get an code smsed to your mobile. For this you need to put in your mobile number with international code.
Australia's code is +61 however when I put this in the form at htt...
I would like to provide my Python GAE website in the user's own language, using only the tools available directly in App Engine. For that, I would like to use GNU gettext files (.po and .mo files).
Has someone successfully combined Python Google App Engine and gettext files? If so, could you please provide the steps you used?
I had st...
I don't want to waste any more of my 10 appspot.com subdomains for test projects. Is there an elegant way to have multiple appengine apps, each to its own folder, e.g. xx.appspot.com/myapp1, xx.appspot.com/myapp2? I want the configuration to be identical or very close to the actual deployment configuration at a subdomain's root.
...
Everytime I try to run my app on my local machine, I get the following error messages (quite long, sorry):
Initializing AppEngine server
2009-12-23 04:44:03.068::INFO: Logging to STDERR via org.mortbay.log.StdErrLog
2009-12-23 04:44:04.123::INFO: jetty-6.1.x
2009-12-23 04:44:10.632::WARN: failed projectrix
java.lang.NoClassDefFoundEr...
I have a unit test that populates the datastore with 26 entities. I have a DAO that tries to retrieve these entities and page through them but somehow I can't get it to work entirely. If I do query.setRange(0,10) it works but not for query.setRange(10,20). The query returns 0 results even if the unit test shows that I have 26 entities.
...
I seem to have an incorrectly specified JAVA_HOME variable. I can get around it for many things but now I am seem to be stuck. I am trying to use the Google App Engine and upload an application.
When I do so I get the error that the error:
cannot find javac executable based on java.home, tried "C:\Program Files\Java\jre6\bin\javac.e...
In the following code:
class ClassA(db.Model):
name = db.StringProperty()
class ClassB(db.Model):
name = db.StringProperty()
deleted_flag = db.BooleanProperty()
classA = db.ReferenceProperty(ClassA)
ClassA will have a property called classb_set. When I call classb_set within code, I do not want it to return items tha...
Is there a way so that I can get access to request object, while saving a db object, without explicitly passing it e.g.
class RequestData(db.Model):
...
def put(self):
# autopopulate fields from current request
I just want a quick way to access request, instead of passing it thru so many layers of view/forms/etc
...
I have a python dictionary that I would like to store in Google's BigTable datastore (it is an attribute in a db.Model class).
Is there an easy way to do this? i.e. using a db.DictionaryProperty? Or do I have to use pickle to serialize my dictionary? My dictionary is relatively straight forward. It consists of strings as keys, but it m...
Google Docs returns a long 3 line string when supplied with credentials. This is the format
SID=stuff...
LSID=stuff...
Auth=long authorization token
if I have it stored in NSString, what is the best function to trim all the way up to the "=" behind Auth, and keep the rest?
NSData *returnedData = [NSURLConnection sendSynchr...
I'm working on a servlet in Google App Engine. This servlet retrieves the data from the GAE's datastore; everything works fine when querying like "SELECT * FROM...". But when I want to filter it by a certain column, it does not work since the name of the column has a hypen. It is like the following:
Query query = new Query("tableName");...
Hey guys,
I've setup a GAE cronjob. My cron.yaml looks like this
cron:
- description: checkForPush
url: /cron/
schedule: every 1 minutes
Inside the cron folder i've got a cron.py file with an URL-Fetch.
If i deploy the project and the cronjob runs it fails.
Any ideas?
Thanks a lot.
...
After upgrading to the newest GWT/Google app engine I have problems opening my workspace in Eclipse. On startup, Eclipse hangs almost immediately and needs to be closed. This happens only in the workspace where I use GWT with app engine, and I weren't able to consistently reproduce it - sometimes it starts normally, and sometimes I need ...
How to use "in" statement to check is item in the list or not. If I use:
{% for picture in pictures %}
{% if picture in article.pictures %}
<input type="checkbox" checked="true" name="picture" value="{{ picture.key }}" />
{% else %}
<input type="checkbox" name="picture" value="{{ picture.key }}" />
{% endif %}
...