[appengine-java] Statistics Query returns null Entity for statistic entity on Development Server

2010-01-18 Thread Stuart Moffatt
Cannot get statistics for an entity on the dev server: DatastoreService datastore = DatastoreServiceFactory.getDatastoreService(); Entity globalStat = datastore.prepare(new Query ("__Stat_Total__")).asSingleEntity(); Long totalBytes = (Long) globalStat.getProperty("bytes"); OS: Mac OS X 10.5.8, E

[appengine-java] AppEngine powers Haiti address search for earthquake shaking intensity

2010-01-13 Thread Stuart Moffatt
http://haiti-quake.appspot.com Powered by Google App Engine (Java) and some custom GIS modifications of the Java Topology Suite library, this site lets friends and family search for a Haitian address and read what the potential damage might be at the site, based on USGS hazard maps for the Modifie

[appengine-java] Re: BlobstoreService limited by serve() / Feature request for get()

2009-12-18 Thread Stuart Moffatt
Users interested in better BlobstoreService, please "star" the issue so it gets more attention: http://code.google.com/p/googleappengine/issues/detail?id=2536 Stuart On Fri, Dec 18, 2009 at 11:23 AM, Stuart Moffatt wrote: > Added as feature request: > > http://code.google.co

[appengine-java] Re: BlobstoreService limited by serve() / Feature request for get()

2009-12-18 Thread Stuart Moffatt
Added as feature request: http://code.google.com/p/googleappengine/issues/detail?id=2536 <http://code.google.com/p/googleappengine/issues/detail?id=2536>Stuart On Fri, Dec 18, 2009 at 11:16 AM, Stuart Moffatt wrote: > App Engine team: > > Thanks for introducing BlobstoreService.

[appengine-java] BlobstoreService limited by serve() / Feature request for get()

2009-12-18 Thread Stuart Moffatt
App Engine team: Thanks for introducing BlobstoreService. It looked like it was going to solve a major impediment in an application I am prototyping, but I hit the wall (again) with only being able to regurgitate blobs during an http response, and not do anything useful with them in the cloud. I

[appengine-java] TaskEngine sample patched for GWT 2.0 MS 2

2009-11-14 Thread Stuart Moffatt
All, [excuse the cross posting to gwt/appengine] The TaskEngine sample application (http://taskengine.googlecode.com) by jaimeyap is a Google Web Toolkit application that runs on App Engine (http://taskengine.appspot.com) but is especially designed for use on iPhone. TaskEngine depends on GWT In

[appengine-java] Re: Java namespace for entity in bulkloader?

2009-11-04 Thread Stuart Moffatt
Nick, > Pretty much, except kind() is a method for Model classes, not loaders. Like > this: > > class Foo(db.Model): > @classmethod > def kind(self): > return 'my.Foo' > > The above kind() method makes more sense (in the model instead of the loader). Was not aware of it as the docs don't

[appengine-java] Re: Java namespace for entity in bulkloader?

2009-11-04 Thread Stuart Moffatt
Nick, > Can you clarify what you mean by 'java loader' and 'hosted mode'? My java loader is a servlet which loads a CSV from disk, processes it and persists entities to the datastore. The CSV has the values for the properties I want my entity to have. The CSV and the data it points to is in WEB-I

[appengine-java] Re: Java namespace for entity in bulkloader?

2009-11-04 Thread Stuart Moffatt
Typo (I think): - Query q = new Query("package.MyClass") // manually pass full package name should be: - Query q = new Query("SELECT * FROM package.MyClass") // manually pass full package name Stuart On Wed, Nov 4, 2009 at 4:43 PM, Stuart Moffatt wrote: >

[appengine-java] Re: Java namespace for entity in bulkloader?

2009-11-04 Thread Stuart Moffatt
i Stuart, > > I'm not sure why this would be happening. Your best option might be to > insert a record using Java, then check how it shows up in the admin console, > and make sure to use the exact same name for the kind you use in the Java > loader. > > -Nick Johnson > &g

[appengine-java] Re: Java namespace for entity in bulkloader?

2009-11-04 Thread Stuart Moffatt
tuart On Nov 3, 5:06 pm, Stuart Moffatt wrote: > I am using Nick's excellent tutorials on bulk loading, and was able to > push a huge pile of entities up to production. Problem is, they looked > like this: > > MySpecialEntity > > in my custom python bulkloader clas

[appengine-java] Java namespace for entity in bulkloader?

2009-11-03 Thread Stuart Moffatt
I am using Nick's excellent tutorials on bulk loading, and was able to push a huge pile of entities up to production. Problem is, they looked like this: MySpecialEntity in my custom python bulkloader class and in production. The gotcha is my application is Java, and queries for: SELECT FROM or

[appengine-java] memcache in hosted mode?

2009-11-03 Thread Stuart Moffatt
There are a few threads that mention using memcache in hosted mode, and having to set certain properties or configure persistence.xml, but there does not seem to be a concrete example of what / where / or how to set the parameters. Currently I have to redeploy my app to App Engine every time to s

[appengine-java] Re: Poor performance while deserializing a resource file (JTS spatial index)

2009-10-27 Thread Stuart Moffatt
t or offer any suggestions? On Sep 26, 11:04 pm, Stuart Moffatt wrote: > Toby, > > I should have thought of it earlier, but you were exactly right in > suggesting the static var for the spatial index. First hit was 9760 > milliseconds (as App Engine was spinning up). Many subs

[appengine-java] Apple Guice: A demo of App Engine, GWT, MVP, Guice, GIN

2009-10-26 Thread Stuart Moffatt
All, Apple Guice is a demo App Engine application using GWT with MVP (via gwt-dispath and gwt-presener), dependency injection (GIN on the client, Guice on the server), and a sharded counter to track the number of visitors. Demo is available at: http://appleguice.latest.emcode-dev.appspot.com/ S

[appengine-java] Discussion on will-it-play-in-app-engine

2009-09-25 Thread Stuart Moffatt
Under the Java Topology Suite (JTS) section of this page, please add: "A JTS + GWT + Google Maps demo is available at http://giscloud.appspot.com"; --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine f

[appengine-java] Storing GIS spatial indexes with modified Java Topology Suite

2009-09-25 Thread Stuart Moffatt
objects to be serializable and the current JTS indexes are not. Thus, JTS needs to be modified to permit serializing indexes. Here is my initial foray into making the STRtree spatial index serializable: http://code.google.com/p/giscloud/wiki/SerializedSpatialIndexes Best regards, Stuart Moffatt Ph.D