Google App Engine
http://groups.google.com/group/google-appengine?hl=en
google-appengine@googlegroups.com
Today's topics:
* GAE Obfuscator? - 1 messages, 1 author
http://groups.google.com/group/google-appengine/browse_thread/thread/04339ce97c2c970a?hl=en
* TypeError: 'NoneType' object is unsubscriptable - 1 messages, 1 author
http://groups.google.com/group/google-appengine/browse_thread/thread/2734d0fb3bf3ea45?hl=en
* Definition of "Google's Infrastructure" - 3 messages, 3 authors
http://groups.google.com/group/google-appengine/browse_thread/thread/acfa429675f52f31?hl=en
* Some problems with database filling - 1 messages, 1 author
http://groups.google.com/group/google-appengine/browse_thread/thread/96a9757fa9972b76?hl=en
* What is an acceptable average request time? - 6 messages, 3 authors
http://groups.google.com/group/google-appengine/browse_thread/thread/e2cb2dba9b6c9c81?hl=en
* Datastore Timeouts Must Die - 1 messages, 1 author
http://groups.google.com/group/google-appengine/browse_thread/thread/b20a08a0015787bf?hl=en
* Can We use Unicode in Custom Tags? - 3 messages, 2 authors
http://groups.google.com/group/google-appengine/browse_thread/thread/24d04c3db285a3b0?hl=en
* Can I use key or id in gql? - 1 messages, 1 author
http://groups.google.com/group/google-appengine/browse_thread/thread/fc89e539f91b75cc?hl=en
* Model.put() Best Practice - 1 messages, 1 author
http://groups.google.com/group/google-appengine/browse_thread/thread/689de73953a5eccc?hl=en
* Why Google App Engine is broken and what Google must do to fix it. - 2
messages, 2 authors
http://groups.google.com/group/google-appengine/browse_thread/thread/83a692fecb6c5b12?hl=en
* error in the configuration documentation? - 1 messages, 1 author
http://groups.google.com/group/google-appengine/browse_thread/thread/623b8aaaf855f24f?hl=en
* Simple Graphics App - 1 messages, 1 author
http://groups.google.com/group/google-appengine/browse_thread/thread/e56058f8678c19a5?hl=en
* reading a file - 1 messages, 1 author
http://groups.google.com/group/google-appengine/browse_thread/thread/eb53ee63f26ab142?hl=en
* app_id is not valid in appgallery - 1 messages, 1 author
http://groups.google.com/group/google-appengine/browse_thread/thread/800b98f8aba908e1?hl=en
* Datastore timeout error - 2 messages, 1 author
http://groups.google.com/group/google-appengine/browse_thread/thread/f3602680531a8e0f?hl=en
==============================================================================
TOPIC: GAE Obfuscator?
http://groups.google.com/group/google-appengine/browse_thread/thread/04339ce97c2c970a?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, Oct 7 2008 12:33 pm
From: Davide Rognoni
> See "Software patent debate"
> http://en.wikipedia.org/wiki/Software_patent_debate
"google algorithm" on Patent Search
http://www.google.com/patents?spell=1&q=google+algorithm&btnG=Search+Patents
The first, US Pat. 6594692 - Filed Apr 29, 1996
"Methods for transacting electronic commerce"
http://www.google.com/patents?id=NvsOAAAAEBAJ&dq=google+algorithm
> seriously a javascript compressor is not an obfuscators
"...Obfuscators may be used to compact object code or interpreted code
without affecting its behaviour when size is important..."
http://en.wikipedia.org/wiki/Obfuscated_code
On Oct 7, 2:53 pm, "Jorge Vargas" <jorge.var...@gmail.com> wrote:
> On Mon, Oct 6, 2008 at 3:30 PM, Davide Rognoni <davide.rogn...@gmail.com> wrote:
>
> > A good obfuscator do not make a code more slow or bugged (see
> > JavaScript obfuscators)
>
> link?
>
> seriously a javascript compressor is not an obfuscators, seehttp://en.wikipedia.org/wiki/Minify
>
> that has a serious advantage as it reduces latency.
>
> > See "Software patent debate"
> >http://en.wikipedia.org/wiki/Software_patent_debate
>
> > What is the big innovation of Google?
>
> > On Oct 6, 2:11 pm, "Jorge Vargas" <jorge.var...@gmail.com> wrote:
> >> Which are stupid, make things run slower and sometimes get you weird
> >> random bugs. After all in todays world your secret is not your code
> >> but your company, just an example what is the big innovation of say
> >> youtube?
>
> >> On Sun, Oct 5, 2008 at 4:49 AM, Davide Rognoni <davide.rogn...@gmail.com> wrote:
>
> >> > The solution is in the title: "GAE Obfuscator"
>
> >> > On Oct 5, 5:44 am, "Jorge Vargas" <jorge.var...@gmail.com> wrote:
> >> >> On Sat, Oct 4, 2008 at 3:32 AM, Davide Rognoni <davide.rogn...@gmail.com> wrote:
>
> >> >> > Search the word "obfuscate"
> >> >> >http://evolvingtrends.wordpress.com/2008/07/23/google-app-engine-thre...
>
> >> >> > """\
> >> >> > There is one other serious issue with the Google appengine: relying on
> >> >> > a predatory company like Google to host your startup's application
> >> >> > could be very risky from a business point of view. Will Google allow
> >> >> > you to upload obfuscated code or obfuscated Python byte code? Do they
> >> >> > have access to your code? (yes) What if you have invested heavily in
> >> >> > developing some commercial product that Google wants to copy or
> >> >> > acquire? Will they have more leverage because they host your code?
> >> >> > """
>
> >> >> And how is this different from hosting with someone else? or you plan
> >> >> to plant your servers on your office?
>
> >> >> > On Oct 3, 11:13 pm, Davide Rognoni <davide.rogn...@gmail.com> wrote:
> >> >> >> Why Google can see my secret code?
>
> >> >> >> i.e.http://www.lysator.liu.se/~astrand/projects/pyobfuscate/
==============================================================================
TOPIC: TypeError: 'NoneType' object is unsubscriptable
http://groups.google.com/group/google-appengine/browse_thread/thread/2734d0fb3bf3ea45?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, Oct 7 2008 1:25 pm
From: "Venkatesh Rangarajan"
Marzia,
I added a few Index. NoneType errors have reduced. Still I get those errors
every once in a while.
Data-Store timeouts are happening 50% of the time. Even for queries where
the result set is really small. I am retrieving only 20 entities per
request, but even that is causing time-out errors.
I am doing everything as per "documentation". At this time I am at less than
30% of the actual volume of data that I can potentially upload.
Please guide me on what I can do to improve my app ? I would prefer a little
latency in page loading than milli second timeouts.
Rgds,
Venkatesh
On Wed, Oct 1, 2008 at 12:22 PM, Marzia Niccolai <marce@google.com> wrote:
> These types of queries don't usually need indexes - unless they are too
> difficult to do without the index. In this case you would need an index
> that is along the lines of:
> - kind: Article
> properties:
> - name: __searchable_text_index
> - name: __searchable_text_index
> - name: __searchable_text_index
> etc, depending on the number of keywords you are using in your query.
>
> Unfortunately, queries needing this type of index have a high
> correspondence rate with exploding indexes (
> http://code.google.com/appengine/docs/datastore/queriesandindexes.html#Big_Entities_and_Exploding_Indexes),
> so it's probable that this index can't be built.
>
> -Marzia
>
>
> On Tue, Sep 30, 2008 at 3:35 PM, Venkatesh Rangarajan <
> venkatesh.rangarajan@gmail.com> wrote:
>
>> Its a search able model ? The documentation says they don't need indexes.
>> Can you please advice me what index I should add ?
>>
>> Here is my query below.
>>
>> def db_visas(keyword, offset):
>> visas=[]
>> query = search.SearchableQuery('Visa')
>> query.Search(keyword)
>> for result in query.Get(101, offset):
>> visas.append(result)
>> return visas
>>
>>
>>
>>
>>
>
> >
>
==============================================================================
TOPIC: Definition of "Google's Infrastructure"
http://groups.google.com/group/google-appengine/browse_thread/thread/acfa429675f52f31?hl=en
==============================================================================
== 1 of 3 ==
Date: Tues, Oct 7 2008 1:35 pm
From: Sal
So you want to be assured that if all the Google data centers in the
U.S. (over 12) go down (I wonder the probability of this), your GAE
application will still be up?
On Oct 7, 11:35 am, "Andrew Badera" <and...@badera.us> wrote:
> Ahh ... availability and assurance? That's half the point of the cloud.
>
> On Tue, Oct 7, 2008 at 2:34 PM, Sal <fuente...@gmail.com> wrote:
>
> > Honestly, why would anyone need to deploy their GAE applications to
> > international data centers?
>
> > On Oct 7, 10:48 am, dleifker <dleif...@gmail.com> wrote:
> > > What exactly does the term Google's Infrastructure imply? Once
> > > deployed does an application get deployed to regional (ie
> > > international) data centers? If not, from what general geographical
> > > area are the applications being served from? (US only?) And are there
> > > plans to allow an application to be deployed to international
> > > locations?
>
> --
> Thanks-
> - Andy Badera
> - and...@badera.us
> - (518) 641-1420
>
> -http://higherefficiency.net
> -http://changeroundup.com/
>
> -http://flipbitsnotburgers.blogspot.com/
> -http://andrew.badera.us/
>
> - Google me:http://www.google.com/search?q=andrew+badera
== 2 of 3 ==
Date: Tues, Oct 7 2008 1:39 pm
From: "Andrew Badera"
That's the point of the cloud -- if you're going to make your resources
external, remote, you need to provide a means for assuring uptime. For some
people, different geophysical locations are required for their service.
Obviously GAE beta shouldn't see a true NEED for this while still in beta,
but like SSL and everything else GAE lacks, there IS a need, it IS a basic
premise of modern cloud computing.
On Tue, Oct 7, 2008 at 4:35 PM, Sal <fuentesjr@gmail.com> wrote:
>
> So you want to be assured that if all the Google data centers in the
> U.S. (over 12) go down (I wonder the probability of this), your GAE
> application will still be up?
>
> On Oct 7, 11:35 am, "Andrew Badera" <and...@badera.us> wrote:
> > Ahh ... availability and assurance? That's half the point of the cloud.
> >
> > On Tue, Oct 7, 2008 at 2:34 PM, Sal <fuente...@gmail.com> wrote:
> >
> > > Honestly, why would anyone need to deploy their GAE applications to
> > > international data centers?
> >
> > > On Oct 7, 10:48 am, dleifker <dleif...@gmail.com> wrote:
> > > > What exactly does the term Google's Infrastructure imply? Once
> > > > deployed does an application get deployed to regional (ie
> > > > international) data centers? If not, from what general geographical
> > > > area are the applications being served from? (US only?) And are there
> > > > plans to allow an application to be deployed to international
> > > > locations?
> >
> > --
> > Thanks-
> > - Andy Badera
> > - and...@badera.us
> > - (518) 641-1420
> >
> > -http://higherefficiency.net
> > -http://changeroundup.com/
> >
> > -http://flipbitsnotburgers.blogspot.com/
> > -http://andrew.badera.us/
> >
> > - Google me:http://www.google.com/search?q=andrew+badera
> >
>
== 3 of 3 ==
Date: Tues, Oct 7 2008 2:03 pm
From: dleifker
Reliability/redundancy is important. However don't overlook the fact
that performance for international users is greatly affected by your
server's location, considering latency/packet loss, etc. And there are
markets outside the US. ;-)
On Oct 7, 3:39 pm, "Andrew Badera" <and...@badera.us> wrote:
> That's the point of the cloud -- if you're going to make your resources
> external, remote, you need to provide a means for assuring uptime. For some
> people, different geophysical locations are required for their service.
> Obviously GAE beta shouldn't see a true NEED for this while still in beta,
> but like SSL and everything else GAE lacks, there IS a need, it IS a basic
> premise of modern cloud computing.
>
> On Tue, Oct 7, 2008 at 4:35 PM, Sal <fuente...@gmail.com> wrote:
>
> > So you want to be assured that if all the Google data centers in the
> > U.S. (over 12) go down (I wonder the probability of this), your GAE
> > application will still be up?
>
> > On Oct 7, 11:35 am, "Andrew Badera" <and...@badera.us> wrote:
> > > Ahh ... availability and assurance? That's half the point of the cloud.
>
> > > On Tue, Oct 7, 2008 at 2:34 PM, Sal <fuente...@gmail.com> wrote:
>
> > > > Honestly, why would anyone need to deploy their GAE applications to
> > > > international data centers?
>
> > > > On Oct 7, 10:48 am, dleifker <dleif...@gmail.com> wrote:
> > > > > What exactly does the term Google's Infrastructure imply? Once
> > > > > deployed does an application get deployed to regional (ie
> > > > > international) data centers? If not, from what general geographical
> > > > > area are the applications being served from? (US only?) And are there
> > > > > plans to allow an application to be deployed to international
> > > > > locations?
>
> > > --
> > > Thanks-
> > > - Andy Badera
> > > - and...@badera.us
> > > - (518) 641-1420
>
> > > -http://higherefficiency.net
> > > -http://changeroundup.com/
>
> > > -http://flipbitsnotburgers.blogspot.com/
> > > -http://andrew.badera.us/
>
> > > - Google me:http://www.google.com/search?q=andrew+badera
==============================================================================
TOPIC: Some problems with database filling
http://groups.google.com/group/google-appengine/browse_thread/thread/96a9757fa9972b76?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, Oct 7 2008 1:40 pm
From: djidjadji
For every record you need to create a new LjShort.
When you put() a record it gets a key and this record gets rewritten
with all the records
class Feed(webapp.RequestHandler):
def get(self):
feed = feedparser.parse('someRSSlink')
for i in feed.entries:
ljfeed = LjShort()
ljfeed.link = i.link
try:
ljfeed.title = i.title
except:
ljfeed.title = 'No title...'
ljfeed.put()
self.redirect('/')
2008/10/6 Shtpavel <ShtPavel@gmail.com>:
>
> So.. I want to fill database with 2 fields: Link, Title.
> This information i take from rss-parser.
> Bu database do not filling.
>
> <code>
> import feedparser
> import os
> from google.appengine.ext import webapp, db
> from google.appengine.ext.webapp.util import run_wsgi_app
> from google.appengine.ext.webapp import template
>
> class LjShort(db.Model):
> link = db.LinkProperty()
> title = db.StringProperty()
>
>
> class Feed(webapp.RequestHandler):
> def get(self):
> ljfeed = LjShort()
>
> feed = feedparser.parse('someRSSlink')
> for i in feed.entries:
> ljfeed.link = i.link
> try:
> ljfeed.title = i.title
> except:
> ljfeed.title = 'No title...'
> ljfeed.put()
> self.redirect('/')
>
>
> class FeedPage(webapp.RequestHandler):
> def get(self):
> lj_query = LjShort().all()
>
> template_values = {
> 'lj_post': lj_query,
> }
> path = os.path.join(os.path.dirname(__file__), 'feed.html')
> self.response.out.write(template.render(path,
> template_values))
>
> application = webapp.WSGIApplication(
> [('/', FeedPage),
> ('/feed', Feed)],
> debug = True
> )
>
> def main():
> run_wsgi_app(application)
>
> if __name__ == '__main__':
> main()
> </code>
>
> >
>
==============================================================================
TOPIC: What is an acceptable average request time?
http://groups.google.com/group/google-appengine/browse_thread/thread/e2cb2dba9b6c9c81?hl=en
==============================================================================
== 1 of 6 ==
Date: Tues, Oct 7 2008 2:17 pm
From: Amir Michail
Hi,
Anyone know what sort of request times are acceptable?
Amir
== 2 of 6 ==
Date: Tues, Oct 7 2008 2:28 pm
From: "David Symonds"
On Wed, Oct 8, 2008 at 8:17 AM, Amir Michail <amichail@gmail.com> wrote:
> Anyone know what sort of request times are acceptable?
Acceptable to whom?
Dave.
== 3 of 6 ==
Date: Tues, Oct 7 2008 2:36 pm
From: Amir Michail
On Oct 7, 5:28 pm, "David Symonds" <dsymo...@gmail.com> wrote:
> On Wed, Oct 8, 2008 at 8:17 AM, Amir Michail <amich...@gmail.com> wrote:
> > Anyone know what sort of request times are acceptable?
>
> Acceptable to whom?
>
> Dave.
I mean what sort of request times should one aim for to avoid having
the app shut down for hours?
Amir
== 4 of 6 ==
Date: Tues, Oct 7 2008 3:51 pm
From: "David Symonds"
On Wed, Oct 8, 2008 at 8:36 AM, Amir Michail <amichail@gmail.com> wrote:
> I mean what sort of request times should one aim for to avoid having
> the app shut down for hours?
As short as possible. It will depend on the amount of traffic: if it's
very few requests, they can take several seconds; if it's getting lots
of requests, a few seconds is going to be too long.
Dave.
== 5 of 6 ==
Date: Tues, Oct 7 2008 5:10 pm
From: Amir Michail
On Oct 7, 6:51 pm, "David Symonds" <dsymo...@gmail.com> wrote:
> On Wed, Oct 8, 2008 at 8:36 AM, Amir Michail <amich...@gmail.com> wrote:
> > I mean what sort of request times should one aim for to avoid having
> > the app shut down for hours?
>
> As short as possible. It will depend on the amount of traffic: if it's
> very few requests, they can take several seconds; if it's getting lots
> of requests, a few seconds is going to be too long.
>
> Dave.
I think what's required here is a tool to give developers get a
reasonable idea whether it would be feasible to port their app to the
google app engine with its present quotas/deadlines.
Amir
== 6 of 6 ==
Date: Tues, Oct 7 2008 6:35 pm
From: Ross Ridge
Amir Michail wrote:
> I think what's required here is a tool to give developers get a
> reasonable idea whether it would be feasible to port their app to the
> google app engine with its present quotas/deadlines.
I beleive the warnings about the average request time occur when a
request takes more than 300 ms or so. An acceptable average request
time would be something less than that.
You can download the SDK and try playing around with that, but times
you measure on your machine with may differ significantly from those
on Google's server. Especially for datastore operations.
Ross Ridge
==============================================================================
TOPIC: Datastore Timeouts Must Die
http://groups.google.com/group/google-appengine/browse_thread/thread/b20a08a0015787bf?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, Oct 7 2008 2:48 pm
From: Alex Epshteyn
As an example, of how frequently datastore write timeouts are
happening on app engine, here are the last 20 entries in my production
error log, showing 20 timeouts in 15 minutes!
I'm hoping the Google team will break their silence about this and at
least acknowledge the problem.
Developers: please star issue http://code.google.com/p/googleappengine/issues/detail?id=764
if you are also experiencing this problem.
10-07 02:20PM 48.172 /games 500 4040ms 11285mcycles 0kb
10-07 02:20PM 48.172 /games 500 4040ms 11285mcycles 0kb
10-07 02:16PM 43.763 /games 500 2813ms 8253mcycles 0kb
10-07 02:16PM 43.410 /games 500 3078ms 8909mcycles 0kb
10-07 02:16PM 40.958 /games 500 3084ms 8915mcycles 0kb
10-07 02:15PM 03.499 /games 500 4109ms 12077mcycles 0kb
10-07 02:15PM 02.584 /games 500 4110ms 12365mcycles 0kb
10-07 02:14PM 21.732 /games 500 3071ms 8900mcycles 0kb
10-07 02:10PM 52.865 /games 500 4045ms 11287mcycles 0kb
10-07 02:10PM 51.875 /games 500 4041ms 11285mcycles 0kb
10-07 02:10PM 41.774 /games 500 4036ms 11282mcycles 0kb
10-07 02:10PM 36.958 /games 500 4033ms 11279mcycles 0kb
10-07 02:10PM 23.148 /games 500 4039ms 11174mcycles 0kb
10-07 02:08PM 31.288 /games 500 4068ms 10555mcycles 0kb
10-07 02:08PM 30.842 /games 500 4449ms 12217mcycles 0kb
10-07 02:07PM 27.179 /games 500 4047ms 11285mcycles 0kb
10-07 02:07PM 24.828 /games 500 4047ms 11284mcycles 0kb
10-07 02:07PM 20.139 /games 500 4061ms 11281mcycles 0kb
10-07 02:07PM 18.532 /games 500 4042ms 11246mcycles 0kb
10-07 02:07PM 08.776 /games 500 4048ms 11285mcycles 0kb
10-07 02:05PM 58.206 /games 500 4047ms 11019mcycles 0kb
On Oct 6, 1:53 am, Alex Epshteyn <alexander.epsht...@gmail.com> wrote:
> Please see:http://code.google.com/p/googleappengine/issues/detail?id=764
>
> There is a recent thread on this group titled "Why Google App Engine
> is broken and what Google must do to fix it." I personally don't
> think that any of the topics raised by the OP of that thread imply
> that anything is broken - they are just feature requests.
>
> What *is* broken, however, is writing to the Datastore. Lots of
> developers, not just me, have been complaining about this here for
> months. I don't think there's been any real response from the Google
> team about this. This issue needs to be investigated and hopefully
> fixed before App Engine can be used for production. The probability
> of failure for any given data write request is just too high right
> now. I actually *am* using App Engine in production and somewhat
> regretting it, mostly due to this issue.
==============================================================================
TOPIC: Can We use Unicode in Custom Tags?
http://groups.google.com/group/google-appengine/browse_thread/thread/24d04c3db285a3b0?hl=en
==============================================================================
== 1 of 3 ==
Date: Tues, Oct 7 2008 3:06 pm
From: Alexander Kojevnikov
Try prefixing your string with 'u' in PostA.render():
return u"<li><a id='%s' href='/post/%s.html'>%s</a></li>" %
(p.id,p.id,p.title)
On Oct 8, 1:18 am, Gmail <yanzixiangna...@gmail.com> wrote:
> Current I Try to Use django's Custom Tags,
> It is usful,I like it.
>
> but when i try to render something Unicode ,
> I got UnicodeDecodeError.
>
> This is my Tag:
> class PostA(template.Node):
> def render(self, context):
> p=context['p']
> return "<li><a id='%s' href='/post/%s.html'>%s</a></li>" %
> (p.id,p.id,p.title)
> def posta(parser, token):
> return PostA()
>
> in the template:
> {%for p in paths%}
> <li>{%posta p.id p.title%}</li>
> {% endfor %}
>
> paths is a list of Post
> Post is my model:
> class Post(db.Model):
> id=db.StringProperty(required=True)
> title = db.StringProperty(required=True)
> path = db.StringProperty()
>
> in the Handler:
> template_values={
> 'title':p.title,
> 'paths':paths,
> 'content':p.content,
> 'relates':relates
> }
> return shortcuts.render_to_response("post.html",template_values)
> So What your Idea?
>
> I think there are something wrong in the shortcuts module when it is
> dealing whit unicode,
> but i can not find it.
> Any reply will be appreciated!
== 2 of 3 ==
Date: Tues, Oct 7 2008 3:10 pm
From: Alexander Kojevnikov
If this doesn't help, it's probably a bug in Django 0.96 templates.
Try switching to 1.0, it has a lot of Unicode-related fixes:
http://docs.djangoproject.com/en/dev/ref/unicode/
On Oct 8, 10:06 am, Alexander Kojevnikov <alexan...@kojevnikov.com>
wrote:
> Try prefixing your string with 'u' in PostA.render():
>
> return u"<li><a id='%s' href='/post/%s.html'>%s</a></li>" %
> (p.id,p.id,p.title)
>
> On Oct 8, 1:18 am, Gmail <yanzixiangna...@gmail.com> wrote:
>
> > Current I Try to Use django's Custom Tags,
> > It is usful,I like it.
>
> > but when i try to render something Unicode ,
> > I got UnicodeDecodeError.
>
> > This is my Tag:
> > class PostA(template.Node):
> > def render(self, context):
> > p=context['p']
> > return "<li><a id='%s' href='/post/%s.html'>%s</a></li>" %
> > (p.id,p.id,p.title)
> > def posta(parser, token):
> > return PostA()
>
> > in the template:
> > {%for p in paths%}
> > <li>{%posta p.id p.title%}</li>
> > {% endfor %}
>
> > paths is a list of Post
> > Post is my model:
> > class Post(db.Model):
> > id=db.StringProperty(required=True)
> > title = db.StringProperty(required=True)
> > path = db.StringProperty()
>
> > in the Handler:
> > template_values={
> > 'title':p.title,
> > 'paths':paths,
> > 'content':p.content,
> > 'relates':relates
> > }
> > return shortcuts.render_to_response("post.html",template_values)
> > So What your Idea?
>
> > I think there are something wrong in the shortcuts module when it is
> > dealing whit unicode,
> > but i can not find it.
> > Any reply will be appreciated!
== 3 of 3 ==
Date: Tues, Oct 7 2008 8:55 pm
From: Gmail
> @Try prefixing your string with 'u' in PostA.render():
>
> return u"<li><a id='%s' href='/post/%s.html'>%s</a></li>" %
> (p.id,p.id,p.title)
I have *Already* try this.but it does not work.
> @If this doesn't help, it's probably a bug in Django 0.96 templates.
> Try switching to 1.0, it has a lot of Unicode-related fixes:
> http://docs.djangoproject.com/en/dev/ref/unicode/
I will try this later.
Thanks!
==============================================================================
TOPIC: Can I use key or id in gql?
http://groups.google.com/group/google-appengine/browse_thread/thread/fc89e539f91b75cc?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, Oct 7 2008 3:20 pm
From: Alexander Kojevnikov
From http://code.google.com/appengine/docs/datastore/keysandentitygroups.html:
Key names and IDs cannot be used like property values in queries.
However, you can use a named key, then store the name as a property.
You could do something similar with numeric IDs by storing the object
to assign the ID, getting the ID value using obj.key().id(), setting
the property with the ID, then storing the object again.
Alternatively, if your exclusion list is not large and the number of
topics in the datastore is reasonable, you can filter manually:
def list(req):
except_list = [3, 10]
topics = (t for t in Topic.all() if t.key().id() not in
except_list)
--
http://www.muspy.com
On Oct 7, 10:46 pm, Evan Park <inbl...@gmail.com> wrote:
> Hello.
> Can I use key or id of data in gql? I want to use like below.
>
> class TopicCmt(db.Model):
> topic = db.ReferenceProperty(Topic, required=True)
> owner = db.ReferenceProperty(User, required=True)
> user_name = db.StringProperty(required=True)
>
> def list(req):
> except_list = [3, 10]
> t = Topic.gql('WHERE ID != :1', except_list)
==============================================================================
TOPIC: Model.put() Best Practice
http://groups.google.com/group/google-appengine/browse_thread/thread/689de73953a5eccc?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, Oct 7 2008 3:24 pm
From: Alexander Kojevnikov
> > Maybe in production, it is different
>
> Anyone can confirm to this ?
In my app, putting 10-20 entities in one go is 2-3 times faster than
putting them one by one.
You can also get some benchmarks from http://www.cloudstatus.com/
==============================================================================
TOPIC: Why Google App Engine is broken and what Google must do to fix it.
http://groups.google.com/group/google-appengine/browse_thread/thread/83a692fecb6c5b12?hl=en
==============================================================================
== 1 of 2 ==
Date: Tues, Oct 7 2008 4:16 pm
From: Greg
Davew said it way back at the top - appengine's killer feature is
scalability. That is what sets it apart from the other cloud systems
out there, and it is also the root cause of most complaints (except
the quotas, which will disappear when you get to pay for the service).
For the application I'm working on, I'm happy to trade off lack of a
relational database for the future gain of scalability. My guess is
that most of you haven't had the nightmare of an application that
suddenly became popular, and you had to become an expert at database
replication, load balancing and multi-system maintenance overnight.
It's a very stressful situation.
So my advice is that if you don't need scalability, get a normal
hosting account or EC3. Then you can have PHP, Ruby, MySQL, cron jobs,
anything you want - problem solved. Oh, yes you are going to have to
shell out a few buck a month.
But if you do need scalability, then appengine is a godsend. The
limitations are there to make it safe and scalable, not because Google
wants to annoy you. You spend a little more time now working around
the limitations, and save endless time later managing systems and
capacity.
And lastly, I believe that many of the complaints come from people
just wanting a free hosting service, and not finding what they are
used to. It would be a crying shame if Google listened to these people
and turned appengine into a vanilla PHP/MySQL hosting service.
Appengine is so much more...
On Oct 7, 3:54 pm, Ross Ridge <rri...@csclub.uwaterloo.ca> wrote:
> bradjyo...@gmail.com wrote:
> > One thing you have to remember it is not what Guido or the engineers
> > want. If Google App Engine is to succeed it is what the customers
> > want. If it is designed as you have stated it will never recoup what
> > Google has spent so far let alone down the road. Google App Engine has
> > so many many limitations. Regardless if the limitations are by design
> > or not it is virtually unusable by 99% of all developers. Can Google
> > make a business off the remaining 1%?
>
> The question of whether Google can turn Google App Engine into a
> profitable business doesn't depend on what percentage of developers
> find it useful, but whether Google exploit a competive advantage.
> Google could've started up a tradtional web hosting service using
> popular SQL databases and other techonologies and created something
> that would have had a much broader appeal. Any one could. That's the
> problem. Google might be able to grab market share, but without
> anything to distiguish themselves from their competitors, a best they
> only get a marginal return on their investment.
>
> We can only speculate on what Google business plan for GAE is, but it
> seems pretty obvious to me that leveraging Google's own internal
> technologies is at the heart of it. A number of limitations and
> problems with GAE stem from technologies like Big Table, Google
> Frontend and Google Apps. Another part of their plan appears to be
> keeping support costs low, so you're not given much rope to hang
> yourself (or others). If, in the long term, Google can't make a
> business following this plan, if it doesn't give them enough a
> competive advanage, then there's probably no way they can make the
> kind profits from a hosting service that Google's investors expect.
>
> (While it's not terribly relevent to this discussion, I suspect Google
> has some other goals for GAE that don't deal directly with its
> viability as a business. One is to educate programmers in the Google
> way of doing things. I'm sure Google has been fustrated with tons of
> amazing job applicants with advanced degrees, 10+ years of WWW
> experience, and the inability work with anything but PHP and SQL.
> Another is that they want to make even easier for people to create WWW
> sites, the sort of small little sites that through AdWords/AdSense,
> Google has made billions.)
>
> Ultimately, what matters is what you want and what Google is willing
> give you. It doesn't matter what 99% developers want. The are number
> of problems and limitations with GAE that will be fixed. You can look
> at the issue database to get and idea of what these are. However,
> there are no timelines, so don't plan anything being fixed tommorow or
> even a year from now. Many limitations will always be there. You're
> never going to get all the functionality of an SQL database, nor will
> GAE be suitable for computationally intensive tasks.
>
> Look at a GAE, and see if it offers it what you want as it is now. If
> it's close but not quite there maybe play around with it, maybe go so
> far as making a proof of concept of something. On the other hand, if
> GAE is far away from what you want, then walk away. GAE isn't for
> you, and probably won't ever be. Maybe check back in a year or so,
> but now you should be looking for another hosting solution.
>
> Ross Ridge
== 2 of 2 ==
Date: Tues, Oct 7 2008 8:32 pm
From: Josh Heitzman
Assuming you can actually work around all of the limitation
simultaneously, considering the more things you work around the close
you come to the CPU time quota.
It also is not completely accurate to state that the limitations are
there to make apps safe and scalable. For example transactions being
limited to a single entity group makes it very complicated (i.e. not
safe) to write code that needs to reliably update entities from
different groups (it isn't always possible to structure entity groups
such that everything that is needs to be updated for a request can be
all be in one entity group).
Also given the roundness of the quotas, I find it very unlikely that
the quota numbers were choosen based on an in depth analysis or a
broad sampling of data, rather the being choosen fairly arbitrarily
(possibly based to some extent on what works for google's own apps).
On Oct 7, 4:16 pm, Greg <g.fawc...@gmail.com> wrote:
> Davew said it way back at the top - appengine's killer feature is
> scalability. That is what sets it apart from the other cloud systems
> out there, and it is also the root cause of most complaints (except
> the quotas, which will disappear when you get to pay for the service).
>
> For the application I'm working on, I'm happy to trade off lack of a
> relational database for the future gain of scalability. My guess is
> that most of you haven't had the nightmare of an application that
> suddenly became popular, and you had to become an expert at database
> replication, load balancing and multi-system maintenance overnight.
> It's a very stressful situation.
>
> So my advice is that if you don't need scalability, get a normal
> hosting account or EC3. Then you can have PHP, Ruby, MySQL, cron jobs,
> anything you want - problem solved. Oh, yes you are going to have to
> shell out a few buck a month.
>
> But if you do need scalability, then appengine is a godsend. The
> limitations are there to make it safe and scalable, not because Google
> wants to annoy you. You spend a little more time now working around
> the limitations, and save endless time later managing systems and
> capacity.
>
> And lastly, I believe that many of the complaints come from people
> just wanting a free hosting service, and not finding what they are
> used to. It would be a crying shame if Google listened to these people
> and turned appengine into a vanilla PHP/MySQL hosting service.
> Appengine is so much more...
>
> On Oct 7, 3:54 pm, Ross Ridge <rri...@csclub.uwaterloo.ca> wrote:
>
> > bradjyo...@gmail.com wrote:
> > > One thing you have to remember it is not what Guido or the engineers
> > > want. If Google App Engine is to succeed it is what the customers
> > > want. If it is designed as you have stated it will never recoup what
> > > Google has spent so far let alone down the road. Google App Engine has
> > > so many many limitations. Regardless if the limitations are by design
> > > or not it is virtually unusable by 99% of all developers. Can Google
> > > make a business off the remaining 1%?
>
> > The question of whether Google can turn Google App Engine into a
> > profitable business doesn't depend on what percentage of developers
> > find it useful, but whether Google exploit a competive advantage.
> > Google could've started up a tradtional web hosting service using
> > popular SQL databases and other techonologies and created something
> > that would have had a much broader appeal. Any one could. That's the
> > problem. Google might be able to grab market share, but without
> > anything to distiguish themselves from their competitors, a best they
> > only get a marginal return on their investment.
>
> > We can only speculate on what Google business plan for GAE is, but it
> > seems pretty obvious to me that leveraging Google's own internal
> > technologies is at the heart of it. A number of limitations and
> > problems with GAE stem from technologies like Big Table, Google
> > Frontend and Google Apps. Another part of their plan appears to be
> > keeping support costs low, so you're not given much rope to hang
> > yourself (or others). If, in the long term, Google can't make a
> > business following this plan, if it doesn't give them enough a
> > competive advanage, then there's probably no way they can make the
> > kind profits from a hosting service that Google's investors expect.
>
> > (While it's not terribly relevent to this discussion, I suspect Google
> > has some other goals for GAE that don't deal directly with its
> > viability as a business. One is to educate programmers in the Google
> > way of doing things. I'm sure Google has been fustrated with tons of
> > amazing job applicants with advanced degrees, 10+ years of WWW
> > experience, and the inability work with anything but PHP and SQL.
> > Another is that they want to make even easier for people to create WWW
> > sites, the sort of small little sites that through AdWords/AdSense,
> > Google has made billions.)
>
> > Ultimately, what matters is what you want and what Google is willing
> > give you. It doesn't matter what 99% developers want. The are number
> > of problems and limitations with GAE that will be fixed. You can look
> > at the issue database to get and idea of what these are. However,
> > there are no timelines, so don't plan anything being fixed tommorow or
> > even a year from now. Many limitations will always be there. You're
> > never going to get all the functionality of an SQL database, nor will
> > GAE be suitable for computationally intensive tasks.
>
> > Look at a GAE, and see if it offers it what you want as it is now. If
> > it's close but not quite there maybe play around with it, maybe go so
> > far as making a proof of concept of something. On the other hand, if
> > GAE is far away from what you want, then walk away. GAE isn't for
> > you, and probably won't ever be. Maybe check back in a year or so,
> > but now you should be looking for another hosting solution.
>
> > Ross Ridge
==============================================================================
TOPIC: error in the configuration documentation?
http://groups.google.com/group/google-appengine/browse_thread/thread/623b8aaaf855f24f?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, Oct 7 2008 3:57 pm
From: valugi
Documentation and the introductory video state that to start the dev
web server you have to run this:
dev_appserver.py [options] <application root>.
In Ubuntu actually you have to run :
$ python dev_appserver.py [options] <application root>
I found this ambiguous especially for people who are coming from other
backgrounds not python.
Good documentation makes a product successful.
http://valugi.ro/en/article/running-google-app-engine-in-ubuntu
==============================================================================
TOPIC: Simple Graphics App
http://groups.google.com/group/google-appengine/browse_thread/thread/e56058f8678c19a5?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, Oct 7 2008 8:32 pm
From: codingJoe
I'm new to Google Code and I'm looking for expert advice on the best
structure and libraries to build a simple graphics app on GAE.
In my app, I want to give the user the ability to move slider bars to
control variables and drag simple custom icons onto a chart. The
following example illustrates the level of interactivity I'm looking
for. Nothing spectacular, but basic stuff.
Example: I define Google Data Model Objects: apple and orange.
I query apples and oranges counts on a by-user
basis.
A bar chart compares num_apples against
num_oranges.
User drags an icon of an apple onto the apple
bar.
num_apples+=1;
chart updates.
update user's persistent DB apple count.
I like the GAE to manage the basic app engine stuff (objects,
persistence, etc...)
I'm confused about the graphics portion. The closest I've found in
google code is Android. It seems to be built more for mobile devices
and doesn't seem to support much interactivity. But without
downloading, learning, and experimenting, that may not be a correct
assessment.
What graphics library should I use? Is there a best example to
illustrate the concepts I would use in this app? How to make simple
interactive graphics work within GAE apps and classes?
Thanks for any advice....
T
==============================================================================
TOPIC: reading a file
http://groups.google.com/group/google-appengine/browse_thread/thread/eb53ee63f26ab142?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, Oct 7 2008 5:48 pm
From: manuelaraoz
Hey!
I'm really confused!
I have this line of code:
fin = open("static/text/data.txt",'r')
when running with dev_appserver everything is ok
but when I deploy the application, it fails, stating:
Traceback (most recent call last):
File "/base/python_lib/versions/1/google/appengine/ext/webapp/
__init__.py", line 499, in __call__
handler.get(*groups)
File "/base/data/home/apps/7cerebros/4.6/controller.py", line 213,
in get
fin = open("static/text/words.txt",'r')
IOError: [Errno 2] No such file or directory: 'static/text/words.txt'
my app.yaml has this line:
- url: /text
static_dir: static/text
any idea of why this difference?
==============================================================================
TOPIC: app_id is not valid in appgallery
http://groups.google.com/group/google-appengine/browse_thread/thread/800b98f8aba908e1?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, Oct 7 2008 8:19 pm
From: "Thiago Coutinho"
Hi!
I'm trying submit my app to appgallery, but I'm getting the error
"The app_id you entered is not valid or application is not
functioning. Please enter a valid app_id.". Anyone has this problem?
The app is http://orkuturl.appspot.com/.
Thanks.
--
Thiago Coutinho - http://thiago.bunghole.com.br/
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
==============================================================================
TOPIC: Datastore timeout error
http://groups.google.com/group/google-appengine/browse_thread/thread/f3602680531a8e0f?hl=en
==============================================================================
== 1 of 2 ==
Date: Tues, Oct 7 2008 5:19 pm
From: "keiya@kanno.com"
Hello,
I'm developing a quiz application now and I have a problem with
datastore. Most of the time, application saves the data into the
datastore, but sometimes, I get an exception.
Exception in request:
Traceback (most recent call last):
File "/base/data/home/apps/django/core/handlers/base.py", line 82, in
get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/base/data/home/apps/views.py", line 701, in QuizResult
db.put(result)
File
"/base/python_lib/versions/1/google/appengine/ext/db/__init__.py", line
1006, in put
keys = datastore.Put(entities)
File "/base/python_lib/versions/1/google/appengine/api/datastore.py",
line 162, in Put
raise _ToDatastoreError(err)
File "/base/python_lib/versions/1/google/appengine/api/datastore.py",
line 1627, in _ToDatastoreError
raise errors[err.application_error](err.error_detail)
Timeout
Does anyone know about this error?
Keiya Kanno
== 2 of 2 ==
Date: Tues, Oct 7 2008 5:19 pm
From: "keiya@kanno.com"
Hello,
I'm developing a quiz application now and I have a problem with
datastore. Most of the time, application saves the data into the
datastore, but sometimes, I get an exception.
Exception in request:
Traceback (most recent call last):
File "/base/data/home/apps/django/core/handlers/base.py", line 82, in
get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/base/data/home/apps/views.py", line 701, in QuizResult
db.put(result)
File
"/base/python_lib/versions/1/google/appengine/ext/db/__init__.py", line
1006, in put
keys = datastore.Put(entities)
File "/base/python_lib/versions/1/google/appengine/api/datastore.py",
line 162, in Put
raise _ToDatastoreError(err)
File "/base/python_lib/versions/1/google/appengine/api/datastore.py",
line 1627, in _ToDatastoreError
raise errors[err.application_error](err.error_detail)
Timeout
Does anyone know about this error?
Keiya Kanno
==============================================================================
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-appengine@googlegroups.com or
visit http://groups.google.com/group/google-appengine?hl=en
To unsubscribe from this group, send email to google-appengine+unsubscribe@googlegroups.com
To change the way you get mail from this group, visit:
http://groups.google.com/group/google-appengine/subscribe?hl=en
To report abuse, send email explaining the problem to abuse@googlegroups.com
==============================================================================
Google Groups: http://groups.google.com/?hl=enVacuum Cleaners InformationPauschalReisen|WikiForex: All in One|Tokio Hotel Forum|Playburg: Articles of Life

