google-app-engine

How do I download image from datastore in app engine and Django without using Wsgi Request Handler.

How do I download image from datastore in app engine and Django without using Wsgi Request Handler. ...

What is the difference between .get() and .fetch(1)

I have written an app and part of it is uses a URL parser to get certain data in a ReST type manner. So if you put /foo/bar as the path it will find all the bar items and if you put /foo it will return all items below foo So my app has a query like data = Paths.all().filter('path =', self.request.path).get() Which works brilliantly. ...

google app engine - auto increment

Hi, I am new to Google App Engine, I have this entites User class - user_id - integer user_name - string password - string I want to do auto increment for the user_id,How I can do this? ...

Extract text from PDF (google app engine)

Is there any free Java library for extracting text from PDF, that is compatible with Google Application Engine? I've read about PDFJet, but it can't read PDF, can it? Is there perhaps other way how to extract text from PDF? I tried http://www.pdfdownload.org/, unfortunately they don't handle non-English characters correctly. ...

Design for tagging system in GAE-J

I need a simple tagging system in GAE-J. As I see it, the entity that is being tagged should have a collection of keys referring to the tags with which it's associated. A tag entity should simply contain the tag string itself, and a collection of keys pointing to the entities associated with the tag. When an entity's list of tags is...

Nginx frontend for AppEngine dev server

How to configure nginx for load static ? Static should be given only by the nginx server , everything else nginx + dev_appserver and workingon the same host (localhost or localhost: port) Example request html http://localhost -> nginx -> dev_appserver request static files http://localhost/static/css (js,img,etc) -> ngi...

Is is possible to get an email attachment into App Engine's Blobstore?

I've managed to get email attachments onto Amazon S3 from a GAE incoming email, but does anyone know a technique to get an attachment, like an image, into the blobstore. Any help would be much appreciated. Code so far (with help from Alex) upload_url = blobstore.create_upload_url('/upload') msg = MIMEMultipart() msg.set_type('multipar...

Google App Engine - Secure Cookies

I'd been searching for a way to do cookie based authentication/sessions in Google App Engine because I don't like the idea of memcache based sessions, and I also don't like the idea of forcing users to create google accounts just to use a website. I stumbled across someone's posting that mentioned some signed cookie functions from the To...

File Uploading In Google Application Engine Using Django

I am using gae with django. I have an project named MusicSite with following url mapping- urls.py from django.conf.urls.defaults import * from MusicSite.views import MainHandler from MusicSite.views import UploadHandler from MusicSite.views import ServeHandler urlpatterns = patterns('',(r'^start/', MainHandler), (r'^upload/', ...

Running your own GAE server

The question http://stackoverflow.com/questions/2505265/how-difficult-is-it-to-migrate-away-from-google-app-engine triggered me to think about this issue again. I have read of someone running, production-wise, Google app engine development version on their own server. My questions are: Are there any security issues running GAE develo...

Netbean Cannot update Google App Engine server to appengine-java-sdk-1.3.2

I am using Netbean 6.7.1 I just update my google app engine plugin in netbean with Netbean auto update. I found out there is new app engine SDK. So i want to update my google app engine server to point to appengine-java-sdk-1.3.2 After I download appengine-java-sdk-1.3.2.zip. I unzip it. Then at Netbean: I already have a Google App En...

Try to fill the GAE datastore but the code consumes to much cpu time. How to optimize this?

I try to get the list of images in Amazon EC2 inside the Google datastore. I want to realize this with a cron job inside the GAE. class AmazonEC2uswest(db.Model): ami = db.StringProperty(required=True) mani = db.StringProperty() typ = db.StringProperty() arch = db.StringProperty() state = db.StringProperty() owne...

GAE/Django Templates (0.96) filters to get LENGTH of GqlQuery and filter it

I pass the query with comments to my template: COMM = CommentModel.gql("ORDER BY created") doRender(self,CP.template,{'CP':CP,'COMM':COMM, 'authorize':authorize()}) And I want to output the number of comments as a result, and I try to do things like that: <a href="...">{{ COMM|length }} comments</a> Thats does not work...

kaazing websocket with gae

any demo on using kaazing websocket with gae? ...

GAE messaging service

Let's say I want my corporate server to communicate with Google App Engine and vice versa. I know that GAE does not support JMS,RMI etc. What is the best alternative for this kind of communication? Use task queue? (I think HTTP get() is not suitable for this kind of communication). Both my corporate server and GAE application use Spri...

Counts of events grouped by date in python?

This is no doubt another noobish question, but I'll ask it anyways: I have a data set of events with exact datetime in UTC. I'd like to create a line chart showing total number of events by day (date) in the specified date range. Right now I can retrieve the total data set for the needed date range, but then I need to go through it and ...

Why can't I access a web app running on my Mac via my iPhone?

I'm developing an iPhone app that has a network component. I'm developing the app in Java (Google App Engine actually), running on port 8080. And it works, when I test my app in the iPhone simulator. But now I am trying to test on the device, and I can't hit my Jetty instance. I can certainly access my Mac via the iPhone because I'm a...

Rest Web Service with App Engine and Webapp

I want to build a REST web service on app engine. Currently i have this: from google.appengine.ext import webapp from google.appengine.ext.webapp import util class UsersHandler(webapp.RequestHandler): def get(self, name): self.response.out.write('Hello '+ name+'!') def main(): util.run_wsgi_app(application) #Map url like /res...

How to use Java on Google App Engine without exceeding minute quotas?

A very simple java code inside a doGet() servlet is getting more than a second of cpu time on GAE. I have read some quota related documentation and apparently I am not doing anything wrong. //Request the user Agent info String userAgent = req.getHeader("User-Agent"); I wanted to know what was using the CPU the most, I use a google h...

Java Google App Engine inconsistent data lose after restarting dev server

Hello everyone, I am using Java GAE. So far, i'm just scafolding my data objects and i'm seeing an interesting issue. The records that i am playing around with are getting updated properly as long as my dev server is running up. The second that the my dev server gets restarted, i lose all of my changes. That would be not alarming if...