[google-appengine] materialized-view & fork-join-loadtest .appspot.com / data pipelines talk

2010-06-19 Thread jeremy
In the data pipelines talk Brett Slatkin mentioned releasing the
source for materialized-view.appspot.com - is it available yet?

It would also be interesting to look into fork-join-
loadtest.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-appeng...@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] Instance Count going to 0

2011-11-15 Thread Jeremy
This is the second time we've seen this happen in the last couple of
months.  We've had an unresponsive app due to the instance count going
to 0.  We're able to get into the administrative console and we see on
the instances tab that our instance count is zero!  The app returns a
404 error message when users try to hit it.  It has lasted about 30
minutes each time and seems to correct itself.  Under application
settings our idle instances is set to 1 and 1.  There is nothing out
of the ordinary in our logs.  We have plenty of quota room left and
our billing is up-to-date.  We really need some answers on this
because our customers are getting unhappy.  Is this to be expected?
Is there anything we can do to avoid instances going to zero?

Thanks,
Jeremy

-- 
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] What am I being build for?

2012-04-22 Thread jeremy
For several months I have been receiving a bill for $2.10 for an one
of the apps that I have deployed for an organization a while back.
This cost just arrived without a clear explanation of what "resources"
I was being billed for.  I have several other apps for which I am not
getting billed anything for, so I guess I want clarification on what
about that app has incurred the cost.  It makes me uncomfortable to
receive a bill for something without any clear break down of why, even
if it is for only $2.10.  The app really doesn't consume much data or
bandwidth.  If either of those were the problem, perhaps I could
optimize the app.  But without any explanation, I am not sure what to
do.

Jeremy

-- 
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.



Re: [google-appengine] Re: Redirect loop on sign-up page

2013-02-06 Thread Jeremy
I'm having the same redirect issue as well.  My email id is 
jeremy.le...@altrainteractive.com.

Thanks,
Jeremy

On Sunday, December 23, 2012 2:05:07 AM UTC-5, M.M. wrote:
>
> Hi
>  
> I am facing the same issue with my email ID 
> sellm...@gmail.com 
>  
> after Google has verified that payment details are valid(while registering 
> for android developer account) they sent me an email confirming that all is 
> ok with my credit card details.
> I tried accessing checkout and it worked fine.  But when I went to access 
> my developer console ( 
> *https://play.google.com/apps/publish/Home*<https://play.google.com/apps/publish/Home>)
>  it started giving me this infinite loop and redirect messages!!
>  
> Can you please assist?
> Thanks
> M.M.
>
> On Thursday, September 6, 2012 1:03:36 PM UTC+4, Takashi Matsuo (Google) 
> wrote:
>
>> hi pdknsk,
>>
>> I assume you still have a problem. Which e-mail address do you want me to 
>> fix?
>>
>> -- Takashi
>>
>>
>> On Wed, Sep 5, 2012 at 9:17 PM, pdknsk  wrote:
>>
>>> http://code.google.com/p/googleappengine/issues/detail?id=5507
>>>
>>> --
>>> You received this message because you are subscribed to the Google 
>>> Groups "Google App Engine" group.
>>> To post to this group, send email to google-a...@googlegroups.com.
>>> To unsubscribe from this group, send email to 
>>> google-appengi...@googlegroups.com.
>>> For more options, visit this group at 
>>> http://groups.google.com/group/google-appengine?hl=en.
>>>
>>>
>>
>>
>> -- 
>> Takashi Matsuo | Developers Advocate | tma...@google.com
>>
>>  

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] interval intersection - datastore modeling

2010-03-18 Thread jeremy
i have objects which store a 'start' and 'end' position.

given an arbitrary interval, i'd like to return all objects with which
it intersects.

can anyone think of an approach to modeling this on datastore?

-- 
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-appeng...@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: interval intersection - datastore modeling

2010-03-19 Thread jeremy
@scott: they are unbounded floating point values

On Mar 18, 10:16 am, Scott Ellis  wrote:
> are they dates? floating point values? values on a scale from 1 to 5? all of
> the above?
>
> On 18 March 2010 19:28, jeremy  wrote:
>
> > i have objects which store a 'start' and 'end' position.
>
> > given an arbitrary interval, i'd like to return all objects with which
> > it intersects.
>
> > can anyone think of an approach to modeling this on datastore?
>
> > --
> > 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-appeng...@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.

-- 
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-appeng...@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: interval intersection - datastore modeling

2010-03-19 Thread jeremy
@tristan: there's nothing difficult about individual intersection
tests. the issue is that i can only perform inequality operations on a
single property.

how do i match both the end and the beginning - is there someway to
encode them in the same property?


On Mar 18, 3:31 pm, Tristan  wrote:
> sounds like the 3D graphics guys solved this problem... if you post
> the solution perhaps i'll be able to suggest on how to do it in a
> datastore
>
> On Mar 18, 4:16 am, Scott Ellis  wrote:
>
> > are they dates? floating point values? values on a scale from 1 to 5? all of
> > the above?
>
> > On 18 March 2010 19:28, jeremy  wrote:
>
> > > i have objects which store a 'start' and 'end' position.
>
> > > given an arbitrary interval, i'd like to return all objects with which
> > > it intersects.
>
> > > can anyone think of an approach to modeling this on datastore?
>
> > > --
> > > 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-appeng...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-appengine+unsubscr...@googlegroups.com > >  e...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-appengine?hl=en.

-- 
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-appeng...@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] storing and rendering comment threads

2008-10-18 Thread jeremy

How would "you" approach storing and rendering comments in a reddit
like forum? The naive approach i think would be to store comments with
references to their parent comment, then recursively build the forum
tree by retrieving children. I'm sure that would timeout for larger
threads.

One interesting alternative i found was here:
http://github.com/DocSavage/bloog/tree/master/models/blog.py#L137
basically each comment stores it's "genealogy" in a string, making
comments lexically orderable. But that has a number of limitations -
the genealogy string is limited to 500 bytes so there's suddenly a
maximum thread depth, and the ids may exceed the fixed size padded
space.

At first i thought i could solve this by using list properties to
encode the genealogy - then i realized that datastore lists have weird
set-like sorting :\ .. Not sure whether i can salvage this approach.
Can custom properties define their own sorting rules?

Any suggestions/insights would be great.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: storing and rendering comment threads

2008-10-20 Thread jeremy

hmm, some how it didn't occur to me that the string could be treated
as 500 raw bytes. thanks for pointing that out!
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] "shell" security?

2008-10-22 Thread jeremy

the shell app @ http://shell.appspot.com/  - are there any security
implications besides allowing users to use arbitrary quota resources
(the url fetch in particular comes to mind)?

for example, could someone use the shell to retrieve someone else's
session id? i'm looking at the code and it seems like the
encapsulation of new.module is the extent of the separation between
sessions. but i'm not sure to what extent new.module's encapsulation
is hermetic.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] key().id() upper bound

2008-10-23 Thread jeremy

in the life time of an app, what's a reasonable upper bound on the
integer key().id() ?

i need to encode the id into a string - i'm trying to figure out how
many of the 500bytes to dedicate it.

inb4 "be more specific than 'in the life time of an app'" :P
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: key().id() upper bound

2008-10-23 Thread jeremy

i'm formulating a single composite property which can be finalized at
entity creation time and which will hopefully allow me to retrieve
hierarchical data in a desired order. i don't think i can do this with
multiple properties as they would each require a inequality operation.

also, this property will be user opaque so i think i can get away with
just 8 bytes using base 256!


On Oct 23, 2:50 pm, Jon McAlister <[EMAIL PROTECTED]> wrote:
> One upper bound is 2^64 since we're using 64-bit integers for these
> ids. So, twenty digits would do it if you're encoding it using
> decimal, or 11 if you use a base64 encoding. Of course, you may find
> using multiple distinct properties may be easier to work with than one
> composite property like this.
>
> Jon
>
> On Oct 23, 2:27 pm, jeremy <[EMAIL PROTECTED]> wrote:
>
> > in the life time of an app, what's a reasonable upper bound on the
> > integer key().id() ?
>
> > i need to encode the id into a string - i'm trying to figure out how
> > many of the 500bytes to dedicate it.
>
> > inb4 "be more specific than 'in the life time of an app'" :P
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] time.time() across shards

2008-10-23 Thread jeremy

across shards of the platform, how close can i reasonably expect
time.time() to be synchronized? like, if request A precedes B, how
close would identical requests A and B have to be for me to worry
about B getting an earlier since-epoch value from the platform than A?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: time.time() across shards

2008-10-24 Thread jeremy

off by DAYS?! what the hell google?!!

that's completely unacceptable. how do i "structure around" that one?!



On Oct 24, 2:41 am, Alexander Kojevnikov <[EMAIL PROTECTED]>
wrote:
> Check this 
> thread:http://groups.google.com/group/google-appengine/browse_thread/thread/...
>
> The clocks on different machines can be off by days, you shouldn't
> rely on them being in sync.
>
> --www.muspy.com
>
> On Oct 24, 6:13 pm, jeremy <[EMAIL PROTECTED]> wrote:
>
> > across shards of the platform, how close can i reasonably expect
> > time.time() to be synchronized? like, if request A precedes B, how
> > close would identical requests A and B have to be for me to worry
> > about B getting an earlier since-epoch value from the platform than A?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: key().id() upper bound

2008-10-24 Thread jeremy

uh, getting back to my encoding into a string idea. i don't fully
understand this but i am going to get shot in the foot by some behind
the scenes str->unicode conversion, aren't i?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: time.time() across shards

2008-10-24 Thread jeremy

i'm glad to hear that other thread was way off.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: key().id() upper bound

2008-10-24 Thread jeremy

for what it's worth - the behind the scenes str->unicode conversion
which the api performs does indeed make it impossible to use the full
8*500 bits afforded a StringProperty... i think there ought to be a
ShortBlobProperty which allows byte encoding as str, but i guess for
now i can encode everything base 128.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] inequality filter on string length

2008-10-25 Thread jeremy

"To get all results that match an inequality filter, a query scans the
index table for the first matching row, then returns all consecutive
results until it finds a row that doesn't match. For the consecutive
rows to represent the complete results set, the rows must be ordered
by the inequality filter before other sort orders."

Shouldn't it be possible to perform an inequality operation on a
StringProperty and then another inequality on the string's length? At
the moment it's impossible since you'd have to store each string
length in a separate IntergerProperty, which you then cannot perform
an inequality operation on.

So, this limitation seems to be due to the operations GQL gives you to
work with, not because it violates the invariant quoted above?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Complete Newb Question

2008-10-25 Thread jeremy

When you say "later on", where exactly do you mean? If you want to
access it from another handler you will probably want to datastore it.

You can write to the output buffer by doing
self.response.out.write().

On Oct 25, 5:20 pm, fishfin <[EMAIL PROTECTED]> wrote:
> How would I get that data later on? 'print data' doesn't seem to work,
> 'print self.data' and 'print MainPage.data' don't seem to work either.
>
> On Oct 25, 11:16 pm, loell <[EMAIL PROTECTED]> wrote:
>
> > Typically, it should go something like this,
>
> > class MainPage(webapp.RequestHandler):
> >     def get(self):
> >         data = cgi.escape(self.request.get('data'))
>
> > fishfin wrote:
> > > I'm coming over from php and am trying to figure out how to do
> > > something.
>
> > > In php you can put data in the user's address bar (index.php?
> > > data=somedata) and then get it from the address bar really easily (you
> > > just use $_GET and $_REQUEST), so I was wondering what the equivalent
> > > is in python?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Complete Newb Question

2008-10-26 Thread jeremy

Are you calling those print statements in the same scope as
MainPage.get? If you could paste your entire handler script, that
might help us identify what's going wrong.



On Oct 26, 1:05 am, fishfin <[EMAIL PROTECTED]> wrote:
> Ok, I don't think I'm being very clear = )
>
> Say a user visits my website with this address 
> bar:https://www.mywebsite.com/index.htm?data=123xyz
>
> I would like to place the '123xyz' into a variable so that I can
> access it whenever I want to. I think that loell's code does that
> except that I can't figure out how to get the value of 'data.'
>
> After using this: (and importing cgi and google.appengine.ext.webapp)
>
> class MainPage(webapp.RequestHandler):
>     def get(self):
>         data = cgi.escape(self.request.get('data'))
>
> I've tried:
> print data
> print MainPage.data
> print MainPage.self.data
> etc.
>
> I can't figure out how to access the '123xyz' from the url. I get the
> same error message every time: name 'data' is not defined
>
> On Oct 25, 4:35 pm, Hakayati <[EMAIL PROTECTED]> wrote:
>
> > You can retrieve URL parameters from the request object like this:
>
> > # e.g.www.mysite.com/?my_parameter=hello%20world
>
> > class MainPage(webapp.RequestHandler):
> >   def get(self):
> >     my_parameter = ''
> >     for param in self.request.query.split('&'):
> >       if param.startswith('my_parameter'):
> >         my_parameter  = param.split('=')[1]
>
> > On 25 Okt., 07:40, fishfin <[EMAIL PROTECTED]> wrote:
>
> > > I'm coming over from php and am trying to figure out how to do
> > > something.
>
> > > In php you can put data in the user's address bar (index.php?
> > > data=somedata) and then get it from the address bar really easily (you
> > > just use $_GET and $_REQUEST), so I was wondering what the equivalent
> > > is in python?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: appengine is very frustrating

2008-10-26 Thread jeremy

That's discouraging to hear :\

At the moment this is what i'm seeing:
Traceback (most recent call last):
  File "/base/python_lib/versions/1/google/appengine/ext/webapp/
__init__.py", line 499, in __call__
handler.get(*groups)
  File "/base/data/home/apps/gas/1.998/serverhttp.py", line 1487, in
get
msg = self.html()
AttributeError: 'WhoIsHandler' object has no attribute 'html'

On Oct 26, 12:07 pm, Daniel <[EMAIL PROTECTED]> wrote:
> We have a fairly substantial app running which works well maybe 85% of
> the time. The other 15% we get random timeouts or errors in areas that
> work just fine most of the time.  Just when we think it's stable it
> has periods of breaking down.
>
> For example right now it's behaving really badly.  Going 
> tohttp://www.guessasketch.com/whois/should show all the people and
> games running on our server. Right now it just times out. This
> prevents people from playing our game. Are others experiancing random
> instability?
>
> I'm seriously considering going to a normal socket based server,
> unfortunatly that would be a big rewrite. If there was some assurance
> that this is getting cleared up soon I would feel better but I do see
> tickets out there with similar issues and what seems to be very little
> action to address the problems.
>
> Any thoughts or words if encouragement to stuck with appendine?
>
> Thanks. D
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: counting

2008-10-27 Thread jeremy

so datastore maintains a sorted table for Nevile's ranks, but I assume
these tables don't themselves maintain the index of each entry since
that would mean each insert would require an update of every
proceeding entry?

peter's approach sounds promising. it would be nice to hear from
someone at google how they approach ranking items in this kind of
database.

On Oct 25, 5:27 pm, Peter Recore <[EMAIL PROTECTED]> wrote:
> I'll try to state a more formal version of the problem, then offer my
> suggestion.
>
> Problem:
>
> Assume that there is an entity type called Player, and each Player has
> a score.  A score is an integer.  For any given Player P with a score
> of X, we want to know how many other Players have scores that are
> greater than or equal to X.  This is their Rank.
>
> Let's say we have the following Players and scores:
>
> Peter 30
> Ben  27
> Sylvain 42
> Marzia 50
> Ryan 12
>
> Peter's Rank would be 3 because Marzia, Sylvain and Peter all have
> scores greater than or equal to Peter's score of 30.
> Marzia's Rank would be 1, and Ryan's would be 5.  The tricky part is
> that Ben needs to do this efficiently for hundreds of thousands of
> items ( with a fairly frequent number of updates i assume)
>
> Getting this kind of answer is relatively simple on a SQL database,
> though I don't honestly know how scalable the typical count(*) > X
> solutions are.  With the proper indexes, they could probably be very
> fast, but i don't know if you'd get lots of contention on writing to
> that table/index.
>
> This does seem like a problem that any game with the concept of 'high
> score' built in app engine would need to solve. (actually, this
> problem probably generalizes even further)  I'm pretty sure I will
> need something like this at some point myself.  So I might as well
> take a stab at it now. Here are my initial thoughts...  Encouraging or
> disparaging comments welcome.
>
> To solve this problem with the GAE datastore, I propose building a
> ShardedRanker.
> The lowest level item we need to consider is a RankedItem.  A
> RankedItem has a key, a value, and a reference to a RankingGroup.  The
> key would be a player's id, and the value would be a player's score.
>
> A ShardedRanker would have references to a number of RankingGroups.
> Each RankingGroup would contain a list of RankedItems, and be
> responsible for knowing the relative rank of each item it contains.
> Each RankingGroup would also be responsible for knowing the highest
> and lowest scores its items contain.
>
> When we want to know the rank of a particular item, we can get its
> overall rank by combining its relative rank within its RankingGroup
> with the total number of items contained in higher ranked Groups.
> This will require 1 datastore read to get the info from the
> RankingGroup, plus one read for each of the RankingGroups ranked
> higher than the 'target' group.
>
> When we insert a new RankedItem, we will need to update the
> RankingGroup it belongs to, and maybe the index which tells us which
> Group contains which ranges of scores.  At some point, if a
> RankingGroup gets to big, it would probably be split.
>
> There should be lots of opportunity to memcache things here, reducing
> the need for datastore reads.  As the total number of items increases,
> it might be necessary to create multiple levels of RankingGroups.
>
> -peter
>
> On Oct 24, 5:49 pm, yejun <[EMAIL PROTECTED]> wrote:
>
> > His problem is a count needed for every single user. So a single
> > change will cause a massive update on all count.
> > On a traditional database it is the position on the index.
>
> > On Oct 24, 5:33 pm, Sylvain <[EMAIL PROTECTED]> wrote:
>
> > > Sorry, I don't understand exactly the problem but if you want to have
> > > this SQL
>
> > > select count(*) from entries where points > 100
>
> > > You can create many "sharded counter"
> > > and from the code use this :
>
> > > increment("point_%i" % point)
>
> > > Then, if you want to count, just : get_count("point_%i" % point)
>
> > > It will create a lot of of "counter" but it will works fine.
>
> > > Then if you want to count for points > 100
> > > You will have to do many any times : get_count("point_%i" % point) for
> > > point from x to y
> > > else you can create steps : a counter from 100 to 150 , etc,...
>
> > > I think the only solution to do count(*) (if count(*) > 1000) is to
> > > use sharded counter
>
> > > if count(*) < 1000 then you can use the "count" keyword.
>
> > > Regards.
>
> > > On 24 oct, 21:39, Ben Nevile <[EMAIL PROTECTED]> wrote:
>
> > > > Hi Sylvain - thanks for the pointer, and although I now know a cool
> > > > sharding hack for a shared resource, I don't see how the technique can
> > > > be applied to my problem.  To summarize, I could have a model indexed
> > > > by a single entity called "points", and I want to be able to tell
> > > > someone how they rank in terms of points.  For someone with say 100
> > > > points, in SQL I would do something like
>
>

[google-appengine] Re: Microsoft Azure

2008-10-27 Thread jeremy

I'm only skimming the description but i think the more familiar
relational sql storage will appeal to many people.

On Oct 27, 11:16 am, "Andrew Badera" <[EMAIL PROTECTED]> wrote:
> So, what's the GAE take on the MS Azure announcement at PDC today?
>
> Is it going to be competitive, or not even in the same ballpark?
>
> Will it force the GAE team to spend extra effort on a .NET implementation
> for GAE?
>
> Thanks-
> - Andy Badera
> - [EMAIL PROTECTED]
> - (518) 641-1280
>
> -http://higherefficiency.net/
> -http://changeroundup.com/
>
> -http://flipbitsnotburgers.blogspot.com/
> -http://andrew.badera.us/
>
> - Google me:http://www.google.com/search?q=andrew+badera
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: key().id() upper bound

2008-10-27 Thread jeremy

here it is on the issue tracker: 
http://code.google.com/p/googleappengine/issues/detail?id=818

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: why received the header is like this

2008-10-27 Thread jeremy

write to the output buffer instead of printing:
self.response.out.write(_decrypt(content))


On Oct 26, 10:53 pm, millken <[EMAIL PROTECTED]> wrote:
> result = urlfetch.fetch(pageurl)
> content = result.content
> print _decrypt(content)
>
> the content(json) was encrypted,
>
> print header:
> HTTP/1.0 200 Good to go
> Server: Development/1.0 Python/2.5.2
> Date: Mon, 27 Oct 2008 05:15:53 GMT
> {"result":"1","reason":null,"content":"[{\"ID\":8287,\"Productid\":
> \"M545001\",\"Name\":\"test\"}]"}
> Cache-Control: no-cache
> content-length: 0
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Confusions on transactions and concurrent writes to entity groups

2008-10-31 Thread jeremy

"All writes are transactional."

Does this mean updating values on a single entity will lock the entire
group when put() is called?



On Sep 22, 10:52 am, Jeff S <[EMAIL PROTECTED]> wrote:
> To further clarify. All writes are transactional. Details on how the
> transactions work can be found in ryan's presentation from Google 
> I/O:http://snarfed.org/space/datastore_talk.htmlThe section on
> transactions specifically begins at slide 49. You can also watch the
> video 
> here:http://sites.google.com/site/io/under-the-covers-of-the-google-app-en...
>
> Cheers,
>
> Jeff
>
> On Sep 22, 10:36 am, Jeff S <[EMAIL PROTECTED]> wrote:
>
> > Hi David,
>
> > Even if a put request to the datastore is not run in a transaction,
> > the operation is automatically retried. Contention is not unique to
> > transactions. The benefit of using transactions, is that if one write
> > in the transaction times out (due to too much contention or some other
> > issue) the other parts of the transaction will not be applied. For
> > more details 
> > see:http://code.google.com/appengine/docs/datastore/transactions.html#Usi...
>
> > Happy coding,
>
> > Jeff
>
> > On Sep 18, 6:25 pm, DXD <[EMAIL PROTECTED]> wrote:
>
> > > I appreciate any clarifications on my situation as follows. I have an
> > > entity group whose the root entity is called "root". When a particular
> > > URL is requested, a new entity is added to this group as a direct
> > > child of root. The code looks similar to this:
>
> > > def insert():
> > >   root = Root.get_by_key_name('key_name')
> > >   child = Child(parent=root)
> > >   child.put()
>
> > > Note that the insert() function is not run in a transaction (not
> > > called by db.run_in_transaction()).
>
> > > I spawned many concurrent requests to this URL. The log shows that
> > > there are many failed requests with either "TransactionFailedError:
> > > too much contention on these datastore entities. please try again" or
> > > "DeadlineExceededError". Since I'm still a bit unclear about the
> > > internal working of the datastore, these are my explanations for what
> > > happened. Pls correct me where I'm wrong:
>
> > > 1. when one child entity is being inserted, it locks the entire group.
> > > All other concurrent requests are blocked, and their child.put()
> > > statement exclusively is retried a number of times. Say the limit
> > > number of retry is r.
>
> > > 2. If child.put() is retried r times but still doesn't go through, it
> > > gives up and yields the "too much contention" error.
>
> > > 3. If child.put() does not yet reach r times of retry, but its session
> > > already reaches the time limit t, then it fails yielding the
> > > "DeadlineExceededError".
>
> > > If my explanations are correct, isn't it true that the insert()
> > > function is exactly equivalent to this version?:
>
> > > def insert():
> > >   root = Root.get_by_key_name('key_name')
> > >   child = Child(parent=root)
> > >   def txn()
> > >     child.put()
> > >   db.run_in_transaction(txn)
>
> > > Or more generally, is it true that all API operations that write to
> > > the datastore have exactly the same effect with transaction
> > > (automatically retried if failed, and so on)?
>
> > > Thanks for clarifications,
> > > David.
>
>
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] filesystem virtualization on top of datastore

2008-12-18 Thread jeremy

i was hoping to seamlessly virtualize a filesystem on top of
datastore. it seems there is no pure-python approach to filesystem
virtualization, making this impossible. should i give up on this or
have a i overlooked something?

--~--~-~--~~~---~--~~
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: filesystem virtualization on top of datastore

2008-12-19 Thread jeremy

yu: this is interesting, but will it provide seamless virtualization
of a filesystem environment? or will existing libraries that make use
of file and os module functions have to be rewritten?

ross: i'm encouraged to hear that, but i still don't see how. there
doesn't seem to be a way to mount a vfs on the appengine platform, and
there doesn't seem to be a way to wrap existing python filesystem
functionality (there was some discussion on python forums about
providing a filesystem api for just such virtualization - the existing
os filesystem functionality would be reimplemented through this api)
--~--~-~--~~~---~--~~
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] are numeric ids of deleted entities reused?

2008-12-20 Thread jeremy

are numeric ids of deleted entities reused? i really hope not.
--~--~-~--~~~---~--~~
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 Draw text on png files dynamically with GAE?

2008-12-21 Thread jeremy

i think this will become possible through pure python libraries when
long running processes are introduced to gae.

On Dec 21, 10:29 am, "zhyh...@gmail.com"  wrote:
> How to Draw text on png files dynamically with GAE?
>
> I found that I cant use Python Image Lib in GAE.
>
> How can I add some text of number on the png file ? Of Course, it must
> be on 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] is gaeutilities sessions the only 3rd party session manager?

2009-01-20 Thread jeremy

can anyone recommend / mention a session manager other than the one in
gaeutilities?
--~--~-~--~~~---~--~~
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: is gaeutilities sessions the only 3rd party session manager?

2009-01-21 Thread jeremy

thanks for the suggestions.

does beaker really work out of the box with gae?

On Jan 21, 1:06 am, Ian Bicking  wrote:
> On Tue, Jan 20, 2009 at 10:40 PM, jeremy  wrote:
> > can anyone recommend / mention a session manager other than the one in
> > gaeutilities?
>
> Beaker works with GAE:http://beaker.groovie.org/
>
> --
> Ian Bicking  |  http://blog.ianbicking.org
--~--~-~--~~~---~--~~
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: is gaeutilities sessions the only 3rd party session manager?

2009-01-22 Thread jeremy

Bowman - I think my issue with gaeutilities may largely be that the
default settings seem excessive. Looking at the cookies google.com
hands its visitors, their SID cookie lasts a good decade and seems to
rotate every few hours, not seconds. So at the moment i'm thinking
I'll see if changing the default satisfies me.

Also, at the moment there's a datastore put() on every session-using
request to (at a minimum) update the last activity time stamp. But if
my SESSION_TOKEN_TTL is something like 1 hour, then actually i only
need to update the last activity time stamp if the last timestamp was
more than an hour ago. That would significantly reduce the amount of
datastore writes, no?


re: "I'm just trying to figure out the value in the signed cookie
approach, because if I can figure out a way for it to make sense I
would consider moving gaeutilities to that approach. ":

Do you mean storing all session data in the clients cookie and using a
signature to authenticate it? That approach makes me nervous, although
I can imagine it's actually quite effective. You just store the
session data in plain text but then also include a signature = SHA1
(session_data + secret_key_only_the_server_knows). That way the server
can confirm it was the one who committed the values (and not the
client messing with their own cookies).




On Jan 21, 8:33 pm, "bowman.jos...@gmail.com"
 wrote:
> Does beaker store all session information as cookies?
>
> I'm just trying to figure out the value in the signed cookie approach,
> because if I can figure out a way for it to make sense I would
> consider moving gaeutilities to that approach.
>
> gaeutilities stores only a temporary session token in the browser
> cookie store, all information is stored server side for security.
> Since I only have the one cookie, which is basically an id to find the
> session server side with, I don't see a way for this approach to keep
> a session from being hijacked. As in the end the 'hash-value' string
> could be hijacked and reused by another browser.
>
> The performance issue with gaeutililites, and why Jeremy is looking
> for options, is the approach I've taken to securing the session id
> requires frequent put() operations. I've seen some other blogs who've
> mentioned this is a performance bottleneck for gae, but I haven't been
> able to come up with another approach that will not sacrifice
> reliability or performance. Basically I rotate the session id in the
> cookie every 5 seconds (this length is configurable). I store the
> current plus previous 2 tokens in a ListProperty in order to manage
> sites using AJAX type functionality. A session token is generally good
> for 15 seconds with this approach. Longer if there are not interim
> requests generating new tokens, as a new token is only generated when
> the 5 second TTL is hit. So you come back 2 minutes later, and the
> session token is still valid for that request, just regenerated on the
> request. As you can imagine, this is a lot of put operations for each
> session.
>
> I deemed just using memcache to not be a viable alternative because
> it's documented that it's a volatile storage, it can be cleared at any
> time. I do use memcache for speeding up reads to the session data,
> limiting read access to the datastore.
>
> I'm definitely open to suggestions for a method to do this without all
> the puts. The key being the reliability and security are more
> important than performance. In the end it's cheaper to pay for the CPU
> usage than the risks by allowing users to have their sessions easily
> hijacked, depending on the application, or having sessions randomly
> lost due to the storage medium not being permanent enough.
>
> On Jan 21, 6:27 pm, jeremy  wrote:
>
> > thanks for the suggestions.
>
> > does beaker really work out of the box with gae?
>
> > On Jan 21, 1:06 am, Ian Bicking  wrote:
>
> > > On Tue, Jan 20, 2009 at 10:40 PM, jeremy  wrote:
> > > > can anyone recommend / mention a session manager other than the one in
> > > > gaeutilities?
>
> > > Beaker works with GAE:http://beaker.groovie.org/
>
> > > --
> > > Ian Bicking  |  http://blog.ianbicking.org
--~--~-~--~~~---~--~~
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: is gaeutilities sessions the only 3rd party session manager?

2009-01-22 Thread jeremy
0) < CLEAN_CHECK_PERCENT:
self._clean_old_sessions()


On Jan 22, 4:38 pm, "bowman.jos...@gmail.com"
 wrote:
> I think it's a case of it's been that way for so long I haven't
> realized I need to change it. The put on every write to update the
> last activity, I mean. I'll look into modifying it so that it only
> writes when the session token changes.
>
> As for google though, every time I load up my igoogle page, I have
> cookie called SID for thewww.google.comthat changes each page view.
> This is really as it should be for real security, as even the 15
> second window I have configured by default it more that large enough
> for someone to write a script very quickly to sniff and grab the
> cookie to be used to hijack the session.
>
> Modifying the last_activity to update less frequently is a good idea,
> I will try to get that in soon.
>
> On Jan 22, 2:08 pm, jeremy  wrote:
>
> > Bowman - I think my issue with gaeutilities may largely be that the
> > default settings seem excessive. Looking at the cookies google.com
> > hands its visitors, their SID cookie lasts a good decade and seems to
> > rotate every few hours, not seconds. So at the moment i'm thinking
> > I'll see if changing the default satisfies me.
>
> > Also, at the moment there's a datastore put() on every session-using
> > request to (at a minimum) update the last activity time stamp. But if
> > my SESSION_TOKEN_TTL is something like 1 hour, then actually i only
> > need to update the last activity time stamp if the last timestamp was
> > more than an hour ago. That would significantly reduce the amount of
> > datastore writes, no?
>
> > re: "I'm just trying to figure out the value in the signed cookie
> > approach, because if I can figure out a way for it to make sense I
> > would consider moving gaeutilities to that approach. ":
>
> > Do you mean storing all session data in the clients cookie and using a
> > signature to authenticate it? That approach makes me nervous, although
> > I can imagine it's actually quite effective. You just store the
> > session data in plain text but then also include a signature = SHA1
> > (session_data + secret_key_only_the_server_knows). That way the server
> > can confirm it was the one who committed the values (and not the
> > client messing with their own cookies).
>
> > On Jan 21, 8:33 pm, "bowman.jos...@gmail.com"
>
> >  wrote:
> > > Does beaker store all session information as cookies?
>
> > > I'm just trying to figure out the value in the signed cookie approach,
> > > because if I can figure out a way for it to make sense I would
> > > consider moving gaeutilities to that approach.
>
> > > gaeutilities stores only a temporary session token in the browser
> > > cookie store, all information is stored server side for security.
> > > Since I only have the one cookie, which is basically an id to find the
> > > session server side with, I don't see a way for this approach to keep
> > > a session from being hijacked. As in the end the 'hash-value' string
> > > could be hijacked and reused by another browser.
>
> > > The performance issue with gaeutililites, and why Jeremy is looking
> > > for options, is the approach I've taken to securing the session id
> > > requires frequent put() operations. I've seen some other blogs who've
> > > mentioned this is a performance bottleneck for gae, but I haven't been
> > > able to come up with another approach that will not sacrifice
> > > reliability or performance. Basically I rotate the session id in the
> > > cookie every 5 seconds (this length is configurable). I store the
> > > current plus previous 2 tokens in a ListProperty in order to manage
> > > sites using AJAX type functionality. A session token is generally good
> > > for 15 seconds with this approach. Longer if there are not interim
> > > requests generating new tokens, as a new token is only generated when
> > > the 5 second TTL is hit. So you come back 2 minutes later, and the
> > > session token is still valid for that request, just regenerated on the
> > > request. As you can imagine, this is a lot of put operations for each
> > > session.
>
> > > I deemed just using memcache to not be a viable alternative because
> > > it's documented that it's a volatile storage, it can be cleared at any
> > > time. I do use memcache for speeding up reads to the session data,
> > > limiting read access to the

[google-appengine] Re: is gaeutilities sessions the only 3rd party session manager?

2009-01-22 Thread jeremy

Hmm, I'm not sure what "session timing" is.

I have an idea to reduce writes. Instead of updating the sid of every
session individually, give each session a random value between 0 and
C, and have one application-wide value R randomized every
session_token_ttl seconds to an integer between 0 and C, then hand the
client the value of this as a token:

t = (session_id+R)%C

then when a client hands the server a token, you can compute
session_id = (t-R)%C

(you can store the last 3 values of R as is done now for each sessions
sid)

I'm pretty sure there's no analysis attack that would allow a client
to figure out either R at any moment or their own (constant)
session_id. But, i could be wrong about that :\ ... The advantage
would be you're only updating a single datastore entity every
session_token_ttl.




On Jan 22, 9:24 pm, "bowman.jos...@gmail.com"
 wrote:
> I've gone with a different approach that currently achieves similar
> results, that's now available in the trunk. A new variable,
> last_activity_update has been added. It's the amount of seconds that
> needs to pass before that field needs to be updated by doing a put().
> It defaults to 60 seconds, which of course is longer than the duration
> before a put is required to update the session token with the default
> settings.
>
> This will allow developers who wish to lengthen their
> session_token_ttl to a larger interval to still get their
> last_activity update in, useful for session timing. It too is
> customizable so for developers who have no use for this field can set
> it to a large enough number to be irrelevant.
>
> I'm trying to flush out an idea I have to limit the amount of writes
> for the token even further, but am still researching it. If I figure
> it out I will get it in and do another release. Otherwise I will
> release what's there now. Before any release I want to go over the
> refactoring you did as it does look more efficient than what I
> currently have, thanks.
>
> On Jan 22, 6:31 pm, jeremy  wrote:
>
> > Ok. I actually modified Session.__init__ locally to do the
> > last_activity on sid rotation (i also refactored it a bit to reduce
> > repeated code blocks). Regarding google.com's SID cookie - i'm not
> > seeing the sid update within minutes. I'm not sure why yours rotates
> > so quickly, but it's something entirely configurable in your code so
> > it shouldn't matter. Anyway, here's my version of Session.__init__ :
>
> >     def __init__(self, cookie_path=DEFAULT_COOKIE_PATH,
> >             cookie_name=COOKIE_NAME,
> > session_expire_time=SESSION_EXPIRE_TIME,
> >             clean_check_percent=CLEAN_CHECK_PERCENT,
> >             integrate_flash=INTEGRATE_FLASH, check_ip=CHECK_IP,
> >             check_user_agent=CHECK_USER_AGENT,
> >             set_cookie_expires=SET_COOKIE_EXPIRES,
> >             session_token_ttl=SESSION_TOKEN_TTL):
> >         """
> >         Initializer
>
> >         Args:
> >           cookie_name: The name for the session cookie stored in the
> > browser.
> >           session_expire_time: The amount of time between requests
> > before the
> >               session expires.
> >           clean_check_percent: The percentage of requests the will
> > fire off a
> >               cleaning routine that deletes stale session data.
> >           integrate_flash: If appengine-utilities flash utility should
> > be
> >               integrated into the session object.
> >           check_ip: If browser IP should be used for session
> > validation
> >           check_user_agent: If the browser user agent should be used
> > for
> >               sessoin validation.
> >           set_cookie_expires: True adds an expires field to the cookie
> > so
> >               it saves even if the browser is closed.
> >           session_token_ttl: Number of sessions a session token is
> > valid
> >               for before it should be regenerated.
> >         """
>
> >         self.cookie_path = cookie_path
> >         self.cookie_name = cookie_name
> >         self.session_expire_time = session_expire_time
> >         self.clean_check_percent = clean_check_percent
> >         self.integrate_flash = integrate_flash
> >         self.check_user_agent = check_user_agent
> >         self.check_ip = check_ip
> >         self.set_cookie_expires = set_cookie_expires
> >         self.session_token_ttl = session_token_ttl
>
> >         # make sure the page is not cached in the browser
> >         self.no_cache_headers()
>

[google-appengine] Re: is gaeutilities sessions the only 3rd party session manager?

2009-01-22 Thread jeremy

"What I see as a concern with your approach is what happens when the
server wide variable R gets out of sync with someone's version that
was crypted based off of it? The original reason the 3 valid token set
"

that's why i mention that "you can store the last 3 values of R as is
done now for each sessions sid" - so all 3 would be tried as is done
now with the sid list on each session entity. you could also count how
often R has been randomized and hand this iteration index to the
client as part of the token.

i'm not sure about going primarily with memcache - isn't memcache
designed only to be a caching layer? memcache isn't volatile in the
sense of being either up or down. rather, it throws out stored data
"randomly" as far as the developer is concerned as load increases.


On Jan 23, 1:37 am, "bowman.jos...@gmail.com"
 wrote:
> By the way, I really am not concerned with analysis attacks. It's
> sniffing/spoofing attacks that are most common for session hijacking.
> I simply sniff the network and find out what the name and value of the
> cookie are, and what user agent you are sending. I then duplicate
> those 2 things and if I'm behind the same NAT as you, I have your
> session loaded up in my browser. If I'm any good a social hacking, I
> set my page to auto refresh and then distract you by talking to you
> until I have your full session by rotating the session tokens past the
> point of where the one in your browser is invalid, and more than
> likely the application will make log back in, without logging me out.
> This is where you may want to consider tieing the session directly to
> a user account, so a user can only be logged in once at any time, and
> logging invalidates the current log in if it exists, ie:
> active_session field on your user model.
>
> Just some late night thoughts when I really should be asleep.
>
> On Jan 22, 11:12 pm, jeremy  wrote:
>
> > Hmm, I'm not sure what "session timing" is.
>
> > I have an idea to reduce writes. Instead of updating the sid of every
> > session individually, give each session a random value between 0 and
> > C, and have one application-wide value R randomized every
> > session_token_ttl seconds to an integer between 0 and C, then hand the
> > client the value of this as a token:
>
> > t = (session_id+R)%C
>
> > then when a client hands the server a token, you can compute
> > session_id = (t-R)%C
>
> > (you can store the last 3 values of R as is done now for each sessions
> > sid)
>
> > I'm pretty sure there's no analysis attack that would allow a client
> > to figure out either R at any moment or their own (constant)
> > session_id. But, i could be wrong about that :\ ... The advantage
> > would be you're only updating a single datastore entity every
> > session_token_ttl.
>
> > On Jan 22, 9:24 pm, "bowman.jos...@gmail.com"
>
> >  wrote:
> > > I've gone with a different approach that currently achieves similar
> > > results, that's now available in the trunk. A new variable,
> > > last_activity_update has been added. It's the amount of seconds that
> > > needs to pass before that field needs to be updated by doing a put().
> > > It defaults to 60 seconds, which of course is longer than the duration
> > > before a put is required to update the session token with the default
> > > settings.
>
> > > This will allow developers who wish to lengthen their
> > > session_token_ttl to a larger interval to still get their
> > > last_activity update in, useful for session timing. It too is
> > > customizable so for developers who have no use for this field can set
> > > it to a large enough number to be irrelevant.
>
> > > I'm trying to flush out an idea I have to limit the amount of writes
> > > for the token even further, but am still researching it. If I figure
> > > it out I will get it in and do another release. Otherwise I will
> > > release what's there now. Before any release I want to go over the
> > > refactoring you did as it does look more efficient than what I
> > > currently have, thanks.
>
> > > On Jan 22, 6:31 pm, jeremy  wrote:
>
> > > > Ok. I actually modified Session.__init__ locally to do the
> > > > last_activity on sid rotation (i also refactored it a bit to reduce
> > > > repeated code blocks). Regarding google.com's SID cookie - i'm not
> > > > seeing the sid update within minutes. I'm not sure why yours rotates
> > > > so quickly, but it&

[google-appengine] Re: is gaeutilities sessions the only 3rd party session manager?

2009-01-23 Thread jeremy

aah, i see.


On Jan 23, 10:08 am, "bowman.jos...@gmail.com"
 wrote:
> Yea but R would be rotated every 15 seconds which would decrease the
> window in which a session is really valid by a large margin.That's why
> the session token needs to be tied to every account.
>
> On Jan 23, 1:04 am, jeremy  wrote:
>
> > "What I see as a concern with your approach is what happens when the
> > server wide variable R gets out of sync with someone's version that
> > was crypted based off of it? The original reason the 3 valid token set
> > "
>
> > that's why i mention that "you can store the last 3 values of R as is
> > done now for eachsessionssid" - so all 3 would be tried as is done
> > now with the sid list on each session entity. you could also count how
> > often R has been randomized and hand this iteration index to the
> > client as part of the token.
>
> > i'm not sure about going primarily with memcache - isn't memcache
> > designed only to be a caching layer? memcache isn't volatile in the
> > sense of being either up or down. rather, it throws out stored data
> > "randomly" as far as the developer is concerned as load increases.
>
> > On Jan 23, 1:37 am, "bowman.jos...@gmail.com"
>
> >  wrote:
> > > By the way, I really am not concerned with analysis attacks. It's
> > > sniffing/spoofing attacks that are most common for session hijacking.
> > > I simply sniff the network and find out what the name and value of the
> > > cookie are, and what user agent you are sending. I then duplicate
> > > those 2 things and if I'm behind the same NAT as you, I have your
> > > session loaded up in my browser. If I'm any good a social hacking, I
> > > set my page to auto refresh and then distract you by talking to you
> > > until I have your full session by rotating the session tokens past the
> > > point of where the one in your browser is invalid, and more than
> > > likely the application will make log back in, without logging me out.
> > > This is where you may want to consider tieing the session directly to
> > > a user account, so a user can only be logged in once at any time, and
> > > logging invalidates the current log in if it exists, ie:
> > > active_session field on your user model.
>
> > > Just some late night thoughts when I really should be asleep.
>
> > > On Jan 22, 11:12 pm, jeremy  wrote:
>
> > > > Hmm, I'm not sure what "session timing" is.
>
> > > > I have an idea to reduce writes. Instead of updating the sid of every
> > > > session individually, give each session a random value between 0 and
> > > > C, and have one application-wide value R randomized every
> > > > session_token_ttl seconds to an integer between 0 and C, then hand the
> > > > client the value of this as a token:
>
> > > > t = (session_id+R)%C
>
> > > > then when a client hands the server a token, you can compute
> > > > session_id = (t-R)%C
>
> > > > (you can store the last 3 values of R as is done now for eachsessions
> > > > sid)
>
> > > > I'm pretty sure there's no analysis attack that would allow a client
> > > > to figure out either R at any moment or their own (constant)
> > > > session_id. But, i could be wrong about that :\ ... The advantage
> > > > would be you're only updating a single datastore entity every
> > > > session_token_ttl.
>
> > > > On Jan 22, 9:24 pm, "bowman.jos...@gmail.com"
>
> > > >  wrote:
> > > > > I've gone with a different approach that currently achieves similar
> > > > > results, that's now available in the trunk. A new variable,
> > > > > last_activity_update has been added. It's the amount of seconds that
> > > > > needs to pass before that field needs to be updated by doing a put().
> > > > > It defaults to 60 seconds, which of course is longer than the duration
> > > > > before a put is required to update the session token with the default
> > > > > settings.
>
> > > > > This will allow developers who wish to lengthen their
> > > > > session_token_ttl to a larger interval to still get their
> > > > > last_activity update in, useful for session timing. It too is
> > > > > customizable so for developers who have no use for this field can set
> > > > > it to a large 

[google-appengine] pricing / additional app slots

2009-02-02 Thread jeremy

will additional app slots be part of the pricing model?
--~--~-~--~~~---~--~~
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: "This application ID or version is already in use" Error

2009-02-02 Thread jeremy

why does appspot share a namespace with gmail? that seems, random..

On Feb 2, 1:34 pm, Marzia Niccolai  wrote:
> Hi,
>
> I don't know of any problems with the app id verifier.  App Engine
> checks app ids against the Gmail namespace, so any app id that is
> already taken as a Gmail address will only be available to the owner
> of that address.
>
> The net result is that many desired app ids are not available.
>
> -Marzia
>
> On Mon, Feb 2, 2009 at 6:04 AM, Sagie Maoz  wrote:
>
> > Hi,
>
> > I've just started learning to use App Engine, and trying to figure out
> > my way into the service...
> > I created an account, but when filling the "Create an Application"
> > form athttp://appengine.google.com/start/createapp, All I get is the
> > error message:
> >        This application ID or version is already in use
>
> > I have read in past discussions that there was a problem with the
> > "Check Availability" button, but this happens to me for every input,
> > even for some made-up strings that I'm pretty sure are available.
>
> > Am I doing something wrong? Is the service open to new applications at
> > all?
>
> > 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] chunked transfer encoding

2009-02-20 Thread jeremy

i'm running into some difficult with chunked transfer encoding. i'm
certain that the client is transmitting a body, but the request
handler has an empty body.

this seems to be a long standing issue: 
http://code.google.com/p/googleappengine/issues/detail?id=129

is there a work around? is it only on the sdk?
--~--~-~--~~~---~--~~
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: chunked transfer encoding

2009-02-20 Thread jeremy

so using netcat as a dummy host, i've confirmed the client is sending
the data i expect:




POST /_datum/blaaah.bin HTTP/1.1
Transfer-Encoding: chunked
Content-Type: multipart/form-data; boundary=A-
mBZUkudNqt56TwNWjHhJy91U2HlskAAyqGEzwn
Host: localhost:8088
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.0-beta2 (java 1.5)
Expect: 100-Continue

2c
--A-mBZUkudNqt56TwNWjHhJy91U2HlskAAyqGEzwn

91
Content-Disposition: form-data; name="content"; filename="content"
Content-Type: application/octet-stream
Content-Transfer-Encoding: binary





but self.request.get('content') in the request handler returns an
empty 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: Transfer encoding for applets?

2009-04-17 Thread jeremy

use the mime_type parameter for static files in the app.yaml?

On Apr 17, 7:40 pm, Dieter Krachtus 
wrote:
> Hi,
>
> I would like to set the Content-Encoding for files of certain type to
> pack200-gzip?
>
> I would need it to increase the startup time for my applet 
> athttp://www.chartle.net
>
> Read more about 
> it:http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide...
>
> Quote:
> "The server will set the response header Content-Encoding (CE) field
> to pack200-gzip , gzip, or NULL depending on the type of file that is
> being sent, and optionally may set the Content-Type (CT) to
> application/Java-archive."
>
> I originally didn't host on appengine where I could set things like
> Content-Encoding. Not being able to do that is somewhat of a
> dealbreaker for me :(
>
> Cheers,
> Dieter
--~--~-~--~~~---~--~~
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] programmatic maintenance notification

2009-04-20 Thread jeremy

it would be nice to have formalized notification of maintenance events
- a single appengine.google.com url returning something like:

datastore: down - eta 1 hour
memcache: up
urlfetch: up
and so on...

i subscribe to google-appengine-downtime-not...@googlegroups.com, but
i'd like my site to automatically announce to visitors that they
should expect limited functionality, and for how long this could last.
--~--~-~--~~~---~--~~
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: programmatic maintenance notification

2009-04-20 Thread jeremy

hmm, actually it would have to be it's own maintenance api (if
urlfetch went down the app wouldn't be able to access this).

On Apr 20, 2:48 pm, jeremy  wrote:
> it would be nice to have formalized notification of maintenance events
> - a single appengine.google.com url returning something like:
>
> datastore: down - eta 1 hour
> memcache: up
> urlfetch: up
> and so on...
>
> i subscribe to google-appengine-downtime-not...@googlegroups.com, but
> i'd like my site to automatically announce to visitors that they
> should expect limited functionality, and for how long this could last.
--~--~-~--~~~---~--~~
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: newbie : Template does not exist error

2009-04-23 Thread Jeremy

The template directory should also contain the name of the html file.
If the static dir is 'templates' and the html file is
'test_template.html', then it'd look like this:

 os.path.join(os.path.dirname(__file__), 'templates/
test_template.html')


On Mar 13, 6:38 pm, arbi  wrote:
> Hi,
>
> I took some hours now to find out the solution to my pb. I didn't find
> the solution on app engine forum, so I post it.
> When running localy : no pb (expect the media css is not loaded, I
> don't know why).
> But when I want to update it to server, there is a "raise
> TemplateDoesNotExist, name.  TemplateDoesNotExist: 404.html"
>
> Hre is the traceback :
>
> Exception in request:
> Traceback (most recent call last):
>   File "/base/data/home/apps/antrivecov/1.332050104410580633/common/
> zip-packages/django.zip/django/core/handlers/base.py", line 113, in
> get_response
>     return callback(request, **param_dict)
>   File "/base/data/home/apps/antrivecov/1.332050104410580633/common/
> zip-packages/django.zip/django/views/defaults.py", line 13, in
> page_not_found
>     t = loader.get_template(template_name) # You need to create a
> 404.html template.
>   File "/base/data/home/apps/antrivecov/1.332050104410580633/common/
> zip-packages/django.zip/django/template/loader.py", line 80, in
> get_template
>     source, origin = find_template_source(template_name)
>   File "/base/data/home/apps/antrivecov/1.332050104410580633/common/
> zip-packages/django.zip/django/template/loader.py", line 73, in
> find_template_source
>     raise TemplateDoesNotExist, name
> TemplateDoesNotExist: 404.html
>
> Why doesn't he find the template ?
> My settings are :
>
> TEMPLATE_CONTEXT_PROCESSORS = (
>     'django.core.context_processors.auth',
>     'django.core.context_processors.media',
>     'django.core.context_processors.request',
> )
>
> TEMPLATE_DIRS = (
>     os.path.join(os.path.dirname(__file__), 'templates'),
> )
>
> GLOBALTAGS = (
>     'ragendja.templatetags.ragendjatags',
>
> And the template i want to load is very simple : "test_template.html"
> with " hello! " content.
>
> Thanks for helping, i want so much to see my app on app engine!
>
> Arbi

--~--~-~--~~~---~--~~
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: Attempts to deploy result in 500 Server Error

2010-11-06 Thread Jeremy Benetz
I'm getting 500 errors when simply trying to open the admin console for
my apps. Something is seriously wrong with the app engine this morning.

-- 
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-appeng...@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: High rate for errors of type 500 ?

2010-11-06 Thread Jeremy Benetz
Yes. I'm getting a lot of 500 errors. It has nothing to do with my code
since I'm just trying to access the admin dashboard. That's what's
giving me the 500 errors.

-- 
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-appeng...@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 get into dashboard?

2010-11-06 Thread Jeremy Benetz
Same here. It's the 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-appeng...@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.



Re: [google-appengine] Re: Updated App Engine Pricing FAQ!

2011-07-01 Thread Jeremy Wallez
I totally agree with you Vivek.

Personnally, I like GAE but I encountered a lot of strange behaviors on my
business applications.

2011/6/29 vivpuri 

> > I understand that you are upset that your appengine bill might go up
> > 4X, but how do you jump from this to the conclusion that "Google
> > should support PHP"??
> Every application development platform needs developers. iOS, AWS,
> Facebook, Win32, MacOS, And each platform provider comes up with a
> a strategy to acquire developers. Apple did that via steller products
> backed with millions of dollars of ad budgets. AWS revolutionized
> regular hosting company operations by adding ability to bring servers
> up and down at an instants notice. This attracted corporate users who
> could put java, and startups that could PHP. Msft got developers by
> tight bundling of products, where one feeds the other.
>
> What was the plan for AppEngine? None in my opinion. AppEngine put
> Python out first, which was clearly not developers choice at that
> time. And second one to come in was Java, where google thought they
> will get the enterprise customers and resulting big money. However, as
> everyone has discovered, corporates are not yet prepared for paradigm
> shift in programming that AppEngine offers and would very much prefer
> a server based model that EC2 offers. And besides that, no support
> desk to call 24X7 pretty much kills any corporate interest. As a
> result corporate customers are really locked out for AppEngine. As for
> Python, there are not many startups looking to take this path 'cause
> lack of developers is going to cause long term hiring issues.
>
> Going by numbers, if we look at the Bug Tracker for AppEngine -
> http://code.google.com/p/googleappengine/issues/list , number 1
> request is "PHP Support is a must" with 3143 votes(approx 50% more
> votes than feature #2). In my opinion, Google should have never
> ignored developer opinion. Instead, AppEngine team should have
> recognized the demand and delivered the feature. And now 3 years down
> the line, AppEngine has added support for GO instead, which has pretty
> much no developers. As compared to that, if they had added support for
> PHP, there would have been thousands of more developers on the
> platform, generating more revenues for AppEngine, and the team not
> getting forced to make such drastic pricing changes.
>
> Besides that, from what is seems to me, someone with mindset of Google
> Apps or even Search Product is making decisions for AppEngine, where
> each developer is treated like a user. As a result strategy/thinking
> is that features can be flipped right before our eyes without being
> asked for opinion or any consideration for our efforts. Personally i
> have been here since the days when AppEngine didnt throw the
> DeadlineExceededError and you were left wondering for days why that
> HTTP 500 is showing, and days when i was not able to delete data for 2
> months since no process existed, and times when i had to pay $6k for
> deleting 3TB of data, and days where there are thousands of datastore
> timeouts resulting in user loss(without getting any refund). With all
> this, I would really hope AppEngine gives more consideration to
> existing developers.
>
>
> > I think you assume too much.  I interpret this as a temporary salve to
> > keep Python developers from feeling like second-class citizens until
> > multithreaded Python is available.
> I am not assuming too much. It's simple math. Besides that, i have
> never seen a hosting company tell me that since PHP version x now has
> support for this new feature. If you implement it, its good, else we
> are going to change 4X for the server.
> Also, writing new code to support threading is okay, but modifying
> half million lines of production code to support threading is
> suicide.
>
>
> On Jun 29, 4:29 am, Jeff Schnitzer  wrote:
> > On Tue, Jun 28, 2011 at 8:34 PM, vivpuri  wrote:
> >
> > > Thank you for the response. I am not really confused about anything.
> > > Everyone has different set of experiences and resulting opinions.
> > > Facebook was built on PHP, and definitely started from $5 PHP/MySQL.
> >
> > I understand that you are upset that your appengine bill might go up
> > 4X, but how do you jump from this to the conclusion that "Google
> > should support PHP"??
> >
> > > Also, i am not able to understand the logic behind charging half for
> > > python instances since AppEngine does not support threading as of now.
> > > I am a python threading noob, but going by the offer that AppEngine
> > > team has thrown out, it seems threading can increase performance at
> > > most by 2x, which is the only way you can justify 1/2 price. I find it
> > > hard to believe.
> >
> > I think you assume too much.  I interpret this as a temporary salve to
> > keep Python developers from feeling like second-class citizens until
> > multithreaded Python is available.
> >
> > Jeff
>
> --
> You received this message because you are 

[google-appengine] Re: Fontend instance hours seem to be a bit overcharged

2011-09-05 Thread Jeremy Brown
On Sep 1, 1:43 pm, "Gregory D'alesandre"  wrote:
>
> That being said "Always on" currently keeps 3 instances running for you to
> be ready to serve traffic.  Under the new model you'll be able to choose the
> number of minimum idle instances you want to keep running.  The scheduler
> has been tuned to take advantage of the new model but the billing comparison
> you are seeing is showing charges for the 3 always on instances that are
> running.

Just to clarify, does this mean I will be able to choose a "Keep only
1 instance Always On" option, and pay less than if I was choosing 3
Always-On instances?

Jeremy

-- 
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: Fontend instance hours seem to be a bit overcharged

2011-09-05 Thread Jeremy Brown
Will there be an option for more granularity in "Always On"? Currently
it creates 3 always on instances. My app would probably do fine with 1
Always On instance, and having 3 always on will just cost me more than
I need to pay.

Jeremy

On Sep 1, 11:18 pm, "Gregory D'alesandre"  wrote:
> On Thu, Sep 1, 2011 at 2:50 PM, Francois Masurel wrote:
>
> > How does all this relate to this issue ?
>
> >http://code.google.com/p/googleappengine/issues/detail?id=5414
>
> > I guess I'm a bit lost in fact.
>
> > On my rather low-traffic java app I need to have one "Always on" instance
> > to avoid loading requests but I want to stay within my budget and avoid
> > creating unnecessary dynamic instances.
>
> As with today, if you want to keep instances running all the time you will
> likely have to pay something.  But if you have a very low traffic app and
> set Min Idle Instances to 1, that will use your free 24 instance hours, and
> then when you get traffic it could temporarily spin up instances which would
> be paid for.
>
> > How am I supposed to tweak my application settings ?
>
> Without knowing more detailed information about your application setting Min
> Idle Instances to 1 and Max Idle Instance to 1, then Min Pending Latency to
> a reasonable level for you (maybe 200ms?) that will minimize how frequently
> the Scheduler will create new instances.
>
> > What control will we have on these instance hours ?
>
> More information can be found 
> here:http://code.google.com/appengine/kb/postpreviewpricing.html#adjustmen...
>
> > It feels like the 24 hours free quota will in fact never be enough if we
> > set "Minimum/Maximum idle instances" to 1 as some dynamic instances will
> > frequently be created just to serve a warmup request in most cases.
>
> Yes, if you always have 1 idle instance running you'll likely go at least
> somewhat above the free quota.  But again, that is the same as it is today,
> in order to keep Always On instances running you need to pay something for
> it.
>
> I hope that helps answer some of your questions!
>
> Greg
>
>
>
>
>
>
>
>
>
> > Thanx for your help.
>
> > Francois
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To view this discussion on the web visit
> >https://groups.google.com/d/msg/google-appengine/-/c9r4nNQ7UXAJ.
>
> > 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.

-- 
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: ArgumentError: An error occurred parsing (locally or remotely) the arguments to datastore_v3.Put().

2012-08-25 Thread Jeremy Truax
I'm also getting this error. Is there a workaround? It seems to be because 
I'm trying to put too much data into the datastore at once. I'm inserting 
an image blob so that's obviously the reason. I suppose I could compress 
the image but was curious if anyone knew of any other workarounds.

On Monday, May 21, 2012 1:18:45 PM UTC-7, jay wrote:
>
> Hey All, 
>
> My App started throwing this error over the last 24 hours or so and users 
> have been complaining the site is slow. 
>
> After doing a search I see that there was an error in the Bug DB from 
> earlier in the year but it is marked fixed. 
>
> AppId = jupitersfolly
>
> Any help tracking down what is causing the problem would be greatly 
> appreciated. 
>
> Jay.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/wKsDxh2q-rkJ.
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: Understanding 'Frontend Instance Hours'

2012-09-24 Thread Jeremy Chua
I had a look at the GAE document for frontend instance but not really know 
how it works.
My application currently only does cron jobs and push queue task. Both uses 
URL fetch. But all this are still within limits (< 5%).

My frontend instance is almost 80%.

Correct me if i'm wrong. The quota of frontend instance means any request 
to my web application??
Since deployment, my application doesn't have any request yet!

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/F0zTCKfkFJYJ.
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 do I get all cookies from GAE urlfetch service

2012-10-27 Thread Jeremy Chua
Hi, how did you even get to use CookieManager since its not supported in 
GAE. Did you create a custom one?
I'm using GAE 1.7.3

On Saturday, April 28, 2012 9:31:17 PM UTC+8, pman wrote:
>
> ... 
> HTTPRequest httpRequest = new HTTPRequest(new URL(aRemoteServerUrl), 
> HTTPMethod.GET); 
> httpRequest.getFetchOptions().doNotFollowRedirects(); 
>
> cookieManager.setCookies(httpRequest); 
>
> HTTPResponse httpResponse = 
> URLFetchServiceFactory.getURLFetchService().fetch(httpRequest); 
>
> cookieManager.storeCookies(httpRequest, httpResponse); 
> ... 
>
> The above code run well in GAE sdk locally; however, when deployed in 
> GAE production server. It failed. 
>
> I debugged and found that the first cookie returned from 
> "aRemoteServerUrl" was somehow lost in GAE production server. And, 
> this made my code failed. 
>
> i.e. problem - incomplete cookies returned from GAE urlfetch service. 
>
> Any help? 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/B41QuTqv9u4J.
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] Transferring App Balance

2012-11-14 Thread Jeremy Gordon
I administer several billing-enabled GAE apps.

I'm currently holding an excessive balance in one of my applications, and 
would like to be able to transfer some of this balance to another 
application (billing administrator details are the same).  Is this possible?

Many thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/WTM3v8JrEScJ.
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] Debugging UnexpectedStateError while trying to start module.

2013-07-25 Thread Jeremy Bornstein
I am attempting to convert my backend use to app engine modules and am 
having difficulty.

The simplest place to start seems to be to say that calling 
google.appengine.api.modules.start_module() raises an UnexpectedStateError. 
I'm not seeing any evidence of a startup problem in the logs. Nor am I 
seeing evidence that the startup was attempted.

As a possibly-related aside, my backend is still configured, and appears in 
the UI as a version of the default module. When I call start_module() to 
start that explicitly, I get the same error.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Problems with modules

2013-07-25 Thread Jeremy Bornstein
I am having trouble getting my module(s) to run. Here's a StackOverflow 
post:

http://stackoverflow.com/questions/17827475/starting-app-engine-modules-in-google-app-engine/17848050?noredirect=1#17848050

Any help or pointers would be much appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: major bug in live instance hours calculation

2013-10-05 Thread Jeremy Benetz
I have noticed the same thing but only in one of my apps.  It's rarely ever 
been billed more than a penny or two.  The last few days it has been 
expending the frontend hours up to my billable amount and then it shuts 
down due to quota denials.  The next day when I get the bill, the front end 
hours appear correct (well below the quota limit) and I don't get billed 
anything.  Very frustrating.  I've sent a couple of billing inquiries in 
but have gotten no response.

On Friday, October 4, 2013 5:54:59 PM UTC-7, pdknsk wrote:
>
> I have collected evidence to make a case.
>
> https://code.google.com/p/googleappengine/issues/detail?id=10077
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


[google-appengine] Re: major bug in live instance hours calculation

2013-10-07 Thread Jeremy Benetz
pdknsk,

I did another deployment and the issue seems to have corrected itself.  The 
bug seems to occur during deployment.  Have you tried that?

On a somewhat different note, I did get a response from billing support. 
 My question to them clearly stated that it was concerning a billing 
enabled app. If they had bothered to look up the app id at all they would 
have seen it was a billing enabled app, but their entirety of their 
response was how to enable billing for my app.  That's quality.  Good job 
Google!



On Sunday, October 6, 2013 2:29:34 PM UTC-7, pdknsk wrote:
>
> It's exactly the same bug. Please add your app id (unless you don't want 
> to make it public) to the bug report. Thanks.
>
> On Sunday, 6 October 2013 00:50:54 UTC+2, Jeremy Benetz wrote:
>>
>> I have noticed the same thing but only in one of my apps.  It's rarely 
>> ever been billed more than a penny or two.  The last few days it has been 
>> expending the frontend hours up to my billable amount and then it shuts 
>> down due to quota denials.  The next day when I get the bill, the front end 
>> hours appear correct (well below the quota limit) and I don't get billed 
>> anything.  Very frustrating.  I've sent a couple of billing inquiries in 
>> but have gotten no response.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [google-appengine] Re: HItting query limit using Geocoding API from App Engine

2013-12-17 Thread Jeremy McLain
An issue has been opened.  Actually is a feature 
request: https://code.google.com/p/gmaps-api-issues/issues/detail?id=2844

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


[google-appengine] Re: HItting query limit using Geocoding API from App Engine

2013-12-17 Thread Jeremy McLain
This is driving me crazy.  I've tried three different proxies and I am 
still getting: "You have exceeded your daily request quota for this API."

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


[google-appengine] GAE/J Problem persisting updated jpa entities

2014-03-12 Thread Jeremy Craney
Is anyone else experiencing some trouble when trying to persist or merge an 
updated entity back into the datastore using the cloud endpoint update 
method? Inserting a new entity works fine but when I try to update an 
entity though the gpe generated cloud endpoint update method, the entity 
doesn't update and then the manager goes null. When the close method gets 
called on the entity manager, I get a null pointer exception. 

I have tried changing the method  to use an entity transaction and the 
merge method but I get the same result. 

here is a link that shows the code I'm using and the log from the admin 
console. 

http://stackoverflow.com/questions/22215640/cloud-endpoints-update-method-crashes-at-mgr-close

the npe always occurs at the mgr.close() line. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] IllegalArgumentException when using 1.9.30 GAE

2016-01-14 Thread Jeremy Rochot
Hi, 

I'm unable to upload my project since using 1.9.30 GAE:

java.lang.IllegalArgumentException: Class file is Java 8 but max supported 
is Java 7: org/json/CDL.class in 
/Users/jeremyrochot/portal/target/wizyportal-1.0-SNAPSHOT/WEB-INF/lib/json-20150729.jar


Could you help ?


Thx

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/2894793f-f69c-4a67-9012-9b4ea7e5c34d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Need advice on MySQLdb connection denied by TCP/IP block

2017-02-12 Thread Jeremy Deats
Greetings all,

First time to post to this forum. So I have a service implemented in 
Python-Flask which I am currently running in App Engine. I decided to add a 
short block of mysql code to connect and insert into a mysql database. In 
this case I know the mysql database and related user account are working as 
I have the database configured to accept outside request and the user 
account I have configured to not be bound to specific incoming IP address. 
This has been fully tested from multiple outside servers and the problem is 
definately inside App Engine.

The dump from inside Google Cloud log view shows the failure point. This is 
when the connection is attempted.

File 
"/base/data/home/runtimes/python27_experiment/python27_lib/versions/third_party/MySQLdb-1.2.5/MySQLdb/connections.py",
 
line 193, in __init__ super(Connection, self).__init__(*args, **kwargs2) 
*OperationalError: 
(2004, "Can't create TCP/IP socket (-1)")*


This led me to do some digging and found another user who had the same 
problem with no resolve. 
https://code.google.com/p/googleappengine/issues/detail?id=11971

Responses from others on that thread indicate that indicate that there is a 
problem with using TCP/IP sockets and the MySQLdb library inside App 
Engine. So I'm hoping to get confirmation this is true and curious about 
best work around approaches. It seems odd the MySQL library would be 
officially supported in App Engine only to be blocked because TCP IP 
connections made from MySQLDB calls are not supported.

I am adding MySQL support by including it in my App.yaml using version 
1.5.2 
https://cloud.google.com/appengine/docs/python/tools/using-libraries-python-27

At first I was thinking that hosted in App Engine Flask could only 
communicate with Google SQL (managed MySQL) but In the GCS documentation it 
states explicitly that MySQL databases hosted outside GCS are supported. 
Although it shouldn't make a difference, in this case the MySQL database 
I'm connecting to is hosted in a Compute Engine VM inside the same GCS 
account where the App Engine instance is running.

Thanks,
Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/5ad59d25-cb23-40e8-8cd4-fc4103549c54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Can't Manage App After Creating

2008-09-02 Thread Jeremy Banks

Whenever I attempt to log in to the management dashboards for the
application I've created, I get met with the message that I've been
added to the waiting list. Since I've already created an application,
it's obvious that I'm not on the waiting list. I tried again, new
account and new application, and I have the same result. Can anyone
provide any tips for me?

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Is GAE down?

2017-03-03 Thread Jeremy Hua
My GraphQL endpoint https://staging-dot-humb-app.appspot.com/graphql is 
sometimes up returning {"errors":[{"message":"Cannot read property 'split' 
of undefined"}]} as expected on browser and correct responses on my app. 
However, every alternate request is returning 

Error: Server ErrorThe server encountered a temporary error and could not 
complete your request.

Please try again in 30 seconds.

Its nodejs server on a flexible environment exposing the graphql endpoint.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/fdfa7d06-f05d-4611-a638-b86cb06c9d55%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Is Google using GAE?

2017-12-19 Thread Jeremy Lorino
Isn't there some sort of giphy app used internally running on GAE? ;)

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/4eda5e87-bee8-4c35-afcf-e97fddb3f611%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Unable to deploy via appcfg or gcloud

2018-01-17 Thread Jeremy D
We can't seem to deploy our application, out of the blue, as of yesterday 
afternoon. appcfg only returns a 400 bad request error, no other 
information given. Below is a copy of what gcloud returns, seems to offer a 
bit more detail but nothing we can seem to solve on our end. 

*Nothing* about our environment or any fundemental code has been changed. 
There seems to be no rhyme or reason as to why we suddenly can't deploy. 
This is to any version. We also have a separate app ID for testing, we 
can't deploy to that either.

Updating service [default]...\DEBUG: Received operation: [apps/ id>/operations/15647c11-0a49-46cc-a52d-0bb85e4b96e0]
> DEBUG: Operation [apps/ id>/operations/15647c11-0a49-46cc-a52d-0bb85e4b96e0] not complete. Waiting 
> 5s.
> Updating service [default]...|DEBUG: Operation [apps/ id>/operations/15647c11-0a49-46cc-a52d-0bb85e4b96e0] not complete. Waiting 
> 5s.
> Updating service [default].../DEBUG: Operation [apps/ id>/operations/15647c11-0a49-46cc-a52d-0bb85e4b96e0] complete. Result: {
> "metadata": {
> "user": "",
> "target": "apps//services/default/versions/dev-jeremy",
> "@type": 
> "type.googleapis.com/google.appengine.v1beta5.OperationMetadataV1Beta5",
> "insertTime": "2018-01-17T18:02:35.848Z",
> "method": "google.appengine.v1beta5.Versions.CreateVersion"
> },
> "done": true,
> "name": "apps/ id>/operations/15647c11-0a49-46cc-a52d-0bb85e4b96e0",
> "error": {
> "message": "An internal error occurred.",
> "code": 13
> }
> }
> Updating service [default]...failed.
> DEBUG: (gcloud.app.deploy) Error Response: [13] An internal error occurred.
> Traceback (most recent call last):
>   File 
> "/Users/jeremy/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py", line 
> 720, in Execute
> resources = args.calliope_command.Run(cli=self, args=args)
>   File 
> "/Users/jeremy/google-cloud-sdk/lib/googlecloudsdk/calliope/backend.py", 
> line 1455, in Run
> resources = command_instance.Run(args)
>   File "/Users/jeremy/google-cloud-sdk/lib/surface/app/deploy.py", line 
> 53, in Run
> return deploy_util.RunDeploy(self, args)
>   File 
> "/Users/jeremy/google-cloud-sdk/lib/googlecloudsdk/command_lib/app/deploy_util.py",
>  
> line 300, in RunDeploy
> all_services)
>   File 
> "/Users/jeremy/google-cloud-sdk/lib/googlecloudsdk/command_lib/app/deploy_util.py",
>  
> line 167, in Deploy
> service, manifest, image, endpoints_info)
>   File 
> "/Users/jeremy/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/appengine_api_client.py",
>  
> line 118, in DeployService
> return operations.WaitForOperation(self.client.apps_operations, 
> operation)
>   File 
> "/Users/jeremy/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/api/operations.py",
>  
> line 70, in WaitForOperation
> encoding.MessageToPyValue(completed_operation.error)))
> OperationError: Error Response: [13] An internal error occurred.
> ERROR: (gcloud.app.deploy) Error Response: [13] An internal error occurred.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/46aa856c-e13d-445f-8558-5e27d4fd93b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Trouble with dispatch.yaml

2018-01-17 Thread Jeremy D
First thought here is that because dispatch checks these routes *in order,* you 
have a "/*" route ahead of "/notifications", so no routes will 
ever reach notifications, because your wildcard hits it first. Move the 
notification route ahead of the wildcard, and you should be good.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/472439a0-2981-4355-a858-2e5f5decd37d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Unable to deploy via appcfg or gcloud

2018-01-17 Thread Jeremy D
Early solution seems to be running imageoptim on a number of image files we 
have. These images haven't been touched in _months_ so I'm not sure why 
this problem is happening now but, cleaning those images of various meta 
data seemed to do the trick.


On Wednesday, January 17, 2018 at 1:18:17 PM UTC-5, Jeremy D wrote:
>
> We can't seem to deploy our application, out of the blue, as of yesterday 
> afternoon. appcfg only returns a 400 bad request error, no other 
> information given. Below is a copy of what gcloud returns, seems to offer a 
> bit more detail but nothing we can seem to solve on our end. 
>
> *Nothing* about our environment or any fundemental code has been changed. 
> There seems to be no rhyme or reason as to why we suddenly can't deploy. 
> This is to any version. We also have a separate app ID for testing, we 
> can't deploy to that either.
>
> Updating service [default]...\DEBUG: Received operation: [apps/> id>/operations/15647c11-0a49-46cc-a52d-0bb85e4b96e0]
>> DEBUG: Operation [apps/> id>/operations/15647c11-0a49-46cc-a52d-0bb85e4b96e0] not complete. Waiting 
>> 5s.
>> Updating service [default]...|DEBUG: Operation [apps/> id>/operations/15647c11-0a49-46cc-a52d-0bb85e4b96e0] not complete. Waiting 
>> 5s.
>> Updating service [default].../DEBUG: Operation [apps/> id>/operations/15647c11-0a49-46cc-a52d-0bb85e4b96e0] complete. Result: {
>> "metadata": {
>> "user": "",
>> "target": "apps//services/default/versions/dev-jeremy",
>> "@type": "
>> type.googleapis.com/google.appengine.v1beta5.OperationMetadataV1Beta5",
>> "insertTime": "2018-01-17T18:02:35.848Z",
>> "method": "google.appengine.v1beta5.Versions.CreateVersion"
>> },
>> "done": true,
>> "name": "apps/> id>/operations/15647c11-0a49-46cc-a52d-0bb85e4b96e0",
>> "error": {
>> "message": "An internal error occurred.",
>> "code": 13
>> }
>> }
>> Updating service [default]...failed.
>> DEBUG: (gcloud.app.deploy) Error Response: [13] An internal error 
>> occurred.
>> Traceback (most recent call last):
>>   File 
>> "/Users/jeremy/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py", line 
>> 720, in Execute
>> resources = args.calliope_command.Run(cli=self, args=args)
>>   File 
>> "/Users/jeremy/google-cloud-sdk/lib/googlecloudsdk/calliope/backend.py", 
>> line 1455, in Run
>> resources = command_instance.Run(args)
>>   File "/Users/jeremy/google-cloud-sdk/lib/surface/app/deploy.py", line 
>> 53, in Run
>> return deploy_util.RunDeploy(self, args)
>>   File 
>> "/Users/jeremy/google-cloud-sdk/lib/googlecloudsdk/command_lib/app/deploy_util.py",
>>  
>> line 300, in RunDeploy
>> all_services)
>>   File 
>> "/Users/jeremy/google-cloud-sdk/lib/googlecloudsdk/command_lib/app/deploy_util.py",
>>  
>> line 167, in Deploy
>> service, manifest, image, endpoints_info)
>>   File 
>> "/Users/jeremy/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/appengine_api_client.py",
>>  
>> line 118, in DeployService
>> return operations.WaitForOperation(self.client.apps_operations, 
>> operation)
>>   File 
>> "/Users/jeremy/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/api/operations.py",
>>  
>> line 70, in WaitForOperation
>> encoding.MessageToPyValue(completed_operation.error)))
>> OperationError: Error Response: [13] An internal error occurred.
>> ERROR: (gcloud.app.deploy) Error Response: [13] An internal error 
>> occurred.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/dde07d06-2213-41c8-8819-909e47c6b996%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Unable to deploy via appcfg or gcloud

2018-01-17 Thread Jeremy D
May have found the culprit. Possible that one of us working in dreamweaver 
or similar, that application stored a "Icon" system/hidden file and somehow 
that got checked into our version control. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/caaa0cf0-6ee3-4c85-8c05-6f5f9a6cc834%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Old versions still running (flexible environment)

2018-03-09 Thread Jeremy D
Seeing this in standard env on python as well. Traffic alloc is set to 
100%, but last 2 versions (which are several days old) are still running 3 
or 4 instances. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/bee46e86-019e-4a24-abd7-9f72ca1fed24%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] High untraced time on lightweight endpoint

2019-05-14 Thread Jeremy D



Seem to have random high untraced time on various endpoints, but most 
noticeably one that should always be responding well under 1 second, as all 
it does it kick off a Task based on request data. Most of the responses are 
around 100ms, some are even below that. Occasionally though, this endpoint 
runs into 5 to 10 seconds of latency. 

[image: Screen Shot 2019-05-14 at 4.04.52 AM.png]
It's not a request that triggered spawning a new instance, and many of them 
aren't either so I'm not sure why the untraced time is so high. Any 
thoughts?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/d1317353-4a97-49e2-ac25-12fef7bcffb6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: High untraced time on lightweight endpoint

2019-05-18 Thread Jeremy D
As you can see in the screenshot, this was not a request that spawned a new 
instance. Memory usage also doesn't appear to be a factor here.


On Thursday, May 16, 2019 at 2:29:36 PM UTC-5, Aref Amiri (Cloud Platform 
Support) wrote:
>
> Long Untraced 
>  
> Time could be related to a new instance being created or caused by handling 
> the load as a result of high amount of dependencies and the libraries in 
> your code. It may also be related directly to your application code which 
> can be investigated by directly applying logging 
>  throughout 
> your code. You can also check your App Engine Dashboard 
>  to to confirm that it is 
> not caused mainly by instance startup time, or excessive memory usage.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/0ac32312-b920-4d8c-94d3-600262c73e6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] High untraced time on lightweight endpoint

2019-05-22 Thread Jeremy D
Nope. This is automatic scaling. 

instance_class: F4
automatic_scaling:
  max_idle_instances: 1
  max_pending_latency: 1s
  max_concurrent_requests: 60

On Sunday, May 19, 2019 at 10:36:25 AM UTC-5, Gregory Block wrote:
>
> I'm going to guess this service is set for manual scaling.
>
> On Tue, May 14, 2019 at 2:06 AM Jeremy D > 
> wrote:
>
>>
>> Seem to have random high untraced time on various endpoints, but most 
>> noticeably one that should always be responding well under 1 second, as all 
>> it does it kick off a Task based on request data. Most of the responses are 
>> around 100ms, some are even below that. Occasionally though, this endpoint 
>> runs into 5 to 10 seconds of latency. 
>>
>> [image: Screen Shot 2019-05-14 at 4.04.52 AM.png]
>> It's not a request that triggered spawning a new instance, and many of 
>> them aren't either so I'm not sure why the untraced time is so high. Any 
>> thoughts?
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google App Engine" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-a...@googlegroups.com .
>> To post to this group, send email to google-a...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/google-appengine.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-appengine/d1317353-4a97-49e2-ac25-12fef7bcffb6%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/google-appengine/d1317353-4a97-49e2-ac25-12fef7bcffb6%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/0f5f268f-7d8b-467c-8ee1-c392997aa966%40googlegroups.com.


[google-appengine] Re: High untraced time on lightweight endpoint

2019-06-07 Thread Jeremy D
For posterity: 
https://stackoverflow.com/questions/56503733/high-latency-on-webapp2-endpoint-under-appengine

On Tuesday, May 14, 2019 at 4:06:04 AM UTC-5, Jeremy D wrote:
>
>
> Seem to have random high untraced time on various endpoints, but most 
> noticeably one that should always be responding well under 1 second, as all 
> it does it kick off a Task based on request data. Most of the responses are 
> around 100ms, some are even below that. Occasionally though, this endpoint 
> runs into 5 to 10 seconds of latency. 
>
> [image: Screen Shot 2019-05-14 at 4.04.52 AM.png]
> It's not a request that triggered spawning a new instance, and many of 
> them aren't either so I'm not sure why the untraced time is so high. Any 
> thoughts?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f78cd75b-8500-42eb-acc5-527b06856abc%40googlegroups.com.


[google-appengine] Blobstore?

2019-07-12 Thread Jeremy D
Was blobstore removed from the appengine dashboard? We still have some 
legacy things that use blobstore, and having access to the list of files 
uploaded to that is extremely useful. Where is it?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/c0e3bf83-b7fd-4be2-8f70-41cc6986959e%40googlegroups.com.


[google-appengine] Request errors out and kills instance with "The process handling this request unexpectedly died"

2019-12-11 Thread Jeremy D
I have an endpoint that accepts a date range. A short date of a year 
returns data fine. More than a few years, it takes about 25 seconds or so 
before returning a 500 error with no response in the body, but in Logging, 
I see this:

"The process handling this request unexpectedly died. This is likely to 
cause a new process to be used for the next request to your application. 
(Error code 203)"

This seems to also kill the instance that the request was ran on, and spins 
up another. This means a user could potentially continue to try and make 
this same request and have it constantly killing and restarting instances, 
slowing down response times everywhere else.

Is there a way to get more details about whats going wrong here? 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/d1a8d8a1-e205-4edb-8912-0486f8c4bfd7%40googlegroups.com.


[google-appengine] Re: Request errors out and kills instance with "The process handling this request unexpectedly died"

2019-12-11 Thread Jeremy D
Some further investigation, trying this on a separate test version using 
F4_HIGHMEM (we normally run F4), I can see the instance increase in memory 
usage dramatically until it reaches 1GB, and then it errors out/kills the 
instance. So, it would seem this is a memory limitation. I thought there 
were other sort of "fail safes" in the event the instance uses too much 
memory?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/319167c8-2050-46d4-b630-41ecceef15dc%40googlegroups.com.


[google-appengine] Migrating from Standard to Flexible, logs don't show up the same way

2020-02-01 Thread Jeremy D
I imagine there's more setup to be done but can't find any documentation 
about it. 

Using python standard, any time we use 
logging.info("whatever log")

it gets sent to Logging under the request, with an icon for what level 
severity, like this:


In Flexible however, when we log something in the exact same way, its 
spread out across Logging as individual log entries, making it extremely 
difficult to read the logs/get any sense of actual errors.



How can we fix this so that we only see *one *single line item per request, 
and any logs within that?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/a2b3b34f-0dac-42b9-a3f0-6ee5c3ad7195%40googlegroups.com.


[google-appengine] Re: Migrating from Standard to Flexible, logs don't show up the same way

2020-04-13 Thread Jeremy D
Still not showing in the same line. 

[image: chrome_3Fer0G8tTg.png]


On Monday, February 3, 2020 at 10:45:23 AM UTC-6, Aref Amiri (Cloud 
Platform Support) wrote:
>
> The logs in Flex environment 
> are
>  
> not bundled per request and logs from stdout and stderr are collected 
> separately. To group the logs and customize them, you may want to use the 
> Styackdriver 
> Logging API  directly. You can 
> also refer to this page 
> 
>  
> for details on writing application logs.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/881a778e-3c5d-45bb-b401-c6d2b19f8b68%40googlegroups.com.


[google-appengine] Re: Migrating from Standard to Flexible, logs don't show up the same way

2020-04-13 Thread Jeremy D
Additionally, "Note that this does not provide log levels that you can use 
for filtering in the Logs Viewer", that makes Logging entirely useless

On Monday, April 13, 2020 at 1:34:09 PM UTC-5, Jeremy D wrote:
>
> Still not showing in the same line. 
>
> [image: chrome_3Fer0G8tTg.png]
>
>
> On Monday, February 3, 2020 at 10:45:23 AM UTC-6, Aref Amiri (Cloud 
> Platform Support) wrote:
>>
>> The logs in Flex environment 
>> <https://cloud.google.com/appengine/docs/flexible/python/migrating#logging>are
>>  
>> not bundled per request and logs from stdout and stderr are collected 
>> separately. To group the logs and customize them, you may want to use the 
>> Styackdriver 
>> Logging API <https://cloud.google.com/logging/docs> directly. You can 
>> also refer to this page 
>> <https://cloud.google.com/appengine/docs/flexible/python/writing-application-logs>
>>  
>> for details on writing application logs.
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/d2fcb23b-dda8-4cdd-b31b-2fef5dbc6cbb%40googlegroups.com.


[google-appengine] Re: Migrating from Standard to Flexible, logs don't show up the same way

2020-04-13 Thread Jeremy D
I've created a stack overflow question that goes into more detail. 
https://stackoverflow.com/questions/61199007/appengine-flexible-logging-with-pyramid

This is an immense hindrance to Logging and really really does make it 
awfully useless.

On Monday, April 13, 2020 at 1:36:01 PM UTC-5, Jeremy D wrote:
>
> Additionally, "Note that this does not provide log levels that you can use 
> for filtering in the Logs Viewer", that makes Logging entirely useless
>
> On Monday, April 13, 2020 at 1:34:09 PM UTC-5, Jeremy D wrote:
>>
>> Still not showing in the same line. 
>>
>> [image: chrome_3Fer0G8tTg.png]
>>
>>
>> On Monday, February 3, 2020 at 10:45:23 AM UTC-6, Aref Amiri (Cloud 
>> Platform Support) wrote:
>>>
>>> The logs in Flex environment 
>>> <https://cloud.google.com/appengine/docs/flexible/python/migrating#logging>are
>>>  
>>> not bundled per request and logs from stdout and stderr are collected 
>>> separately. To group the logs and customize them, you may want to use the 
>>> Styackdriver 
>>> Logging API <https://cloud.google.com/logging/docs> directly. You can 
>>> also refer to this page 
>>> <https://cloud.google.com/appengine/docs/flexible/python/writing-application-logs>
>>>  
>>> for details on writing application logs.
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/71a73261-f0fc-47b6-94b1-8f754604e9c1%40googlegroups.com.


[google-appengine] Tasks not being delivered

2021-10-06 Thread Jeremy D
We're having problems with Task requests not being delivered. In Logs, I 
see "Status: INTERNAL" before it triggers another retry of the task. The 
instance its trying to reach has no logs it ever even attempted to make the 
request. Nothing has changed on our end, this is being triggered from an 
Appengine Flexible instance and being targeted back to the same instance.

  {
"insertId": "1ckf9kkb2h",
"jsonPayload": {
  "@type": 
"type.googleapis.com/google.cloud.tasks.logging.v1.TaskActivityLog",
  "task": 
"projects/redacted/locations/us-central1/queues/default/tasks/58101560599978915711",
  "attemptResponseLog": {
"attemptDuration": "0.003367s",
"targetType": "APP_ENGINE_HTTP",
"scheduleTime": "2021-10-06T19:26:21.290817Z",
"maxAttempts": 3,
"responseCount": "0",
"targetAddress": "POST /api/ping/tasks/goals/trigger_goal_emails",
"status": "INTERNAL",
"dispatchCount": "4"
  }
},
"resource": {
  "type": "cloud_tasks_queue",
  "labels": {
"target_type": "APP_ENGINE_HTTP",
"location": "us-central1",
"queue_id": "default",
"project_id": "redacted"
  }
},
"timestamp": "2021-10-06T19:26:21.296110014Z",
"severity": "ERROR",
"logName": 
"projects/redacted/logs/cloudtasks.googleapis.com%2Ftask_operations_log",
"receiveTimestamp": "2021-10-06T19:26:22.631910850Z"
  }

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/4680f152-f038-4a11-a110-f83fa10f8abdn%40googlegroups.com.


[google-appengine] Re: Tasks not being delivered

2021-10-06 Thread Jeremy D
I should also mention, some of these requests do reach the endpoint, most 
(probably 90%) of them do not. No indication the instance is overloaded or 
too busy.

On Wednesday, October 6, 2021 at 2:33:43 PM UTC-5 Jeremy D wrote:

> We're having problems with Task requests not being delivered. In Logs, I 
> see "Status: INTERNAL" before it triggers another retry of the task. The 
> instance its trying to reach has no logs it ever even attempted to make the 
> request. Nothing has changed on our end, this is being triggered from an 
> Appengine Flexible instance and being targeted back to the same instance.
>
>   {
> "insertId": "1ckf9kkb2h",
> "jsonPayload": {
>   "@type": "
> type.googleapis.com/google.cloud.tasks.logging.v1.TaskActivityLog",
>   "task": 
> "projects/redacted/locations/us-central1/queues/default/tasks/58101560599978915711",
>   "attemptResponseLog": {
> "attemptDuration": "0.003367s",
> "targetType": "APP_ENGINE_HTTP",
> "scheduleTime": "2021-10-06T19:26:21.290817Z",
> "maxAttempts": 3,
> "responseCount": "0",
> "targetAddress": "POST /api/ping/tasks/goals/trigger_goal_emails",
> "status": "INTERNAL",
> "dispatchCount": "4"
>   }
> },
> "resource": {
>   "type": "cloud_tasks_queue",
>   "labels": {
> "target_type": "APP_ENGINE_HTTP",
> "location": "us-central1",
> "queue_id": "default",
> "project_id": "redacted"
>   }
> },
> "timestamp": "2021-10-06T19:26:21.296110014Z",
> "severity": "ERROR",
> "logName": "projects/redacted/logs/cloudtasks.googleapis.com
> %2Ftask_operations_log",
> "receiveTimestamp": "2021-10-06T19:26:22.631910850Z"
>   }
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/9e4b3ae1-478f-439a-b423-079077881313n%40googlegroups.com.


[google-appengine] api to determine if application is running on a development server?

2010-01-06 Thread Jeremy Faller
Hello all:

I've been fooling with AppEngine and the Google Maps APIs, and I'm
running into a bit of a snag.  The Google Maps APIs require a 'key'
url parameter.  The key parameter is hashed to your domain name, so if
I've got a  tag from localhost, the key differs than from when
I'm running on the Google servers.

I'd like to programmatically switch the key depending on whether I'm
running in the development server on my localhost, or on Google's
infrastructure.  Does anyone know an API that I can call that will
tell me if I'm running in debug mode or not?  Specifically, I'm
looking for (in python):


_LOCALHOST_KEY= 'ABQInfs7bKE82qgb3Zc2YyS-
oBT2yXp_ZAY8_ufC3CFXhHIE1NvwkxSySz_REpPq-4WZA27OwgbtyR3VcA'
_MY_DOMAIN_KEY = 'xyzpdq'

def GoogleMapsKey():
  if IsRunningLocalHost():  # What's this API?
    return _LOCALHOST_KEY
  return _MY_DOMAIN_KEY


Thanks in advance.

Regards,
Jeremy Faller
-- 
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-appeng...@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: Too Many Versions (403)

2009-07-21 Thread Jeremy Truax

Crap I just got that, it's been working fine before that today.

I did notice they changed some quota stuff as of tomorrow, I think but
it doesn't say anything about a limited number of versions.

On Jul 19, 2:33 am, "j...@zenkraft.com"  wrote:
> Yes, I just hit this too:
>
> Error 403:  begin server output ---
>
> Too Many Versions (403)
> The application already has the maximum number of versions.
> --- end server output ---
>
> On Jul 19, 6:33 am, TaoGOGO  wrote:
>
> > have you solve the problems?it happened to me the same?:(
> > can you help me?
>
> > On 6月26日, 下午3时04分, dannyr  wrote:
>
> > > I'm getting the following error. I only have 1 version of the app.
> > > According to Quota Details, my Deployments are only 28 of 250 (11%).
> > > My application name is 'launchset'.
>
> > > Deploying new version.
> > > 2009-06-25 23:50:52,071 ERROR appcfg.py:1241 An unexpected error
> > > occurred. Abort
> > > ing.
> > > Traceback (most recent call last):
> > >   File "C:\Program Files\Google\google_appengine\google\appengine\tools
> > > \appcfg.p
> > > y", line 1234, in DoUpload
> > > self.Commit()
> > >   File "C:\Program Files\Google\google_appengine\google\appengine\tools
> > > \appcfg.p
> > > y", line 1106, in Commit
> > > self.Deploy()
> > >   File "C:\Program Files\Google\google_appengine\google\appengine\tools
> > > \appcfg.p
> > > y", line 1134, in Deploy
> > > version=self.version)
> > >   File "C:\Program Files\Google\google_appengine\google\appengine\tools
> > > \appengin
> > > e_rpc.py", line 344, in Send
> > > f = self.opener.open(req)
> > >   File "C:\Python25\lib\urllib2.py", line 387, in open
> > > response = meth(req, response)
> > >   File "C:\Python25\lib\urllib2.py", line 498, in http_response
> > > 'http', request, response, code, msg, hdrs)
> > >   File "C:\Python25\lib\urllib2.py", line 425, in error
> > > return self._call_chain(*args)
> > >   File "C:\Python25\lib\urllib2.py", line 360, in _call_chain
> > > result = func(*args)
> > >   File "C:\Python25\lib\urllib2.py", line 506, in http_error_default
> > > raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
> > > HTTPError: HTTP Error 403: Forbidden
> > > Rolling back the update.
> > > Error 403: --- begin server output ---
>
> > > Too ManyVersions(403)
> > > The application already has themaximumnumberofversions.
> > > --- end server output ---
--~--~-~--~~~---~--~~
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: Too many Versions (403)

2009-07-21 Thread Jeremy Truax

I'm having the same problem. Only one version and my Daily quota of
Deployments is at a mere 12% utilization for the day. =/

On Jul 20, 11:05 am, Paul  wrote:
> X-No-Archive: yes
>
> After ~100 updates without changing the version string AppEngine
> suddenly
> tells me:
>
> > The application already has the maximum number of versions.
>
> Rollback or upload with other version-string did not help, the only
> version
> cant be deleted, no quote messages, after 3 days still the same.
>
> App-ID: w e b t a b l e t
>
> 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: Too Many Versions (403)

2009-07-21 Thread Jeremy Truax

Note It seems to be an old issue but not resolved:

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

On Jul 21, 2:44 pm, Jeremy Truax  wrote:
> Crap I just got that, it's been working fine before that today.
>
> I did notice they changed some quota stuff as of tomorrow, I think but
> it doesn't say anything about a limited number ofversions.
>
> On Jul 19, 2:33 am, "j...@zenkraft.com"  wrote:
>
> > Yes, I just hit thistoo:
>
> > Error 403:  begin server output ---
>
> >TooManyVersions(403)
> > The application already has the maximum number ofversions.
> > --- end server output ---
>
> > On Jul 19, 6:33 am, TaoGOGO  wrote:
>
> > > have you solve the problems?it happened to me the same?:(
> > > can you help me?
>
> > > On 6月26日, 下午3时04分, dannyr  wrote:
>
> > > > I'm getting the following error. I only have 1 version of the app.
> > > > According to Quota Details, my Deployments are only 28 of 250 (11%).
> > > > My application name is 'launchset'.
>
> > > > Deploying new version.
> > > > 2009-06-25 23:50:52,071 ERROR appcfg.py:1241 An unexpected error
> > > > occurred. Abort
> > > > ing.
> > > > Traceback (most recent call last):
> > > >   File "C:\Program Files\Google\google_appengine\google\appengine\tools
> > > > \appcfg.p
> > > > y", line 1234, in DoUpload
> > > > self.Commit()
> > > >   File "C:\Program Files\Google\google_appengine\google\appengine\tools
> > > > \appcfg.p
> > > > y", line 1106, in Commit
> > > > self.Deploy()
> > > >   File "C:\Program Files\Google\google_appengine\google\appengine\tools
> > > > \appcfg.p
> > > > y", line 1134, in Deploy
> > > > version=self.version)
> > > >   File "C:\Program Files\Google\google_appengine\google\appengine\tools
> > > > \appengin
> > > > e_rpc.py", line 344, in Send
> > > > f = self.opener.open(req)
> > > >   File "C:\Python25\lib\urllib2.py", line 387, in open
> > > > response = meth(req, response)
> > > >   File "C:\Python25\lib\urllib2.py", line 498, in http_response
> > > > 'http', request, response, code, msg, hdrs)
> > > >   File "C:\Python25\lib\urllib2.py", line 425, in error
> > > > return self._call_chain(*args)
> > > >   File "C:\Python25\lib\urllib2.py", line 360, in _call_chain
> > > > result = func(*args)
> > > >   File "C:\Python25\lib\urllib2.py", line 506, in http_error_default
> > > > raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
> > > > HTTPError: HTTP Error 403: Forbidden
> > > > Rolling back the update.
> > > > Error 403: --- begin server output ---
>
> > > >TooManyVersions(403)
> > > > The application already has themaximumnumberofversions.
> > > > --- end server output ---
--~--~-~--~~~---~--~~
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: 403 Error

2009-07-21 Thread Jeremy Truax

I'm having it too, seems to be an old issue but unresolved:

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

On Jul 12, 1:44 am, Atrus  wrote:
> I keep getting a 403 Error stating that there aretoomanyversions.
> I only have one version (and therefore unable to delete that, and
> using the rollback command does nothing.
>
> How can i fix this?
> Thanks in advance,
> Tim
--~--~-~--~~~---~--~~
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: Too many Versions (403)

2009-07-21 Thread Jeremy Truax

Here's the issue about it: 
http://code.google.com/p/googleappengine/issues/detail?id=744

I still am unable to get this working even with the workarounds people
have mentioned =/

On Jul 21, 2:49 pm, Jeremy Truax  wrote:
> I'm having the same problem. Only one version and my Daily quota of
> Deployments is at a mere 12% utilization for the day. =/
>
> On Jul 20, 11:05 am, Paul  wrote:
>
> > X-No-Archive: yes
>
> > After ~100 updates without changing the version string AppEngine
> > suddenly
> > tells me:
>
> > > The application already has the maximum number of versions.
>
> > Rollback or upload with other version-string did not help, the only
> > version
> > cant be deleted, no quote messages, after 3 days still the same.
>
> > App-ID: w e b t a b l e t
>
> > 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: Too many Versions (403)

2009-07-21 Thread Jeremy Truax

The issue for this is here: 
http://code.google.com/p/googleappengine/issues/detail?id=744

I'm having the same issue. I get an error "Too Many Versions" when I
try to "appcfg.py update".

I've tried rollback as well as incrementing the version number in my
app.yaml with no resolution.

I'm on version 1 still. My daily upload quota is still at 30 of 250
for the day so it's not like that's even maxed.


On Jul 13, 5:52 pm, "Jeff S (Google)"  wrote:
> Hi Tim,
>
> I'd be happy to look into this case more closely if you wouldn't mind
> providing your app ID. A workaround which often helps in cases like these is
> to upload a new version with a different version ID. It might be the case
> that you were over the number of uploads quotas, if that was the issue then
> it should be possible to upload today.
>
> Thank you,
>
> Jeff
>
> On Sat, Jul 11, 2009 at 10:31 PM, Atrus  wrote:
>
> > I am currently unable to update anymore due to an error stating that I
> > have too many versions.  In the versions section of the dashboard, I
> > only have 1 version (Version 1).
>
> > I tried the command appcfg.py rollback, but to no avail.
>
> > Additionally, in the versions tab, the one and only version is NOT the
> > default, and if I were to attempt to set it as the default (clicking
> > the radio button, and click Make Default) I get a server error.
> > Additionally, I cannot delete that version, as I get an error message
> > stating that I am not permitted to delete the Default (which it states
> > that it isn't)
>
> > How can I fix this?
> > Thanks in advance,
> > Tim
--~--~-~--~~~---~--~~
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: Too Many Versions (403)

2009-07-21 Thread Jeremy Truax

The issue for this is here: 
http://code.google.com/p/googleappengine/issues/detail?id=744

I'm having the same issue. I get an error "Too Many Versions" when I
try to "appcfg.py update".

I've tried rollback as well as incrementing the version number in my
app.yaml with no resolution.

I'm on version 1 still. My daily upload quota is still at 30 of 250
for the day so it's not like that's even maxed.


On Jul 18, 10:38 pm, TaoGOGO  wrote:
> have you solve the problems?it happened to me the same?:(
> can you help me?
>
> On 6月13日, 下午3时00分, Philippe  wrote:
>
> > Hi,
>
> > I got this error for 1 hours now :TooManyVersions(403)
> > My quota stuff is green.
> > I have only 1 version of my app.
> > I tried making a new version, but it did not upload anything.
>
> > I hope someone can help.
> > here is the full error message:
>
> > Deploying new version.
> > 2009-06-13 08:44:11,328 ERROR appcfg.py:1241 An unexpected error
> > occurred. Aborting.
> > Traceback (most recent call last):
> > File "C:\Program Files\Google\google_appengine\google\appengine\tools
> > \appcfg.py", line 1234, in DoUpload self.Commit()
> > File "C:\Program Files\Google\google_appengine\google\appengine\tools
> > \appcfg.py", line 1106, in Commit self.Deploy()
> > File "C:\Program Files\Google\google_appengine\google\appengine\tools
> > \appcfg.py", line 1134, in Deploy version=self.version)
> > File "C:\Program Files\Google\google_appengine\google\appengine\tools
> > \appengine_rpc.py", line 344, in Send f = self.opener.open(req)
> > File "C:\python25\lib\urllib2.py", line 387, in open response = meth
> > (req, response)
> > File "C:\python25\lib\urllib2.py", line 498, in http_response 'http',
> > request, response, code, msg, hdrs)
> > File "C:\python25\lib\urllib2.py", line 425, in error return
> > self._call_chain(*args)
> > File "C:\python25\lib\urllib2.py", line 360, in _call_chain result =
> > func(*args)
> > File "C:\python25\lib\urllib2.py", line 506, in http_error_default
> > raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
> > HTTPError: HTTP Error 403: Forbidden
> > Rolling back the update.
> > Error 403: --- begin server output ---
>
> >TooManyVersions(403)
> > The application already has themaximumnumberofversions.
> > --- end server output ---
>
> > 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: Too Many Versions

2009-07-21 Thread Jeremy Truax

The issue for this is here: 
http://code.google.com/p/googleappengine/issues/detail?id=744

I'm having the same issue. I get an error "Too Many Versions" when I
try to "appcfg.py update".

I've tried rollback as well as incrementing the version number in my
app.yaml with no resolution.

I'm on version 1 still so I don't have the option of changing to
another version to try it as the default version is 1 and you cannot
delete the default version.

My daily upload quota is still at 30 of 250 for the day so it's not
like that's even maxed.


On Jul 13, 10:35 am, Matthew Blain  wrote:
> Typically this means an internal error occurred at some point when you
> deployed your application, and the fix is usually to go to the
> 'Versions' section of the admin console and set the default version to
> something/something else, then upload again.
>
> --Matthew
>
> On Jul 13, 7:31 am, Ilya  wrote:
>
> > Hi!
>
> > I'm trying to update my app, but get "TooManyVersions(403)" error.
> > My deployments quota is 125 (out of 250).
> > I tried to change the version in app.yaml - same result
> > My app id: labpixiesfacebook
>
> > Please help.
>
> > 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] Implemented Keyword Search

2009-07-21 Thread Jeremy Truax

Hey all, just successfully implemented a keyword search. Some of you
might have already done something like this but I thought I'd post it
for those that haven't and/or are struggling with something like it.

http://blog.zillinz.com/2009/07/keyword-search-on-google-app-engine.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: Implemented Keyword Search

2009-07-24 Thread Jeremy Truax

Yes you're right Wooble. This works great for what I'm indexing which
is something like company names.

It would not work at all for much bigger text (such as blog posts).

In fact, I ran into the max index boundary shortly after implementing
it and had to limit it to the first 5 words only.



On Jul 22, 6:48 am, Wooble  wrote:
> Jeremy,
>
> This is an interesting solution for properties that have very few
> keywords, but doesn't the number of required elements to your list
> explode rather badly as the number of words in the property
> increases?
>
> On Jul 21, 7:45 pm, Jeremy Truax  wrote:
>
> > Hey all, just successfully implemented a keyword search. Some of you
> > might have already done something like this but I thought I'd post it
> > for those that haven't and/or are struggling with something like it.
>
> >http://blog.zillinz.com/2009/07/keyword-search-on-google-app-engine.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: 403 Error

2009-07-24 Thread Jeremy Truax

Yah I had tried incrementing to version 2 and then 3 with no success.

I then let it sit and did something else for about 30 min.

Came back and version 3 worked.

I hate when something just works and there was no resolution as to
what was the problem.=/

On Jul 21, 5:58 pm, Rodrigo Moraes  wrote:
> On Tue, Jul 21, 2009 at 7:10 PM, Rodrigo Moraeswrote:
>
> > On Tue, Jul 21, 2009 at 7:03 PM, Jeremy Truax wrote:
>
> >> I'm having it too, seems to be an old issue but unresolved:
>
> >>http://code.google.com/p/googleappengine/issues/detail?id=690
>
> > I just had this problem too some minutes ago, for the first time. I
> > have only 2 versions, and in quota details it shows 24 of 250
> > deployments today - it's far under the allowed quota.
>
> > I tried deleting version 2, and upload a new version 2 - got a 403.
> > I tried creating a version 3 - got a 403.
>
> just an update. it fixed by itself after some time. or it was because
> of what I did: i deleted the version 2 in the admin panel, ran
> appcfg.py rollback and then deployed a new version number 3.
>
> not sure what is happening here or why i got the 403 previously, but well.
>
> -- rodrigo
--~--~-~--~~~---~--~~
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 Communicate Between App Engines

2008-11-30 Thread Kajikawa Jeremy
When are the payment plan options coming into effect?

Im already using 3 Appspot domains and have need of more along with
additional db space
 will be required for each of the Applications I am making.

I am currently working on a distributed system.

I am looking at needing to scale upwards for 1000s of accounts on at
least 2 of the 3
 existing applications and would like to handle this without running
into the limits or
 have a means of being billed based on scaled usage if that option is
under consideration?

Sincerely,
 Jeremy


On Sat, 2008-11-29 at 09:00 -0800, Roberto Saccon wrote:
> An App Engine application is already a distributed system, so I would
> recommend you just to write a single app and wait until the quotas get
> lifted, so you can purchase as much as you need.
> 
> If you just want provide web services to your apps, the common way in
> Python land seems to be HTTP REST.
> 
> If you want to maximize your free quota with countless accounts, each
> one with ten apps, that might be against the terms.
> 
> regards
> Roberto
> 
> On Nov 29, 1:39 pm, jeffkyjin <[EMAIL PROTECTED]> wrote:
> > I have create some applications in App Engine. If  I want to build a
> > distributed system which will use many application in App Engine.
> > Because the quota of App Engine, I have to split the whole work to
> > pieces and send these pieces to other applications. Any advices on
> > this? And how can i use API to communicate between my applications?
> >
> > 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 [EMAIL PROTECTED]
> For more options, visit this group at 
> http://groups.google.com/group/google-appengine?hl=en
> -~--~~~~--~~--~--~---
> 


signature.asc
Description: This is a digitally signed message part


[google-appengine] Re: Is Google the only hoster for all Google Apps?

2008-12-02 Thread Kajikawa Jeremy
GoDaddy does Domain Name Service Accounts
 and Google provides the hosting.

Domain Name Service being the mapper between domain<->IP,

Ive not seen anything on the GoDaddy system for actual hosting of
content.

right now Im in the middle of trying to construct a custom pair of sites
linked by XRDS-Simple
 with OAuth and OpenID support beyond Basic Authenticated sessions :)

if anyone wants to discuss details they are welcome,
 as I know I am very-new to this use of Cloud Computing.

personally thouigh I did work out a means of setting up my own localized
AppEngine
 on my own Webserver and use it for serving my own developments
 (http://server/domainname/ mapping the projects)


Sincerely,
  Jeremy

On Mon, 2008-12-01 at 19:44 -0800, Wenxiao wrote:
> Hi,
> 
> I am just wondering if Google is the only hoster for all Google Apps.
> Some domain may have Google Apps account while none of the hostnames
> under the domain is resolved to a Google IP...
> 
> For example, 'harvarduc.org' has got a Google Apps account apparently,
> otherwise we should see a server error page when visiting
> https://www.google.com/a/harvarduc.org
> 
> But all of the sites that I can find under the domain 'harvarduc.org'
> are hosted by Godaddy rather than Google...
> 
> Is this because the owner of the domain used to host their sites at
> Google but changed the hosting company to Godaddy lately without
> canceling their Google Apps account yet? Or Godaddy indeed hosts sites
> that use Google Apps?
> 
> Wenxiao
> 
> --~--~-~--~~~---~--~~
> 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 [EMAIL PROTECTED]
> For more options, visit this group at 
> http://groups.google.com/group/google-appengine?hl=en
> -~--~~~~--~~--~--~---
> 


signature.asc
Description: This is a digitally signed message part


[google-appengine] Re: Very urgent

2009-01-10 Thread Kajikawa Jeremy
Actually I have a similar requirement and found that instead of worrying
about
 doing anything in the webapp beyond the single resource its easiest to
 reply with direct HTML as a raw result without putting any real HTML
into the tags

since the WSGI runs directly similar to a CGI with stdin and stdout
being the socket
 connection made.

Im experimenting with skipping WSGI and using raw incoming and raw
response
 processing using an own XML setup as well.

I can tell you how I get on if you like?

Jeremy

On Sat, 2009-01-10 at 03:17 -0800, arnie wrote:
> Hi Dan, Thanks a lot for a quick clarifying reply.
>  I am googling continuously to find the solution. One of the solution
> that I found is at the below given link
> http://www.ioncannon.net/web-services/180/soap-on-the-google-app-engine-platform/
> I goes through this tutorial but got stuck at "python wsdl2py
> SimpleEcho.wsdl". How to run this command?. I have downloaded the
> ZSI-2.1-a1.tar.gz
> 
> Actually my web service consumer is an IPhone application. In my
> previous project on iphone that consumes a .net web service, I have
> noticed that we have to make the web service REST enabled so that the
> iphone can consume it. Also, if the python web service can be an xml
> web service then it will be helpful. Can you tell me that without
> using ZSI library, I can create an xml web service for google app
> engine using python?
> For a given table [Python class]
> class Person(db.Model):
> FirstName = db.StringProperty()
> LastName = db.StringProperty()
> Address = db.StringProperty()
> What code, I will have to write in the request handler for getting an
> xml result [a collection of Person class objects]?
> --~--~-~--~~~---~--~~
> 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
> -~--~~~~--~~--~--~---
> 


signature.asc
Description: This is a digitally signed message part


  1   2   >