[appengine-java] uploading 100k lines into the datastore is enough to max out the CPU time?

2011-03-06 Thread Cláudio Coelho
Hi,
My application needs a db of the world cities. I have a file that has about 
100k lines  and I want to use it to populate the datastore.
My first attempt failed because I didn't use tasks, so I was only able to 
upload a limited set of cities. It spent 2% of CPU total time on the app 
engine.
I then changed the approach to use tasks.
I basically read the file once to determine how many lines does it have and 
then invoke tasks to read batches of 15k lines (supplying a start and end 
indexes).
These invoked tasks (createCities(int start, int end)) read the file again, 
get a list of 15k lines and then process it.
The whole process takes about 15 seconds on my machine, however, when I do 
this in the app engine, it takes 15 minutes (or more) and maxes out the 6.5 
hours of CPU time! I know there are plenty of optimizations I should do to 
this process, but that doesn't seem to justify the 6.5 hours, so I must be 
doing something seriously wrong.

Does anybody have any clue of what I'm doing wrong? (Code attached)

Thanks!


private void createCities() {
try
{
int count = countCitiesToLoad();
final int batchSize = 15000;
for(int start=0;startcount;start+=batchSize)
{
int end=start+batchSize; 
Queue queue = QueueFactory.getQueue(dbQueue);
TaskOptions topt = TaskOptions.Builder.withUrl(/dbservlet);
topt.param(command, createCities);
topt.param(start, +start);
topt.param(end, +end);
queue.add(topt); 
logInfo(Dispatched order to create cities +start+ to +end);
Thread.sleep(500);
}
}catch(Exception e)
{
e.printStackTrace();
logError(e.getLocalizedMessage()); 
} 
}

private void createCities(int start, int end) 
{
try
{
 logInfo(Reading cities +start+ to +end);
BufferedReader br= new BufferedReader(new FileReader(data/cities.csv));
String line=br.readLine();
int counter=0;
PersistenceManager pm = PMF.get().getPersistenceManager();
ArrayListString lines = new ArrayListString();
while(line!=null || counterend)
{
if(counter=start  counter end)
lines.add(line);
counter++;
line=br.readLine();
}
br.close();
logInfo(Adding cities +start+ to +end);
createCities(lines);
logInfo(Done cities +start+ to +end);
}
catch(Exception e)
{
e.printStackTrace();
logError(e.getLocalizedMessage());
}
}

private void createCities(ArrayListString lines) 
{
if(lines==null)
return;
PersistenceManager pm = PMF.get().getPersistenceManager();
HashMapString, Country countryMap = loadCountryMap();
try{
for(String line : lines)
if(line!=null)
{
String fields[]=line.split(,);
if(fields.length7)
logError(length error in line:+line);
else
{
Location loc = new Location();
loc.setName(fields[2]);
loc.setLatitude(Double.parseDouble(fields[3]));
loc.setLongitude(Double.parseDouble(fields[4]));
loc.setPopulation(Integer.parseInt(fields[6]));
{
Country c = countryMap.get(fields[5]);
if(c==null) 
logError(Failed to get country for:+line);
else
{
loc.setCountryId(c.getCountryId());
loc.setCountry(c.getName());
pm.makePersistent(loc);
}
}
}
}
} catch (Exception e) {
e.printStackTrace();
} finally {
pm.close();
}
}



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Collection object not being updated

2011-03-06 Thread Cosmin Stefan
Hey,

I cannot use a transaction as I need to change multiple entries (as u
see, for each BigClass participant i have to remove an object from the
collection).

Regarding the pm.makePersistent() call, I have tried with it before
and it didn't do anything different. Plus that on the GAE
documentation page they say it's not needed, as the pm tracks all the
changes.

I have discovered another thing related to this problem. As I've shown
you, in the same persistence call I try to do these (remove smth from
the collection) changes and I also modify other objects. The weird
fact is that the last changes I make are persisted, while the others
aren't. Why is that?

Regarding JPA I'll look into it, but it's kind of difficult as I
already have a huge part of my code written with JDO.

Anyway, looking forward to hearing new suggestions!

Thanks,
Cosmin

On Mar 1, 6:59 pm, Ian Marshall ianmarshall...@gmail.com wrote:
 Hi Cosmin,

 I do not see any calls to

   pm.makePersistent(...);

 I use this to persist newly-created persistent instances.

 I know that you do not use transactions, but I do. Within an active
 transaction, one can update persistent instances and even persist or
 delete entity group child instances without calling

   pm.makePersistent(...);

 Have you looked at the GAE persistence blog of Max Ross of Google?
 There are some excellent working examples there...

 Ian

 On Feb 28, 6:55 pm, Cosmin Stefan cosmin.stefandob...@gmail.com
 wrote:

  So no ideea anyone?

  On Feb 25, 11:42 pm, Cosmin Stefan cosmin.stefandob...@gmail.com
  wrote:

   Hey,

   I have an issue while trying to update one object in a collection,
   using JDO.

   Here are the facts:
      o i have a class (let's call it BigClass), that has an embedded
   class(SmallClass) containing an ArrayList.
      o I DONT use/need a transaction
      o I query the database to get a List of BigClass items that should
   be modified. I iterate through each of them and I...
      o I remove an element from the list in the SmallClass embedded in
   the current BigClass, the changes are not ALWAYS persisted
      o if I print (log) the object after the change, it looks modified,
   but if i check the DataViewer, the object was not updated
      o i even tried using JDOHelper.makeDirty on the BigClass, with the
   fieldName SmallClass, and it still doesn't work.

   Some relevant code:

                                   Query q = 
   pm.newQuery(BigClass.class,id==:ids);
                                   ListBigClass 
   participatingUsers=(ListBigClass)
   q.execute(participantIDs);

                                   //Update the participants
                                   ListIteratorBigClass 
   it=participatingUsers.listIterator();
                                   BigClass participant;
                                   boolean modified;
                                   while(it.hasNext())
                                   {
                                           participant=it.next();
                                           participant.list.remove(smth);

   JDOHelper.makeDirty(participant,collection);
                                  }
                                  
                                  modify other objects
                                  
                                  pm.close()

   Another thing is that some of the changes I make after this part are
   persisted...

   So, if you have any suggestions, shoot pls!

   Cosmin

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Logging file size

2011-03-06 Thread JT
Hi didier, thanks for your reply.
On Mar 4, 2011 11:11 AM, Didier Durand durand.did...@gmail.com wrote:
 Hi,

 Interesting question!

 From the quota page: http://code.google.com/appengine/docs/quotas.html,
 it doesn't seem that there is not any official limit on logging.

 Maybe some googler will let us know if there is one anyway or not.

 On Mar 4, 4:30 pm, JT jem...@gmail.com wrote:
 I know there is a limit of 6.5 hours CPU time per day for GAE4J, but if I
 turn on verbose logging onto the console like using System.out.println,
does
 the size of the logging limited by GAE in any way?

 Thanks for any hint!

 --
 You received this message because you are subscribed to the Google Groups
Google App Engine for Java group.
 To post to this group, send email to
google-appengine-java@googlegroups.com.
 To unsubscribe from this group, send email to
google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: how would I setup ssl in eclipse dev http server

2011-03-06 Thread Neill
I'm not sure why you would need or want to, but since the dev server is 
using Jetty, have you looked into how to set it up? I've also seen an option 
to run on a remote server, but there shouldn't be any need to run https from 
an application code standpoint, which is the same whether SSL or not.

A quick search turned up some information on using Jetty and SSL. Good luck!

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Could Not Verify SSL Certificate

2011-03-06 Thread Neill
Have you tried turning on java.io.net debugging to get more information?

Add this JVM arg to the appengine startup runtime, -Djavax.net.debug=ssl

You may need to add keys to the cert file, but it should be installed by 
default by the plugin.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Data store transfer

2011-03-06 Thread Neill
The way I've exported/imported data in the past was using CSV file 
transfers. I have some code laying around to handle it, if you want to send 
me a PM.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: how would I setup ssl in eclipse dev http server

2011-03-06 Thread Mark
My app will require secure https connections and I would like to ensure the 
code that detects if the application is connected via a secure connection is 
always in place.  

I am thinking things are not going to be as straight forward if Google is 
using an embedded jetty server.  I haven't found where jetty exists to edit 
configuration files.  I have looked into setting up Jetty although I was 
derailed when I could not find a jetty folder.

My other options are to have code that detects if it is the development 
environment assume secure connection.  Although I would have to ensure that 
code is fully tested when deployed at the server.  I am not a fan of this to 
have code not tested until it is deployed into a production environment.

I'll keep researching to see if I can figure this out.  I am hoping another 
developer might have some tips for me.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: appcfg deployment hangs at jsp compile

2011-03-06 Thread lp
ok got to the bottom of this.

it seems that the javac wasnt hung, just runing slow. about 60 s/
jsp page.

by removing the datanucleus-enhancer-1.1.4.jar from my WEB-INF/lib the
problem was resolved.

i guess datanuclues jars should be in there but what a waste of 8
hours ;-(

hope this help another.


-lp

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] stdout in my logs

2011-03-06 Thread lp
hi all

i am getting loads of the following trace in my logs.

#
I 2011-03-06 20:14:32.566 [minglegeo/1.348824067992053184].stdout:
04

for each request i get about 30 lines of this stuff. why?

i dont know what is causing it to be generated?

i have searched for System.out but i am only using log.info, error
etc.

any ideas?

-lp

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Design question for SOA / Facebook like Platform on GAE

2011-03-06 Thread charming30
Hello..

I am planning for a SOA-Like Architecture for my Facebook-like App on
GAE Java.

- All Apps are PRIVATE only meant for my platform.
- One (Appspot App) will act like a service and provide Social
Networking and User Database services - This is the main App
- While others will act like individual websites that use the services
of the above to provide social networking features in their local
site.

Architecture Design I have in mind so far:
- All Apps will be individual Apps on Appspot, since building and
maintaining a single App to include all this will not be practical.
- Web Services using REST/JSON, SSL for authentication
- All Apps on Appspot will be Billing enabled, so Google is Happy

Please advise if you see any risks and what improvements can be made
to this?

Thanks a ton.

Regards
C30



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] What is maximum number of entities I can update within the 30 sec time limit of App engine ?

2011-03-06 Thread suersh babu
Hi,

I like to known what is the maximum number of entities I can update within
the 30 sec
time limit of App engine.

Let say If I have a kind called Employee which  has 2000 entities and each
of this entity have
10 Properties,  so if I need to update all of this 2000 entities of
Employee,  what is the maximum
entities that I can update  within 30 sec time limit.

Any suggestion much appreciated.


*Regards**

Suresh Babu G*

http://www.AccountingGuru.in http://www.accountingguru.in/

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: uploading 100k lines into the datastore is enough to max out the CPU time?

2011-03-06 Thread Didier Durand
Hi,

The first issue that comes to mind in missing indexes: so huge scans
of all existing data when you upload an additional line.

What are your indexes ?

regards

didier

On Mar 6, 12:43 pm, Cláudio Coelho ereb...@gmail.com wrote:
 Hi,
 My application needs a db of the world cities. I have a file that has about
 100k lines  and I want to use it to populate the datastore.
 My first attempt failed because I didn't use tasks, so I was only able to
 upload a limited set of cities. It spent 2% of CPU total time on the app
 engine.
 I then changed the approach to use tasks.
 I basically read the file once to determine how many lines does it have and
 then invoke tasks to read batches of 15k lines (supplying a start and end
 indexes).
 These invoked tasks (createCities(int start, int end)) read the file again,
 get a list of 15k lines and then process it.
 The whole process takes about 15 seconds on my machine, however, when I do
 this in the app engine, it takes 15 minutes (or more) and maxes out the 6.5
 hours of CPU time! I know there are plenty of optimizations I should do to
 this process, but that doesn't seem to justify the 6.5 hours, so I must be
 doing something seriously wrong.

 Does anybody have any clue of what I'm doing wrong? (Code attached)

 Thanks!

 private void createCities() {
 try
 {
 int count = countCitiesToLoad();
 final int batchSize = 15000;
 for(int start=0;startcount;start+=batchSize)
 {
 int end=start+batchSize;
 Queue queue = QueueFactory.getQueue(dbQueue);
 TaskOptions topt = TaskOptions.Builder.withUrl(/dbservlet);
 topt.param(command, createCities);
 topt.param(start, +start);
 topt.param(end, +end);
 queue.add(topt);
 logInfo(Dispatched order to create cities +start+ to +end);
 Thread.sleep(500);}
 }catch(Exception e)

 {
 e.printStackTrace();
 logError(e.getLocalizedMessage());

 }
 }

 private void createCities(int start, int end)
 {
 try
 {
  logInfo(Reading cities +start+ to +end);
 BufferedReader br= new BufferedReader(new FileReader(data/cities.csv));
 String line=br.readLine();
 int counter=0;
 PersistenceManager pm = PMF.get().getPersistenceManager();
 ArrayListString lines = new ArrayListString();
 while(line!=null || counterend)
 {
 if(counter=start  counter end)
 lines.add(line);
 counter++;
 line=br.readLine();}

 br.close();
 logInfo(Adding cities +start+ to +end);
 createCities(lines);
 logInfo(Done cities +start+ to +end);}

 catch(Exception e)
 {
 e.printStackTrace();
 logError(e.getLocalizedMessage());

 }
 }

 private void createCities(ArrayListString lines)
 {
 if(lines==null)
 return;
 PersistenceManager pm = PMF.get().getPersistenceManager();
 HashMapString, Country countryMap = loadCountryMap();
 try{
 for(String line : lines)
 if(line!=null)
 {
 String fields[]=line.split(,);
 if(fields.length7)
 logError(length error in line:+line);
 else
 {
 Location loc = new Location();
 loc.setName(fields[2]);
 loc.setLatitude(Double.parseDouble(fields[3]));
 loc.setLongitude(Double.parseDouble(fields[4]));
 loc.setPopulation(Integer.parseInt(fields[6]));
 {
 Country c = countryMap.get(fields[5]);
 if(c==null)
 logError(Failed to get country for:+line);
 else
 {
 loc.setCountryId(c.getCountryId());
 loc.setCountry(c.getName());
 pm.makePersistent(loc);}
 }
 }
 }
 } catch (Exception e) {

 e.printStackTrace();

 } finally {
 pm.close();
 }
 }



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: URL Fetch problems

2011-03-06 Thread aldrinm
Can you try encoding the access token value ,

https://graph.facebook.com/me?
access_token=+URLEncoder.encode(316426390227|
2.MHJgJ9J6fuNwKern3vyHgg__.3600.129933-1185632060|oZFo-
ku78icKHAx_aFvNw dItx9U, UTF-8)

?


On Mar 6, 10:04 am, Kim Kha Nguyen nkim...@gmail.com wrote:
 OS: Ubuntu 10.10
 Java SDK: OpenJDK 6
 AppEngine: 1.4.2
 WebToolkit: 2.2.0

 I use URLFetch (doc here:http://goo.gl/hPraM), and url 
 is:https://graph.facebook.com/me?access_token=316426390227|2.MHJgJ9J6fuNwKern3vyHgg__.3600.129933-1185632060|oZFo-ku78icKHAx_aFvNw
  dItx9Uexpires_in=5101

 If I run in Firefox, error message is:

 java.lang.IllegalArgumentException: Invalid uri 
 'https://graph.facebook.com/me?access_token=316426390227|2.MHJgJ9J6fuNwKern3vyHgg__.3600.129933-1185632060|oZFo-ku78icKHAx_aFvNw
  dItx9Uexpires_in=5101': Invalid query

 But if I run in Chrome, error message is:

 javax.net.ssl.SSLHandshakeException: Could not verify SSL certificate 
 for:https://graph.facebook.com/me?access_token=316426390227%7C2.MHJgJ9J6f...

 Please help me... I'm amateur in GAE.

 Thank all of you!

 Note: I opened a issue here:http://goo.gl/bxLgu

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[google-appengine] Re: Channel API encoding problem

2011-03-06 Thread Matija
I have tried on production server and everything is fine, so this is only 
dev server problem. You can close that issue if it will be fixed in 1.4.3.

-- 
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] java dev environment change jdoconfig.xml

2011-03-06 Thread yuvi
I have manually added to jdoconfig.xml the  parameter
property name=datanucleus.appengine.storageVersion
value=WRITE_OWNED_CHILD_KEYS_TO_PARENTS/

Every now and again this parameter is removed by the SDK ... any idea ?

-- 
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: chrome to device question

2011-03-06 Thread maxsap
thanks a lot for the help I found only the mailing list and not the
forum, thanks again best regards maxsap

-- 
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] 最佳搜尋方式

2011-03-06 Thread YF CAO
查一下文档看看有没like或类似于like的语句,我不确定。
我非常不喜欢BigTable,真的非常不喜欢。
除了Google官方的文档,就几乎没什么资料可查了。还有就是有太多的限制,比如说查两个字段的不等于匹配就是不被允许的,而这种类似的需求却是很多的。


在 2011年3月4日 上午11:47,Albert alb...@aviosys.com写道:

 如何利用GAE�Y料��(Big Table)做模糊搜�ぃ��p少CPU Time的浪�M?

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



-- 
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: Runaway Tasks

2011-03-06 Thread Dale
Did you set max_concurrent_requests for that queue? Perhaps there was
some latency on the datastore and your queue was adding 5 tasks each
second but all the tasks were still running until the 10 s datastore
timeout and then retrying. In that case you would get 50 tasks
executing in parallel all querying 1000 records. Could explain the
high CPU usage.

Dale

On Mar 5, 5:33 pm, Benjamin bsaut...@gmail.com wrote:
 Hi Nick,

 The app id is nimbits1  (nimbits1.appspot.com)

 The spike occurred around 12pm EST on March 3rd.  95% of the cpu being
 used at the time was
 Task Queues  deletedata  which is set to 5/sec with a bucket size of
 5.

 Thanks!

 On Mar 4, 4:21 pm, Nicholas Verne nve...@google.com wrote:



  Could you give us your app id and the approximate time of the gobbling
  of CPU so we can investigate?

  Thanks,

  Nick

  On Sat, Mar 5, 2011 at 5:49 AM, Benjamin bsaut...@gmail.com wrote:
   I have a Task that's purpose is to chew away at data that needs to be
   deleted. I have millions of records that need to go, so the task uses
   the low level api and key only queries to grab 1000 delete them and
   restart the task until the remaining count is zero.

   The task is set to 5/sec with a bucket size of 5. The other day it
   skyrocketed my CPU usage and maxed out my 5$ quota (400 CPU seconds /
   second, i think the lights in New York dimmed).  Am i missing some
   setting here? How do i keep a task queue chugging along at a fixed
   rate without a burst like that, regardless of how many tasks are in
   the queue?

   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 
   athttp://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: Google Checkout

2011-03-06 Thread Iron Mountain Foundry
I have fully implemented Google Checkout on my app, but I am less than
happy with the service.  For the most part, it works as advertised and
I'm fine with that.  I use Python and my own code to handle the API
requests and callbacks, and technically the system seems fine.

But there were two times that someone with Checkout decided to suspend
my account *without warning* and I had to first discover the reason
for the suspension and then deal with non-responsive support engineers
half a world away.  I would get a single email reply a day while my
customers were left waiting for my site to resume.  Even after I faxed
and emailed the requested documentation within minutes of their email
reply, I would have to wait another day to get my account restored.
Poor customer service by Checkout!

Another thing that I didn't expect is that some customers are afraid
of Google.  They don't like the idea of handing their credit card
information over to this giant company.  It's only a few customers,
but their fear is enough for them to send a check instead of using
Checkout for payment.  If Checkout would allow for a one-time payment
without requiring customers to create an account, that would be
great.  That is, I want an Authorize.net style gateway for Checkout so
people can enter all of their credit card info and be done with the
payment in just one step, without having to leave my website.

I like how Social Gold allows for multiple payment options (including
Checkout), and I hope the fees are closer to 2-3% (not the 6-10% shown
on their FAQ).  I just signed up for the beta, maybe this will be what
I am looking for.  In any case, there needs to be someone that I can
call 24x7 for customer support, especially when Google wants to take
actions without warning.  I really hated the fact that they could
contact me with any questions but just suspended activity without
warning.  It was really unprofessional.

I got halfway through implementing the PayPal payment system when that
happened, and I will complete that the next time Checkout behaves that
way.  I don't like the PayPal API, though.  It's too cumbersome.
Authorize.net is really nice but I need to open my own merchant
account for that, and they're not cheap (monthly fees, etc.).

-- 
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] Confusion about key names

2011-03-06 Thread cool-RR
Oh, thanks for that Robert! You saved me some future debugging :)


Ram.

On Sun, Mar 6, 2011 at 1:33 AM, Robert Kluin robert.kl...@gmail.com wrote:

 Just a note, get an entity that matches the keywords I supply is
 _not_ what Model.get_or_insert does.  It fetches the entity with the
 given key name, and if and only if the entity does not exist it will
 create one with the given arguments.



 Robert





 On Sat, Mar 5, 2011 at 11:50, Ram Rachum ram.rac...@gmail.com wrote:
  Hello,
  I'm very confused about the whole key and key-name thing in GAE.
  What's the job of the key-name? Is this documented anywhere? I couldn't
 find
  it in the docs.
  For example, when I use `Model.get_or_insert`, why do I need to provide a
  `key_name`? I want to get an entity that matches the keywords I supply,
 or
  create one if one doesn't exist. Why do I need to put in a key name? What
  does it do? Is it stored on the object somehow? What will happen if I put
 in
  bla bla bla?
 
  Frustratedly yours,
  Ram.
 
  --
  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.
 

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




-- 
Sincerely,
Ram Rachum

-- 
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: Google Checkout

2011-03-06 Thread Duong BaTien
Yes, I also applied for the beta program immediately seeing the link. Thanks

BaTien


On Sat, Mar 5, 2011 at 11:14 PM, Jeff Schnitzer j...@infohazard.org wrote:

 Wow, thanks for that link!  This explains why Google Checkout seems
 like abandonware - they're about to roll out a whole new system.  I've
 applied for the beta program.

 Jeff

 On Sat, Mar 5, 2011 at 11:38 AM, Kaan Soral kaanso...@gmail.com wrote:
  Google bought Social Gold, Social Gold was the greatest payment system
  ever, even other payment providers used them, although they could
  implement credit card processing and Paypal themselves
 
  I hope Google In-App Payments keep the simplicity and excellence.
 
 http://checkout.google.com/support/sell/bin/request.py?contact_type=inapp_payment
 
  I have spent a lot of time reading Paypal services, each service was
  missing something for me. Some of them didn't accept credit cards
  directly, some of them didn't support subscriptions, some of them are
  only available to US/Canada companies etc.
  I have filled the form more than a week ago, I also have a very big
  application to show off but I didn't received any reply yet.
 
  On Mar 5, 9:21 am, anton savchuk anton.antoh...@gmail.com wrote:
  Yes, more likely PayPal will be decision.. He really does work..
 
  --
  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.
 
 

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




-- 
Dr. Duong BaTien
DBGROUPS  BudhNet

-- 
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: Google Checkout

2011-03-06 Thread Gary Eberhart
+1 Me too.

On Sun, Mar 6, 2011 at 11:46 AM, Duong BaTien duong.bat...@gmail.comwrote:

 Yes, I also applied for the beta program immediately seeing the link.
 Thanks

 BaTien


 On Sat, Mar 5, 2011 at 11:14 PM, Jeff Schnitzer j...@infohazard.orgwrote:

 Wow, thanks for that link!  This explains why Google Checkout seems
 like abandonware - they're about to roll out a whole new system.  I've
 applied for the beta program.

 Jeff

 On Sat, Mar 5, 2011 at 11:38 AM, Kaan Soral kaanso...@gmail.com wrote:
  Google bought Social Gold, Social Gold was the greatest payment system
  ever, even other payment providers used them, although they could
  implement credit card processing and Paypal themselves
 
  I hope Google In-App Payments keep the simplicity and excellence.
 
 http://checkout.google.com/support/sell/bin/request.py?contact_type=inapp_payment
 
  I have spent a lot of time reading Paypal services, each service was
  missing something for me. Some of them didn't accept credit cards
  directly, some of them didn't support subscriptions, some of them are
  only available to US/Canada companies etc.
  I have filled the form more than a week ago, I also have a very big
  application to show off but I didn't received any reply yet.
 
  On Mar 5, 9:21 am, anton savchuk anton.antoh...@gmail.com wrote:
  Yes, more likely PayPal will be decision.. He really does work..
 
  --
  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.
 
 

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




 --
 Dr. Duong BaTien
 DBGROUPS  BudhNet

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


-- 
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] issue 777 inspection

2011-03-06 Thread Robert Kluin
Perhaps you've got a conflict between sites and your app on alltfunkar.com?






On Sun, Mar 6, 2011 at 06:11, Nick Rosencrantz nikla...@gmail.com wrote:
 Hi issue 777 appears somehow solved for one of my domains:
 http://koolbusiness.com gos onwards to http://www.koolbusiness.com
 However another domain with exactly the same DNS settings has the
 issue:
 http://alltfunkar.com (404=I lose)
 http://www.alltfunkar.com (for real)
 Maybe you know why and can tell what's going on with this.
 Thanks!
 Nick Rosencrantz

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



-- 
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] Good heavens: appengine selects primary/secondary composite index sorts on an alphabetic basis

2011-03-06 Thread philip
[solved]
The answer to this is that appengine concatenates the various properties 
into a single-field index (hence the one inequality filter only 
restriction).  It looks very much as if the primary sort is on the 
right-most field.  If no secondary sort order is requested then the 
remaining fields can be sorted in any way whatever.
It's a curious way to do it, though I do understand the desire to trade 
space efficiency and write-time performance for read speed.

-- 
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] Getting a lot of DatastoreTimeoutException: Unknown

2011-03-06 Thread Haytham
Since yesterday, I've been getting a lot of these exceptions, checking the 
system status didn't reveal any problems, anything I can do? I'm new to 
this...

-- 
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] Login issues in Google Moderator + multiple accounts

2011-03-06 Thread David Latapie
Hi all,

I'm posting here because I've been invited to by no less than Google 
itselfhttp://productideas.appspot.com/_ah/conflogin
.

I am not a coder; I just want to bug report and there is where Google 
directed me.

My problem is with Google Moderator.(the one for Google 
Appshttp://productideas.appspot.com/#15/e=2199bt=3ddd5, 
but the issue is probably the same with other Moderators). I cannot login 
when using multiple accounts. I have to either fully disconnect from all 
accounts or to use another browser (I for now use the other-browser 
methods, to avoid the pain of disconnecting then reconnecting several 
times).

This is the first time I got this issue. I got the infamous URL 414 more 
often than I care to count, but this one (see first link), I never did:

Error: Server Error
The server encountered an error and could not complete your request.

If the problem persists, please 
reporthttp://code.google.com/appengine/community.html your 
problem and mention this error message and the query that caused it.

(I wanted to ask for deleting attachment in Gmail interface, that's why I 
ended up at Google Moderator, given the poor options at Gmail feature 
request).

Hope this helps!

-- 
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] Confusion about key names

2011-03-06 Thread cool-RR
Cool, thanks everyone!

On Sat, Mar 5, 2011 at 7:59 PM, Calvin calvin.r...@gmail.com wrote:

 myKey = db.Key.from_path('kind', 'key_name')
 myEntity = db.get(myKey)

 -or-

 myEntity = MyKind.get_by_key_name('key_name')

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




-- 
Sincerely,
Ram Rachum

-- 
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] Problem while lauching an application

2011-03-06 Thread BonguN
Hi,

I am fairly new to Google app engine and python and am trying to
develop a web application.
Whenever I load my project in app engine launcher and click 'Browse'
it will display the expected results in a browser.

But, If I try the same thing after a while (with no changes made), it
still runs, but does not display anything in the browser. I do not
seem to understand the reason for this inconsistency.

Please help.

-- 
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: HR Vs. Master-Slave Comparison. Is it worth extra cost?

2011-03-06 Thread Ernesto Karim Oltra
http://code.google.com/intl/en/appengine/docs/python/datastore/hr/#Comparing_the_Data_Storage_Options

You can select one of two data storage options when you create your
application:
The Master/Slave Datastore
The Master/Slave Datastore is the default for new applications. It
uses a master-slave replication system, which asynchronously
replicates data as you write it to another data center. Since only one
datacenter is the master for writing at any given time, this option
offers strong consistency for all reads and queries, but your data may
be temporarily unavailable during data center issues or planned
downtime. This option also offers the lowest storage and CPU costs for
storing data.
The High Replication Datastore
The High Replication Datastore is a new, highly available, highly
reliable storage solution. It remains available for reads and writes
during planned downtime and is extremely resilient in the face of
catastrophic failure—but it costs more than the Master/Slave option.
__ -  Due to the
higher cost, we recommend High Replication Datastore primarily for
those developers building mission critical applications on App
Engine.   

On 4 mar, 20:06, Ikai Lan (Google) ika...@google.com wrote:
 I'd like to highlight that we're not stubborn enough to admit we were right
 all along, because we weren't. It's unrealistic to think that someone gets
 something right the first time, and we're no different. High replication is
 our admission that the problem isn't that we can't get the average error
 rate down, the problem is that we can bring it down but we can't eliminate
 datastore latency spikes.

 As far as eventual consistency goes, our users that are on high replication
 have not seen any issues. If we weren't always fussing about transparency,
 we would probably have been able to not even bring it up, and it's unlikely
 anyone would have noticed - we just figured it'd make more sense to
 communicate it, though now we are seeing that users are overreacting a bit.
 Did you know index creation is also asynchronous? That is, when you save a
 property, it returns before indexes have been created? Technically, this
 constitutes a consistency issue, but it has no real world impact because it
 is instantaneous. We documented eventual consistency issues because they are
 an order of magnitude slower than asynchronous index creation, so in some
 small cases of write an entity then do a cross entity group query the
 query results will be off. If you've run any kind of SQL service at scale
 that replicates to a read-slave, you should be used to this pattern of
 persistence.

 We plan on setting High Replication as the default for all new applications.
 It's not quite removing it, but perhaps we will explore that direction,
 though we are current hesitant to do so.

 We also plan on having some guest blog posts ... soon. If we had the
 manpower, we would work with each and every one of you to migrate over, then
 help you benchmark. Unfortunately, we can't. We can, however, try to publish
 as much data as we have as it comes in. I think the most useful data here
 will be data from third-parties. As far as our tests go, everything seems
 alright, but I'm pretty sure you'll all have more confidence in the results
 if they're being written by users whose entire businesses depend on the
 reliability and performance of App Engine.

 Spines: Please link me to where the documentation says that master/slave is
 the best option so we can fix it. To answer your question: yes, High
 Replication mitigates the impact of datastore spikes, and provides a path
 for us to pretty much eliminate them altogether.

 Lastly, I want to apologize if I came off as irate. I'm usually quick to
 respond emotionally, and the damn undo send button went away too quickly
 in my gmail. I don't mean to shut down any kind of joking around, but do
 remember that this group is internationally read. Sarcasm doesn't come off
 well in email, and it comes off 10x more confusing for non-native English
 speakers. If there's any chance any of you guys are coming to Pycon in
 Atlanta next week, Wesley and I will be there. Let's smooth things over with
 some drinks/food =).

 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 Thu, Mar 3, 2011 at 6:37 PM, Darien Caldwell
 darien.caldw...@gmail.comwrote:







  I'm kind of disappointed with Google's recent attitude change. When
  master/slave was all there was, it was deemed 'production worthy'. Now
  suddenly it's  If you are running a production service, you should
  not use Master/Slave datastore. Ever.

  Given that the HR datastore has some pretty big problems from a user
  perspective (costs 3 times more, only supports Eventual consistency),
  it's not really feasable to use for production code in *every*
  

[google-appengine] Re: HR Vs. Master-Slave Comparison. Is it worth extra cost?

2011-03-06 Thread Francois Masurel
Hi everybody,

It looks like HR apps takes more CPU than MS ones :

HR : 
2011-03-06 23:33:06.869 /?l=fr 200 1860ms 2304cpu_ms 437api_cpu_ms

MS :
2011-03-06 23:33:51.170 /?l=fr 200 689ms 1165cpu_ms 302api_cpu_ms 

Is it possible to have such differences between apps for the same page 
loading the same data ?

On an average basis, the HR apps feels slower than the MS one with exactly 
the same data.

Thanx for your help.

Francois

-- 
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: application don't show up on appspot.com

2011-03-06 Thread hector@ISB
Is your appspot associated with a Google Apps domain?  Or are you
logged in with a Google Apps account?
Try accessing your dashboard by logging on to:
https://appengine.google.com/a/yourdomain.com

On Mar 5, 10:49 am, Geoffrey Spear geoffsp...@gmail.com wrote:
 On Mar 5, 3:38 am, dadada ytbr...@gmail.com wrote:

  hi,

  I am kinda lost here.

  My application compiles OK, upload to app engine OK.
  There's no error and the app engine log shows no sign of problems.

  Where else can I trace and check? Any help will be appreciated.

  Thanks,
  Bryan

 What do you mean by doesn't show up?  What do the logs actually
 show?  Does the application work on the dev server?

-- 
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] Unable to remove a GAE app from my Google Apps dashboard.

2011-03-06 Thread Gary Eberhart


Hello, 

How do you permanently remove a Google App Engine App from the dashboard? 
I've already deleted the GAE app for animalengineersorg.  I've disabled the 
app from by clicking on the link on the dashboard. Any suggestions would be 
greatly appreciated. 

Thank you. Gary


https://lh6.googleusercontent.com/_A9MwIRoKlwE/TXQlWTlElkI/AEY/J0BTVDEyRCk/gaeOnDsh.png

-- 
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] Unable to remove a GAE app from my Google Apps dashboard.

2011-03-06 Thread Gary Eberhart
I went back two minutes later and animalengineorg was gone. It looks like
sometime after the app has been deleted from GAE and disabled on Google Apps
it will finally be removed from the dashboard. Thank you.

On Sun, Mar 6, 2011 at 5:26 PM, Gary Eberhart happycatmad...@gmail.comwrote:

 Hello,

 How do you permanently remove a Google App Engine App from the dashboard?
 I've already deleted the GAE app for animalengineersorg.  I've disabled the
 app from by clicking on the link on the dashboard. Any suggestions would be
 greatly appreciated.

 Thank you. Gary



 https://lh6.googleusercontent.com/_A9MwIRoKlwE/TXQlWTlElkI/AEY/J0BTVDEyRCk/gaeOnDsh.png

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


-- 
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] Help with Blobstore

2011-03-06 Thread Kwame
My Photo class already has many user uploaded images stored as
BlobProperty, but now my app is now using Blobstore to serve images.
Is there a way to get images already saved as Blob into the Blobstore?

class Photo(db.Model):
image = db.BlobProperty()
type = db.StringProperty()

-- 
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] Kay 1.1 final released!

2011-03-06 Thread Ian Lewis
Hi everyone,

We just released Kay 1.1 and 1.0.1 final!

Kay 1.1 is the next minor release of the Kay Framework for Appengine.
It includes new features as well as bug fixes.

Kay 1.0.1 includes bug fixes in Kay 1.1 backported to the 1.0.x branch
of Kay. It is for users of Kay who do not want to
upgrade to the new version and would prefer to only upgrade to fix
bugs and avoid backwards incompatibility problems.

Kay 1.1 release doesn't include any backwards incompatible changes but
has some loud warnings for several deprecated features
based on Kay's deprecation policy:
http://code.google.com/p/kay-framework/wiki/ReleasePolicy#Minor_releases
See Kay's deprecation timeline here:
http://code.google.com/p/kay-framework/wiki/KayDeprecationTimeline

Download the new releases here:
http://code.google.com/p/kay-framework/downloads/list
Please test and file bugs here:
http://code.google.com/p/kay-framework/issues/list

You can see the release notes for both releases here:
http://code.google.com/p/kay-framework/wiki/ReleaseNotes

Changes in 1.1

* Improved exception and error handling.
* Added a new kay.ext.ereporter application for managing error reporting.
* Added a new kay.ext.live_settings application for managing global
settings without having to reploy.
* Added a new AppStatsMiddleware? which can be used to enable appstats.
* Added a new Pagination API
* Added the COOKIE_SECURE setting to support secure session cookies (
Issue #90 )
* Added a new timezone_functions context processor.
* Added a new cron_only view decorator for securing cron views.
* Lazy load jinja2 so that requests that don't require jinja2 can return faster.
* Updated google SDK taskqueue imports to import from the new package name.
* Fixed an issue where the django module could not be loaded.

Changes in 1.0.1

* Fixed an issue where error mails could not be sent to email
addresses that were not specified as a developer in the admin console.
( Issue #50 )
* Fixed an issue were the django module could not be imported after
upgrading to the Appengine SDK 1.4.2 ( Issue #92 )
* Fixed an issue where kay returned instances of the
InternalServerError? exception rather than an object that subclasses
BaseResponse? ( Issue #54 ,#56)
* Fixed an issue with the remote API and the HR datastore.
* Updated imports to the taskqueue API so they use the new import path
( Issue #73 )

Happy Coding!!

-- 
Ian

http://www.ianlewis.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.



Re: [google-appengine] Help with Blobstore

2011-03-06 Thread Robert Kluin
Iterate over all the old data and send it to the blobstore.



Robert






On Sun, Mar 6, 2011 at 22:51, Kwame iweg...@gmail.com wrote:
 My Photo class already has many user uploaded images stored as
 BlobProperty, but now my app is now using Blobstore to serve images.
 Is there a way to get images already saved as Blob into the Blobstore?

 class Photo(db.Model):
    image = db.BlobProperty()
    type = db.StringProperty()

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



-- 
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] Problem while lauching an application

2011-03-06 Thread Mr. Rajiv Bakulesh Shah
Hi, Neetha.

I faced a similar problem with my app.  In my case, it seemed that the app 
worked fine if it was already warm, but it only served blank pages if it was 
cold.

I had a file called main.py, with a function called main(), in which I set up 
my URL mapping, defined my WSGI app, and ran my WSGI app.  If I recall 
correctly, my solution was to add the following lines at the very bottom of my 
main.py file, not indented (not part of the main() function):

if __name__ == '__main__':
main()

I hope that solves your problem as well.  Good luck!
Raj

On Mar 6, 2011, at 3:11 PM, BonguN wrote:

 Hi,
 
 I am fairly new to Google app engine and python and am trying to
 develop a web application.
 Whenever I load my project in app engine launcher and click 'Browse'
 it will display the expected results in a browser.
 
 But, If I try the same thing after a while (with no changes made), it
 still runs, but does not display anything in the browser. I do not
 seem to understand the reason for this inconsistency.
 
 Please help.
 
 -- 
 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.
 

-- 
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] Session time out..

2011-03-06 Thread GWTNewbie
Hello:
I am trying to implement a session time out logic for my application.
In my Login Servlet I do the following:


getThreadLocalRequest().getSession(true).setAttribute(sessionDetails,
session);


getThreadLocalRequest().getSession(false).setMaxInactiveInterval(30);

This creates an _ah_SESSION entry. However as per the servlet
specification I expect this session to be invalidated after 30
seconds. However this does not happen. Any suggestions as to how this
can be implemented ?
Thanks a lot.

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



Re: [google-appengine] Re: HR Vs. Master-Slave Comparison. Is it worth extra cost?

2011-03-06 Thread Matija
M/S:

2011-03-06 23:26:21.462  200 388ms 1690cpu_ms 1430api_cpu_ms
2011-03-06 23:25:06.242  200 155ms 1529cpu_ms 1409api_cpu_ms 

HR:

2011-03-06 23:26:24.337  200 148ms 1476cpu_ms 1396api_cpu_ms
2011-03-06 23:25:02.859  200 113ms 1456cpu_ms 1396api_cpu_ms

Two parallel apps, no cold start, two entities store in same entity group, 
one task enqueu, few datastore get and memchache hits, a lot of index 
creations.

;)

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