Re: [google-appengine] Re: security issue (strange behavior)

2013-04-19 Thread Jeff Schnitzer
The answers to your questions are in here:

https://developers.google.com/appengine/docs/

As someone that has spent significant time outside my own country, I
appreciate that this presents some linguistic challenges.  However, a few
hours or days spent reading the documentation will be more effective than a
lifetime of asking questions here.

Jeff


On Thu, Apr 18, 2013 at 10:38 PM, @Mlaynes mlaynessanc...@gmail.com wrote:


 Ok.. these are some of solutions implemented about the issue:

 1. eliminate the ugly error page thrown by GAE .. and it was easy, setting
 correctly our Guestbook.JSP file to show our personal errorPage (of course,
 the design can be better)

 %@ page contentType=text/html;charset=UTF-8 language=java %
 %@ page errorPage=/errorPage.jsp isErrorPage=true %


 https://lh5.googleusercontent.com/-r95hITXAf04/UXCgTWF3DFI/C0E/hes2VQbBy7g/s1600/igguestbook_issue02.jpg

 2.- to try eliminate or diminishDatastore Read Operations, we have
 implemented using memcache..but as you will see, not happens something
 better..


 https://lh6.googleusercontent.com/-oDzPSHq2ak8/UXCmygZ3JDI/C0U/ofzLEEBzwyY/s1600/igguestbook_issue03.jpg


 https://lh6.googleusercontent.com/-a3tIKUzZFts/UXCm4PqlreI/C0c/3EmgX3XZLF4/s1600/igguestbook_issue04.jpg

 to implement memcache I use fist key-only thecnic, because according
 to the manual has some advantages and because my uestbook is a grid
 (created with table tag)

 A *keys-only query* returns just the keys of the result entities instead
 of the entities themselves, at lower latency and cost than retrieving
 entire entities:

 Query q = pm.newQuery(select id from  + Person.class.getName());
 ListString ids = (ListString) q.execute();

 of course, then with each key, it was worked on memcache service
 but, now I see that seems any query operation on datastore consumes
 Datastore Read Operation, even key-only operations.. so then, is there
 some best technic to work with memcache? is it possible to do query on
 memcache with GAE-Java?

 can anybody tell me something about this ?

 Note : I've not corrected yet recording of empty ads to keep the spam
 attack and use it to improve my techniques GAE-Java development, and of
 course, we will continue our testings

 best to all
 @Mlaynes


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




-- 
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] Re: Task Queue - Transient Errors

2013-04-19 Thread Vinny P
Hello Santiago,

Transient errors happen sometimes, there's not a whole lot you can do to 
prevent or reduce them. 

One mitigating strategy is to attempt to add a task; if you get an error, 
sleep for 500ms - 1sec and try again. Here's some more discussion on the 
topic: 
http://grokbase.com/t/gg/google-appengine/12ck1skbqy/transient-error-when-attempting-to-add-task-to-queue-fails-on-retry


-
-Vinny P
Technology  Media Advisor
Chicago, IL

@GOV on AppDotNet: https://alpha.app.net/gov



On Thursday, April 18, 2013 9:21:41 AM UTC-5, Santiago wrote:

 Hi everyone, In the last days I've been seeing on my application a lot of 
 Transient Errors when I try to use task queues. is this happening to anyone 
 else? do you know what actually happen when this error is raised? all i get 
 from GAE documentation is There was a transient error while accessing 
 the queue. Please try again later  but I'm not very confortable about 
 having my logs flooded with this! thanks!

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




Re: [google-appengine] Re: Webpages are not updating properly after a datastore operation performed

2013-04-19 Thread Vinny P

On Thursday, April 18, 2013 1:27:00 AM UTC-5, Nijin Narayanan wrote:

 The Page is redirecting after the datastore operation performed. Something 
 like this:

 db.delete(key)

 self.redirect(new_page)

 Does this will redirect the page before completing the delete operation ?


The answer is a resounding and firm Maybe. 

Operations on the datastore take place in two parts: the commit phase, and 
the apply phase. You can read more about it at 
https://developers.google.com/appengine/docs/python/datastore/overview#Datastore_Writes_and_Data_Visibility
 but 
the short version is that datastore operations return after the commit 
phase, not after the apply phase. You may have told the datastore to delete 
an object, but it'll take some milliseconds for that operation to execute 
even after the delete op has returned. 

You might need to add an artificial delay to your code, or manually account 
for its' deletion.


-
-Vinny P
Technology  Media Advisor
Chicago, IL

 

-- 
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] Access to GAE Apps by users in Sudan

2013-04-19 Thread Alexander Bertram
Hi,
We develop a mapping app for humanitarian relief running on AppEngine 
(about.activityinfo.org) in the EU region.

Unfortunately, it looks like humanitarian organizations operating in Sudan 
are not able to access the application due to legal restrictions, which I'm 
assuming refers to the sanctions currently in place against Sudan.  

403. That’s an error.) Your client does not have permission to get URL / 
from this server. (Client IP address: 105.239.146.4) We're sorry, but this 
service is not available in your country. That’s all we know

Is it possible to make an exception for this application? I believe the app 
falls under the exceptions discussed here:
http://www.america.gov/st/democracyhr-english/2010/March/20100312160116dmslahrellek0.7673914.html

I've emailed le...@google.com with no response to date.

Best,
Alex

-- 
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] Problems sending mail

2013-04-19 Thread Sandro Stricker
Hello,

I've got a problem sending a mail from my GAE project. here is my code:








Properties props = new Properties();

Session session = Session.getDefaultInstance(props, null);

String msgBody = ...;

try {

Message msg = new MimeMessage(session);

msg.setFrom(new InternetAddress(ad...@example.com, Example.com 
Admin));

msg.addRecipient(Message.RecipientType.TO,new InternetAddress(
u...@example.com, Mr. User));

msg.setSubject(Your Example.com account has been activated);

msg.setText(msgBody);

Transport.send(msg);



} catch (AddressException e) {

} catch (MessagingException e) {

}

I get errors like:  

javax.mail.Message is not supported by Google App Engine's Java runtime 
environment

What's the problem 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 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] Re: App Engine access from Sudan

2013-04-19 Thread Alexander Bertram
Is it possible to seek an exception for this restriction? We run an app for 
humanitarian organizations on Google App Engine, and I believe that our app 
falls under the exceptions discussed here:
http://www.america.gov/st/democracyhr-english/2010/March/20100312160116dmslahrellek0.7673914.html

Alex 

On Wednesday, March 30, 2011 11:31:39 PM UTC+2, Muhammad Alkarouri wrote:

 Many thanks, Ikai. 

 For anybody coming across this post later, the issue is discussed 
 further in 
 GAE issue http://code.google.com/p/googleappengine/issues/detail?id=3263 



 On Mar 30, 6:40 pm, Ikai Lan (Google) ika...@google.com wrote: 
  Yes, there are export control laws between the United States and Sudan. 
 I'm 
  not a lawyer, so I can't go into many more details about this. 
  
  Ikai Lan 
  Developer Programs Engineer, Google App Engine 
  Blog:http://googleappengine.blogspot.com 
  Twitter:http://twitter.com/app_engine 
  Reddit:http://www.reddit.com/r/appengine 
  
  On Tue, Mar 29, 2011 at 12:01 PM, Muhammad Alkarouri 
  malkaro...@gmail.comwrote: 
  
  
  
  
  
  
  
   I have an app in appengine that seems to not be accessible to users 
   from Sudan, with some sort of error message. Is there any restriction 
   for Sudan users from accessing appengine based sites? 
  
   If there is, I would imagine that it is some interpretation of US 
   sanctions which apply to Sudan among other countries including Cuba 
   and Iran. So if there is anything like that, please tell us. 
  
   To clear off any potential misunderstanding, I am British and UK- 
   based. The app is not being developed or funded from Sudan. 
  
   -- 
   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.comjavascript:. 

   To unsubscribe from this group, send email to 
   google-appengi...@googlegroups.com javascript:. 
   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 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] Re: Task Queue - Transient Errors

2013-04-19 Thread Kevin Pope
I've noticed this same issue on an inconsistent basis.

On Thursday, April 18, 2013 7:21:41 AM UTC-7, Santiago wrote:

 Hi everyone, In the last days I've been seeing on my application a lot of 
 Transient Errors when I try to use task queues. is this happening to anyone 
 else? do you know what actually happen when this error is raised? all i get 
 from GAE documentation is There was a transient error while accessing 
 the queue. Please try again later  but I'm not very confortable about 
 having my logs flooded with this! thanks!

-- 
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] Memcache very slow

2013-04-19 Thread Gerald N
Hi,

I have an App (online gaming) with over a million requests a day - we use 
objectify4, which in turn uses memcache for caching datastore objects.
Usually, memcache is very quick - 10 ms per request.

But occasionally (once a day a bit, once a week very significatnly), 
memcache becomes very very slow, from 50-100 up to several hundred 
milliseconds - which slows down my requests that get objects from objectify 
and memcache down quite a bit (from around 500 ms per request with good 
memcache to up to 6 seconds with slow memcache) and makes the game 
unplayable.

So, did anybody else also experience this issues, and is there anything 
from developer side that can be done against that (i do not really want to 
abadon objectify) or is this just a flaw that Google App Engine Users have 
to live with like suggested 
in 
https://groups.google.com/forum/?fromgroups=#!topic/google-appengine/3gdJKrh5DUQ?
 

So how to archieve, constant and predictable memcache performane?

thank you,

Gerald

-- 
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] Re: security issue (strange behavior)

2013-04-19 Thread @Mlaynes

actually estimated jeff.. this was one of my first GAE project that I 
built, and now with using specialized javascript frameworks and using MVC 
architecture (ExtJS4, Backbone, others), I have not really watched problems 
like with this simple application unsecure, but I find it interesting the 
observed effects, to take them into account in my other projects ..and of 
course overcome these, because in the GAE world all consumptions and costs, 
must be controlled

some free samples
http://goo.gl/wVU6O a first integration with ExtJS  OAuth2.0 protocol
http://goo.gl/SLu4G  working with spreadsheets
http://goo.gl/N6W4p GAE in action project

Comments like this should also be considered :

http://www.carlosble.com/2010/11/goodbye-google-app-engine-gae/

and although I love the GAE philosophy .. I see betting a lot for startups 
that for professional business developments .. and forums like this, are 
the ideal place to develop, share and overcome these challenges..


so any help is welcome..
best regards
@Mlaynes

-- 
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] Praise for the new billing system...

2013-04-19 Thread Jon Stevens
My appengine app with billing enabled doesn't use the full $2.10 a week and 
still serves a decent amount of traffic. I know we are just talking about 
pennies here, but as a self-funded startup, I really appreciate the 1.7.7 
feature of only being billed for the resources that I actually use. Thanks 
appengine team, keep up the good work!

best,

jon

-- 
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] High latency and exiting processes with HRD application

2013-04-19 Thread Sean
Hi,

Since about 3 PM, basically every request to my application 
(sketchport-hrd) has been timing out with one of these two messages:

Request was aborted after waiting too long to attempt to service your 
 request.


A problem was encountered with the process that handled this request, 
 causing it to exit. This is likely to cause a new process to be used for 
 the next request to your application. (Error code 121)


I see a spike in the latency graphs on 
https://code.google.com/status/appengine, so I'm assuming there is a system 
wide problem.  Is anybody else seeing this problem?

Thanks,
Sean

-- 
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] Anyone else have all their backends taken down @ 6pm EST today and NOT brought back up ?

2013-04-19 Thread Richard
I have multiple apps that use a background thread.  These are used to 
rotate game boards on MMO puzzle games for Android.

At around 6pm EST today, ALL of my backends were stopped.  However the 
Admin interface reported them as UP.  They were NOT restarted.

Example log message:
2013-04-19 17:59:51.979 Process terminated because the backend took too 
long to shutdown

Did anyone else have this happen ?

-- 
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] Re: Memcache very slow

2013-04-19 Thread Jason Collins
Memcache used to be fast, fast, fast.

FWIW, we've turned off memcaching on most of our NDB models because a 
datastore key.get() is as fast as a typical memcache.get() and without the 
NDB memcaching, we don't incur the memcache (possible) miss followed by the 
key.get().

j

On Thursday, 18 April 2013 15:28:47 UTC-6, Gerald N wrote:

 Hi,

 I have an App (online gaming) with over a million requests a day - we use 
 objectify4, which in turn uses memcache for caching datastore objects.
 Usually, memcache is very quick - 10 ms per request.

 But occasionally (once a day a bit, once a week very significatnly), 
 memcache becomes very very slow, from 50-100 up to several hundred 
 milliseconds - which slows down my requests that get objects from objectify 
 and memcache down quite a bit (from around 500 ms per request with good 
 memcache to up to 6 seconds with slow memcache) and makes the game 
 unplayable.

 So, did anybody else also experience this issues, and is there anything 
 from developer side that can be done against that (i do not really want to 
 abadon objectify) or is this just a flaw that Google App Engine Users have 
 to live with like suggested in 
 https://groups.google.com/forum/?fromgroups=#!topic/google-appengine/3gdJKrh5DUQ
 ? 

 So how to archieve, constant and predictable memcache performane?

 thank you,

 Gerald


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