google-app-engine

Does Google App Engine Support PHP?

Hello, Does google app engine support PHP? I mean can I put my PHP projects there so that they are executable there? Thanks ...

How to upload file from GAE to Amazon S3 using URLFetchService?

Hi I am trying to upload files to Amazon S3 from Google App Engine (in Java) using the URLFetchService, but I am not getting very far. For a start I have never done any REST programming before, nor GAE. I have looked through the documentation for S3, and have come up with the following code. Am I going along the right path? final URLF...

Simple App Engine Sessions Implementation

Here is a very basic class for handling sessions on App Engine: """Lightweight implementation of cookie-based sessions for Google App Engine. Classes: Session """ import os import random import Cookie from google.appengine.api import memcache _COOKIE_NAME = 'app-sid' _COOKIE_PATH = '/' _SESSION_EXPIRE_TIME = 180 * 60 class Session...

GAE transaction exceptions

ServletA: retrieves in a query a set of objects (around 2000) and then runs a weight function to choose one object and update it. all that is within a trasaction so it'll get an exception if the objects were changed ServletB: each object is being updated every 15 secs by robot clients So the record set that has been retrieved in ...

GAE transaction exceptions

Hi, In this example, is the exception being thrown if any of the table elements are being changed by another client, or only if the element that we changed has been changed by another client? Just to verify - the exception is thrown from the commit() isn't it? PersistenceManager pm = PMF.get().getPersistenceManager(); try { pm...

How to call a method on Google App Engine from C#

I Have an application in my account and I want to call a method that takes int number and return one int number (int someMethod(int someVar)) from client application that must be written in C#. ...

Google App Engine (python): TemplateSyntaxError: 'for' statements with five words should end in 'reversed'

This is using the web app framework, not Django. The following template code is giving me an TemplateSyntaxError: 'for' statements with five words should end in 'reversed' error when I try to render a dictionary. I don't understand what's causing this error. Could somebody shed some light on it for me? {% for code, name in charts.item...

Optimising RSS parsing on App Engine to avoid high CPU warnings

I'm pulling some RSS feeds into a datastore in App Engine to serve up to an iPhone app. I use cron to schedule updating the RSS every x minutes. Each task only parses one RSS feed (which has 15-20 items). I frequently get warnings about high CPU usage in the App Engine dashboard, so I'm looking for ways to optimise my code. Currently, I...

Accessing local map data with AppEngine

I'm creating an app with AppEngine (Java) that needs access to local map information. In general, I'd like to search any query such as: gas stations, cheap restaurants, banks, or whatever in a certain area. What is the best way to do this, and with which Service or API ? ...

Anyone up to creating a tomcat based alternative for GAE?

Hi, If we had the possibility to run GAE app without any code change on our servlet engine that would be great because: in case that google changes their billing policy we can just jump to our own server or in case their current policy doesn't fit our app needs we can do stuff which is not allowed in the GAE, compromising a 1 JVM, 1 D...

GAE Task Queue - Is there a way to delay a task from executing for X seconds.

Hi, Is there a way to guarantee a task to be performed in X minutes (or after X min) ? (rate would mean the intervals between tasks but what about the first task, would the first task starts after the 'rate' time?) ...

django search and filter in Google App Engine

Hi, I'm trying to add filter and search to my site. It's exactly the same code as in another working django project. The difference is that this time I do it with app engine. my views: http://slexy.org/view/s21GMw2sh1 I have 2 problems: 1.) I get error: "'Query' object has no attribute 'all'" on line 59 in views. As I understand it'...

App Engine - Precomputing bounding boxes for proximity search

I'm trying to do a location-based search on App Engine, but since the data store doesn't support multiple inequality operators, I can't search "where lat between a and b and lon between c and d". One of the solutions is to pre-compute bounding boxes to search on, as explained here: http://code.google.com/appengine/articles/geosearch.ht...

google app engine (python): ImportError no module named django.

So I'm trying to use the django 1.1 template engine with the google app engine web app framework, from here. This is on Ubuntu Jaunty, I've made sure that the PYTHONPATH contains the location of Django-1.1.1 yet I'm getting this 'ImportError: No module named django' error when it tries to execute the use_library() line below. Again, coul...

A couple of questions about the encoding of a mail message in GAE Python API?

I've noticed that dev_appserver inbound mail tab now encodes the email body to base64. Why the change? How can I detect what the encoding of the message is? Clarification: I mean that the form for submitting test emails on the dev_appserver used to pass the text of the message body to my application's handler exactly as I entered it, bu...

GoogleAppEngine : possible to disable FileUpload?

Hi, When I deploy my application to GoogleAppEngine I keep getting the following error Uncaught exception from servlet java.lang.NoClassDefFoundError: java.io.FileOutputStream is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.apphosting.runtime.security.shared.stub.java.io.Fil...

Invalid XML in persistence.xml : Init method

I'm getting the following error when I try to startup my application on google app engine: Failed startup of context com.google.apphosting.utils.jetty.RuntimeAppEngineWebAppContext@8fcc7b{/,/base/data/home/apps/sales-tracker/3.340980411948080671} org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cli...

Getting HTTP GET variables using Tipfy

Hey everyone, I'm currently playing around with tipfy on Google's Appengine and just recently ran into a problem: I can't for the life of me find any documentation on how to use GET variables in my application, I've tried sifting through both tipfy and Werkzeug's documentations with no success. I know that I can use request.form.get('va...

appspot xmpp talk with jabber.org

hi, when i connect to gtalk, i able to talk with my bot in appspot. but when i login to jabber.org, i unable to talk with my bot? anything i need to configure? testetefsdf @ appspot.com p/s: the bot exist in my jabber.org roster and appear online thou ...

Using CookieJar in Python to log in to a website from "Google App Engine". What's wrong here?

Hello everybody, I've been trying to find a python code that would log in to my mail box on yahoo.com from "Google App Engine" . Here (click here to see that page) I was given this code: import urllib, urllib2, cookielib url = "https://login.yahoo.com/config/login?" form_data = {'login' : 'my-login-here', 'passwd' : 'my-password-here'...