google-app-engine

Self-referential ReferenceProperty in Google App Engine

I'm having a bit of trouble with ReferencePropertys in App Engine (Python). For a bit of fun, I'm trying to model a folder/file system, but having trouble getting folders to reference folders. My first attempt was this: class Folder(db.Model): id = db.StringProperty() name = db.StringProperty() created = db.DateTimeProper...

Maven building for GoogleAppEngine, forced to include JDO libraries?

Hi, I'm trying to build my application for GoogleAppEngine using maven. I've added the following to my pom which should "enhance" my classes after building, as suggested on the DataNucleus documentation <plugin> <groupId>org.datanucleus</groupId> <artifactId>maven-datanucleus-plugin</artifactId> ...

curl on app engine

can curl be used on google app engine ? ...

Appengine Apps Vs Google bot web crawler

i built an appengine web app cricket.hover.in. The web app consists of about 15k url's linked in it, But even after a long time of my launch, no pages are indexed on google. Any base link place on my root site hover.in are being indexed with in minutes. but i placed the same link home page of root site a long back. but its of no use. c...

How to search from many GAE datastore? Is it possible to use Search API?

I want to create search interface to search data from GAE datastore? Can i use Google Search API to search this way? ...

GoogleAppEngine : JAR for enhancer not found, yet ASM is on the classpath

When deploying my application to GoogleAppEngine I'm getting the following message after the upload Exception in thread "Thread-0" You have selected to use ClassEnhancer "ASM" yet the JAR for that enhancer does not seem to be in the CLASSPATH! org.datanucleus.enhancer.NucleusEnhanceException: You have selected to use ClassEnhancer "ASM"...

Efficiently Serving Dynamic Content in Google App Engine

My app on google app engine returns content items (just text) and comments on them. It works like this (pseudo-ish code): query: get keys of latest content #query to datastore for each item in content if item_dict in memcache: use item_dict else: build_item_dict(item) #by fetching from datastore store it...

Cross-site request forgery protections: Where do I put all these lines?

Hello, I was looking for a python code that would be able to log in from "Google App Engine" to some of my accounts on some websites (like yahoo or eBay) and 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'} jar =...

Python: How to display the calculated MD5 value in my browser?

Hello, I was given this Python code that would calculate an MD5 value for any phrase: import md5 md5.new("Nobody inspects the spammish repetition").digest() (The phrase here is: "Nobody inspects the spammish repetition") What I want to do is display this value in my browser. How do I do it in Python? I tried all these variants, non...

Is there some performance issue between leaving empty ListProperties or using dynamic (expando) properties?

Is there a datastore performance difference between adding dynamic properties of the expando class when they are needed for an entity or the simpler (for me) framework of just setting up all possible properties I might need from the start even though most instances will just be left empty. In my specific case I would be having 5-8 empty...

Need a cleaner way, which avoids too many 'if statements', to write this method for inputing data into datastore entity attributes?

What is the best way to reference datastore model attributes without using the four 'if statements' I have in the below sample code, which seem messy and inefficient. For real-world code I may have a situation of 100 attributes such as self.var1, self.var2, ... self.varN that I want to some how reference with just an integer (or strings)...

how to move a Google Application Engine based website to Amazon platform?

how to move a Google Application Engine based website to Amazon platform? do i need to recode all of the API? ...

Google App Engine Authentication

Hi, I would like my application - an iPhone app, to use the Google App Engine to authenticate for all requests. I would prefer a single email/password to be stored inside the app, and to be used for these reqeusts. Now, suppose the app is installed by say 1000 people and all 1000 people use it at the same time - will google cause issue...

Twitter basic authorisation not working?

URL url = new URL("http://twitter.com/statuses/update.xml"); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setDoOutput(true); String cridentials = new sun.misc.BASE64Encoder().encode((username + ":" + password).getBytes()); conn.setRequestProperty ("Authorization", "Basic " + cridentials); OutputStreamWr...

setting proxy in appengine plugin netbeans

how can i set proxy in the netbeans app engine plugin ? so that the it works like command line appcfg -p proxy:port update application_name i want to do this because i am behind a proxy. ...

Deploy GWT Application to Google App Engine using NetBeans

Hello, I try to deploy a GWT application, to Google App Engine using NetBeans. I had successful run GWT sample http://code.google.com/webtoolkit/doc/latest/tutorial/create.html using Personal GlassFish v3 Prelude Domain, by 1) Copy generated source code from StockWatcher to C:\Projects\StockWatcherNetbeans\src\java\com\google\ 2) Modi...

Any strategies for assessing the trade-off between CPU loss and memory gain from compression of data held in a datastore model's TextProperty?

Are very large TextProperties a burden? Should they be compressed? Say I have a information stored in 2 attributes of type TextProperty in my datastore entities. The strings are always the same length of 65,000 characters and have lots of repeating integers, a sample appearing as follows: entity.pixel_idx = 0,0,0,0,0,0,0,0,0,1,1,1,1,...

Using low level api for datastore in google app engine ? is it bad ?

There is little documentation on how to use the low level api for datastore and quite a lot on JPA and JDO and how it translates to it. My question is: is there any advantage in coding against the JPA or JDO specs instead of accessing directly the low level api for datastore ? From an initial look, it seems simple and straight forward...

How can I place JSessionid into cookie. Google app engine.

Сould you please tell me how to place the session identifier into the cookie, if  you are working with google app engine. Thanks. ...

Bounced email on Google App Engine

I'm developing application for google app engine (python), witch needs not only to send emails, but also know which ones bounce back. I created special account for my domain [email protected], added it as an app admin and sending messages from it. The problem is (and it was described here http://code.google.com/p/googleappengine/issu...