[google-appengine] Re: Severe scalability problems - getting http server 500 error under heavy load.

2009-04-14 Thread Anonymous Coderrr

additionally, under this load, the time it takes to service a request
grows from 2 seconds per request (no load) to 15 seconds per request
(high load).



On Apr 14, 11:07 pm, Anonymous Coderrr  wrote:
> I have a fairly simple app - it looks up a couple of objects from the
> google datastore and then creates a page from django template - pure
> vanilla.
>
> I wanted to see how my app would perform under heavy load, so I set up
> a simulation where 500 virtual web-browsers would attempt to request
> my page twice - exactly at the same time.
>
> The results were dismal!!  Nearly 50% of the requests resulted in a
> "HTTP response code: 500" from GAE - not my application, but
> apparently GAE itself.
>
> I check my dashboard logs - no errors from my application.  No errors
> anywhere I could find.
>
> What can I do?  I'm not expecting 500 requests per second, but
> certainly maybe 100.  The best rate I can get according to the
> dashboard is about 4.5 requests per second.  The dev server running on
> my laptop does better than that!!!
>
> 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] Severe scalability problems - getting http server 500 error under heavy load.

2009-04-14 Thread Anonymous Coderrr

I have a fairly simple app - it looks up a couple of objects from the
google datastore and then creates a page from django template - pure
vanilla.

I wanted to see how my app would perform under heavy load, so I set up
a simulation where 500 virtual web-browsers would attempt to request
my page twice - exactly at the same time.


The results were dismal!!  Nearly 50% of the requests resulted in a
"HTTP response code: 500" from GAE - not my application, but
apparently GAE itself.

I check my dashboard logs - no errors from my application.  No errors
anywhere I could find.

What can I do?  I'm not expecting 500 requests per second, but
certainly maybe 100.  The best rate I can get according to the
dashboard is about 4.5 requests per second.  The dev server running on
my laptop does better than that!!!

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: Urlfetch Application errors

2009-04-14 Thread 风笑雪
I haven't meet this error, but you can handle it:
try:
  result = urlfetch.fetch(url)
except:
  ...

2009/4/15 Wiiboy 

>
> Hi,
> I'm trying to contact a website using the Python urlfetch api.  Using
> urlfetch.fetch is giving me ApplicationError:2
>
> What is ApplicationError 2?
> >
>

--~--~-~--~~~---~--~~
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: Over Quota: Datastore Indices Count

2009-04-14 Thread johnP

I have 54 indices, and am getting a warning that am exceeding a quota.

johnP



On Apr 11, 8:20 pm, fedestabile  wrote:
> Same happen to me, and I just developing the application, I don't have
> any indexes defined
>
> My app ID is: myclimbs
>
> Thanks a lot!
> Fred
>
> On Mar 2, 5:08 am, Jose Florido  wrote:
>
> > Hi,
>
> > I also have the same message. I only use 50 indexes, so it's under the
> > limit.
> > The ID of my app is: museliusweb
>
> > thanks!
>
> > On 5 ene, 18:52, Marzia Niccolai  wrote:
>
> > > Hi,
>
> > > The quota limit is 100, but there is currently an issue where vacuumed
> > > indexes don't get credited back when vacuumed.  I have fixed this issue 
> > > with
> > > your quota for now.
>
> > > -Marzia
>
> > > On Sat, Jan 3, 2009 at 8:09 AM, dloomer  wrote:
>
> > > > Is the index quota limit actually 50?  I don't see that listed on my
> > > > Quota Details page or here:
> > > >http://code.google.com/appengine/articles/quotas.html.
>
> > > > Anyway, just today I started seeing that warning in my dashboard even
> > > > though I have only 45indices(no more than nine for any given entity
> > > > kind).  What's strange is, I had never seen this warning before in
> > > > spite of the fact that up until yesterday, when I did some cleanup, I
> > > > had 13 additionalindiceson top of the current 45.
>
> > > > Incidentally, late last night I was getting 500 server errors on the
> > > > index update portion of my deployments (no further details on the
> > > > nature of the error were given).
>
> > > > I haven't quite nailed down the security model of my app yet, so I
> > > > don't want to make the app ID public here -- I can provide that in a
> > > > private e-mail.
>
> > > > On Dec 20 2008, 1:40 am, paptimus  wrote:
> > > > > Hi, GAE team.
>
> > > > > I encountered "Your application is exceeding a quota:Datastore
> > > > >IndicesCount" on dashboard.
>
> > > > > The number of indeces is under 50, but one model has about 30 indeces.
> > > > > So I think this one is the point of over quota warning and vacuumed
> > > > > these indeces.
> > > > > Vacuume_index was completed and there is no index of that model.
>
> > > > > But the warging of over quota ramains over 24 hours and the status of
> > > > > a new index remains "building".
>
> > > > > I hope you check my index and change the status to "Error" if my index
> > > > > has problems, please.
>
> > > > > 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: Cron Schedule Format parsing error

2009-04-14 Thread Dan Sanderson
My apologies for the frustration.  I'll get the docs fixed.  (There is a
pending fix that makes the example work, but it didn't get out in time for
launch.)
*hangs head in shame*

-- Dan

On Tue, Apr 14, 2009 at 8:27 PM, an0  wrote:

> Yes, it is quite verbose, and I am using the long trivial 'day of week'
> list, too.
>
> However, whatsoever, it is not reasonable that the very first example they
> gave does not work. What a shame to doc writer and what a frustration to the
> readers, including me:(
>
> On Tue, Apr 14, 2009 at 8:18 PM, daly  wrote:
>
>>
>>
>> I tried and met this error too.
>> You can solve it by
>> every mon of month 09:00
>>
>> month looks like replacing all months,
>> but there seems no abbr. for weekdays,
>> so I have to using
>> "every mon,tue,wed,thu,fri,sat,sun of month 00:00"
>> for my target
>>
>> hope they can add 'days' or 'day' for replacing the long days string
>>
>>
>>
>
>
> --
> Hell boy is cool, but let me be healthy boy first.
>
>
> >
>

--~--~-~--~~~---~--~~
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] Urlfetch Application errors

2009-04-14 Thread Wiiboy

Hi,
I'm trying to contact a website using the Python urlfetch api.  Using
urlfetch.fetch is giving me ApplicationError:2

What is ApplicationError 2?
--~--~-~--~~~---~--~~
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: Gqlquery - is there a way to test the size of a list property of a class?

2009-04-14 Thread Anonymous Coderrr


ok, thanks


On Apr 14, 4:49 pm, Tim Hoffman  wrote:
> Nope
>
> You will need to keep a int property in the class and keep it updated
> as you add and delete entries from the list
>
> T
>
> On Apr 15, 6:59 am, Anonymous Coderrr  wrote:
>
>
>
> > Let's say I have:
>
> > class A (db.Model)
> >   someList = db.ListProperty(sometype)
>
> > Is there any way I can include in the where clause of a GQL query the
> > size of the list?
>
> > something like
>
> > select * from A where someList.__size__ = :someint
>
> > Thank you.- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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: Cron Schedule Format parsing error

2009-04-14 Thread an0
Yes, it is quite verbose, and I am using the long trivial 'day of week'
list, too.

However, whatsoever, it is not reasonable that the very first example they
gave does not work. What a shame to doc writer and what a frustration to the
readers, including me:(

On Tue, Apr 14, 2009 at 8:18 PM, daly  wrote:

>
>
> I tried and met this error too.
> You can solve it by
> every mon of month 09:00
>
> month looks like replacing all months,
> but there seems no abbr. for weekdays,
> so I have to using
> "every mon,tue,wed,thu,fri,sat,sun of month 00:00"
> for my target
>
> hope they can add 'days' or 'day' for replacing the long days string
>
> >
>


-- 
Hell boy is cool, but let me be healthy boy first.

--~--~-~--~~~---~--~~
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: Dynamically generated templates

2009-04-14 Thread adelevie

Jason, thanks for the reply. I am quite familiar with the Data Viewer.
I wanted to build something a bit more flexible where I could build a
UI so a layperson (someone that doesn't know GQL) could sort through
all that data.

Jason and Gopal,
I found a solution to store the templates in the db. I created a
simple class which has some simple string construction methods to
build a meta template. I'm going to write a blog post about it
hopefully at some point, until then here's a bit of what I have so
far:

#add this method to any datastore classes you want included (note:
only works on the Model class):
from google.appengine.ext import db
class MyModel(db.Model):
 name = db.StringProperty()
 location = db.StringProperty()
  def get_name(self):
   return 'MyModel'

#run this code to construct the template and save it to the datastore:
class Meta_template():
def __init__(self,body):
self.body = body
self.write("")
def write(self,string):
self.body = str(self.body + str(string))
def tags(self,tag,content):
self.write("<%s>%s" % (tag,str(content),tag))

def plural(string):
return str(string + 's')

def make_template(model):
templates = Template_file.all()
model_name = model.all()[0].get_name()
templates.filter('name =', model_name)
tf = templates.get()
if tf:
tf.delete()
mt = Meta_template(body="")
mt.tags('h2', model_name)
mt.write("")
mt.write("")
for property in model.properties():
mt.tags('td', property)
mt.write("")
mt.write("{% for ")
mt.write(model_name + " in ")
mt.write(plural(model_name) + " %}")
mt.write("")
for property in model.properties():
mt.tags('td', '{{ %s.%s }}' % (model_name,property))
mt.write("")
mt.write("{% endfor %}")
mt.write("")
tf = Template_file(name=model_name, body=mt.body)
tf.put()

make_template(MyModel)

#run this code to render the template:
from django.template import Template, Context
class hello(webapp.RequestHandler):
def get(self):
disp = self.response.out.write
def render(template_name, template_values):
path = os.path.join(os.path.dirname(__file__), '%s' %
template_name)
disp(template.render(path, template_values))
model = MyModel
templates = Template_file.all()
templates.filter('name =', model.all()[0].get_name())
tf = templates.get()
t = Template(tf.body)
template_values = { str(model.all()[0].get_name() + 's') : 
model.all
() }
c = Context(template_values)
output = t.render(c) #important!
return disp(output)

Lemme know what you think.


On Apr 14, 9:02 pm, Gopal Vaswani  wrote:
> Looking at the implementation of Django admin module might help. I don't
> know exact details but for each data type (integer, String, list, date etc
> it has associated interface objects that it loads to depict the data in the
> correct controls.
> Vaswani
>
> On Mon, Apr 13, 2009 at 11:04 AM, adelevie  wrote:
>
> > Hi. I'm trying to build an a simple CRUD admin section of my
> > application. Basically, for a given Model, I want to have a template
> > loop through the model's attributes into a simple table (once I do
> > this, I can actually implement the CRUD part). A possible way to
> > accomplish this is to dynamically generate a template with all the
> > necessary template tags specific to that model.
>
> > Pseudocode:
> > def generate_tamplate(model):
> >     template.write("")
> >     template.write("")
> >     for attribute in model:
> >          template.write("%s" % attribute)
> >     template.write("")
> >     template.write("")
> >     for attribute in model:
> >          template.write("{{ %s.%s }}" % model.attribute)
> >     template.write("")
> >     template.write("")
>
> > Generating the proper text should not be difficult. I can follow my
> > pseudocode model and do it Python. Two things im wondering:
> > 1) Can I do this instead using Django's templating language? that is,
> > use a template to generate a template
> > 2) Once I generate the text, how can I wrote that to a file that
> > webapp's template loader can access?
>
> > I remember a while back seeing something about loading template from
> > the database. Is this possible with GAE?
>
> > 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

[google-appengine] Re: Announcing new Google App Engine SDK installable Live CD appliance

2009-04-14 Thread Tom Wu
Nice work.

2009/4/14 Liraz 

>
> Hi everyone,
>
> I'm one of the developers for TurnKey Linux, a community oriented open
> source project developing a family of free, Ubuntu-based installable
> Live CDs which are lightweight and optimized for ease of use in server-
> type usage scenarios (e.g., LAMP, Joomla CMS, Drupal, Ruby on Rails):
>
> http://www.turnkeylinux.org/appliances
>
> We're proud to announce the release of a new installable Live CD
> appliance which bundles Google App Engine SDK as a turn-key server
> image that can run on real hardware in addition to most types of
> virtual machines (e.g., VMWare, VirtualBox, Parallels, Xen HVM). It is
> designed to provide users with a pre-integrated, auto-updating, turn-
> key operating system environment that is carefully built from the
> ground up with the minimum components needed to run Google App Engine
> SDK in a with minimum hassle.
>
> Basically this is an extremely easy way to get up and running with
> Google App Engine SDK in just a few minutes.
>
> Feature highlights:
>
> * Auto-updated daily with latest security patches
> * SSL support out of the box
> * Elegant Web administration interface (Mac OS X themed)
> * Minimal footprint (120MB)
>
> Full details: http://www.turnkeylinux.org/appliances/appengine
>
> BTW, this type of pre-integrated, ready-to-use system is typically
> called a software appliance:
>
> http://en.wikipedia.org/wiki/Software_appliance
>
> Take a look and tell us what you think!
>
> >
>

--~--~-~--~~~---~--~~
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] Performance issues

2009-04-14 Thread Eric Walker

I apologize for the recent spate of posts.  I don't think I'll need
much attention once I get going.  This is partly a Django-specific
question and partly a general question, so I'll ask it here rather
than on the python list.

I'm seeing latencies of 2000 to almost 3000 milliseconds with a small
GAE application in connection with requests that are reading a short
list from memcache.  I don't think times like these are going to work
for me, and I'm trying to figure out how to proceed from here.

I'm using Django 1.0.2 together with app-engine-patch 1.0.  There's a
possibility that I'm doing something wrong, but after reading a number
of posts, the impression I get is that this is not something that is
out of the usual for this setup.  The problem seems to be due to a
zimporter call that is made to load Django.  Logs that don't include
this call are as low as 800 ms; not an ideal time, but one I think I
can live with.

I understand from what I've read that the high latency is due to the
entirety of the application image being loaded with each request,
either because the request hits a different server or because a server
that previously served a request has flushed the application from
memory in the intervening time.  If I've understood things correctly,
the application would be loaded into memory on certain of the servers
and response times would go down if there were to be a sustained
increase in traffic.  But since the traffic to my application is very
low right now, this doesn't happen.

Following are some possible ways forward, and I'm wondering whether
anyone has any thoughts on which of them might be the best way to go:

1. Back-port the application to Django 0.96, which I understand is
memory-resident on the GAE servers, on the assumption that things
would significantly speed up given my application's traffic profile.
I don't think I've used too many Django 1.0 features at this point, so
hopefully this wouldn't be difficult.

2. Stick with the current setup, which I like in other respects, and
remove the unused portions of the Django sources, as is suggested in
http://code.google.com/appengine/articles/django10_zipimport.html.

3. Stick with the current setup, profile the application carefully and
do things like inline import statements into application code and use
Django templates more carefully, on the assumption that the problem
arises because I'm not using Django efficiently rather than as a
result of the zimport call that is being made.

4. Port the application over to a lighter-weight framework.

5. Live with 2000+ ms latencies for now, since the App Engine
infrastructure will probably handle a case like this more optimally in
the medium term.

In a different connection, one question I had for the Google folks as
I was thinking through this issue was whether it might not make sense
to keep a cryptographically secure hash of each file for which a
system call is made (e.g., in connection with an import statement in
python).  When a given hash is seen a lot, the file could be pushed
out onto the servers into read-only memory and a copy-on-write done as
necessary.  This was just a thought.  There might be some security
issues that would prevent such an approach.
--~--~-~--~~~---~--~~
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: database access by more than one application

2009-04-14 Thread Gopal Vaswani
Hi,

Why can't you have different views for internal and external users in the
same application. You can have different authentication for these views.
Vaswani

On Tue, Apr 14, 2009 at 2:38 PM, bamkraxler  wrote:

>
> Can the database be accessed from more than one application?  I would
> like to have one application for external users and another for
> internal users, both of which access the same database.  Basically,
> external users will add information to the database and internal users
> will run reports, etc.  I've looked everywhere on the Google App
> Engine web site and cannot find any information on accessing the
> database from more than one application.  Many 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: PHP on GAE using Quercus

2009-04-14 Thread Moriyoshi Koizumi

Hi,

Thanks for the heads-up. It seems I forgot to add these modules as
they don't reside right under com/caucho/quercus/lib :)

Moriyoshi

On Tue, Apr 14, 2009 at 1:37 PM, diablonhn  wrote:
>
> Hi moriyoshi,
>
> Awesome work!  There are a few modules that are missing from your
> com.caucho.quercus.QuercusModule file:
>
> com.caucho.quercus.lib.curl.CurlModule
> com.caucho.quercus.lib.date.DateModule
> com.caucho.quercus.lib.file.FileModule
> com.caucho.quercus.lib.gettext.GettextModule
> com.caucho.quercus.lib.json.JsonModule
> com.caucho.quercus.lib.i18n.MbstringModule
> com.caucho.quercus.lib.mcrypt.McryptModule
> com.caucho.quercus.lib.reflection.ReflectionModule
> com.caucho.quercus.lib.string.StringModule
> com.caucho.quercus.lib.i18n.UnicodeModule
> com.caucho.quercus.lib.xml.DomModule
> com.caucho.quercus.lib.xml.XmlModule
> com.caucho.quercus.lib.xml.XMLWriterModule
> com.caucho.quercus.lib.zip.ZipModule
> com.caucho.quercus.lib.zlib.ZlibModule
> com.caucho.quercus.lib.jms.JMSModule
> com.caucho.quercus.lib.pdf.PDFModule
> com.caucho.quercus.lib.bam.BamModule
>
> Most of them are essential.  Some don't apply in the GAE environment.
> Also, I think you should include the
> com.caucho.quercus.QuercusClass file.  That file lists Java classes
> that back the equivalent PHP classes.
>
> On Apr 10, 10:28 am, Moriyoshi Koizumi  wrote:
>> Hi,
>>
>> Finally I pushed my local work to GitHub. See HOWTO to reproduce the attempt.
>>
>> http://github.com/moriyoshi/quercus-gae/
>>
>> Enjoy!
>> Moriyoshi
>>
>> On Fri, Apr 10, 2009 at 2:44 AM, moriyoshi  wrote:
>> > Hi,
>>
>> > Probably this is not a news, but I couldn't find a similar attempt so
>> > here goes... I managed to get (patched) Quercus [1] to work on GAE.
>> > This means now you can run considerable number of PHP application.
>>
>> > I'm going to post further details to my blog (http://d.hatena.ne.jp/
>> > moriyoshi/  - mostly in Japanese).
>>
>> > Hope you are interested.
>> > Moriyoshi
>>
>> > [1]http://quercus.caucho.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: Dynamically generated templates

2009-04-14 Thread Gopal Vaswani
Looking at the implementation of Django admin module might help. I don't
know exact details but for each data type (integer, String, list, date etc
it has associated interface objects that it loads to depict the data in the
correct controls.
Vaswani

On Mon, Apr 13, 2009 at 11:04 AM, adelevie  wrote:

>
> Hi. I'm trying to build an a simple CRUD admin section of my
> application. Basically, for a given Model, I want to have a template
> loop through the model's attributes into a simple table (once I do
> this, I can actually implement the CRUD part). A possible way to
> accomplish this is to dynamically generate a template with all the
> necessary template tags specific to that model.
>
> Pseudocode:
> def generate_tamplate(model):
> template.write("")
> template.write("")
> for attribute in model:
>  template.write("%s" % attribute)
> template.write("")
> template.write("")
> for attribute in model:
>  template.write("{{ %s.%s }}" % model.attribute)
> template.write("")
> template.write("")
>
> Generating the proper text should not be difficult. I can follow my
> pseudocode model and do it Python. Two things im wondering:
> 1) Can I do this instead using Django's templating language? that is,
> use a template to generate a template
> 2) Once I generate the text, how can I wrote that to a file that
> webapp's template loader can access?
>
> I remember a while back seeing something about loading template from
> the database. Is this possible with GAE?
>
> 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: I've just found that the app.yaml file won't allow more than 100 handlers...

2009-04-14 Thread Gopal Vaswani
Hi Larry,

I hope you are talking about the number of handlers in the handler script.
Its strange that GAE does not allow more than 100 handlers. it should not be
the case normally.
Anyway, one way you can overcome this issue is to use regex groups to
capture URL specific parameters and process the request based on the
parameter. This should bring down the number of handlers as I am assuming
that many of your urls would be similar.

Vaswani


On Tue, Apr 14, 2009 at 2:44 PM, Larry  wrote:

>
> Hi
>
> I've just found that the app.yaml file won't allow more than 100
> handlers. I know this seems plenty but using handlers quite
> conservatively I have found myself requiring slightly more than 100
> handlers for my forum. I could just map every URL into one handler and
> have that search a dictionary for the correct class to handle the
> request but that is rather irritating to recode.
>
> Are there any better plans? Should I file a bug report requesting a
> larger number of handlers. I personally think it should be dynamic
> (IE: not limited) or at least be mentioned in the documentation. I
> could have avoided this situation had I known about the restriction.
>
> Thanks!
>
> Larry
> >
>

--~--~-~--~~~---~--~~
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: Gqlquery - is there a way to test the size of a list property of a class?

2009-04-14 Thread Jeff S
I think the easiest way to do this would be to calculate the list size at
write time and store the size in its own property. Then you would just query
on the list size property. Since I imagine the list size is known at write
time, this should be quite cheap.

Happy coding,

Jeff

On Tue, Apr 14, 2009 at 3:59 PM, Anonymous Coderrr wrote:

>
>
> Let's say I have:
>
> class A (db.Model)
>  someList = db.ListProperty(sometype)
>
>
> Is there any way I can include in the where clause of a GQL query the
> size of the list?
>
>
> something like
>
> select * from A where someList.__size__ = :someint
>
> Thank you.
> >
>

--~--~-~--~~~---~--~~
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: Gqlquery - is there a way to test the size of a list property of a class?

2009-04-14 Thread Tim Hoffman

Nope

You will need to keep a int property in the class and keep it updated
as you add and delete entries from the list

T

On Apr 15, 6:59 am, Anonymous Coderrr  wrote:
> Let's say I have:
>
> class A (db.Model)
>   someList = db.ListProperty(sometype)
>
> Is there any way I can include in the where clause of a GQL query the
> size of the list?
>
> something like
>
> select * from A where someList.__size__ = :someint
>
> Thank you.
--~--~-~--~~~---~--~~
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] Remove naked domain from appengine application

2009-04-14 Thread mifki

I have appengine application installed for my google apps domain and
naked domain specified for it. I can't neither remove that domain nor
disable entire application. I know this is common problem after naked
domain disallowed but I didn't find any solution or whom to contact to
solve this problem. Any help?

I think this problem is more Google Apps-related than App Engine-
related but I asked in Google Apps support group

http://www.google.com/support/forum/p/Google+Apps/thread?fid=2cc94e6c4c1ecc8b0004677e248338fd&hl=en

but Advisor said she can't help with any App Engine problems, so I'm
trying to aske here.

--~--~-~--~~~---~--~~
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] database access by more than one application

2009-04-14 Thread bamkraxler

Can the database be accessed from more than one application?  I would
like to have one application for external users and another for
internal users, both of which access the same database.  Basically,
external users will add information to the database and internal users
will run reports, etc.  I've looked everywhere on the Google App
Engine web site and cannot find any information on accessing the
database from more than one application.  Many 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] 'Unknown' IOException when calling URLFetchServiceImpl.fetch(URL)

2009-04-14 Thread BoD

Hi!

I'm experiencing intermittent exceptions when calling
URLFetchServiceImpl.fetch(URL).
The strange thing is that it doesn't happen all the time and I can't
find a way to reproduce the problem systematically.

The exception message is 'Unknown', see below:

Uncaught exception from servlet
java.io.IOException: Unknown
at
com.google.appengine.api.urlfetch.URLFetchServiceImpl.handleApplicationException
(URLFetchServiceImpl.java:56)
at com.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch
(URLFetchServiceImpl.java:30)

Is there a normal condition that I'm not aware of under which this can
happen, or is this a bug?
Thanks a lot for your help!

BoD

--~--~-~--~~~---~--~~
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: Error creating application

2009-04-14 Thread Jeff S
Hi Brendan,

Is the admin account that you are using associated with a Google Apps
domain? If so, try signing in to appengine.google.com/a/ .

Thank you,

Jeff

On Mon, Apr 13, 2009 at 4:40 PM, Brendan  wrote:

>
> I've just been activited to use Google App Engine for Java.
>
> I've verified my account using SMS.
>
> When I go to http://appengine.google.com/, i'm redirected to
> http://appengine.google.com/start which asks me to enter an app name
> and title.  I enter these details and press save.  I'm redirected to
> http://appengine.google.com/start again, which asks me to enter
> another app name and title.  My app has been created, as i cannot use
> my old app name.
>
> This can't be the way it's meant to work.  Perhaps something is wrong
> with my account.
>
> Brendan
>
> >
>

--~--~-~--~~~---~--~~
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: Still stuck at square -1 :-(

2009-04-14 Thread Jeff S
Hi Michael,

Please try signing in one more time, and if it doesn't work, fill out the
form listed here:

http://code.google.com/appengine/kb/sms.html#error

Happy coding,

Jeff

On Mon, Apr 13, 2009 at 6:51 PM, Michael Rogers  wrote:

> Hi, All:
>
> I tried to get a verification code using SMS, but tried too many times, so
> I keep getting this message:  "The phone number has been sent too many
> messages or has already been used to confirm an account".
>
> I created another google account, and used my spouse's cellphone, and that
> worked:  but I still would like to be able to use my original account.
>
> I went back to my original account, and tried my daughter's cell phone, and
> got this:  "You have sent too many SMS verification messages."
>
> How am I supposed to get this reset?  I'm running out of accounts and
> relatives :-)
>
> Thanks for any insights,
>
> Michael
>
> >
>

--~--~-~--~~~---~--~~
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: IntegerProperty doesn't result in an int

2009-04-14 Thread Jeff S
Hi alex,

I haven't been able to reproduce this exactly, could I see the class
declaration for this class? I'm wondering if the integer property member is
being set to the IntegerProperty constructor instead of the result of
calling the constructor.

class X(db.Model):
  i = db.IntegerProperty # Note the missing ()
  s = db.StringProperty()

Thank you,

Jeff

On Mon, Apr 13, 2009 at 2:06 PM, alex  wrote:

>
> Got a class that extends db.Model with an IntegerProperty among the
> others. It's gets set at creation time (moreover, has required=True).
> Now, when I fetch an instance of this class, all other properties
> resolve just fine (StringProperty, DateTimeProperty, etc.). Now,
> passing IntegerProperty to str(), here's what I get:
> --
>  object at 0x01A0CC30>>
> --
> .filter('int_property = ', some_int_value) doesn't work as well.
> How could that be?
> TIA.
>
> >
>

--~--~-~--~~~---~--~~
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: Estimating cost for iPhone app backend

2009-04-14 Thread Thomas Fors

Sorry.  I wasn't clear.  The producer and consumer run on my local
machine and they interact with the GAE app on Google's server.  The
CPU time I mentioned was reported by GAE.

--Tom

On Apr 14, 11:09 am, Jim Collins  wrote:
> > I have an app with a single "producer" and single "consumer" running
> > on my local machine.
>

--~--~-~--~~~---~--~~
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] Gqlquery - is there a way to test the size of a list property of a class?

2009-04-14 Thread Anonymous Coderrr


Let's say I have:

class A (db.Model)
  someList = db.ListProperty(sometype)


Is there any way I can include in the where clause of a GQL query the
size of the list?


something like

select * from A where someList.__size__ = :someint

Thank you.
--~--~-~--~~~---~--~~
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: Can't open a link that specifies the ID

2009-04-14 Thread Jeff S
Hi Keiya,

In looking at the HTML for that page, it seems like the #v-number anchors
have no place to link to. These are sometimes called fragment identifiers
(if you want to research further), and they usually need a location within
the document which matches the name after #. For example, if you had a div
like this:

Some text

You could jump to it by clicking on a link this this Jump to some text

Happy coding,

Jeff


On Mon, Apr 13, 2009 at 9:02 PM, ke...@kanno.com  wrote:

>
> Hi,
>
> I'm developping Django application on GAE but I have a problem.
>
> I made a link to jump to the specified place of the page with "ID". The
> link works if I open it in new window, but If I just click the link,
> nothing happen. Do you have any idea?
>
> Here is the page where I have a problem.
>
> http://123.latest.ibibleapps.appspot.com/strongssearch/i/verselist?book=1&chapter=1
>
>
> Thanks,
> 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
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: entity stuck at the wrong end of the index

2009-04-14 Thread Ben Nevile

Hi Jeff,

To clarify, the last_nudged_at property *is* changed, but the entity
stays at the top of the stack.

Ben



On Apr 14, 12:26 pm, Jeff S  wrote:
> Hi Ben,
>
> If you are experiencing write contention on some of these updates,
> then that may explain why the last_nudged_at  property is not changed
> and an entity tends to stay at the top of the stack. Do you see
> datastore timeout errors in these cases (I imagine the exception may
> be hidden somewhere in the JavaScript <--> server exchange)?
>
> Thank you,
>
> Jeff
>
> On Apr 14, 11:48 am, Ben Nevile  wrote:
>
>
>
> > bump.  I have observed this many times over the past few days.  Maybe
> > has to do with transactions and/or write contention, since there is a
> > lot of that in my app.
>
> > Ben
>
> > On Apr 1, 8:23 pm, Ben Nevile  wrote:
>
> > > Hi GAE team and devotees,
>
> > > I have a entity that looks like
>
> > > class FacebookUser(db.Model):
> > >   expired_fotm =          db.BooleanProperty()
> > >   last_nudged_at =        db.DateTimeProperty()
>
> > > and an index that looks like
>
> > > - kind: FacebookUser
> > >   properties:
> > >   - name: expired_fotm
> > >   - name: last_nudged_at
>
> > > Unbeknownst to the users of my application, some javascript is
> > > constantly polling a worker handler that finds the first entity in the
> > > index, operates on it, then sets "last_nudged_at" to the current
> > > time.  There are more than a million of these entities so it takes
> > > some time to go through them all.
>
> > > This afternoon using the Data Viewer and the GQL query "SELECT * FROM
> > > FacebookUser where expired_fotm=True order by last_nudged_at" I
> > > observed several times that an entity would remain "stuck" in the
> > > first position in the index after it was processed.  Usually it would
> > > remain there only for 10-30 seconds.  However this evening one entity
> > > stayed in an incorrect index position for several hours.  I put() it
> > > again and it properly indexed itself.
>
> > > Has anyone ever observed anything like this? Let me know if I'm not
> > > making myself clear.
>
> > > Ben <3 GAE
--~--~-~--~~~---~--~~
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] I've just found that the app.yaml file won't allow more than 100 handlers...

2009-04-14 Thread Larry

Hi

I've just found that the app.yaml file won't allow more than 100
handlers. I know this seems plenty but using handlers quite
conservatively I have found myself requiring slightly more than 100
handlers for my forum. I could just map every URL into one handler and
have that search a dictionary for the correct class to handle the
request but that is rather irritating to recode.

Are there any better plans? Should I file a bug report requesting a
larger number of handlers. I personally think it should be dynamic
(IE: not limited) or at least be mentioned in the documentation. I
could have avoided this situation had I known about the restriction.

Thanks!

Larry
--~--~-~--~~~---~--~~
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: Dynamically generated templates

2009-04-14 Thread Jason (Google)
I'm not positive about the Django template answer, but I did want to point
out that something similar is already available in the Admin Console of an
application (click the link called "Data Viewer'). You can see all of your
models and, for a selected model, all entities with their properties. You
can delete entities and create them from this interface as well.
- Jason

On Mon, Apr 13, 2009 at 11:04 AM, adelevie  wrote:

>
> Hi. I'm trying to build an a simple CRUD admin section of my
> application. Basically, for a given Model, I want to have a template
> loop through the model's attributes into a simple table (once I do
> this, I can actually implement the CRUD part). A possible way to
> accomplish this is to dynamically generate a template with all the
> necessary template tags specific to that model.
>
> Pseudocode:
> def generate_tamplate(model):
> template.write("")
> template.write("")
> for attribute in model:
>  template.write("%s" % attribute)
> template.write("")
> template.write("")
> for attribute in model:
>  template.write("{{ %s.%s }}" % model.attribute)
> template.write("")
> template.write("")
>
> Generating the proper text should not be difficult. I can follow my
> pseudocode model and do it Python. Two things im wondering:
> 1) Can I do this instead using Django's templating language? that is,
> use a template to generate a template
> 2) Once I generate the text, how can I wrote that to a file that
> webapp's template loader can access?
>
> I remember a while back seeing something about loading template from
> the database. Is this possible with GAE?
>
> 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] Updating a single property in datastore

2009-04-14 Thread Andrew Fong

Let's say I already know the key of an entity in the datastore I want
to update and want to update only a single property value inside that
entity.

With SQL, you would simply do UPDATE table SET table.a = new_value
WHERE key=key_value

Is it possible to do the same with the AppEngine datastore? If I
simply create a new db.Model instance with the same key and set the
new value, calling put on this instance overrides all properties for
this entity, not just the one I want to update.

Therefore, I currently have to retrieve the existing entity, update
the value, and then do the put. This is two datastore operations
instead of just one. I'm doing a lot of batch operations using the
remote_api, and I'd like to minimize and round-trip times.

-- Andrew
--~--~-~--~~~---~--~~
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: Limit on the number of applications

2009-04-14 Thread Jason (Google)
Hi Jeremiah. Depending on your needs, we may be able to accommodate your
request for additional applications. Please use the quota increase request
form, linked below, and provide a description of what you're trying to
build, and we'll reply to your request shortly.
http://code.google.com/support/bin/request.py?contact_type=AppEngineContact

Thanks,
- Jason

On Mon, Apr 13, 2009 at 12:02 PM, Jeremiah Elliott <
jelli...@integrityemr.com> wrote:

> The TOS will only be violated if the purpose of using multiple accounts is
> to get around paying. We full expect to pay for every application we have.
> Why would google delete an account that is paying them money every month?
> If, however, I had an application that cross-talked between applications and
> did so in a manner that completely eliminated the need to pay, then I could
> see google not liking that. This application will have no data being shared
> between applications. Therefor, will not be in violation of the TOS.
>
> ---Jeremiah
>
>
>
> On Mon, Apr 13, 2009 at 12:59 PM, Wooble  wrote:
>
>>
>> And your customers will *love* you when Google deletes all of their
>> data along with your apps for violating the terms of use...
>>
>> On Apr 13, 9:37 am, gabriel munteanu  wrote:
>> > i think you should do these 10 apps for yourself and every friend you
>> > have with a google account [you + 3 friends = 40 apps].
>> > i won't bet that they will increase this number any time soon.
>> >
>> > jgabios
>> >
>> > On Mon, Apr 13, 2009 at 3:44 PM, Jeremiah Elliott
>> >
>> >
>> >
>> >  wrote:
>> >
>> > > Hello All -
>> > > I am doing some research for a project that I have coming up and have
>> > > a few questions that I have not been able to find by searching the
>> > > group. This will be my first AppEngine application, so sorry if this
>> > > is a dumb question. The project is going to be a SASS model
>> > > application where our customers will have a web application that we
>> > > write made available to them. While I realize that I could have a
>> > > customer id in every object stored in the data store and write
>> > > business logic to verify that each customer sees only their data, I
>> > > would rather have each customer have their own complete appengine
>> > > application with their own tables that are totally separate. If I put
>> > > all customers in one application, i will not be able to upgrade the
>> > > application per-customer, but rather all at once.  Currently I only
>> > > have available 10 applications when I sign in.  The other advantage of
>> > > having all customers in their own application instance is that we will
>> > > know exactly what the resources for a given customer is every month.
>> >
>> > > I am hoping that Google increases the number of available applications
>> > > as i use them. So when I utilize my 9th applicaiton, it shows that I
>> > > actually have 20 or something like that. I have not found any thing on
>> > > the web that would give me any indication one way or the other if this
>> > > is the case, so I am assuming that it isn't.
>> >
>> > > If having more than 10 applications is simply not an option, are there
>> > > any good workarounds from a data store point of view? Anything like
>> > > schemas in most relational databases?
>> >
>> > > Has anyone asked google to increase this limit? If so how did that
>> > > work out?
>> >
>> > --
>> > jgabioshttp://bash.editia.info
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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: Complete list of limits and quotas?

2009-04-14 Thread T.J. Crowder

Hi all,

Only-slightly-abashedly bumping this, having foolishly posted it
during the holiday weekend.  Apparently (continuing the list) there's
a "Workflow Backend Index Task Count"[1] as well.

Anyone (at Google or otherwise) have a link to an official
comprehensive list, and if so, would you post it?  If not, perhaps we
should try to bring together links for the disparate parts.

[1] 
http://groups.google.com/group/google-appengine/browse_thread/thread/733e8830bdb4b843

Thanks in advance,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available

On Apr 11, 9:55 am, "T.J. Crowder"  wrote:
> Hi all,
>
> Thrilled about the AppEngine Java support and reading up on the
> platform, etc.   Very exciting stuff.
>
> Information about the various limits imposed by the system seems to be
> a bit spread all over, is there anywhere one can go for a quick
> rundown of *all* the various limits?
>
> Naturally there's the quotas page[1], but then there are further
> significant limits for the datastore[2], and neither of those pages
> mentions that there is apparently a limit on the number of datastore
> indices[3] -- a very important piece of information.  It also appears
> that each static file in your app can be no more than 10MB[4].
> There's some disagreement amongst pages as well; the overview page[5]
> says the free accounts get 500MB of storage, but the quotas page
> (presumably the more canonical of the two) says 1GB.  Apparently
> requests must be satisfied within 30 seconds[4][5].  A user seemed to
> say[6] in the group that there is a 1,000 file limit, but I haven't
> found that one (yet!) from Google.  And it's not clear to me whether
> it's 1GB of storage, total, or 1GB of datastore storage *plus* the
> storage of your application files.
>
> For clarity, this is not criticism disguised as a question.  I'm
> really asking the question. :-)  Is this all pulled together somewhere
> I've missed so far?  Apologies if I've overlooked the obvious, which
> wouldn't surprise me.
>
> [1]http://code.google.com/appengine/docs/quotas.html
> [2]http://code.google.com/appengine/docs/java/datastore/overview.html#Qu...
> [3]http://groups.google.com/group/google-appengine/browse_thread/thread/...
> [4]http://googleappengine.blogspot.com/2009/02/skys-almost-limit-high-cp...
> [5]http://code.google.com/appengine/docs/whatisgoogleappengine.html
> [6]http://groups.google.com/group/google-appengine/browse_thread/thread/...
>
> Thanks in advance,
> --
> T.J. Crowder
> tj / crowder software / com
> Independent Software Engineer, consulting services available
--~--~-~--~~~---~--~~
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: 500 Internal Server Error while deploying using eclipse

2009-04-14 Thread Jason (Google)
Sudeep: I've seen this error before with users of a Google Apps domain? Is
najanaja.com a Google Apps domain per chance? If so, try using a Gmail
address or another account not associated with Google Apps. Don't forget to
sign that account up for the Java "early look" at
http://appengine.google.com/promo/java_runtime.
kp: Did you receive an email saying your App Engine for Java account was
activated for your Gmail account?

- Jason

On Mon, Apr 13, 2009 at 1:11 PM, kp  wrote:

>
> I agree, this is very frustrating. This happens on both my gmail
> account, and my google apps domain account. Here is the Eclipse error
> log, if anybody else has any ideas (app id removed):
>
> Unable to upload app: Error posting to URL:
>
> http://appengine.google.com/api/appversion/clonefiles?app_id=(myappid)&version=1&
> 500 Internal Server Error
> Server Error (500)
> A server error has occurred.
>
> at com.google.appengine.tools.admin.AppAdminImpl.update
> (AppAdminImpl.java:47)
>at
> com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy
> (AppEngineBridgeImpl.java:203)
>at
> com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace
> (DeployProjectJob.java:97)
>at org.eclipse.core.internal.resources.InternalWorkspaceJob.run
> (InternalWorkspaceJob.java:38)
>at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
> Caused by: java.io.IOException: Error posting to URL:
>
> http://appengine.google.com/api/appversion/clonefiles?app_id=(myappid)&version=1&
> 500 Internal Server Error
> Server Error (500)
> A server error has occurred.
>
> at com.google.appengine.tools.admin.ServerConnection.send
> (ServerConnection.java:114)
>at com.google.appengine.tools.admin.ServerConnection.post
> (ServerConnection.java:66)
>at com.google.appengine.tools.admin.AppVersionUpload.send
> (AppVersionUpload.java:345)
>at com.google.appengine.tools.admin.AppVersionUpload.cloneFiles
> (AppVersionUpload.java:211)
>at
> com.google.appengine.tools.admin.AppVersionUpload.beginTransaction
> (AppVersionUpload.java:174)
>at com.google.appengine.tools.admin.AppVersionUpload.doUpload
> (AppVersionUpload.java:68)
>at com.google.appengine.tools.admin.AppAdminImpl.update
> (AppAdminImpl.java:41)
>
> On Apr 13, 11:55 am, Sudeep Bhattarai  wrote:
> > And by the way, I was using google's tutorial to create and deploy
> app..no
> > fancy stuff
> >
> > On Mon, Apr 13, 2009 at 11:54 AM, Sudeep Bhattarai  >wrote:
> >
> > > Hi,No. I gave up..It is just too frustrating.
> >
> > > On Mon, Apr 13, 2009 at 2:42 AM, kp  wrote:
> >
> > >> Any update on this issue, or did you get it figured out? I'm having
> > >> the same problem that you are, and I can't figure out why it's
> > >> happening.
> >
> > >> On Apr 11, 12:46 pm, "sud...@najanaja.com" 
> > >> wrote:
> > >> > I keep getting following error while deploying my java app. What
> could
> > >> > be the reason?
> >
> > >> > Unable to upload app: Error posting to URL:
> > >>http://appengine.google.com/api/appversion/create?app_id=hohalla8&ver.
> ..
> > >> > 500 Internal Server Error
> >
> > >> > Server Error (500)
> > >> > A server error has occurred.
> >
> > >> > See the Eclipse error log for more details
> > >> > Unable to upload app: Error posting to URL:
> > >>http://appengine.google.com/api/appversion/create?app_id=hohalla8&ver.
> ..
> > >> > 500 Internal Server Error
> >
> > >> > Server Error (500)
> > >> > A server error has occurred.
> >
>

--~--~-~--~~~---~--~~
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: Odd problem with urlfetch from picasa servers

2009-04-14 Thread notcourage

Thx for your reply. Besides the thumbnail, does the API allow you to
display the underlying image?

On Apr 13, 3:45 pm, Jeff S  wrote:
> Hi Ken,
>
> Yes the Picasa Web Albums Data API allows you to display thumbnails of your
> images in a web page, whether that page happens to be on App Engine or not.
> It seems like this should be doable, the thumbnail size may need to be
> specified in the img URL.
>
> Happy coding,
>
> Jeff
>
> On Sun, Apr 12, 2009 at 9:26 AM, notcourage  wrote:
>
> > Jeff, thx for answering.
>
> > I can research the upload method you suggest. However, if I cannot
> > access the uploaded images (thumb & underlying) later to display it in
> > my appengine app, there's no point. It would be helpful if you told us
> > whether the photo API allows this. Thx. -Ken
>
> > On Mar 25, 11:29 am, Jeff S  wrote:
> > > On Mar 22, 4:10 pm, notcourage  wrote:
>
> > > > Did you ever find the solution?
>
> > > > Is photo.media.thumbnail[1].url the URL for the actual image? Or a
> > > > page containing it?
>
> > > Great question, it would help if we could see URL being requested. The
> > > reason I most often see for not being able to retrieve an image is
> > > that the imgmax parameter is not being included.
>
> > >http://code.google.com/apis/picasaweb/faq.html#embed_image
>
> > > > I don't understand how to upload an image topicasasince
> > > > gd_client.InsertPhotoSimple requires a filename and an appengine app
> > > > doesn't have access to the file system, does it?
>
> > > Good point. You could use the lower-level Post method found in
> > > gdata.service.GDataService along with a gdata.MediaSource object to
> > > simulate a file. This might look something like:
>
> > > media_source = gdata.MediaSource(
> > >     file_handle=StringIO.StringIO(your_image_data),
> > >     content_type='image/jpeg',
> > >     content_length=len(your_image_data),
> > >     file_name='example.jpg')
>
> > > Then look at the implementation for InsertPhoto(Simple) for ideas on
> > > how to use the client.Post method.
>
> > > Thank you,
>
> > > Jeff
>
> > > > Thx.
>
> > > > On Feb 26, 3:32 am, "G. Nyman"  wrote:
>
> > > > > Hello everybody,
>
> > > > > I have been banging my head against this problem for a while now and
> > I
> > > > > can't seem to understand why it does what it does.
>
> > > > > I am trying to import pictures fromPicasausing the code appended at
> > > > > the end of this post. It works fine in the dev environment but for
> > > > > some reasonpicasareturns 404 when i try to run it online.
>
> > > > > The devserver-logs say:
> > > > > INFO     2009-02-26 10:24:35,093 svgae.py] Got the following url:
> >http://lh6.ggpht.com/_mUcXljy1w9g/SaQ-uXbkY4I/ACE/DJtdqCz6u50...,
> > > > > data was truncated? 0
> > > > > INFO     2009-02-26 10:24:35,093 svgae.py] Big thumb got status 200
> > > > > and lenght: 99720
> > > > > INFO     2009-02-26 10:24:35,108 dev_appserver.py] "GET /
> > > > > no_go_with_picasa HTTP/1.1" 200 -
>
> > > > > The real thing says:
> > > > > 02-26 02:25AM 24.551 /no_go_with_picasa 200 927ms 951ms-cpu 0kb
> > > > > 130.232.90.98 - - [26/Feb/2009:02:25:25 -0800] "GET
> > /no_go_with_picasa
> > > > > HTTP/1.1" 200 104 - -
> > > > > I 02-26 02:25AM 25.473
> > > > > Got the following url:
> >http://lh6.ggpht.com/_mUcXljy1w9g/SaQ-uXbkY4I/ACE/DJtdqCz6u50...,
> > > > > data was truncated? 0
> > > > > I 02-26 02:25AM 25.474
> > > > > Big thumb got status 404 and lenght: 1421
>
> > > > > This might be apicasaproblem but I tought I'll try here first. The
> > > > > url to the photo works in both cases so I don't understand the 404.
> > > > > The most interesting thing is that urlfetch on photo.media.thumbnail
> > > > > [0].url works fine.
>
> > > > > Thankfull for all assistance
>
> > > > > /G. Nyman
>
> > > > > Code to replicate the problem:
> > > > > ---
> > > > > class PicasaProblem(webapp.RequestHandler):
> > > > >         def get(self):
> > > > >                 gd_client = gdata.photos.service.PhotosService()
> > > > >                 gdata.alt.appengine.run_on_appengine(gd_client)
> > > > >                 username = 'tehviu'
> > > > >                 albumid = 'SigmaTest'
> > > > >                 photos = gd_client.GetFeed(
> > > > >                     '/data/feed/api/user/%s/album/%s?
> > > > > kind=photo&thumbsize=64,1024&imgmax=d' % (
> > > > >                         username, albumid))
> > > > >                 for photo in photos.entry:
> > > > >                         img_thumb_big = None
> > > > >                         try:
> > > > >                                 img_thumb_big =
> > urlfetch.fetch(photo.media.thumbnail[1].url)
> > > > >                         except Exception, e:
> > > > >                                 logging.exception(e)
> > > > >                                 error = 'Image importing error'
>
> > > > >                         logging.info("Got the following url: " +
> > photo.media.thumbnail
> > > > > [1].url + ", data w

[google-appengine] Silly db.TextProperty question

2009-04-14 Thread Paul Kinlan
Hi,

I swear this used to work.

I have a TextProperty on one of models, and I append to it as follows:

user.blocked_user_list = user.blocked_user_list + " " + unfollower
user.put()

However, I am noticing now that the "blocked_user_list" property is not
getting updated when it the user entity is put to the datastore.  I am
pretty positive this used to work correctly because there is data in many of
the entities.

Has something changed recently?  Am I being dim?

Paul

--~--~-~--~~~---~--~~
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: Get values by unique ID

2009-04-14 Thread Jason (Google)
If you know the key, you should be able to use Newsletter.get(). Have
you tried this?
- Jason

On Mon, Apr 13, 2009 at 9:05 PM, Wiiboy  wrote:

>
> Are you referring to the filter('pk ='?
>
> If so,
> Quote from
> http://code.google.com/appengine/docs/python/datastore/queryclass.html#Query_filter
> "If the operator is omitted from the string (the argument is just the
> property name), the filter uses the = operator."
> >
>

--~--~-~--~~~---~--~~
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: Yet another GQL LIMIT/OFFSET thread ...

2009-04-14 Thread Eric Walker

Hi Arny,

The reason the offset works this way is related to bigtable and the
way the datastore has been implemented on top of it.  If what you need
is paging, e.g., scrolling through a dataset of search results, there
are more efficient ways of doing this than using the offset.  Some of
them are discussed here:

http://code.google.com/appengine/articles/paging.html
http://www.youtube.com/watch?v=Oh9_t5W6MTE

Eric


On Apr 14, 11:33 am, Wooble  wrote:
> You can use offset and limit perfectly well to deal with fewer than
> 1000 results.  If your queries would return more results, of course
> they're not very useful since the datastore won't return more then
> 1000 results under any circumstances.
>
> On Apr 14, 12:44 pm,Arny wrote:
>
> > Hi,
>
> > Any of the Gurus can explain why do google serve us with the OFFSET &
> > LIMIT while you can't even use it?
>
> > Tried it inside the Data Viewer and getting the following results:
> > LIMIT <= 1000 : ok
> > LIMIT > 1000 : failure
> > OFFSET < 1000 : ok
> > OFFSET < ~2800 : works partially
> > OFFSET > ~2800 : timeout..
>
> > How are we suppose to do dynamic results with different ORDER types
> > and ability to browse them by pages?
>
>
--~--~-~--~~~---~--~~
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: entity stuck at the wrong end of the index

2009-04-14 Thread Jeff S

Hi Ben,

If you are experiencing write contention on some of these updates,
then that may explain why the last_nudged_at  property is not changed
and an entity tends to stay at the top of the stack. Do you see
datastore timeout errors in these cases (I imagine the exception may
be hidden somewhere in the JavaScript <--> server exchange)?

Thank you,

Jeff

On Apr 14, 11:48 am, Ben Nevile  wrote:
> bump.  I have observed this many times over the past few days.  Maybe
> has to do with transactions and/or write contention, since there is a
> lot of that in my app.
>
> Ben
>
> On Apr 1, 8:23 pm, Ben Nevile  wrote:
>
> > Hi GAE team and devotees,
>
> > I have a entity that looks like
>
> > class FacebookUser(db.Model):
> >   expired_fotm =          db.BooleanProperty()
> >   last_nudged_at =        db.DateTimeProperty()
>
> > and an index that looks like
>
> > - kind: FacebookUser
> >   properties:
> >   - name: expired_fotm
> >   - name: last_nudged_at
>
> > Unbeknownst to the users of my application, some javascript is
> > constantly polling a worker handler that finds the first entity in the
> > index, operates on it, then sets "last_nudged_at" to the current
> > time.  There are more than a million of these entities so it takes
> > some time to go through them all.
>
> > This afternoon using the Data Viewer and the GQL query "SELECT * FROM
> > FacebookUser where expired_fotm=True order by last_nudged_at" I
> > observed several times that an entity would remain "stuck" in the
> > first position in the index after it was processed.  Usually it would
> > remain there only for 10-30 seconds.  However this evening one entity
> > stayed in an incorrect index position for several hours.  I put() it
> > again and it properly indexed itself.
>
> > Has anyone ever observed anything like this? Let me know if I'm not
> > making myself clear.
>
> > Ben <3 GAE
--~--~-~--~~~---~--~~
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: Spring, Css mapping error, appending index.html.

2009-04-14 Thread Jeff S

Hi Jun,

Thanks for sharing, I'm wondering if the issue could also be in the
war directory structure. I tried to reproduce but haven't been able to
so far. To test I created a new project with the following war layout
war
  |-- WEB-INF
  |   |-- appengine-web.xml
  |   |-- classes
  |   `...
  |   |-- lib
  |   |   |...
  |   `-- web.xml
  |-- css
  |   `-- corp.css
  `-- index.html

It doesn't look like there is a mapping that would match things like /
css/*.css, so it seems that the default servlet should serve the CSS
file if it is in the expected location under war. In my simple example
I was able to view the CSS file with and without an explicit  element in my appengine-web.xml

Thank you,

Jeff

On Apr 12, 6:33 am, Jun  wrote:
> Hi Jeff,
>
> Here is our appengine-web.xml file:
>
> 
> http://appengine.google.com/ns/1.0";>
>     
>     1
>
>     true
>
>     
>         
>     
>
>     
>             
>             
>     
>
> 
>
> And web.xml file:
>
> 
>  Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd'>
> 
>
>     
>       60
>     
>
>         
>                 
> com.strongtech.iii.web.IIIWatch
>         
>
>         
>                 AxisServlet
>                 Apache-Axis Servlet
>                 
> org.apache.axis.transport.http.AxisServlet class>
>         
>
>         
>                 AdminServlet
>                 Axis Admin Servlet
>                 
> org.apache.axis.transport.http.AdminServlet class>
>                 100
>         
>
>         
>                 SOAPMonitorService
>                 SOAPMonitorService
>                 
> org.apache.axis.monitor.SOAPMonitorService class>
>                 
>                         SOAPMonitorPort
>                         5001
>                 
>                 100
>         
>
>         
>                 AxisServlet
>                 /servlet/AxisServlet
>         
>
>         
>                 AxisServlet
>                 *.jws
>         
>
>         
>                 AxisServlet
>                 /services/*
>         
>
>         
>                 SOAPMonitorService
>                 /SOAPMonitor
>         
>
>         
>                 wsdl
>                 text/xml
>         
>
>         
>         
>                 log4jConfigLocation
>                 /WEB-INF/classes/log4j.properties
>         
>
>         
>                 contextConfigLocation
>                 
>                                 /WEB-INF/applicationContext.xml
>                                 /WEB-INF/applicationContext-hibernate.xml
>                 
>         
>
>         
>                  class>org.springframework.web.context.ContextLoaderListener class>
>         
>
>         
>                 iii
>                 
> org.springframework.web.servlet.DispatcherServlet servlet-class>
>                 1
>         
>
>         
>                 iii
>                 *.html
>         
>
>         
>                 export
>                 
> com.strongtech.iii.web.ExportReport
>         
>
>         
>                 export
>                 /export.xml
>         
>
>         
>                 export
>                 /export.csv
>         
>
>         
>                 jasperhtml
>                 
> com.strongtech.iii.web.JasperHtmlServlet class>
>         
>
>         
>                 jasperhtml
>                 /jasper.html
>         
>
>         
>                 ccbillapproval
>                 
> com.strongtech.iii.web.CCBillApproval
>         
>
>         
>                 ccbillapproval
>                 /ccbillapproval.srv
>         
> 
>
> Thanks Jeff,
>
> Jun
>
> On Apr 10, 4:29 pm, Jeff S  wrote:
>
> > Hi paulm,
>
> > Would you mind posting your web.xml file and your appengine-web.xml file?
> > The static files should be mapped in appengine-web.xml (though you can map
> > them to a default serlet in web.xml). For specific details, see:
>
> >http://code.google.com/appengine/docs/java/config/appconfig.html#Stat...
>
> > Thank you,
>
> > Jeff
>
> > On Fri, Apr 10, 2009 at 8:32 AM, paulm  wrote:
>
> > > I am using a css file in my jsp file like this:
>
> > > 
>
> > > I am getting:
>
> > > - No mapping for [/css/corp.css/index.html] in DispatcherServlet with
> > > name xxx
>
> > > I do not know why App Eng appends index.html. Is it because I am using
> > > Spring Framework for my app eng application? How can I fix the
> > > problem?
>
> > > Same for all images, it is also appending index.html after image file
> > > names.
>
> > > Thanks,- Hide quoted text -
>
> > - Show quoted text -
--~--~-~--~~~---~--~~
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: entity stuck at the wrong end of the index

2009-04-14 Thread Ben Nevile

bump.  I have observed this many times over the past few days.  Maybe
has to do with transactions and/or write contention, since there is a
lot of that in my app.

Ben



On Apr 1, 8:23 pm, Ben Nevile  wrote:
> Hi GAE team and devotees,
>
> I have a entity that looks like
>
> class FacebookUser(db.Model):
>   expired_fotm =          db.BooleanProperty()
>   last_nudged_at =        db.DateTimeProperty()
>
> and an index that looks like
>
> - kind: FacebookUser
>   properties:
>   - name: expired_fotm
>   - name: last_nudged_at
>
> Unbeknownst to the users of my application, some javascript is
> constantly polling a worker handler that finds the first entity in the
> index, operates on it, then sets "last_nudged_at" to the current
> time.  There are more than a million of these entities so it takes
> some time to go through them all.
>
> This afternoon using the Data Viewer and the GQL query "SELECT * FROM
> FacebookUser where expired_fotm=True order by last_nudged_at" I
> observed several times that an entity would remain "stuck" in the
> first position in the index after it was processed.  Usually it would
> remain there only for 10-30 seconds.  However this evening one entity
> stayed in an incorrect index position for several hours.  I put() it
> again and it properly indexed itself.
>
> Has anyone ever observed anything like this? Let me know if I'm not
> making myself clear.
>
> Ben <3 GAE
--~--~-~--~~~---~--~~
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: Yet another GQL LIMIT/OFFSET thread ...

2009-04-14 Thread Wooble

You can use offset and limit perfectly well to deal with fewer than
1000 results.  If your queries would return more results, of course
they're not very useful since the datastore won't return more then
1000 results under any circumstances.

On Apr 14, 12:44 pm, Arny  wrote:
> Hi,
>
> Any of the Gurus can explain why do google serve us with the OFFSET &
> LIMIT while you can't even use it?
>
> Tried it inside the Data Viewer and getting the following results:
> LIMIT <= 1000 : ok
> LIMIT > 1000 : failure
> OFFSET < 1000 : ok
> OFFSET < ~2800 : works partially
> OFFSET > ~2800 : timeout..
>
> How are we suppose to do dynamic results with different ORDER types
> and ability to browse them by pages?
--~--~-~--~~~---~--~~
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: Using App Engine with a Google Apps for Domains doesn't work

2009-04-14 Thread Wooble

You need to go to appengine.google.com/a/your.domain.com to login.

On Apr 13, 5:54 pm, Sarat Pediredla 
wrote:
> I signed up for App Engine Java preview using the e-mail address for
> my company, which is a Google Apps for Domain address. Everything
> seemed fine and I went through the SMS verification process and landed
> at the Create Application page.
>
> I got all excited and created an application called
> buzzmonitor.appspot.com to test an app I am writing. However, after
> creating the app, I just get re-directed back to the Create
> Application page! I can't access my App Engine Dashboard and trying to
> re-create the app proves that it already exists.
>
> I could not find an official support channel, so trying the forums to
> see if anyone else has faced similar problems?
--~--~-~--~~~---~--~~
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: legacy windows application

2009-04-14 Thread Tudor Constantin

that depends on application...if we're talking about the UI of World
of Warcraft for example, then the answer you'd receive would be
"theoretically yes, practically no".
If its a business application, it is possible, but it will have to be
fully redesigned and rewritten :)


On Mon, Apr 13, 2009 at 11:11 PM, TimH  wrote:
>
> I have a legacy windows application I want to make available on the
> web. Is this possible with App Engine?
>
> >
>



-- 
Quarix framework developer --- Ajax on Progress
www.quarix.net
http://blogspot.tudorconstantin.com
http://www.linkedin.com/in/tudorconstantin

Samuel Goldwyn  - "A wide screen just makes a bad film twice as
bad." - http://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html

--~--~-~--~~~---~--~~
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: Any way to download back the web applications on google apps?

2009-04-14 Thread Andrew Badera
Also, you never, ever hardcode a password. Eventually, hackers will
find/extract/replicate it.


On Tue, Apr 14, 2009 at 1:05 PM, Prashant Gupta wrote:

> is there any way/trick to make code secure, like, suppose i want to put i a
> secret password, say a website's authentication, in my code, now anyone can
> read my code using a disassembler ! is there any way to avoid/hide that..?
>
>
> >
>

--~--~-~--~~~---~--~~
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: Any way to download back the web applications on google apps?

2009-04-14 Thread Andrew Badera
Obfuscators help, but any bytecode/vm language is going to be especially
vulnerable to reverse engineering in this fashion.


On Tue, Apr 14, 2009 at 1:05 PM, Prashant Gupta wrote:

> is there any way/trick to make code secure, like, suppose i want to put i a
> secret password, say a website's authentication, in my code, now anyone can
> read my code using a disassembler ! is there any way to avoid/hide that..?
>
>
> >
>

--~--~-~--~~~---~--~~
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] SMS Verification Difficulties

2009-04-14 Thread mprogers

I am having problems uploading my first application.  I apparently
sent myself too many SMS messages (they were being blocked by an
obscure setting with my carrier, so I kept retrying), and now I have
exceeded my quota:  "The phone number has been sent too many messages
or has already been used to confirm an account."

What can I do?  There's a form to complain about SMS messages, but it
doesn't have any contact information, and I was hoping to be able to
demo something in class tomorrow.

Thanks for any advice,

Michael

--~--~-~--~~~---~--~~
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] Step2 on GAE

2009-04-14 Thread InnovationHero

How to implement step2(openID + OAuth) on GAE? Is there a GAE-specific
way for doing this? if yes, what is the Java preferences on this
regard?

--~--~-~--~~~---~--~~
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] Using App Engine with a Google Apps for Domains doesn't work

2009-04-14 Thread Sarat Pediredla

I signed up for App Engine Java preview using the e-mail address for
my company, which is a Google Apps for Domain address. Everything
seemed fine and I went through the SMS verification process and landed
at the Create Application page.

I got all excited and created an application called
buzzmonitor.appspot.com to test an app I am writing. However, after
creating the app, I just get re-directed back to the Create
Application page! I can't access my App Engine Dashboard and trying to
re-create the app proves that it already exists.

I could not find an official support channel, so trying the forums to
see if anyone else has faced similar problems?

--~--~-~--~~~---~--~~
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] Using referenced class properties in GQL Query WHERE clause

2009-04-14 Thread olex13

Hi,

Is it possible to use referenced-class properties in GQL query, like:

Thread.gql("WHERE user.email = :1", email)

class Thread(db.Model)
  user = dbReferenceProperty(User)

class User(db.Model)
 email = db.EmailProperty()

It seems logical to support this but I get: BadQueryError: Parse
Error: Invalid WHERE Condition at symbol .email

--
Olex

--~--~-~--~~~---~--~~
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: Google AppEngine for Java registration

2009-04-14 Thread Nav

Hi,

I have the same problem.  Is there any place to log these issues?

Thanks

Nav

On Apr 9, 2:09 pm, Jeff S  wrote:
> Hi Rubem,
>
> You should be all set. Could you try it again?
>
> Thank you,
>
> Jeff
>
> On Wed, Apr 8, 2009 at 10:06 AM, Rubem Azenha wrote:
>
> > Hi,
>
> > I'm not sure this is the rigth place for this message, but I was unable to
> > another place more suitable...
>
> > I made my registration some hours ago for the Google AppEngine for Java (I
> > already owned a Python account). Then  I received an e-mail from
> > appengine.nore...@google.com (which  is copied above).
>
> > The e-mail says:
> > "To start creating applications with Google App Engine, simply follow this
> > link
> > (you may need to sign in with your rubem.aze...@gmail.com Google Account)
> > and
> > verify your account with a mobile phone number if you have not already done
> > so:
>
> >http://appengine.google.com/";
>
> > But when I follow the link, it leads to the standard appengine site, with
> > no place where I can put my mobile phone number. I never informed my mobile
> > phone number to the AppEngine staff.
>
> > It also says:
> > "If you are having trouble verifying your account via SMS please fill
> > out the following form and your account will be reviewed and enabled
> > as soon as possible:
>
> >http://appengine.google.com/waitlist/sms_issues
> > "
>
> > But when I click in that link, it leads to the
> >http://appengine.google.com/site :(
>
> > I tried to create a Java application, but I didn´t find any place to do so,
> > only the standard python apps.
>
> > Does anyone know what can I do in order to use Java?
>
> > -- Forwarded message --
> > From: 
> > Date: Wed, Apr 8, 2009 at 2:19 AM
> > Subject: Welcome to an early look at Google App Engine for Java!
> > To: rubem.aze...@gmail.com
>
> > Hello,
>
> > Thanks for signing up to try Google App Engine for Java!  Your account has
> > now
> > been activated, so you can begin building applications with our new Java
> > runtime.
>
> > Please note that this is still an early look at our support for the Java
> > language and you may encounter issues during development. We look forward
> > to
> > hearing your feedback! To learn more, please visit:
>
> >http://code.google.com/appengine/docs/java/overview.html
>
> > To start creating applications with Google App Engine, simply follow this
> > link
> > (you may need to sign in with your rubem.aze...@gmail.com Google Account)
> > and
> > verify your account with a mobile phone number if you have not already done
> > so:
>
> >http://appengine.google.com/
>
> > If you are having trouble verifying your account via SMS please fill
> > out the following form and your account will be reviewed and enabled
> > as soon as possible:
>
> >http://appengine.google.com/waitlist/sms_issues
>
> > Thanks!
> > The Google App Engine Team
>
> > Java is a registered trademark of Sun Microsystems, Inc.
>
> > --
> >http://razenha.wordpress.com/
> > George Burns 
> > - "I spent a year in that town, one Sunday."

--~--~-~--~~~---~--~~
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] Private Gadgets on Google App Engine

2009-04-14 Thread Timothy Fisher

I understand that Google Apps Premier customers can host private
Google Gadgets.  I'm assuming this means gadgets that are hosted on
the Google App Engine platform and that can not be seen by users
outside of the premier client's domain.  There is a document on the
Google site that shows how to setup a private gadget running on GAE.

I have two questions about running private gadgets that are on Google
App Engine:

1. - Is it true that ONLY Google Premier customers can have gadgets
that are private?  If you are not a Google Premier customer, any
gadgets that you write on Google App Engine will be available to all
users in the general public?

2. - If a customer IS a Google Premier customer and they setup a
Gadget as a private gadget.  Can that gadget be deployed in a non-
google container?  Or can private gadgets be deployed only to Google
Sites???

Thanks,
Timothy Fisher

--~--~-~--~~~---~--~~
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] Yet another GQL LIMIT/OFFSET thread ...

2009-04-14 Thread Arny

Hi,

Any of the Gurus can explain why do google serve us with the OFFSET &
LIMIT while you can't even use it?

Tried it inside the Data Viewer and getting the following results:
LIMIT <= 1000 : ok
LIMIT > 1000 : failure
OFFSET < 1000 : ok
OFFSET < ~2800 : works partially
OFFSET > ~2800 : timeout..

How are we suppose to do dynamic results with different ORDER types
and ability to browse them by pages?

--~--~-~--~~~---~--~~
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: PHP on GAE using Quercus

2009-04-14 Thread citydude

Download the war folder to run PHP on the google app engine from here
http://www.webdigi.co.uk/blog/2009/run-php-on-the-google-app-engine/

On Apr 10, 6:28 pm, Moriyoshi Koizumi  wrote:
> Hi,
>
> Finally I pushed my local work to GitHub. See HOWTO to reproduce the attempt.
>
> http://github.com/moriyoshi/quercus-gae/
>
> Enjoy!
> Moriyoshi
>
> On Fri, Apr 10, 2009 at 2:44 AM, moriyoshi  wrote:
> > Hi,
>
> > Probably this is not a news, but I couldn't find a similar attempt so
> > here goes... I managed to get (patched) Quercus [1] to work on GAE.
> > This means now you can run considerable number of PHP application.
>
> > I'm going to post further details to my blog (http://d.hatena.ne.jp/
> > moriyoshi/  - mostly in Japanese).
>
> > Hope you are interested.
> > Moriyoshi
>
> > [1]http://quercus.caucho.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: Estimating cost for iPhone app backend

2009-04-14 Thread Jim Collins

> I have an app with a single "producer" and single "consumer" running
> on my local machine.

MY only question about your calculations is that you state that they
are based upon your local machine.  I assume two things.  One you are
running the app engine SDK and two that you cannot equate CPU usage on
your local machine to CPU usage on Google servers. I would suggest you
actually upload your application at test it there to get a definitive
answer on actual usage.

As an aside, I am looking at using GAE for an iPhone application
also.  My biggest concern is the lack of an interface to APNS and
possibly some limitations on blob storage size. I think it is limited
to 1 megabyte.  Good luck,

Jim

--~--~-~--~~~---~--~~
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] Private Gadgets on Google App Engine

2009-04-14 Thread Timothy Fisher

I understand that Google Apps Premier customers can host private
Google Gadgets.  I'm assuming this means gadgets that are hosted on
the Google App Engine platform and that can not be seen by users
outside of the premier client's domain.  There is a document on the
Google site that shows how to setup a private gadget running on GAE.

I have two questions about running private gadgets that are on Google
App Engine:

1. - Is it true that ONLY Google Premier customers can have gadgets
that are private?  If you are not a Google Premier cusomter, any
gadgets that you write on Google App Engine will be available to all
users in the general public?

2. - If a customer IS a Google Premier customer and they setup a
Gadget as a private gadget.  Can that gadget be deployed in a non-
google container?  Or can private gadgets be deployed only to Google
Sites???

Thanks,
Timothy Fisher

--~--~-~--~~~---~--~~
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] Verification issues and http://appengine.google.com/waitlist/sms_issues not working

2009-04-14 Thread Michael Makunas

Apologies for my first post here being a plea for help, but the normal
channels seem to be broken. I attempted to submit this via
http://appengine.google.com/waitlist/sms_issues but all I get is an
error that says "Comment" and nothing else when I submit the form.

I first signed up with my michael.maku...@gmail.com account. I got
through the verification process and got to to the point where I pick
a name and it came back saying "makunas" was already taken. Seeing as
I rarely come across a situation where my last name isn't unique, I
thought I might have already signed up using my mich...@makunas.com
account (google apps for domains). When I went down that path and
tried to verify, it said I couldn't use the same mobile more than
once. The problem now is that neither account works. Both are asking
for verification and both say sorry you've used that number before.


Many thanks,
Michael

--~--~-~--~~~---~--~~
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] index.yaml

2009-04-14 Thread PJ Fitzpatrick
Hi,
My index.yaml file is not updating in the development environment. I am
using Eclipse (PyDev) on Vista. I have deleted the index.yaml file and
restarted the dev server and also checked the line endings which are \n ( as
i read there was a know issue with \r\n line endings).
Has anyone gone any idea what is the problem?
tks,
PJ

--~--~-~--~~~---~--~~
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: JDO vs. JPA persistence

2009-04-14 Thread Nikolay Gorylenko

as a sidenote: probably this question will receive more answers in
dedicated "AppEngine-Java" group:
http://groups.google.com/group/google-appengine-java/topics

On Tue, Apr 14, 2009 at 11:12 AM, 风笑雪  wrote:
> In my opinion, they looks rather like. You can switch to each other very
> fast, and no difference between their functions.
> But since there are more docs for JDO, so I think you would like to start
> with it.
>
> 2009/4/14 Alexander Orlov 
>>
>> Are there any guidelines in which cases who should use which layer for
>> which purpose? I assume Google supports a second persistence layer to
>> stay compatible to existent implementations. But which layer should I
>> use when I start a project from scratch?
>>
>
>
> >
>

--~--~-~--~~~---~--~~
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] Throwing IO exception while deploying on google app engine

2009-04-14 Thread shiv

An internal error occurred during: "Deploying googleSampleProject to
Google".
Received IOException parsing the input stream for C:/Documents and
Settings/shivaraja_s/GoogleWorkspace/googleSampleProject/war\WEB-INF/
web.xml

--~--~-~--~~~---~--~~
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: PHP on GAE using Quercus

2009-04-14 Thread citydude

Hi All,

See details on how to Run PHP on Google App Engine using Quercus
http://www.webdigi.co.uk/blog/2009/run-php-on-the-google-app-engine/
Just download the file in the link and you can run PHP on app engine
in minutes.
Also see http://phpwithjava.appspot.com/webdigi.php

Regards

On Apr 10, 6:28 pm, Moriyoshi Koizumi  wrote:
> Hi,
>
> Finally I pushed my local work to GitHub. See HOWTO to reproduce the attempt.
>
> http://github.com/moriyoshi/quercus-gae/
>
> Enjoy!
> Moriyoshi
>
> On Fri, Apr 10, 2009 at 2:44 AM, moriyoshi  wrote:
> > Hi,
>
> > Probably this is not a news, but I couldn't find a similar attempt so
> > here goes... I managed to get (patched) Quercus [1] to work on GAE.
> > This means now you can run considerable number of PHP application.
>
> > I'm going to post further details to my blog (http://d.hatena.ne.jp/
> > moriyoshi/  - mostly in Japanese).
>
> > Hope you are interested.
> > Moriyoshi
>
> > [1]http://quercus.caucho.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: Cron Schedule Format parsing error

2009-04-14 Thread daly


I tried and met this error too.
You can solve it by
every mon of month 09:00

month looks like replacing all months,
but there seems no abbr. for weekdays,
so I have to using
"every mon,tue,wed,thu,fri,sat,sun of month 00:00"
for my target

hope they can add 'days' or 'day' for replacing the long days string

--~--~-~--~~~---~--~~
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 Security

2009-04-14 Thread vij...@gmail.com


Hi Jeff

Thanks for your reply.

I am really enjoying using this and I can see a great benefit in my
projects from this. However, as I said, I have to deal with non-
technical people who will ask questions similar to the following. I
would like to be able to give them some answers, so any help you could
give me would be appreciated.

1. Security certifications done by banks or financial institutions in
the US / Europe / Australia markets. I'll hunt up a list and post back
if you need more info.
2. Legal implications of data storage locations. Can users like me
specify that data storage be restricted to specific countries or
geographic markets; eg. Australia?
3. Also, I was reading online about GAE offering TLS/SNI for user
domains other than *.appspot.com. Would you be able to give any
indications as to when this would be available?

Thanks for your help.

Regards

vw


On Apr 14, 4:11 am, Jeff S  wrote:
> Hi vw,
>
> What are some of the specific certifications you are interested in? What
> would be most helpful?
>
> Thank you,
>
> Jeff
>
>
>
> On Fri, Apr 10, 2009 at 3:38 PM, vij...@gmail.com  wrote:
>
> > Hi
>
> > I am very interested in the app engine and the cloud computing
> > approach. However, I have a question regarding Google data centre
> > security.
>
> > I work in the insurance / financial services sector and when I have to
> > pitch solutions to clients, often managers, especially ones who are
> > not very technical, ask about the security at the data centre. They
> > wouldn't know or probably even care or understand the answers;
> > however, they look at industry certifications.
>
> > Basically, I need to name-drop certifications in lieu of technical
> > talk. I was wondering which certifications of the google data centres
> > I could talk about.
>
> > Thanks
>
> > Regards
>
> > vw

--~--~-~--~~~---~--~~
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: can data persistence support Hibernate?

2009-04-14 Thread 王新
GEA support Spring Framework,but only can use IOC and AOP ,can't use
hibernate templete and so on, sine the GEA don't support SQL,so it's not
support Hibernate.You can't use Hibernate and EJB3 also,but you can use JDO2
and JPA.

2009/4/9 tang qingyuan 

>
> Hi team
>
> very glad to see google app engine support Java now ,which is the
> thing we are looking forward.
>
> I have read the user guidance and found the google app engine use JDO
> to performance that the data persistence, I wonder whether I can use
> Hibernate to do that as our web apps is based on it?
>
> Also I want to know the MVC layer does the google app engine support
> Spring?
>
> Thanks a lot!
>
> >
>

--~--~-~--~~~---~--~~
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: Try to deploy RESTful application using Jersey

2009-04-14 Thread 王新
GAE don't support EJB and naming service.so you cant use javax.naming.*

2009/4/9 aldbaran 

>
> Hi,
>
> I have an issue to deploy a web application based on Jersey.
> It works without problem locally with the SDK, but when I try to
> access the deployed version in appEngine, the following message
> appears in the logs:
>
>   java.lang.NoClassDefFoundError: javax.naming.InitialContext is a
> restricted class
>
> This limitation will be removed later?
>
> >
>

--~--~-~--~~~---~--~~
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: PHP on GAE using Quercus

2009-04-14 Thread diablonhn

Hi moriyoshi,

Awesome work!  There are a few modules that are missing from your
com.caucho.quercus.QuercusModule file:

com.caucho.quercus.lib.curl.CurlModule
com.caucho.quercus.lib.date.DateModule
com.caucho.quercus.lib.file.FileModule
com.caucho.quercus.lib.gettext.GettextModule
com.caucho.quercus.lib.json.JsonModule
com.caucho.quercus.lib.i18n.MbstringModule
com.caucho.quercus.lib.mcrypt.McryptModule
com.caucho.quercus.lib.reflection.ReflectionModule
com.caucho.quercus.lib.string.StringModule
com.caucho.quercus.lib.i18n.UnicodeModule
com.caucho.quercus.lib.xml.DomModule
com.caucho.quercus.lib.xml.XmlModule
com.caucho.quercus.lib.xml.XMLWriterModule
com.caucho.quercus.lib.zip.ZipModule
com.caucho.quercus.lib.zlib.ZlibModule
com.caucho.quercus.lib.jms.JMSModule
com.caucho.quercus.lib.pdf.PDFModule
com.caucho.quercus.lib.bam.BamModule

Most of them are essential.  Some don't apply in the GAE environment.
Also, I think you should include the
com.caucho.quercus.QuercusClass file.  That file lists Java classes
that back the equivalent PHP classes.

On Apr 10, 10:28 am, Moriyoshi Koizumi  wrote:
> Hi,
>
> Finally I pushed my local work to GitHub. See HOWTO to reproduce the attempt.
>
> http://github.com/moriyoshi/quercus-gae/
>
> Enjoy!
> Moriyoshi
>
> On Fri, Apr 10, 2009 at 2:44 AM, moriyoshi  wrote:
> > Hi,
>
> > Probably this is not a news, but I couldn't find a similar attempt so
> > here goes... I managed to get (patched) Quercus [1] to work on GAE.
> > This means now you can run considerable number of PHP application.
>
> > I'm going to post further details to my blog (http://d.hatena.ne.jp/
> > moriyoshi/  - mostly in Japanese).
>
> > Hope you are interested.
> > Moriyoshi
>
> > [1]http://quercus.caucho.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] Discussion on google-app-engine-open-source-projects

2009-04-14 Thread tallstreet

I've created a directory of open source app engine applications at
http://appjects.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] Error creating application

2009-04-14 Thread Brendan

I've just been activited to use Google App Engine for Java.

I've verified my account using SMS.

When I go to http://appengine.google.com/, i'm redirected to
http://appengine.google.com/start which asks me to enter an app name
and title.  I enter these details and press save.  I'm redirected to
http://appengine.google.com/start again, which asks me to enter
another app name and title.  My app has been created, as i cannot use
my old app name.

This can't be the way it's meant to work.  Perhaps something is wrong
with my account.

Brendan

--~--~-~--~~~---~--~~
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] Still stuck at square -1 :-(

2009-04-14 Thread Michael Rogers
Hi, All:

I tried to get a verification code using SMS, but tried too many  
times, so I keep getting this message:  "The phone number has been  
sent too many messages or has already been used to confirm an account".

I created another google account, and used my spouse's cellphone, and  
that worked:  but I still would like to be able to use my original  
account.

I went back to my original account, and tried my daughter's cell  
phone, and got this:  "You have sent too many SMS verification  
messages."

How am I supposed to get this reset?  I'm running out of accounts and  
relatives :-)

Thanks for any insights,

Michael

--~--~-~--~~~---~--~~
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] IntegerProperty doesn't result in an int

2009-04-14 Thread alex

Got a class that extends db.Model with an IntegerProperty among the
others. It's gets set at creation time (moreover, has required=True).
Now, when I fetch an instance of this class, all other properties
resolve just fine (StringProperty, DateTimeProperty, etc.). Now,
passing IntegerProperty to str(), here's what I get:
--
>
--
.filter('int_property = ', some_int_value) doesn't work as well.
How could that be?
TIA.

--~--~-~--~~~---~--~~
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] legacy windows application

2009-04-14 Thread TimH

I have a legacy windows application I want to make available on the
web. Is this possible with App Engine?

--~--~-~--~~~---~--~~
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] Announcing new Google App Engine SDK installable Live CD appliance

2009-04-14 Thread Liraz

Hi everyone,

I'm one of the developers for TurnKey Linux, a community oriented open
source project developing a family of free, Ubuntu-based installable
Live CDs which are lightweight and optimized for ease of use in server-
type usage scenarios (e.g., LAMP, Joomla CMS, Drupal, Ruby on Rails):

http://www.turnkeylinux.org/appliances

We're proud to announce the release of a new installable Live CD
appliance which bundles Google App Engine SDK as a turn-key server
image that can run on real hardware in addition to most types of
virtual machines (e.g., VMWare, VirtualBox, Parallels, Xen HVM). It is
designed to provide users with a pre-integrated, auto-updating, turn-
key operating system environment that is carefully built from the
ground up with the minimum components needed to run Google App Engine
SDK in a with minimum hassle.

Basically this is an extremely easy way to get up and running with
Google App Engine SDK in just a few minutes.

Feature highlights:

* Auto-updated daily with latest security patches
* SSL support out of the box
* Elegant Web administration interface (Mac OS X themed)
* Minimal footprint (120MB)

Full details: http://www.turnkeylinux.org/appliances/appengine

BTW, this type of pre-integrated, ready-to-use system is typically
called a software appliance:

http://en.wikipedia.org/wiki/Software_appliance

Take a look and tell us what you think!

--~--~-~--~~~---~--~~
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: Any way to download back the web applications on google apps?

2009-04-14 Thread Prashant Gupta
is there any way/trick to make code secure, like, suppose i want to put i a
secret password, say a website's authentication, in my code, now anyone can
read my code using a disassembler ! is there any way to avoid/hide that..?

--~--~-~--~~~---~--~~
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] Invitation to connect on LinkedIn

2009-04-14 Thread Ping Chen
LinkedIn


Ping Chen requested to add you as a connection on LinkedIn:
--

Jeffrey,

I'd like to add you to my professional network on LinkedIn.

- Ping

View invitation from Ping Chen
http://www.linkedin.com/e/uifMZ-T7b9GsH25qr9fM0MXSDyAmv85v9bbh9PVSjEG4vbbhWX/blk/1136016661_2/0OnP4SdzoNc3oPcj4LqnpPbOYWrSlI/svi/

--

Why might connecting with Ping Chen be a good idea?

Have a question? Ping Chen's network will probably have an answer:
You can use LinkedIn Answers to distribute your professional questions to Ping 
Chen and your extended network. You can get high-quality answers from 
experienced professionals.

http://www.linkedin.com/e/ash/inv19_ayn/

 
--
(c) 2009, LinkedIn Corporation


--~--~-~--~~~---~--~~
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: Any way to download back the web applications on google apps?

2009-04-14 Thread Andrew Badera
Assemblers/compilers don't (generally ... maybe as a rule?) retain any
unnecessary information, in the spirit of keeping the binary small.
Therefore disassembly can't provide original names without outside
information.


On Tue, Apr 14, 2009 at 12:52 PM, Prashant Gupta wrote:

> no, i didn't really know that. i was just guessing that it won't give
> original names, i just wanted to confirm. Now, i surely know ! :)
>
> 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: Any way to download back the web applications on google apps?

2009-04-14 Thread Prashant Gupta
no, i didn't really know that. i was just guessing that it won't give
original names, i just wanted to confirm. Now, i surely know ! :)

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: Any way to download back the web applications on google apps?

2009-04-14 Thread Andrew Badera
Of course not, but you knew that before you asked. It's better than having
nothing at all however, if you've otherwise lost your source.



2009/4/14 Prashant Gupta 

> ok, will disassembled/decompiled code have all variable/member names exact
> same as in original source??
>
>
>
> On Tue, Apr 14, 2009 at 9:54 PM, 风笑雪  wrote:
>
>>
>> For Python, you can see this project:
>>
>> http://code.google.com/p/appfilesbrowser/
>> 2009/4/14 Aaron 
>>
>>>
>>> Question is in the subject.
>>>
>>> I want to know if their is any way I can download the web app in my
>>> case a website so I can back it up.
>>>
>>> Just asking because I need a backup of the website.
>>>
>>>
>>
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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: Any way to download back the web applications on google apps?

2009-04-14 Thread Prashant Gupta
ok, will disassembled/decompiled code have all variable/member names exact
same as in original source??


On Tue, Apr 14, 2009 at 9:54 PM, 风笑雪  wrote:

>
> For Python, you can see this project:
>
> http://code.google.com/p/appfilesbrowser/
> 2009/4/14 Aaron 
>
>>
>> Question is in the subject.
>>
>> I want to know if their is any way I can download the web app in my
>> case a website so I can back it up.
>>
>> Just asking because I need a backup of the website.
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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 deal with "Your application is exceeding a quota: Datastore Indices Count" ?

2009-04-14 Thread Tom Wu
Hi Jeff,

Just check my dashboard. Now is OK.

Thanks a lot.


Best Regards
Tom Wu




2009/4/15 Jeff S 

> Hi Tom,
>
> How long ago did you upload the indexes? The index build could take some
> time depending on the size, shape, and number of the entities in your app (a
> few hours is not unheard of, but more than a day usually means there is a
> problem).
>
> Thank you,
>
> Jeff
>
> 2009/4/13 Tom Wu 
>
> Hi Jeff,
>>
>> Already delete unneeded indexes by vacuum_indexes.
>> But the msg in the index Control panel still building  and the datastore
>> quota didn't come back.
>>
>> Thanks.
>>
>> Best Regards
>> Tom Wu
>>
>>
>>
>> 2009/4/14 Jeff S 
>>
>> Hi Tom,
>>>
>>> The building indexes should no longer be stuck. Were you planning to
>>> delete some of the old-unneeded indexes, or did your app need more than 100?
>>>
>>> Thank you,
>>>
>>> Jeff
>>>
>>> 2009/4/10 service G2100 
>>>
>>> Hi Jeff,

 My app ID  is gae0081. Thanks in advance.


 Best Regards
 Tom Wu


 2009/4/11 Jeff S 

 Hi Tom,
>
> Could you send me the app ID? I'll investigate further.
>
> Thank you,
>
> Jeff
>
> 2009/4/10 Tom Wu 
>
>
>> Sorry,
>>
>> My app is billing enabled.
>> The indexes still in "building" status even the kind is empty.
>>
>>
>> Best Regards
>> Tom Wu
>>
>>
>> On 4月10日, 上午2時09分, Jeff S  wrote:
>> > Hi Tom,
>> >
>> > I would start by editing the index.yaml file then use
>> >
>> > appcfg.py vacuum_indexes
>> >
>> > to remove indexes from the app which are no longer specified in your
>> > index.yaml. You might have tried this already, so please let me know
>> if this
>> > fixes the issue. If not, could you email me your app ID?
>> >
>> > Thank you,
>> >
>> > Jeff
>> >
>> > On Wed, Apr 8, 2009 at 1:43 AM, Tom Wu 
>> wrote:
>> >
>> > > How to deal with  "Your application is exceeding a quota:
>> Datastore
>> > > Indices Count" ?
>> >
>> > > Best Regards
>> > > Tom Wu
>> >
>> >
>>
>>
>
>
>



>>>
>>>
>>>
>>
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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: Any way to download back the web applications on google apps?

2009-04-14 Thread Tom Wu
Thanks
风笑雪

2009/4/15 风笑雪 

>
> For Python, you can see this project:
>
> http://code.google.com/p/appfilesbrowser/
> 2009/4/14 Aaron 
>
>
>> Question is in the subject.
>>
>> I want to know if their is any way I can download the web app in my
>> case a website so I can back it up.
>>
>> Just asking because I need a backup of the website.
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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 deal with "Your application is exceeding a quota: Datastore Indices Count" ?

2009-04-14 Thread Jeff S
Hi Tom,

How long ago did you upload the indexes? The index build could take some
time depending on the size, shape, and number of the entities in your app (a
few hours is not unheard of, but more than a day usually means there is a
problem).

Thank you,

Jeff

2009/4/13 Tom Wu 

> Hi Jeff,
>
> Already delete unneeded indexes by vacuum_indexes.
> But the msg in the index Control panel still building  and the datastore
> quota didn't come back.
>
> Thanks.
>
> Best Regards
> Tom Wu
>
>
>
> 2009/4/14 Jeff S 
>
> Hi Tom,
>>
>> The building indexes should no longer be stuck. Were you planning to
>> delete some of the old-unneeded indexes, or did your app need more than 100?
>>
>> Thank you,
>>
>> Jeff
>>
>> 2009/4/10 service G2100 
>>
>> Hi Jeff,
>>>
>>> My app ID  is gae0081. Thanks in advance.
>>>
>>>
>>> Best Regards
>>> Tom Wu
>>>
>>>
>>> 2009/4/11 Jeff S 
>>>
>>> Hi Tom,

 Could you send me the app ID? I'll investigate further.

 Thank you,

 Jeff

 2009/4/10 Tom Wu 


> Sorry,
>
> My app is billing enabled.
> The indexes still in "building" status even the kind is empty.
>
>
> Best Regards
> Tom Wu
>
>
> On 4月10日, 上午2時09分, Jeff S  wrote:
> > Hi Tom,
> >
> > I would start by editing the index.yaml file then use
> >
> > appcfg.py vacuum_indexes
> >
> > to remove indexes from the app which are no longer specified in your
> > index.yaml. You might have tried this already, so please let me know
> if this
> > fixes the issue. If not, could you email me your app ID?
> >
> > Thank you,
> >
> > Jeff
> >
> > On Wed, Apr 8, 2009 at 1:43 AM, Tom Wu 
> wrote:
> >
> > > How to deal with  "Your application is exceeding a quota: Datastore
> > > Indices Count" ?
> >
> > > Best Regards
> > > Tom Wu
> >
> >
>
>



>>>
>>>
>>>
>>
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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: Need Index Quota Reset

2009-04-14 Thread Tom Wu
Hi Jeff,

My app ID is gae0081. Thanks in advance.

Best Regards
Tom Wu


2009/4/14 Jeff S 

> Hi all,
>
> What are the app ID's for your apps? I can assist you in cleaning these up.
>
> Thank you,
>
> Jeff
>
> 2009/4/14 Tom Wu 
>
> After
>>
>> 1. Delete index in your index.yaml
>> 2. use "appcfg.py vacuum ..." to delete your index at server side
>>
>> Still can't get the credited back.
>>
>> The indexes chart stuck in "building" status for few days.
>>
>>
>> Best Regards
>> Tom Wu
>>
>>
>> 2009/4/14 秦锋 
>>
>>
>>> 1. Delete index in your index.yaml
>>> 2. use "appcfg.py vacuum ..." to delete your index at server side.
>>>
>>> On 4月14日, 上午11时57分, Devel63  wrote:
>>> > I have an app that's giving me a Number Indexes Exceeds Quota message.
>>> >
>>> > My understanding is that vacuumed indexes are not automatically
>>> > credited back.
>>> >
>>> > Can someone at Google reset my accounting?  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: Any way to download back the web applications on google apps?

2009-04-14 Thread 风笑雪
For Python, you can see this project:

http://code.google.com/p/appfilesbrowser/
2009/4/14 Aaron 

>
> Question is in the subject.
>
> I want to know if their is any way I can download the web app in my
> case a website so I can back it up.
>
> Just asking because I need a backup of the website.
> >
>

--~--~-~--~~~---~--~~
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: Any way to download back the web applications on google apps?

2009-04-14 Thread Andrew Badera
FWIW, Java binaries can be fairly easily disassembled/decompiled ...


On Tue, Apr 14, 2009 at 12:14 PM, Prashant Gupta wrote:

> if you are talking about java version, no ! because google compiles all
> your jsps and servlets before uploading and ofcourse doesn't upload you
> source code... even if you somehow download it back, i think it won't be
> useful for you anymore
>
>
> >
>

--~--~-~--~~~---~--~~
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: Any way to download back the web applications on google apps?

2009-04-14 Thread Prashant Gupta
if you are talking about java version, no ! because google compiles all your
jsps and servlets before uploading and ofcourse doesn't upload you source
code... even if you somehow download it back, i think it won't be useful for
you anymore

--~--~-~--~~~---~--~~
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] Any way to download back the web applications on google apps?

2009-04-14 Thread Aaron

Question is in the subject.

I want to know if their is any way I can download the web app in my
case a website so I can back it up.

Just asking because I need a backup of the website.
--~--~-~--~~~---~--~~
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: Need Index Quota Reset

2009-04-14 Thread Jeff S
Hi all,

What are the app ID's for your apps? I can assist you in cleaning these up.

Thank you,

Jeff

2009/4/14 Tom Wu 

> After
>
> 1. Delete index in your index.yaml
> 2. use "appcfg.py vacuum ..." to delete your index at server side
>
> Still can't get the credited back.
>
> The indexes chart stuck in "building" status for few days.
>
>
> Best Regards
> Tom Wu
>
>
> 2009/4/14 秦锋 
>
>
>> 1. Delete index in your index.yaml
>> 2. use "appcfg.py vacuum ..." to delete your index at server side.
>>
>> On 4月14日, 上午11时57分, Devel63  wrote:
>> > I have an app that's giving me a Number Indexes Exceeds Quota message.
>> >
>> > My understanding is that vacuumed indexes are not automatically
>> > credited back.
>> >
>> > Can someone at Google reset my accounting?  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: Versions issue

2009-04-14 Thread Николай Тенев

Yes, I have this message. 24 hours later, after quotas reset it
disappear, but problem still exist :)

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] Re: Versions issue

2009-04-14 Thread Wiiboy

I remember, I had this problem.  It's really strange.  Just by chance,
in the administration console dashboard, does it say you have exceeded
any quotas?

When that happened to me, it said I had exceeded "App Config Service
Config App
Call Count".  It still won't let me use that version (version 1 for
me).

I'd love to see someone tell us how to fix this, but until then,
you'll have to use version 1.
--~--~-~--~~~---~--~~
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: Cron and app versions

2009-04-14 Thread 风笑雪
I haven't tried this, but I think it should be an issue.

The cron.yaml doesn't contain a version filed, so it should request the
default version, I mean yourapp.appspot.com/path, not
yourversion.yourapp.appspot.com/path.

If you switch to another version that doesn't contain a cron.yaml file, I
think the cron ought to stop.

2009/4/14 William Shallum 

>  Hi, when using cron in an app with multiple versions, shouldn’t the cron
> job run on the version that has the cron.yaml? It seems that currently the
> cron job is run on the default version.
>
>
>
> I changed the version in the admin console using the dropdown box but my
> cron jobs (that are only in the latest version) are still displayed. The
> cron job itself is marked as “failed” while a manual GET using a browser to
> the versioned address does not result in an error. The cron requests show up
> as 404 errors in the request logs of the default version. Bug?
>
>
>
> Thanks,
>
> William
>
> >
>

--~--~-~--~~~---~--~~
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: Need Index Quota Reset

2009-04-14 Thread Tom Wu
After

1. Delete index in your index.yaml
2. use "appcfg.py vacuum ..." to delete your index at server side

Still can't get the credited back.

The indexes chart stuck in "building" status for few days.


Best Regards
Tom Wu


2009/4/14 秦锋 

>
> 1. Delete index in your index.yaml
> 2. use "appcfg.py vacuum ..." to delete your index at server side.
>
> On 4月14日, 上午11时57分, Devel63  wrote:
> > I have an app that's giving me a Number Indexes Exceeds Quota message.
> >
> > My understanding is that vacuumed indexes are not automatically
> > credited back.
> >
> > Can someone at Google reset my accounting?  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: Estimating cost for iPhone app backend

2009-04-14 Thread bFlood

if you are using MySQL, I think you will need EBS storage to persist
the datafiles as well. While still reasonable, its definitely more
then S3 or SimpleDB

cheers
brian

On Apr 14, 6:59 am, Thomas Fors  wrote:
> I was anticipating using MySQL as the work-horse on EC2 and only using
> S3 for persistence.  I'm not familiar enough with SimpleDB but perhaps
> I should have a look and run some tests comparing it to GAE's
> datastore.
>
> Thanks
> --Tom
>
> On Apr 14, 1:42 am, Alkis Evlogimenos ('Αλκης Ευλογημένος)
>
>  wrote:
> > You are comparing AppEngine's indexed/queryable storage with S3's blobstore.
> > To do a fairer comparison you would want to compare with SimpleDB 
> > instead:http://aws.amazon.com/simpledb/#pricing
>
> > On Tue, Apr 14, 2009 at 3:36 AM, Thomas Fors  wrote:
>
> > > Hello,
>
> > > I've been doing some tests to see if GAE is feasible as a backend for
> > > an iPhone app I'm working on.  So far, it appears that CPU Time is
> > > going to drive the cost up to beyond Amazon EC2+S3 costs.  If I've
> > > made a mistake in my math, I'd appreciate any corrections.
>
> > > I have an app with a single "producer" and single "consumer" running
> > > on my local machine.  The producer uses remote_api to perform
> > > datastore puts and the consumer performs datastore gets.  I've run
> > > them over the past 17 hours, and the Quota Details page shows 0.2GB
> > > incoming and 0.2GB outgoing bandwidth.  CPU Time has been 0.84 CPU-
> > > hours with 6608 requests.  That says I'm using about 458 CPU-
> > > milliseconds per request.
>
> > > Google claims in May, their new free quota of 6.5 CPU-hours per day
> > > will support 5 million page views per month which means they're
> > > estimating 142 CPU-milliseconds per request.
>
> > > If I stick with the 458 CPU-milliseconds per request number, and
> > > assume my iPhone app is very popular and I do get 5 million requests
> > > per month, I'll consume 21 CPU-hours per day which is close enough to
> > > 24 CPU-hours per day that I decided to compare GAE to a dedicated
> > > Amazon EC2 instance.
>
> > > I'm going to give Google the benefit of the doubt and assume that I
> > > don't exceed the free limits of 1GB data in and 1GB data out per day
> > > and that my storage never exceeds the free limit of 1GB.
>
> > > With GAE, I'll get 6.5 CPU-hours / day for free and have to pay for
> > > the remaining 17.5 hours / day at $0.10 / h.  Over a year, this
> > > amounts to $638.75.  Since data in, out, and storage are free, my
> > > total annual cost with Google is $638.75.
>
> > > With Amazon EC2, I can pay $500 for a 3-year reservation for a CPU
> > > instance.  This comes out to a fixed annual cost of $166.67 / year.
> > > In addition to that, I have to pay for 24h / day of CPU time at a rate
> > > of $0.03 / h for the year.  This comes out to $262.80.
>
> > > Assuming I actually consume Google's free bandwidth limits of 1GB data
> > > in and out, Amazon would charge:
> > > 1GB in / day = 365 GB in / year * $0.10 / GB in = $36.50 for bandwidth
> > > in / year
> > > 1GB out / day = 365 GB out / year * $0.14 / GB out = $51.10 for
> > > bandwidth out / year
>
> > > In addition, assuming I store Google's free storage limit of 1GB for
> > > the year, with Amazon S3 this would cost:
> > > 1GB / day = 30.4 GB/month * $0.15 / GB / month = $4.56 / month =
> > > $54.75 for storage / year
>
> > > Amazon total annual cost: $166.67 + $262.80 + $36.50 + $51.10 + $54.75
> > > = $571.82
>
> > > So, GAE would cost $638.75 per year where Amazon would cost $571.82.
> > > Despite all the freebies Google's throwing in, Amazon is still
> > > cheaper.
>
> > > In addition, I can't send iPhone push notices from GAE where I can
> > > from EC2.  I really like the GAE concept, but I just can't seem to
> > > make the math work out.
>
> > > I realize there are lots of assumptions in here and 5 million page
> > > hits per month may be a gross assumption, but in my testing, it
> > > doesn't take much to send CPU Time though the roof.  My "producer" was
> > > originally a cron task that did an urlfetch and performed several
> > > datastore puts.  I was getting timeouts and CPU times up to 30s /
> > > request.  I converted it to use remote_api and did some optimization
> > > on the code and now I have it down to something more reasonable
> > > (occasionally, peaking to 2s / request), but still, my "consumer" task
> > > is just a simple get that performs a query on the datastore returning
> > > between 10 and 20 entities.  The log confirms that it's taking around
> > > 400 CPU-milliseconds per request.
>
> > > What am I missing?
>
> > --
>
> > Alkis
--~--~-~--~~~---~--~~
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 gro

[google-appengine] Re: Estimating cost for iPhone app backend

2009-04-14 Thread Thomas Fors

I was anticipating using MySQL as the work-horse on EC2 and only using
S3 for persistence.  I'm not familiar enough with SimpleDB but perhaps
I should have a look and run some tests comparing it to GAE's
datastore.

Thanks
--Tom

On Apr 14, 1:42 am, Alkis Evlogimenos ('Αλκης Ευλογημένος)
 wrote:
> You are comparing AppEngine's indexed/queryable storage with S3's blobstore.
> To do a fairer comparison you would want to compare with SimpleDB 
> instead:http://aws.amazon.com/simpledb/#pricing
>
>
>
> On Tue, Apr 14, 2009 at 3:36 AM, Thomas Fors  wrote:
>
> > Hello,
>
> > I've been doing some tests to see if GAE is feasible as a backend for
> > an iPhone app I'm working on.  So far, it appears that CPU Time is
> > going to drive the cost up to beyond Amazon EC2+S3 costs.  If I've
> > made a mistake in my math, I'd appreciate any corrections.
>
> > I have an app with a single "producer" and single "consumer" running
> > on my local machine.  The producer uses remote_api to perform
> > datastore puts and the consumer performs datastore gets.  I've run
> > them over the past 17 hours, and the Quota Details page shows 0.2GB
> > incoming and 0.2GB outgoing bandwidth.  CPU Time has been 0.84 CPU-
> > hours with 6608 requests.  That says I'm using about 458 CPU-
> > milliseconds per request.
>
> > Google claims in May, their new free quota of 6.5 CPU-hours per day
> > will support 5 million page views per month which means they're
> > estimating 142 CPU-milliseconds per request.
>
> > If I stick with the 458 CPU-milliseconds per request number, and
> > assume my iPhone app is very popular and I do get 5 million requests
> > per month, I'll consume 21 CPU-hours per day which is close enough to
> > 24 CPU-hours per day that I decided to compare GAE to a dedicated
> > Amazon EC2 instance.
>
> > I'm going to give Google the benefit of the doubt and assume that I
> > don't exceed the free limits of 1GB data in and 1GB data out per day
> > and that my storage never exceeds the free limit of 1GB.
>
> > With GAE, I'll get 6.5 CPU-hours / day for free and have to pay for
> > the remaining 17.5 hours / day at $0.10 / h.  Over a year, this
> > amounts to $638.75.  Since data in, out, and storage are free, my
> > total annual cost with Google is $638.75.
>
> > With Amazon EC2, I can pay $500 for a 3-year reservation for a CPU
> > instance.  This comes out to a fixed annual cost of $166.67 / year.
> > In addition to that, I have to pay for 24h / day of CPU time at a rate
> > of $0.03 / h for the year.  This comes out to $262.80.
>
> > Assuming I actually consume Google's free bandwidth limits of 1GB data
> > in and out, Amazon would charge:
> > 1GB in / day = 365 GB in / year * $0.10 / GB in = $36.50 for bandwidth
> > in / year
> > 1GB out / day = 365 GB out / year * $0.14 / GB out = $51.10 for
> > bandwidth out / year
>
> > In addition, assuming I store Google's free storage limit of 1GB for
> > the year, with Amazon S3 this would cost:
> > 1GB / day = 30.4 GB/month * $0.15 / GB / month = $4.56 / month =
> > $54.75 for storage / year
>
> > Amazon total annual cost: $166.67 + $262.80 + $36.50 + $51.10 + $54.75
> > = $571.82
>
> > So, GAE would cost $638.75 per year where Amazon would cost $571.82.
> > Despite all the freebies Google's throwing in, Amazon is still
> > cheaper.
>
> > In addition, I can't send iPhone push notices from GAE where I can
> > from EC2.  I really like the GAE concept, but I just can't seem to
> > make the math work out.
>
> > I realize there are lots of assumptions in here and 5 million page
> > hits per month may be a gross assumption, but in my testing, it
> > doesn't take much to send CPU Time though the roof.  My "producer" was
> > originally a cron task that did an urlfetch and performed several
> > datastore puts.  I was getting timeouts and CPU times up to 30s /
> > request.  I converted it to use remote_api and did some optimization
> > on the code and now I have it down to something more reasonable
> > (occasionally, peaking to 2s / request), but still, my "consumer" task
> > is just a simple get that performs a query on the datastore returning
> > between 10 and 20 entities.  The log confirms that it's taking around
> > 400 CPU-milliseconds per request.
>
> > What am I missing?
>
> --
>
> Alkis
--~--~-~--~~~---~--~~
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: Estimating cost for iPhone app backend

2009-04-14 Thread Thomas Fors

On Apr 13, 8:52 pm, Josh Steiner  wrote:
>
> One thing that you are missing (unfortunately a more qualitative
> distinction rather than quantitative) is that appengine handles all
> the scaling for you.  Ec2 doesn't do anything to help you autoscale
> out of the box, and scaling a LAMP app is not exactly an easy ride if
> your growth curve is steep and sudden.
>

One simple method of scaling I was considering is having the app
initially fetch a plist of server addresses.  This could be served
directly from S3.  The iPhone would then perform some hash function on
it's unique ID to map itself to a server in the list.  This way new
servers could be added dynamically.  This only works, of course, if
the server data can be specific to some subset of your users and does
not need to be identical across all server instances.

If you store the unique IDs in the database, you can pre-compute who
will land on the new server when it goes live and  have their data
migrated to it in preparation.

Of course, you're right...  GAE eliminates the need to consider
scaling issues.

I think I may implement the same backend interface on both GAE and EC2/
S3.  That would allow me to use the server list idea to split users
between GAE and some number of EC2 instances.  I can then do a better
evaluation of the two approaches and I'm not "locked in" to any
particular approach.

It would mean maintaining two code bases for the backend, but my
interface will be simple, so I think it will be manageable.

--Tom
--~--~-~--~~~---~--~~
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: data push

2009-04-14 Thread 风笑雪
You can't do that in GAE since the timeout is set to 30 seconds.
But you may have a AJAX call, let clients reconnect within every 30 seconds.

2009/4/11 David 

>
> I like to know if somebody did a data push system. Which one?
> How deals with the quota consumtion?
>
> I'm thinking something like a reat time chat... Someone send a
> message, everybody get it at the time is arrived.
>
>
> >
>

--~--~-~--~~~---~--~~
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: Sudden Issues: Datastore timeout and

2009-04-14 Thread Paul Kinlan
Hi,

Sorry, the model is in my other email that I have just posted.

Paul.

2009/4/14 Jason (Google) 

> Hi Paul. Can you provide an example of an entity you're attempting to
> write? Does it only have simple properties like strings and integers, or
> does it also have multiple List properties that could be causing exploding
> indexes?
>
>
> http://code.google.com/appengine/docs/python/datastore/queriesandindexes.html#Big_Entities_and_Exploding_Indexes
>
> - Jason
>
>
> On Sun, Apr 12, 2009 at 12:03 PM, Paul Kinlan wrote:
>
>> Hi,
>>
>> Its weird, I am still seeing lots of timeouts for puts and reads at the
>> moment.  The app does a lot of writes, but I wouldn't expect these to cause
>> too much of an issue, saying that I am starting to see a lot of contention
>> issues too.
>>
>> Paul.
>>
>> 2009/4/11 Alkis Evlogimenos ('Αλκης Ευλογημένος) 
>>
>> There was a short outage last night:
>>>
>>> http://code.google.com/status/appengine/
>>>
>>>
>>> On Sat, Apr 11, 2009 at 9:41 AM, Paul Kinlan wrote:
>>>
 Hi,

 I solved the issue with "the build-in indicies" problem,

 The problem that I have is that I see a very very large number of
 DataStore Timeouts with what appear to be simple puts (an update to an
 existing object).

 Is anyone else experiencing these?

 Paul.

 2009/4/9 Paul Kinlan 

 Hi,
>
> Application: twitterautofollow.
>
> My application www.twollo.com has all of a sudden started to get
> DataStore timeouts and the following error:
>
> The built-in indices are not efficient enough for this query and your 
> data. Please add a composite index for this query.
>
> Now, I would understand this if I had made any changes but I have not 
> made any significant changes in months, and the last change I did upload 
> last week was a change to a template.
>
>
>
>
>
>
> The Query in question has two filters on and a count as follows.
> db.Query(Follow).filter("usernameLc =", user_a.lower()).filter("user =", 
> user).count()
>
> Any insight would be greatly appreciated.
>
> Paul
>




>>>
>>>
>>> --
>>>
>>> Alkis
>>>
>>>
>>>
>>
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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 Question

2009-04-14 Thread Paul Kinlan
Hi,

Sure thing, the model is roughly this:

class User(db.Model):
username = db.StringProperty()
usernameLc = db.StringProperty()


class SearchCampaigns(db.Model):
user = db.ReferenceProperty(User)
usernamelc = db.StringProperty()
name = db.StringProperty()
namelc = db.StringProperty()
added_on = db.DateTimeProperty(auto_now_add = True)

class Follow(db.Model):

user = db.ReferenceProperty(User) # The user of twollo
campaign = db.ReferenceProperty(SearchCampaigns) #The search the follow
is for

I have cut out loads of properties as they are extraneous to the problem.

There are no ListProperties, each Follow that is put is attached via a
reference to a User instance and an SearchCampaign instance, there are three
writes of new Follow instances each time time the http handler is called.  A
search ocurs on the Follow Entity, but that only happens so that I don't
write or update the Follow entity. Although I can memcache the follow
object, they aren't used that (i.e only when the user logs in) and when they
are used their use might be several hours apart.  Saying that though, I
might as well memcache them.

Paul.

2009/4/14 Jason (Google) 

> Hi. Is this 5 reads and 4 writes per request? It's worth your time and
> effort during the design stage to minimize your writes where possible since
> they are substantially more expensive than reads and, if the same entity is
> being written too quickly (e.g. you have a shared entity for many users who
> are all trying to update it at once), can cause write contention and high
> resource consumption.
>
> If the Follow entities are transient, i.e. only useful if the user makes
> several consecutive searches, I'd second the recommendation to use Memcache
> instead. That should definitely speed up your request time and hopefully
> eliminate some of the timeouts you've been seeing.
>
> - Jason
>
>
> On Sun, Apr 12, 2009 at 2:55 PM, Paul Kinlan wrote:
>
>> Hi Guys,
>>
>> My app is Twitterautofollow.  I have a question about the quota, basically
>> my app was serving between 6-13 requests a second and jumped up to 32
>> requests per-second and subsequently went over the quota.  I am not sure
>> where the 32 requests a second are comming from although some of them might
>> come from my ping service that I am running to regularly perform some tasks
>> - I wouldn't be suprised if it was a bug I created
>>
>> Additionally the DataStore CPU Time is Limited even though it is only at
>> 3% of quota.
>>
>> Its starting to get a bit frustrating at the moment because I am having
>> Data Store Timeouts very often on reads and puts.  Nothing in my model is in
>> an EntityGroup, that is, there is no use of parent, however there are many
>> RefernceProperties.
>>
>> The general process I have that is causing the process goes as follows
>>
>>
>>1. Get the user (User Entity) from the datastore
>>2. Get the current search term (Search Entity) for the user - I don't
>>use the refernce propery set from the user because I need to filter it
>>   1. Query Twitter
>>   2. For up to 3 search results add a new entity of type "Follow" and
>>   reference the search and user
>>  1. For each result check to see if the "Follow" entity already
>>  exists for the user - if it does we ignore the result
>>  3. update the search entity with some basic stats
>>
>> Overall there are, with 5 (1 user, 1 search and 3 reads of Follow) reads
>> and up to 4 puts (3 for new entities 1 for the "Search" entity).  I don't
>> think this is too heavy, but it might be.
>>
>> So my question is, am I being too excessive, why would this cause a lot of
>> datastore timeouts in both the reads and puts?  What tips do people have for
>> DataStore performance?
>>
>> Thanks,
>> Paul
>>
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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: JDO vs. JPA persistence

2009-04-14 Thread 风笑雪
In my opinion, they looks rather like. You can switch to each other very
fast, and no difference between their functions.
But since there are more docs for JDO, so I think you would like to start
with it.

2009/4/14 Alexander Orlov 

>
> Are there any guidelines in which cases who should use which layer for
> which purpose? I assume Google supports a second persistence layer to
> stay compatible to existent implementations. But which layer should I
> use when I start a project from scratch?
> >
>

--~--~-~--~~~---~--~~
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: raise NotImplementedError("Only tempfile.TemporaryFile is available for use")

2009-04-14 Thread venkat rambotla
hi mahmoud,
I tried with the twitter.py patch which u forwarded,but i am still getting
some errors when i run my app...

Traceback (most recent call last):

*File "F:\Projects\SampApp\src\Main.py", line 6, in 

*

users = api.GetFriends()

*File "F:\Projects\SampApp\src\Twitter\twitter.py", line 1093, in GetFriends

*

json = self._FetchUrl(url)

*File "F:\Projects\SampApp\src\Twitter\twitter.py", line 1421, in _FetchUrl

*

last_cached = self._cache.GetCachedTime(key)

*File "F:\Projects\SampApp\src\Twitter\twitter.py", line 1552, in
GetCachedTime

*

entry = _DbCacheEntry.get_by_key_name(key)

*File "C:\Program
Files\Google\google_appengine\google\appengine\ext\db\__init__.py", line
845, in get_by_key_name

*

for name in key_names]

*File "C:\Program
Files\Google\google_appengine\google\appengine\api\datastore_types.py", line
205, in from_path

*

_app = ResolveAppId(kwds.pop('_app', None))

*File "C:\Program
Files\Google\google_appengine\google\appengine\api\datastore_types.py", line
123, in ResolveAppId

*

ValidateString(app, '_app', datastore_errors.BadArgumentError)

*File "C:\Program
Files\Google\google_appengine\google\appengine\api\datastore_types.py", line
100, in ValidateString

*

raise exception('%s must not be empty.' % name)

google.appengine.api.datastore_errors.BadArgumentError: _app must not be
empty.

Please He*lp*

*Regards*

*venkat*

On 3/21/09, Mahmoud  wrote:
>
>
> Venkat,
> You should try Miha's patch here:
> http://persistent.info/files/twitter_appengine.patch
>
> It patches twitter.py to work with GAE's restrictions.
>
> -Mahmoud
>
> On Mar 20, 8:19 am, venkat rambotla  wrote:
> > hey hi tim,
> > my twitter.py code goes like this
> >
> > #!/*usr*/bin/*python
> > *
> >
> > #
> >
> > # Copyright 2007 *Google* Inc. All Rights Reserved.
> >
> > *
> >
> > '''A library that provides a python interface to the Twitter API'''
> > *
> >
> > __author__ = *'dew...@google.com'
> > *
> >
> > __version__ = *'0.5'
> > *
> >
> > import base64
> >
> > import md5
> >
> > import os
> >
> > import *sys
> > *
> >
> > import tempfile
> >
> > import time
> >
> > import urllib
> >
> > import urllib2
> >
> > import urlparse
> >
> > import simplejson
> >
> > class *TwitterError*(Exception):
> > *
> >
> > **'''Base class for Twitter errors'''
> > *
> >
> > class *Status*(object):
> > *
> >
> > *def *__init__*(*self*,
> >
> > created_at=None,
> >
> > id=None,
> >
> > text=None,
> >
> > user=None,
> >
> > now=None):
> >
> > *'''An object to hold a Twitter status message.
> > *
> >
> > *
> >
> > This class is normally instantiated by the twitter.Api class and
> >
> > returned in a sequence.
> > *
> >
> > *
> >
> > Note: Dates are posted in the form "Sat Jan 27 04:17:38 + 2007"
> > *
> >
> > *
> >
> > Args:
> >
> > created_at: The time this status message was posted
> >
> > id: The unique id of this status message
> >
> > text: The text of this status message
> >
> > relative_created_at:
> >
> > A human readable string representing the posting time
> >
> > user:
> >
> > A twitter.User instance representing the person posting the message
> >
> > now:
> >
> > The current time, if the client choses to set it. Defaults to the
> >
> > wall clock time.
> >
> > '''
> > *
> >
> > *self*.created_at = created_at
> >
> > *self*.id = id
> >
> > *self*.text = text
> >
> > *self*.user = user
> >
> > *self*.now = now
> >
> > *
> >
> > *def *GetCreatedAt*(*self*):
> >
> > *'''Get the time this status message was posted.
> > *
> >
> > *
> >
> > Returns:
> >
> > The time this status message was posted
> >
> > '''
> > *
> >
> > return *self*._created_at
> >
> > *
> >
> > *def *SetCreatedAt*(*self*, created_at):
> >
> > *'''Set the time this status message was posted.
> > *
> >
> > *
> >
> > Args:
> >
> > created_at: The time this status message was created
> >
> > '''
> > *
> >
> > *self*._created_at = created_at
> >
> > *
> >
> > *created_at = property(GetCreatedAt, SetCreatedAt,
> >
> > doc=*'The time this status message was posted.'*)
> >
> > *
> >
> > *def *GetCreatedAtInSeconds*(*self*):
> >
> > *'''Get the time this status message was posted, in seconds since the
> epoch.
> > *
> >
> > *
> >
> > Returns:
> >
> > The time this status message was posted, in seconds since the epoch.
> >
> > '''
> > *
> >
> > return time.mktime(time.strptime(*self*.created_at, *'%a %b %d %H:%M:%S
> > + %Y'*))
> >
> > *
> >
> > *created_at_in_seconds = property(GetCreatedAtInSeconds,
> >
> > doc=*"The time this status message was "
> > *
> >
> > *"posted, in seconds since the epoch"*)
> >
> > *
> >
> > *def *GetId*(*self*):
> >
> > *'''Get the unique id of this status message.
> > *
> >
> > *
> >
> > Returns:
> >
> > The unique id of this status message
> >
> > '''
> > *
> >
> > return *self*._id
> >
> > *
> >
> > *def *SetId*(*self*, id):
> >
> > *'''Set the unique id of this status message.
> > *
> >
> > *
> >
> > Args:
> >
> > id: The unique id of this status message
> >
> > '''
> > *
> >
> > *self*._id = id
> >
> > *
> >
> > *id = 

[google-appengine] Re: PageContextImpl giving issues (java.lang.ClassCastException: java.security.AccessControlException) with Spring form tag?

2009-04-14 Thread N. Peeters

Still not working, I'm afraid. Any other idea?

On Apr 12, 7:23 am, Elvea  wrote:
> add a custom editor to the binder then i got it work
> (1)
> public class BindingInitializer implements WebBindingInitializer {
>         @Override
>         public void initBinder(WebDataBinder binder, WebRequest request) {
>                 SimpleDateFormat dateFormat = new 
> SimpleDateFormat("-MM-dd");
>                 binder.registerCustomEditor(Date.class, new CustomDateEditor
> (dateFormat, true));
>                 binder.registerCustomEditor(Integer.class, new 
> CustomNumberEditor
> (Integer.class, true));
>                 binder.registerCustomEditor(Double.class, new 
> CustomNumberEditor
> (Double.class, true));
>                 binder.registerCustomEditor(Float.class, new 
> CustomNumberEditor
> (Float.class, true));
>                 binder.registerCustomEditor(String.class, new CharacterEditor
> (true));
>         }
>
> }
>
> (2) and the dispatcher-servlet,xml
> 
>  class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
>     
>         
>     
> 
--~--~-~--~~~---~--~~
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] JDO vs. JPA persistence

2009-04-14 Thread Alexander Orlov

Are there any guidelines in which cases who should use which layer for
which purpose? I assume Google supports a second persistence layer to
stay compatible to existent implementations. But which layer should I
use when I start a project from scratch?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



  1   2   >