[google-appengine] Dashboard IE7 little bug

2009-03-07 Thread Sylvain

Hi,

I've just noticed that there is a little bug with the dashboard and
IE7.

By default with IE7, in the Dashboard page : the button 6hr is
selected but the chart shows All.
It works fine with FF3 i.e. : the button All is selected by default.

Regards
--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Open Sourcing some Google App Engine Apps

2009-03-07 Thread Paul Kinlan
Hi Everyone,

Just to let you know I am in the process of open-sourcing a lot of the Apps
that I have created.

So far I have done

   - http://www.eweri.com - a url shortening service that gets a lot of use
   on TweetDeck (http://github.com/PaulKinlan/eweri)
   - http://www.knowyourprivacy.com - a facebook application to show you the
   ammount of data you can loose on Facebook (
   http://github.com/PaulKinlan/knowyourprivacy)
   - http://www.thetopicthing.com - a meta search engine (
   http://github.com/PaulKinlan/thetopicthing)

Hopefully it will help all new Google App Engine Developers and show them
what not to do :)

I have a couple of others that I can release such as www.twollo.com and some
others.

I am toying with releasing www.FriendDeck.com, but there are some practical
issues that I need to sort out with the CodeSigning and stuff for that to
happen.

Enjoy.

Paul Kinlan

--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: cooperate with top Google Apps Engine developer

2009-03-07 Thread Waldemar Kornewald

On Mar 6, 10:18 am, Ben beruss...@gmail.com wrote:
 On Mar 6, 12:30 am, dalenewman dalenew...@gmail.com wrote:

  Alex,

  You should use oDesk (www.odesk.com) for this.  One catch though --
  you'll have to pay the developers :-)

 ... if you can call $2/hr getting payed. oDesk is a joke.

Indeed! Many clients on those sites seem to expect a miracle for just
a few $. The question is what kind of quality you actually get for
free, but how can the client judge that if he can't code? :)

Could someone please report his experience with App Engine freelancers
(or dev companies)? Maybe this is an option for outsourcing the
development of some reusable Django apps?

Bye,
Waldemar Kornewald
--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Datastore errors, timeouts, general difficulties

2009-03-07 Thread Brandon Thomson

These may be relevant:

http://groups.google.com/group/google-appengine/browse_thread/thread/517c7da78454da66/939a67117246d120?lnk=gstq=log+storage#939a67117246d120

http://code.google.com/p/googleappengine/issues/detail?id=452

Basically you need to get the entity before you delete or it will be
gone without reducing your storage quota.

On Mar 7, 2:58 am, Jonathan Ultis jonathan.ul...@gmail.com wrote:
 That should read, after deleting, I'm now using 99% of my data storage
 limit with no additional puts.

 On Mar 6, 6:00 pm, Jonathan Ultis jonathan.ul...@gmail.com wrote:

  I created a simple page that simply instantiates and stores a model
  with about 9 primitive properties. The model is filled with the same
  data each time, and that data is less than 100 bytes. I don't have
  indices on any of the properties.

  I did some load tests, storing approximately half a million of the
  objects at most. Some of the tests were done during the recent latency
  problems. Some were done after latency was stabilized. All tests with
  significant concurrency (50) generated fairly high timeout and quota
  exceeded error rates. So, I got significant log spew.

  My total data size should be around 50 megs of real user data.

  Today, my data usage jumped from about 0.5% of my data storage limit
  to 67% of my data storage limit without any intervening tests. That
  was surprising since that's about 10x what I really should be using.
  But, I figured that data limit might count all replicas or something
  odd. And, perhaps there's a latency between the data store and the
  data size calculation. So, I wrote a delete all page that deletes 50
  items, then redirects to itself, to delete the next 50. I just delete
  the first 50 items returned. I'm not paging or anything. The script
  works locally.

  I ran that delete page for a while, periodically getting annoying
  timeouts and quota exceeded. I did not run the page in parallel.

  Now that I'm using 99% of my data storage limit. I'm afraid I may have
  to buy data storage before I can delete more items.

  Any ideas?
--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Django caching problem.

2009-03-07 Thread wonglik

Hi

I am trying to optimize my app by adding template caching
(http://docs.djangoproject.com/en/dev/topics/cache/?
from=olddocs#template-fragment-caching)

{% load cache %}

{% cache 3550 news version %}
{% include 'include/articles.html' %}
{% endcache %}




The problem I am facing is that cached part suddenly disappear.  I
mean for the first couple of time I refresh the page , it is there ,
but after some time (time vary from 10 sec to 5 min) the cached
fragment is just not there.

Happening both on local and production environment with just slight
difference of frequency (on local environment it is more rare).

first I have tried with standard configuration then I put in
settings :

CACHE_BACKEND = 'locmem:///?timeout=3600'

any clues? is it a bug or is it some appengine limitation ? or I am
just doing something wrong?

django v 1.0.2
appengine sdk 1.1.9
no django helper


regards
Mateusz
--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Query latency is not resolved

2009-03-07 Thread Myroslav Opyr
Hi,

Our apps were pushing GAE limits before quota upgrades (10Mb vs 1Mb). After
that we've been able to simplify and speed up applications greatly, with new
quotas in mind.

And a week ago everything broke (soon after introduction of billing). We've
been watching Datastore Query graphs and Serving Fibonacci graphs closely.
And even after stabilization, we get 50% of CPU at most, and 20-45% of
Datastore Query normal performance.

With new limits, we cannot fit into 30sec deadline... Requests that took
12 seconds before, now throw 500 errors after 30second timeout, not talking
about 17-22 second ones...

Google Engineers know more, but don't share with us. From outside it appears
as if some heavy apps launched in production mode on GAE (when additional
paid quotas allowed that), and that brought whole GAE infrastructure to
knees, exposing bottlenecks, and forcing Google to increase processing
power.

Regards,

m.

On Sat, Mar 7, 2009 at 09:34, Sylvain sylvain.viv...@gmail.com wrote:


 I've checked the errors in the Dashboard for my app this morning and
 I've got many Datastore Timeout that didn't occurs last week.
 So, I think there is still an issue there.

 Regards



 On 7 mar, 00:05, Brandon Thomson gra...@gmail.com wrote:
  For me things like Add a new entity result in timeout errors in the
  dashboard.
 
  On Mar 6, 10:50 am, Sylvain sylvain.viv...@gmail.com wrote:
 
   Another thing : even the Dashboard is slower.
   And since this morning it is more and more slow, particularly when you
   click on the '+' in the log.
 
   On Mar 6, 2:56 pm, Sylvain sylvain.viv...@gmail.com wrote:
 
I agree, the latency is higher than last week before the upgradre.
One of my handler is still 1k ms-cpu higher.
 
Regards
 
On Mar 6, 10:45 am, GregF g.fawc...@gmail.com wrote:
 
 Don't take my word for it - that was just what I see happening.
 



-- 
.
Myroslav Opyr   ▪   CTO   ▪Quintagroup   ▪   http://quintagroup.com
˙

--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Latency problem still really a problem

2009-03-07 Thread Larry

I've got stable performance in my application. It consistently runs 3
to 4 times slower than it used to. Apparently, application performance
should improve on Monday but in the mean time performance is quite
poor...

http://code.google.com/status/appengine

On Mar 6, 8:05 pm, cz czer...@gmail.com wrote:
 Our app is still experiencing at least double the latency as compared
 to last week and the app is basically unusable. I'm really concerned
 about this since the GAE team has stated that the latency issue has
 been resolved.
 This is so disappointing if the current performance is considered to
 be fine. I'm really hoping that this isn't the case.

 I'm curious as to how you are testing latency internally? Perhaps the
 tests aren't reflecting very well some real world scenarios and that
 some combination of datastore operations are particularly onerous.

 In any case, latency is still much much worse than before the server
 maintenance.

 P.S. also getting random 502 errors which I assume is related to this
 issue:http://groups.google.com/group/google-appengine/browse_thread/thread/...
--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: App Engine geographic distribution

2009-03-07 Thread Myroslav Opyr
Hi,

GAE datacenters are not yet distributed, but will be (or are already with
hardware maintenance that took place a week ago) as time goes on.

Bear in mind that to commit transaction you'll need extra 50ms to ensure
that transaction is committed in all datacenters serving GAE apps worldwide.

Regards,

m.

On Fri, Mar 6, 2009 at 02:16, Jon McAlister jon...@google.com wrote:


 I can't comment as to the precise geographic distribution of apps and
 appservers, but let me put it this way...

  (a) our datastore API offers transactions

  (b) a datastore transaction completes in roughly 50ms, sometimes less

  (c) when routing requests to applications we have no idea which
 entity groups will be modified by the application when serving that
 request. further, we don't ask for any hint or indication of this from
 the application developer.

  (d)
 http://www.allthingsdistributed.com/2008/12/eventually_consistent.html

 Jon

 On Thu, Mar 5, 2009 at 2:19 PM, Jeffrey Rosen jef...@gmail.com wrote:
 
  I did search.  A bump is appropriate for this topic because Google
  simply hasn't seen it yet.  It is a simple yes or no answer and when
  Google or someone who knows sees it, it will be solved and searchable
  for future GAE users.
 
  On Mar 5, 3:47 am, David Symonds dsymo...@gmail.com wrote:
  On Tue, Mar 3, 2009 at 10:03 AM, Jeffrey Rosen jef...@gmail.com
 wrote:
   Bump for Google
 
  Please don't. Search the group archives instead.
 
  Dave.
  
 

 



-- 
.
Myroslav Opyr   ▪   CTO   ▪Quintagroup   ▪   http://quintagroup.com
˙

--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: cooperate with top Google Apps Engine developer

2009-03-07 Thread dalenewman

On Mar 6, 4:18 am, Ben beruss...@gmail.com wrote:

 ... if you can call $2/hr getting payed. oDesk is a joke.

Ben.  I respectfully disagree with your opinion.  I wouldn't write off
odesk as a joke.

If you get connected with a good partner, you can get guaranteed
payments on hourly rates and have the money directly deposited into
your banking account.

Obviously; don't bid on jobs that pay $2 an hour.  You have to wonder
what kind of boss only pays $2 an hour :-)

Finding the right work and salary can be challenging, but it's worth
it to get supplementary income in times like this.

Dale
www.bookdope.com
--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: ValueError: invalid literal for int() with base 10

2009-03-07 Thread djidjadji

self.request.get(id) returns a unicode string. You must first make a
regular string out of it before casting it to int.

photo = Photo.get_by_id(int(str(self.request.get(id

2009/3/1 wsun sunwe...@gmail.com:

 I upload an image to GAE,

 *.py:
 photo = Photo.get_by_id(int(self.request.get(id)))

 *.html:
 input type=file name=id id=fileId /

 then debug:
 ValueError: invalid literal for int() with base 10: '\xff\xd8\xff\xe0'

 How can I fix this error? Thank u.

 


--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: cooperate with top Google Apps Engine developer

2009-03-07 Thread Brian

Here here. I can share a funny story

I once built a phone system for someone that wanted to set up a 900
number (remember those?) so you can call in and pay two dollars a
minute to listen to samples of some New Age music catalog (think Enya
or something even more awful). It was quite possibly the stupidest
idea I had ever encountered, but the client was blindly unaware of
just how much their idea sucked. I remember one of them saying, and
this is a direct quote I will remember all the way to the grave, We
smell gold here, and we have the right mining equipment. Right.

I was just out of college and desperate for cash, so I did the job,
but I left a timer in my code so if I didn't call in within 90 days
with a secret code to unlock it, it would stop working. Sure enough,
the client didn't pay, and right on schedule, I got an angry call from
one of them complaining about a database error message, to which I
replied that the system appeared to be working perfectly. They went
through several more developers, and needless to say, did not go on to
build iTunes.

So a bit of advice for people here who are thinking of renting
themselves out. There are plenty of established companies that are
intrigued by cloud computing, have professional management, and the
means to pay and pay well to prototype things. If I were building a
consulting business that's where I would focus my efforts. The economy
may be really bad now, but this is one area where companies can save a
lot of money, and the number of people working in this domain is still
pretty small. That's where you want to be in a recession, not working
on commission for a startup which will more than likely fail
(especially in this economy).

My two cents...

On Mar 5, 2:41 am, Andrew Badera and...@badera.us wrote:
 *chuckle*

 So wait, you lack capability, but rather than be forthcoming about
 your needs, you wish to screen the people volunteering to help you?

 Sounds like yet another pseudo-entrepreneur who wants to take
 advantage of techies.

 On Thu, Mar 5, 2009 at 5:31 AM, Alex Rad alexra...@gmail.com wrote:
  Hi Linbo!
  The questions that it will answer is Where it is and what it is using
  Google map, reader and google finance.
  Drop me a few lines about your expereince and I will send out a full
  description as soon I have read through all the people who has shown their
  interest.
  Regards
  Alex
  2009/3/5 lianbo waveconnex...@gmail.com

  Hi, Alex,

  What app are you trying to develop?

  -lb
  On Wed, Mar 4, 2009 at 7:47 PM, AlexR alexra...@gmail.com wrote:

  Hi Everyone,

  I am not a very good developer, therefore I am looking for some one
  who can join me to develop an apps.

  So anyone who enjoy working in team, why not send me an email
--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: cooperate with top Google Apps Engine developer

2009-03-07 Thread Sharp-Developer.Net

Hi Waldemar,

I'm a developer myself and used Elance to hire App Engine Developers
due my lack of expirience with Python and tight schedule.

A project ($100) was completed on time and I was happy with the work.
So I would say it quite possible to find someone for reasonable price
and acceptable quality.

Here is my orignial feedback with link to profiles of the developers I
liked if anyone interested:
http://groups.google.com/group/google-appengine/browse_thread/thread/6af4a2f60fb95084/227a9f8812a5bca8?lnk=gstq=elance#227a9f8812a5bca8
--
Alex

On Mar 7, 1:29 pm, Waldemar Kornewald wkornew...@gmail.com wrote:
 On Mar 6, 10:18 am, Ben beruss...@gmail.com wrote:

  On Mar 6, 12:30 am, dalenewman dalenew...@gmail.com wrote:

   Alex,

   You should use oDesk (www.odesk.com) for this.  One catch though --
   you'll have to pay the developers :-)

  ... if you can call $2/hr getting payed. oDesk is a joke.

 Indeed! Many clients on those sites seem to expect a miracle for just
 a few $. The question is what kind of quality you actually get for
 free, but how can the client judge that if he can't code? :)

 Could someone please report his experience with App Engine freelancers
 (or dev companies)? Maybe this is an option for outsourcing the
 development of some reusable Django apps?

 Bye,
 Waldemar Kornewald
--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: How to do this?

2009-03-07 Thread djidjadji

You can add hidden fields to your form that contain the data from the
previous forms.
And when the final form is accepted you create the user in the datastore.

2009/3/7 arnie parvez...@rediffmail.com:

 It is still very confusing as I am not able to point out what to do
 Let me explain my problem in more detail
 I have to create a django template based web application that includes
 a home page with a login section and a new user sign-up link. When a
 new user visits the sight for the first time then he chooses the new
 user sign-up link that consissts of there step registration process
 step1.html
 step2.html
 step3.html
 In step1.html form asks the user for the most basic info like
 firstname, lastname, address etc. Then step2 and step3.html fiels asks
 for other related info.
 My problem is that how should I persist user information across
 multiple pages. I do not want to store the information in datastore
 for persisting user information
 It seems to me that I have to use cookie based sessions but does not
 get any idea how tostart.
 Can anybody tell me the steps that i need to use in order to manage
 data persistency across multiple pages

 Thanks
 


--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] xml feed into datastore

2009-03-07 Thread davepreston

I'm new to python  GAE, so go easy on me :).

I'm trying to pull xml data and put it in the datastore.
I've created my db.Model class and I've got urlfetch.fetch(url)
working to retrieve the xml data.

What's the most efficient way of putting the retrieved xml content (it
could be JSON if that would help) into the datastore? This is not a
one-off data extraction.

I have it working currently by parsing using ElementTree.XML and
creating a load function on the db.model class which retrieves values
from the xml tree, but it seems very manual and difficult to maintain.

I can't help but wonder if there's a standard way of tying db.model
classes to xml feeds in a more elegant way.

Thanks for any help.
--Dave

--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Go2 is going to pay the bill. Go2 accepts donation now. Any cooperation is welcome.

2009-03-07 Thread yidong

AD?  I think so.

Is the site Go2 doing something like this ??

'''
4.4. You may not develop multiple Applications to simulate or act as
a
single Application or otherwise access the Service in a manner
intended
to avoid incurring fees.
'''

I think so.


On 3月7日, 下午3时12分, admin go2 go2apps...@gmail.com wrote:
 Go2 is the second popular app on GAE. Go2 is very fast. Sometimes it is
 faster than you visiting the website directly. Go2 also supports to sign in
 lots of web sites, including bebo etc. . There are more than 10,000 visitors
 from all over the world using Go2 every day. And the number is increasing
 every day.

 According to the google's new policy, the free bandwidth of the app will be
 changed from 20G(10G in and 10G out) to 1G after May 25th, 2009. The extra
 bandwidth must be purchased.

 1G bandwidth is not enough for Go2. We estimate that Go2 will consume more
 than 100G bandwidth per day after May 25th, 2009.

 In order to continue providing the Go2's free service to the world, Go2 is
 going to pay the bill, which is about  $360 per month (100G*$0.12/G*30).

 Now the go2's advertising income is about $120 per month, which is not
 enough to pay the bill.
 So please donate to Go2, let Go2 continue providing the excellent service to
 people all over the world who need it.

 Any cooperation is also welcome.
 go2.appspot.com

 Appendix
 A. Go2 is the second popular app on GAE.
 See the report of alexa. The data is at the bottom of the 
 pagehttp://www.alexa.com/data/details/traffic_details/appspot.com.

 B. Who  are using Go2? The top 20 countries or regions are:
 1China
 2United Kingdom
 3United States
 4Norway
 5Colombia
 6Australia
 7Canada
 8India
 9Saudi Arabia
 10Hong Kong
 11Russia
 12Philippines
 13Brazil
 14Ireland
 15Mexico
 16Ghana
 17Netherlands
 18France
 19Japan
 20Germany
 (Data from Google Analytics)

--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Question: GAE and externally hosted databases

2009-03-07 Thread whichpaul

Is it possible to connect to externally hosted databases (eg. mysql
running on a server outside of the google network) from an application
running on the GAE?

I'm currently evaluating GAE for a new web application that I need to
develop. I'm not convinced that the datastore is right for my needs,
if I could utilise a relational database hosted elsewhere I might be
interested.

Thanks!

--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Converting model objects to JSON

2009-03-07 Thread Let Delete My Apps

An example from my last app:

results = []
for app in apps:
results.append({appname : app.appname})

# for JSONP
callback = this.request.get(callback)

this.response.headers[Content-Type] = text/javascript
callback = %s(%s) % (callback, json.write(result))
this.response.out.write(callback)


On Mar 6, 12:28 pm, Devraj Mukherjee dev...@gmail.com wrote:
 Hi all,

 Quick question about converting model objects in JSON. Have done some
 reading and I can't find a way to use simplejson to serialize model
 objects because the data types don't support it.

 What is the best way to convert a model to json?

 Thanks.

 --
 The secret impresses no-one, the trick you use it for is everything
 - Alfred Borden (The Prestiege)

--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] BadRequestError: offset may not be above 1000

2009-03-07 Thread Let Delete My Apps

Hi All,
I see this error using this code:

query.fetch(1000, offset=1001)

--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Go2 is going to pay the bill. Go2 accepts donation now. Any cooperation is welcome.

2009-03-07 Thread Let Delete My Apps

$360 ??? :-O

On Mar 7, 8:12 am, admin go2 go2apps...@gmail.com wrote:
 Go2 is the second popular app on GAE. Go2 is very fast. Sometimes it is
 faster than you visiting the website directly. Go2 also supports to sign in
 lots of web sites, including bebo etc. . There are more than 10,000 visitors
 from all over the world using Go2 every day. And the number is increasing
 every day.

 According to the google's new policy, the free bandwidth of the app will be
 changed from 20G(10G in and 10G out) to 1G after May 25th, 2009. The extra
 bandwidth must be purchased.

 1G bandwidth is not enough for Go2. We estimate that Go2 will consume more
 than 100G bandwidth per day after May 25th, 2009.

 In order to continue providing the Go2's free service to the world, Go2 is
 going to pay the bill, which is about  $360 per month (100G*$0.12/G*30).

 Now the go2's advertising income is about $120 per month, which is not
 enough to pay the bill.
 So please donate to Go2, let Go2 continue providing the excellent service to
 people all over the world who need it.

 Any cooperation is also welcome.
 go2.appspot.com

 Appendix
 A. Go2 is the second popular app on GAE.
 See the report of alexa. The data is at the bottom of the 
 pagehttp://www.alexa.com/data/details/traffic_details/appspot.com.

 B. Who  are using Go2? The top 20 countries or regions are:
 1    China
 2    United Kingdom
 3    United States
 4    Norway
 5    Colombia
 6    Australia
 7    Canada
 8    India
 9    Saudi Arabia
 10    Hong Kong
 11    Russia
 12    Philippines
 13    Brazil
 14    Ireland
 15    Mexico
 16    Ghana
 17    Netherlands
 18    France
 19    Japan
 20    Germany
 (Data from Google Analytics)

--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] appspot.com - Traffic Details From Alexa

2009-03-07 Thread Let Delete My Apps

This site is very useful (but is it reliable?)
http://www.alexa.com/data/details/traffic_details/appspot.com

--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Basic Python GSQL Question..

2009-03-07 Thread djidjadji

You only create the query you have to execute it to fetch the objects.
If you print your object_a variable you will see it is a Query object.

# you have to use the same limit number, or leave it out of the query
objects = object_a.fetch(200)
objects.extend(object_b.fetch(200))
for object in objects:
  object.something = this

It is not good practice to give a variable the name of a known python
type (here: list)
for object in list:
  object.something = this

2009/3/7 Draive ashdown...@gmail.com:

 Hi guys,

 I'm trying to put together a list of various objects. There are about
 5 different classes of objects I need to put in the list then iterate
 through.

 It looks like this:

 class Stuff(db.Model):
      something= db.StringProperty()

 class Object_A(Stuff):
      pass

 class Object_B(Stuffl):
      pass

 object_a = db.GqlQuery(SELECT * 
                            FROM GroupA+
                             ORDER BY timestamp ASC LIMIT 200)

 object_b = db.GqlQuery(SELECT * 
                            FROM GroupB+
                             ORDER BY timestamp ASC LIMIT 200)


 Both a and b inherit from the same class and are very similar.

 What I need is to be able to put these in a list then iterate through
 the list like...

 for object in list:
   object.something = this



 the problem is that when I try to set something it gives me errors.
 When however I just do objects a or objects b by themselves its
 fine.

 Any pointers on how to create that list?

 Thanks in advance,
 -d



 


--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: a fundamental increase in App Engine transparency and locality is needed

2009-03-07 Thread GregF

Raw data is good - I didn't realise you could click through to the
performance graphs on the status page. But currently it only shows the
past performance, and leaves us guessing about the future.

During the recent issue, I posted a complaint about lack of feedback,
and Pete Koomen's response was excellent - he explained what had
caused the issue, and more importantly gave us an idea when we could
expect some resolution. So if you go down the raw data route, could
you also include some indication of when the issue is likely to be
resolved. I realise that some issues are much harder to diagnose than
others, but if you could have posted a simple Expect 80% recovery in
2 hours with 50% confidence, and 100% recovery on Monday with 100%
confidence I'd have been much happier - I could manage customer
expectations with confidence.

Maybe this could be part of the issue analysis below the status
graphs. Start with Expect 100% recovery in 1 hour (or whatever the
average is) with 0% confidence and modify the percentage, time and
confidence as you learn more - this wouldn't need review/approval.
When an issue hits you simply post a link to the issue analysis to the
group, and another when it is resolved.
--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Query latency is not resolved

2009-03-07 Thread GregF

On Mar 8, 4:21 am, Myroslav Opyr myros...@quintagroup.com wrote:
 Google Engineers know more, but don't share with us. From outside it appears
 as if some heavy apps launched in production mode on GAE (when additional
 paid quotas allowed that), and that brought whole GAE infrastructure to
 knees, exposing bottlenecks, and forcing Google to increase processing
 power.

From what Google has said, the issue is due to the hardware upgrade
last week, not heavy new apps. They seem confident that it will return
to previous performance next Monday evening when they do the second
scheduled maintenance. I'm guessing they are changing infrastructure
and had to swap out something that is causing all the issues. I
wouldn't be surprised if things are actually better than before after
Monday.
--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] FYI: accounting for batch Datastore and Memcache gets/puts.

2009-03-07 Thread David Wilson

Just a small note for anyone who might care: memcache.get_multi,
memcache.set_multi, db.put, and db.get all appear to count as a single
call in quota accounting. This isn't quite clear from the
documentation.

Additionally, batch DS fetches of 32 entities (by key) is only
marginally slower (at 100..199ms) to fetching 16 entities using the
same method (70..120ms). A fetch of a single entity is in the range
15..50ms.

A conclusion that can be drawn from this is: use batch operations at
all costs. If not for the obvious performance gains, then perhaps to
save on quota.


David.

-- 
It is better to be wrong than to be vague.
  — Freeman Dyson

--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Go2 is going to pay the bill. Go2 accepts donation now. Any cooperation is welcome.

2009-03-07 Thread admin go2
Andrew Badera:
You are right. I should solicit donations on Go2 web, not here. Indeed, I
have made a donation page on Go2 website. I just copied it here without
modifying. Posting it here , the main idea is I want to find some
cooperation here, not donation.

We  all develop on gae. I think we can find some cooperation to let our app
survive.



go2.appspot.com





Andrew Badera wrote:

Considering the nature of your service, why are you soliciting

donations on the GAE dev list? Shouldn't you be soliciting donations

from all these users you have, rather than anonymous, random people on

a dev list? If you're drawing so much traffic, you need to establish

an advertising package that covers your costs, not begging for

donations on the dev list.

--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: appspot.com - Traffic Details From Alexa

2009-03-07 Thread admin go2
http://www.alexa.com/data/details/traffic_details/appspot.com

It can be reference, not reliable.

Let Delete My Apps wrote:

This site is very useful (but is it reliable?)

http://www.alexa.com/data/details/traffic_details/appspot.com

--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: BadRequestError: offset may not be above 1000

2009-03-07 Thread Wooble



On Mar 7, 5:05 pm, Let Delete My Apps davide.rogn...@gmail.com
wrote:
 Hi All,
 I see this error using this code:

 query.fetch(1000, offset=1001)

RTFM before deleting all of your apps.
--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Delete causes very highloads

2009-03-07 Thread Guy Rutenberg

Hi,

On Mar 5, 9:34 am, Alex Popescu the.mindstorm.mailingl...@gmail.com
wrote:

 Guy, I am not sure I understand your code. Basically, it says: delete
 whatever ModelName the query returns. Is this what your app is
 supposed to do?

I'm trying to delete everything in ModelName.
I tried to fetch more than 1 at a time, but it caused very high-loads.


An option for dropping a whole model at once would have been perfect
for my needs.
--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---