[google-appengine] Extra '%' and blank lines on the "Using JPA with App Engine" web page

2009-07-10 Thread Fred Janon
Not sure where to report it, so here is is: There a superflous '%' character that should not be there and a bunch of useless blank lines (no big deal). Source: = % =

[google-appengine] Re: Announce: GIS in the Cloud (App Engine + Java Topology Suite)

2009-07-10 Thread Stuart Moffatt
All, Beta 0.6 of http://giscloud.appspot.com is live. Details below. This version hits the datastore for the county entity (rather than in- lining as in previous versions), yanks out 242KB worth of well-known text in the form of POLYGON(())) describing the county at a high resolution, parses the

[google-appengine] Re: PLEASE HELP ME FIGHT GOOGLE SPAM

2009-07-10 Thread Paul NOSPAM
Guess what I got today? ANOTHER e-mail, advertising the SAME site, under a different name!! SurPrize, SirPrise. http://qungfa.appspot.com/ Compare it to this one: http://caatainc1.appspot.com/ Even the body of the e-mails is the same - except for the website name: We sell quality shoes,

[google-appengine] Re: PLEASE HELP ME FIGHT GOOGLE SPAM

2009-07-10 Thread Steve Robillard
Paul, Perhaps you should look at your mail software for a solution. Most software allows you to block or mark a sender as spam, thus avoiding the need for you to waste your obviously valuable time dealing with it. Remember there is more than one way to skin Bugs Bunny. Steve -Original Messa

[google-appengine] Re: the social network user id problem

2009-07-10 Thread neil souza
hey nick - met you at I/O in may, foulplay media, social gaming and all that... still think you should get on facebook ;) yes, i believe that #3 would be the best solution, let me be more specific: i'm under the impression that the app engine allows you to specify a string identifier for a model

[google-appengine] Re: Querying for N random records on Appengine datastore

2009-07-10 Thread Barry Hunter
On 10/07/2009, Devel63 wrote: > > The best way is to assign a one-up counter to each record as you > create it, then call random.randint(1,max_counter) to determine the > desired record. > > To retrieve multiple random entities in a query, do a filter('IN ', > [my random nums]). doent work

[google-appengine] How to insert a json object in a datastore?

2009-07-10 Thread Jyoti Shete-Javadekar
Hi, I am trying to insert a key value pair map in a datastore as one of the columns of a model. I found some implementations of a custom datastore data type for a dictionary. I was wondering if JSON object could be inserted instead of having a custom datatype. I tried json dumps to insert a json ob

[google-appengine] Re: Querying for N random records on Appengine datastore

2009-07-10 Thread Jason (Google)
No, IDs are not guaranteed contiguous. In my sample application, my IDs routinely jump from 1, 2, 3, 1000 for a lot of my kinds, so you can't count on continuity. I generally like the custom ID solution based on a sharded counter. This should guarantee continuity if you use a transaction... see htt

[google-appengine] Re: how to do reverse full-text search on GAE?

2009-07-10 Thread Mr Shore
I see,you assumed that each record of keywords contains only one word,right? But there is no limit on how many words there can be in each record. 2009/7/5 Wooble : > > If I was implementing this, I'd probably have an Entity with a > reference to the document and a list of keywords, so if I want

[google-appengine] SMS account verification confusion...

2009-07-10 Thread Xlorep DarkHelm
I'm a bit confused, for the Google App Engine, I did SMS verification and got 1 app I can make. However, when I log into the site is claims that I can make 10 apps. Whenever I try to make a second app, it tries (and fails) to do another SMS verification (since I already used my phone number to ver

[google-appengine] Re: Querying for N random records on Appengine datastore

2009-07-10 Thread Aleem Mawani
I'm not sure the ID's are guranteed continous nor do they start at some starting point (0 or 1). Assigning my own id's seems to turn into a more difficult problem of creating an IdGenerator. - Aleem On Fri, Jul 10, 2009 at 3:32 PM, Julian Namaro wrote: > > You should try to generate a list of N

[google-appengine] Re: Querying for N random records on Appengine datastore

2009-07-10 Thread Julian Namaro
You should try to generate a list of N random keys for your entity because you can fetch that with only one datastore call(and no index). Aren't google-generated numeric IDs guaranted continuous? If not you can yourself assign alphanumeric keys that are continuous (or generated by a formula that y

[google-appengine] Re: Server-Side JavaScript: App Engine vs Smart Cloud vs Jaxer

2009-07-10 Thread Jim Pick
On Jul 9, 12:08 am, Aurimas wrote: > 2) JoyEnt Smart Cloud. JoyEnt Smart Platform is new and cool and says > that it's the future of cloud computing. It's open source. It holds a > great promise, which I am super enthusiastic about. But it would be > very hard, if not impossible, for JoyEnt to be

[google-appengine] Re: Announce: GIS in the Cloud (App Engine + Java Topology Suite)

2009-07-10 Thread Stuart Moffatt
[Note: cross-posting back to gae for java to pick up an earlier thread, further discussions should remain on the main app engine group] Brian, After Nick's comments I dove into finding out more about this and came across your Arc2Earth Cloud services and some comments you made about "quadtrees pa

[google-appengine] Re: Announce: GIS in the Cloud (App Engine + Java Topology Suite)

2009-07-10 Thread bFlood
hi stuart great work getting JTS to run on GAE. Have you started to look at how you would port those JTS indexes to the GAE datastore? for me (and others), the hard part with geospatial queries in GAE isn't the geometry intersection ops (although JTS is a welcome addition for this), its how you

[google-appengine] "view source" equivalent for GAE

2009-07-10 Thread William Vambenepe
One of the main reason why the WWW grew so fast is how easy it is (or at least was, back when HTML was actually human-readable) to do "view source". I think it would help a lot if there was such an option for GAE apps. At the discretion of the app owner of course (unlike HTML). As a programmer I

[google-appengine] Re: the social network user id problem

2009-07-10 Thread tmdk
Give a "key_name" to your user entities at creation time. I use 'platform_uid', but you can use whatever you want. Getting entities by key_name is as fast as it gets -- it treats the Datastore like a big distributed hash table. See: http://code.google.com/appengine/docs/python/datastore/keysand

[google-appengine] Re: Querying for N random records on Appengine datastore

2009-07-10 Thread Devel63
The best way is to assign a one-up counter to each record as you create it, then call random.randint(1,max_counter) to determine the desired record. To retrieve multiple random entities in a query, do a filter('IN ', [my random nums]). Note that behind the scenes this generates multiple queries,

[google-appengine] Re: CPU time for trivial datastore roundtrip

2009-07-10 Thread Alex Popescu
Here's some sample code (not exactly the one I've previously mentioned as I haven't got the time to prepare it): [code] query = ContentEvent.gql('ORDER BY created_at DESC') event_list = query.fetch(max_results, offset) # now that we've fetched the initial list we need to navigate all the referenc

[google-appengine] Re: Sending sms

2009-07-10 Thread tmdk
Or 3) use a higher level 3rd party SMS gateway such as www.textmarks.com. You can pay per message or opt to include short ads in the footers of your messages and send them for free, without providing any billing information whatsoever. TextMarks is currently U.S. only. On Jul 10, 1:13 am, Jim w

[google-appengine] Re: Announce: GIS in the Cloud (App Engine + Java Topology Suite)

2009-07-10 Thread Stuart Moffatt
Nick, More information on JTS indexes: 1) STRTree - a packed R-Tree that does not support insert/delete once built 2) QuadTree - slower than STRTree but supports insert/delete http://jump-pilot.sourceforge.net/pdfs/jts_secrets_foss4g2007.pdf Stuart On Fri, Jul 10, 2009 at 10:39 AM, Stuart Moff

[google-appengine] Re: Announce: GIS in the Cloud (App Engine + Java Topology Suite)

2009-07-10 Thread Stuart Moffatt
Nick, Correct, as in, not yet. The reference app just parses well-known text on the fly to create geometry (server side only), and tests that geometry (which is usually complex) against incoming coordinates (so far only points and map bounds). Next stop, figuring out the right kind of index and it

[google-appengine] Re: Announce: GIS in the Cloud (App Engine + Java Topology Suite)

2009-07-10 Thread Nick Johnson (Google)
Hi Stuart, Am I correct in inferring that you're not storing geospatial indexes persistently at all, then? This seems impractical for the App Engine architecture, and for the scale it is intended to support. -Nick Johnson On Fri, Jul 10, 2009 at 5:29 PM, Stuart Moffatt wrote: > Nick, > > First,

[google-appengine] Re: Announce: GIS in the Cloud (App Engine + Java Topology Suite)

2009-07-10 Thread Stuart Moffatt
Nick, First, there was a typo in my announcement that I just realized. The second last paragraph should state that the "current version of the application does NOT demonstrate use of the datastore", that is, I am still in the process of implementing fetches of WKT from my entities, but that's the

[google-appengine] Re: AttributeError on google.appengine.ext.db (X object has no attribute _key_name)

2009-07-10 Thread Alex Popescu
Bug created: http://code.google.com/p/googleappengine/issues/detail?id=1850 ./alex -- .w( the_mindstorm )p. Alexandru Popescu On Jul 10, 2:49 pm, "Nick Johnson (Google)" wrote: > Hi Alex, > > You're right - this is a bug. Although the correct behaviour may be to > return an error in this ca

[google-appengine] Re: CPU time for trivial datastore roundtrip

2009-07-10 Thread Nick Johnson (Google)
Here's the relevant ops that one of these pages (ex: http://www.nmaps.net/172547) does: self.user = model.User.get(db.Key(self.session['user'])) map = model.Map.get_by_map_id(int(map_id)) q = model.Comment.all().ancestor(map).order("-lastupdated") comments = q.fetch(COMMENTS_PER_PAGE + 1) q =

[google-appengine] Re: CPU time for trivial datastore roundtrip

2009-07-10 Thread Alex Popescu
Hi Nick, I'll deploy some tests to further investigate this issue and I'll provide the code and results. Meanwhile, I'm wondering if you could share the relevant pieces of code in your app that are tipically below 600ms. I must confess that I haven't seen many such cases in my app so far (except

[google-appengine] Re: SMS Verfication Troubles

2009-07-10 Thread Nick Johnson (Google)
Hi kyungnet, I've activated your account. -Nick Johnson On Fri, Jul 10, 2009 at 4:17 PM, kyungnet wrote: > > Please activate my account. > My problem is same with Ben's message. > > On Jul 10, 9:32 pm, "Nick Johnson (Google)" > wrote: >> On Fri, Jul 10, 2009 at 6:09 AM, Ben from He3 wrote: >>

[google-appengine] Re: SMS Verfication Troubles

2009-07-10 Thread kyungnet
Please activate my account. My problem is same with Ben's message. On Jul 10, 9:32 pm, "Nick Johnson (Google)" wrote: > On Fri, Jul 10, 2009 at 6:09 AM, Ben from He3 wrote: > > > Hi Nick or someone else from Google, > > > I am also having difficulties with SMS verification. The funny thing > > i

[google-appengine] Re: Querying for N random records on Appengine datastore

2009-07-10 Thread Wooble
Highly non-optimal solution: have a cron job assign new random numbers to your entities often enough to simulate randomness. Even just re- assigning numbers to entities that have been previously selected might work. This involves a lot more CPU as you'd be doing writes, but shifts the work from

[google-appengine] Re: Proper namespace for run_wsgi_app

2009-07-10 Thread Nick Johnson (Google)
Hi Jason, Either approach works. The former is slightly more efficient, since it only creates the WSGI application once, and reuses it for each request. -Nick Johnson On Fri, Jul 10, 2009 at 2:20 AM, ja...@kuam.com wrote: > > Hello!  I'm new to App Engine and I've gone through the 'Hello World'

[google-appengine] Re: the social network user id problem

2009-07-10 Thread Nick Johnson (Google)
On Fri, Jul 10, 2009 at 2:04 PM, neil souza wrote: > > the problem: > > how to best structure the id system for a social network app on app > engine. > > > the run down: > > users access the app through a social network. they identify > themselves to the app with a 'platform type id' (pl_type_id,

[google-appengine] I always suffered from this error these days.

2009-07-10 Thread looking
could anyone help me? 07-09 04:38PM 48.216 / 500 3838ms 8203cpu_ms 0kb Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; yie8; MAXTHON 2.0),gzip(gfe) See detai

[google-appengine] I can't execute any GQL in the java codes.

2009-07-10 Thread looking
I can't execute any GQL in the java codes. but it works in the datastore. how come? my project is suffered from 500 errors three days. I have no idea what happened. my id is lookingni. you can see errors in this page http://lookingforfour.appspot.com it is much appreciated if any helps. --~-

[google-appengine] Re: Announce: GIS in the Cloud (App Engine + Java Topology Suite)

2009-07-10 Thread Nick Johnson (Google)
Hi Stuart, Very nice! Out of curiosity, what indexing scheme does JTS use? Are you building an R-Tree or other tree based structure on top of the datastore, or are you using a hilbert-curve type approach? -Nick Johnson On Fri, Jul 10, 2009 at 8:03 AM, Stuart Moffatt wrote: > > Announcement: >

[google-appengine] Re: CPU time for trivial datastore roundtrip

2009-07-10 Thread Nick Johnson (Google)
On Fri, Jul 10, 2009 at 2:54 AM, Anthony Mills wrote: > > Yeah, this is absolutely killing me. Killing me. I'm doing two > queries, for instance, where there are 50 records coming back each, > and JSON'ning them up to be sent back to the client. This shouldn't be > too bad, right? And the query th

[google-appengine] the social network user id problem

2009-07-10 Thread neil souza
the problem: how to best structure the id system for a social network app on app engine. the run down: users access the app through a social network. they identify themselves to the app with a 'platform type id' (pl_type_id, enum) and 'platform user id' (pl_user_id, 64bit int) pair. examples:

[google-appengine] Re: SMS Verfication Troubles

2009-07-10 Thread Nick Johnson (Google)
On Fri, Jul 10, 2009 at 6:09 AM, Ben from He3 wrote: > > Hi Nick or someone else from Google, > > I am also having difficulties with SMS verification. The funny thing > is that a few months ago I did get verified, log in, try the python > tutorial, etc. Now when I go back I need to re-verify and i

[google-appengine] Help with iGoogle public key

2009-07-10 Thread Rohannes
Hi there Sorry to cross-post (see bottom). I'm trying to have my AppEngine application verify signed requests from my iGoogle gadget. I'm very ignorant in this regard so please excuse me. I'm basically following this guide http://wiki.opensocial.org/index.php?title=Building_an_OpenSocial_App_wi

[google-appengine] Re: spring integration

2009-07-10 Thread grlea
Works alright. @Autowired doesn't work. If you want to try Spring 3, read this: http://www.ardentlord.com/apps/blog/show/829881-spring-3-0-on-google-app-engine Also, there is a Google Group for GAE/Java that you may want to join. Cheers, Graham. On Jul 9, 9:21 pm, elwis wrote: > I've just sta

[google-appengine] Re: CPU time for trivial datastore roundtrip

2009-07-10 Thread grlea
I am wondering whether you have proved that it is the datastore using the CPU and not your app? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-a

[google-appengine] Announce: GIS in the Cloud (App Engine + Java Topology Suite)

2009-07-10 Thread Stuart Moffatt
Announcement: The GIS in the Cloud (App Engine + JTS) reference project is now available at http://giscloud.appspot.com with the source code available at http://giscloud.googlecode.com (documentation forthcoming). While many GIS/spatial App Engine discussions center on the python SDK (with pre-c

[google-appengine] Low performance JDO / persisting 25 entities at once

2009-07-10 Thread Antoni Jakubiak
I'm not satisfied with performance of JDO while persisting 25 entities in one request. It takes about 4 seconds. My entity class contains: id, String, String, List (1-5). Any suggestions? --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[google-appengine] Re: SMS Verfication Troubles

2009-07-10 Thread Ben from He3
Hi Nick or someone else from Google, I am also having difficulties with SMS verification. The funny thing is that a few months ago I did get verified, log in, try the python tutorial, etc. Now when I go back I need to re-verify and it complains about "too many messages or phone number used before

[google-appengine] Scanning uploaded files for viruses

2009-07-10 Thread AC
After looking at Google App Engine docs and groups it seems that the App Engine does not provide a way to scan uploaded files for viruses. Is that something Google is planning to provide in future? We would need it before our application goes live in about 6 months. Without this feature we would

[google-appengine] Several GAE applications in Google Apps

2009-07-10 Thread Andrew Andrews
I would like to register 2 Google Apps Engine applications with my Google Apps: app01.mydomain.com app02.mydomain.com I have added first application without problems but could not do the same for the second. After I accept agreement and click "activate this service" there's error message: "An e

[google-appengine] Re: CPU time for trivial datastore roundtrip

2009-07-10 Thread Anthony Mills
Yeah, this is absolutely killing me. Killing me. I'm doing two queries, for instance, where there are 50 records coming back each, and JSON'ning them up to be sent back to the client. This shouldn't be too bad, right? And the query they're for is an = on a list property and an order on an ID, prop

[google-appengine] Proper namespace for run_wsgi_app

2009-07-10 Thread ja...@kuam.com
Hello! I'm new to App Engine and I've gone through the 'Hello World' tutorial and am looking through the demo code in the SDK. Should I be importing/using this statement (from the online tutorial): from google.appengine.ext.webapp.util import run_wsgi_app # more code... application = weba

[google-appengine] Re: AttributeError on google.appengine.ext.db (X object has no attribute _key_name)

2009-07-10 Thread Nick Johnson (Google)
Hi Alex, You're right - this is a bug. Although the correct behaviour may be to return an error in this case, the one it's returning is not helpful. Can you file a bug in the external bug tracker, please? -Nick Johnson On Fri, Jul 10, 2009 at 12:17 AM, Alex Popescu wrote: > > On Jul 9, 1:32 pm,

[google-appengine] Re: CPU time for trivial datastore roundtrip

2009-07-10 Thread Nick Johnson (Google)
Hi Alex, It's impossible to give a useful comment without first seeing the code that you're using. Speaking from my own experience, I have a personal site that serves reasonably datastore-intensive pages, and typically total CPU milliseconds doesn't exceed about 600 - that's to do several get req

[google-appengine] Re: URL fetch limits

2009-07-10 Thread Nick Johnson (Google)
Hi Shooter, The only way around this is if bit.ly/tinyurl/etc provide a 'bulk dereference' API. Without that, your only option is to do one URLFetch per URL. Note that you can use the asynchronous URLFetch support to parallelize this, though. -Nick Johnson On Fri, Jul 10, 2009 at 2:15 AM, Shoot

[google-appengine] Re: "Not in" GQL Query

2009-07-10 Thread Nick Johnson (Google)
Hi ShriJ, You could use multiple != filters, but bear in mind that these require multiple queries under the hood. If the number of entities you're excluding is low, your best option is to execute a query without the filters, and remove any entities with those IDs from the returned results. -Nick

[google-appengine] full-text search: gae-search 1.1 goes free

2009-07-10 Thread Kornewald & Wanschik GbR (App Engine)
Hi, we've released a new gae-search version (full-text search for App Engine + Django). Now, there's a "Free" version which can be used in non-commercial projects. Get it here: http://gae-full-text-search.appspot.com/ We've also implemented the relations index technique (index is moved into a sep

[google-appengine] Re: Sending sms

2009-07-10 Thread Jim
Last time I checked (4-5 months ago) there was still no native API for doing this via Google's services. So, you are left with two options: 1) use the "sms to email gateway" approach whereby you construct an email address from the user's phone number and carrier info; eg. 1234...@cingularme.com

[google-appengine] Re: Using the same credentials for App engine and Picasa web albums

2009-07-10 Thread Romain Vallet
Thanks Jeff. I wouldn't have thought that the autorisation token could last that long. As it's called a "session token" in the AuthSub documentation, I thought I'd have to renew it for each user session. I think I'll do as you say, however it would be useful to add some sort of a link between th

[google-appengine] "Not in" GQL Query

2009-07-10 Thread ShriJ
Hi All, I want a query like "Select * from tableName where id not in (1,2,3)" in GQL. When I tried this in the data viewer on appspot, I get an invalid GQL query string error. Does anyone know how to construct a "Not in" query in GQL? Thanks in advance. -Shri --~--~-~--~~---