Google App Engine is a cloud computing technology for hosting web applications in Google-managed data centers. Google App Engine is a Platform as a Service (PaaS) offering for Java, Python, Go (experimental) and PHP (beta).

learn more… | top users | synonyms

3
votes
1answer
45 views

Dynamic IP Notification Using Google App Engine

This script is very basic: it does one thing. Connect to it's root and it will log your IP if it has never seen it before. Connect to /logs, and it will show a list ...
8
votes
4answers
949 views

API method to validate Facebook OAuth token

I am new to Java / OOP and I'm concerned that I have a method which is doing far too much "stuff" - but I don't easily see how it can be shortened in a way which is not contrived / arbitrary. This is ...
3
votes
1answer
240 views

Sequence counter with persistence

In one of my object I needed a sequence I would use to increment an Id field just like we often do with classical databases. As I have not found a suitable solution,...
1
vote
1answer
55 views

Generic JWT Handler

I'm developing a Go REST service that uses JWT (JSON Web Tokens) for authentication. I've written a JWTHandler which validates the token using a Validation Handler. If validation succeeds, the ...
1
vote
2answers
116 views

Making datastore inserts with Google App Engine and WTForms

I have a class for making datastore inserts with Google App Engine and WTForms. Now I want to refactor it into smaller units but I'm not sure how to do it. Can you help me find what needs to be done? ...
5
votes
1answer
399 views

Avoiding callback chaining in authenticator

I'm developing an iOS Application in Swift that uses Google Cloud Endpoints as its backend. For now, I've just written the code for the user to login with his Gmail account and I've refactored it as ...
5
votes
2answers
194 views

Image download handler app

I have a paid app on the app engine. At the moment, usually there is only one instance. The app has a download handler that sends an image after re-sizing it if it is too big. The problem is: if a web ...
5
votes
1answer
346 views

Custom Google App Engine Python user managment

I've written this script as a basic authentication system for use on Google App Engine. I would appreciate it if anyone would mind having a look and seeing if there are any obvious security ...
8
votes
6answers
894 views

Is it possible to optimize the following boolean checks?

The following code works and it prints out only True as it is supposed to, for all the different cases: ...
3
votes
0answers
77 views

App.yaml configuration for Google App Engine

I wonder if the following configuration is correct and the handlers are in the right order: ...
1
vote
0answers
38 views

Implementing locks to make Google Search API ACID (Transactional)

x-post from StackOverflow, but I realized this question might be a better fit for this community. I'm working on an AppEngine project that requires flexible searches over a dynamic dataset, and ...
7
votes
1answer
342 views

Subclassing Flask for Permissions with Google App Engine

I'm trying to set up a very lightweight permission system using Google App Engine and Flask. The end result I am hoping for is that each individual view is its own permission, and in an admin panel ...
6
votes
1answer
222 views

GAE datastore JOIN + GROUP BY

I had posted this here and was asked to move it to code review since my code works and am looking for the best possible solution : original post NOTE: I have seen the JOIN in GAE related posts but ...
7
votes
1answer
512 views

Google Apps Script for finding empty days on multiple calendars

I need help with a simple Google Apps Script I've written. The script finds days on which no all-day events have been scheduled, across multiple calendars. I'm fairly certain the main issue is the ...
5
votes
1answer
174 views

Generating a large task queue

I've written a function to call with the deferred library to generate a large task queue, and at first without the recursion it timed out (deadlineexceeded) so now I'm trying with a recursion but is ...
3
votes
1answer
103 views

Script for generating a report in Google-Spreadsheets. Looks for various values to check and count

It all works exactly as it should. It finds data from today, finds unique emails and puts them in an array. I then check the data again from today, against the emails to total up different values. ...
0
votes
1answer
313 views

AppEngine get/post on webapp2.RequestHandler

I was receiving 405 method not supported errors on get requests to my save controller, so I created a ...
1
vote
1answer
98 views

Email-sending class for GAE

Please review this: ...
6
votes
2answers
203 views

Handling regional search requests

The code works but I want to split it into functions and make it more reusable. The way it is now, the code is not reusable. I want the parts which replaces the query string and the part that ...
1
vote
1answer
97 views

Defining book models in GAE

I'm learning to work in GAE. I'm so used to SQL, but transform my way of think the last 20 years to NoSQL is a little hard for me. I have the next simple structure: ...
6
votes
4answers
5k views

Getting country based on IP

I'm using Struts2 and Google App Engine. Below is my program for getting the country based on the IP of the visitor of the website. In my Struts2 action: ...
3
votes
2answers
121 views

User account code with GET and POST

I'm new to Python and GAE, but years of procedural programming. I have this code, but I know that there must be some better solution to avoid retyping code. The first and last section of code are ...
1
vote
2answers
2k views

Aggregation on List

I'm using the following technologies: Google App Engine, GAE Datastore, Struts2. Common lang java library were also used. Because of the limitation on aggregation ...
2
votes
1answer
272 views

Sum the difference of two arrays

I have a function in App Engine Java where I compare two patterns stored in an int array: ...
2
votes
2answers
495 views

Session in Struts2 and Google App Engine

Im using Struts2 running in google app engine. User can use their google and facebook account to login to the site. When a user login, i have: ...
5
votes
2answers
1k views

Checking if entity exist in Google App Engine Datastore using JPA 1

Below is my method in checking if entity already exist. ...
1
vote
1answer
74 views

How to verify if value already added to the list and if so, then update the value?

I use 3 lists to store field name, its value and score. If field name is already added to according list, then I just need to update other 2 lists. If it is not there, then I need to add it. I do the ...
6
votes
1answer
226 views

Regexes for Google App Engine

I want to review the URL routing for my appengine webapp: ...
3
votes
1answer
368 views

i18n translator using Jinja2

I'm learning to Jinja2 and what's important in this case isn't speed but i18n translations and functionality. With Python 2.7, Jinja2 and not Django seems to preferred way to go, so I'm rewriting much ...
2
votes
1answer
344 views

HTML editor for Google App Engine

Please review this simple code. When I review it I decide to rewrite so that it doesn't write to a template, but instead directly to output since the whole HTML is fetched from the data layer. I used ...
1
vote
1answer
179 views

CyberFaze app for Facebook

I had an efficiency problem like I thought and I didn't have the best solution here. My solution was \$O(n)\$ and directly a more experienced member told me a solution that is \$O(1)\$, that only ...
2
votes
1answer
260 views

Modularizing this file to make it more convenient and more readable

Background is this question and to create something like Craigslist or olx.com i.e. classifieds advertisement webapp / site and I've basically solved the problem and had a mess of unstructured code ...
0
votes
1answer
205 views

Iteration and memcache for selected categorized random elements

The following code is a quick implementation since I only needed 3 random images sorted by category (a random eyes image, a random nose image and a random mouth image and then combine them): ...
6
votes
3answers
357 views

Add lister class

I feel a need to rewrite a rather large Python class that "does its job" but it looks somewhat terrible since it was pasted together while learning Python and the platform Google App Engine. It works ...
2
votes
1answer
1k views

Querying the same fields for many different values on AppEngine

I'm creating a gradebook. Many students earn a grade in many standards each. I'm hoping to get help analyzing the code below for efficient use of asynchronous result fetching. ...