[google-appengine] Re: spambot from lativa

2010-01-25 Thread dreadjr
yeah i tried redirecting them, but it looks like they don't follow
redirects.  Any other suggestions?

On Jan 25, 1:26 pm, Stephen sdea...@gmail.com wrote:
 On Jan 23, 7:42 pm, Joshua Smith joshuaesm...@charter.net wrote:

  How about going to sleep for 29 seconds, then return the 404?

 That will use up one of your concurrent request slots.

 They can open more tcp connections than you have request slots. You're
 only DOSing yourself... :-(

-- 
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: spambot from lativa

2010-01-23 Thread dreadjr
yeah i am forcing them to get a 404 error, it is just really annoying
and using quota.

On Jan 22, 5:50 pm, Wesley C (Google) wesc+...@google.com wrote:
 greetings! unfortunately at this time, we don't have a DoS API.
 however, what you could do as a workaround is to write a filter at the
 top-level controller level, and don't let that request get lower into
 your core functionality.

 hope this helps!
 -- wesley
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Core Python Programming, Prentice Hall, (c)2007,2001
 Python Fundamentals, Prentice Hall, (c)2009
    http://corepython.com

 wesley.j.chun :: wesc+...@google.com
 developer relations :: google 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.



[google-appengine] spambot from lativa

2010-01-22 Thread dreadjr
I am having constant requests from ip addresses in lativa.  Can i
block ip addresses via the Google app engine admin console or google
apps domain name i have registered?  If not, what is suggested?

thanks
doug

-- 
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: Updating an object fails when accessing application through Twilio

2009-12-29 Thread dreadjr
Look in your twilio account, in the debugger it will tell you what the
twilio api is doing and what url it is acting on.  I have a few apps
using twilio and GAE.

On Dec 28, 3:39 pm, Ikai L (Google) ika...@google.com wrote:
 I'm not familiar with Twilio. Is it their client that is doing the GET or
 POST? It's possible they are not passing the parameters correctly if it
 works for you in a normal browser connected directly to your application.
 Can you log the incoming parameters and URI string with their request on the
 server side?

 On Sat, Dec 26, 2009 at 5:53 PM, Kelvin krsc2...@gmail.com wrote:
  Hi,

  I have an application that receives parameters two parameters using
  GET method.  The parameters are:

      Caller, Digits

  Using those two parameters it actually updates an object in the
  datastore.  The problem I'm having is that if I use a web browser to
  access the link which receives the parameters everything works fine,
  the records are updated.  However, when I point my Twilio phone number
  to the application it actually looks like it is working fine over the
  phone, the process goes as it's supposed to look but the record never
  gets updated (i'm passing the exact same parameters.

  I have tried switching from POST to GET and back and forth but no luck
  so far.

  Any ideas as to why this is happening?

  --

  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.comgoogle-appengine%2Bunsubscrib 
  e...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.

 --
 Ikai Lan
 Developer Programs Engineer, Google 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.




[google-appengine] Re: Watch out for this subtle performance killer

2009-11-23 Thread dreadjr
so what is the best practice if something is added to the datamodel,
and you have already cached it, just to remove the memcache key and
reload?

On Nov 21, 6:41 am, dburns drrnb...@gmail.com wrote:
 I thought I'd share this, since I'm sure there are others that have
 fallen into the same trap using this very common pattern (in this
 sample, Pix derives from db.Model; get_pics is called on every page
 load):

         def get_pics(self):
                 pics = memcache.get(pics)
                 if pics is None:
                         pics = Pix.gql(LIMIT 100)
                         memcache.add(pics, pics, 300)               # Good 
 for 5 minutes
                 return pics

 See the bug?  Here, memcache is actually HURTINGperformancesince the
 overhead of memcache is there but it saves nothing at all.  The query
 is still executed on every page load when the calling code iterates
 through the result.

 http://code.google.com/appengine/docs/python/datastore/queryclass.htm...
 mentions this by saying creating a new iterator from the Query object
 will re-execute the query, but it doesn't highlight this pitfall.
 The issue here is that entities are not fetched on the Pix.gql line.
 Instead, that simply returns a Query object.  The results are actually
 fetched when the calling code begins to iterate (in Python-speak, the
 __iter__() method on the Query is what actually fetches entities).

 To fix this, you'd change the gql line to :
                         pics = list(Pix.gql(LIMIT 100))
 Putting a list() around the Pix.gql forces the query to happen at that
 moment.  Then the list of entities is stored in memcache, not the
 Query object itself.

 I'm not sure if this applies to the Java API too, but it's worth a
 heads-up.

 Comments welcome...

--

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: Google voice on app engine

2009-11-20 Thread dreadjr
So Google voice doesn't have an official api but if you goto
http://code.google.com/p/pygooglevoice/.  You can use this to most of
what google voice can do.  But when you put this on the google app
engine it fails due to gae changing the host header back for security
reasons.

On Nov 20, 9:30 am, Jay jbaker.w...@gmail.com wrote:
 Can you provide a little more information? What API are you using?
 Where does host fit in?

 On Nov 18, 12:42 pm, dreadjr drea...@gmail.com wrote:



  Is there a way to use google voice on the app engine?  I created a
  library for google voice but can't seem to get around change the
  host value of the requests.  Or is there another approach i can take?

--

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




[google-appengine] Google voice on app engine

2009-11-18 Thread dreadjr
Is there a way to use google voice on the app engine?  I created a
library for google voice but can't seem to get around change the
host value of the requests.  Or is there another approach i can take?

--

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.