[google-appengine] Re: SEARCH API: Problem in Adding Documents To An Index

2012-05-20 Thread Peter McKenzie
The issue here is that the Index.add() signature has changed between
1.6.5 and 1.6.6.  The impact is that Index.add() will stop working as
1.6.6 rolls out (but other Search functionality is unaffected).  We
try to avoid breakages like this, and expect them to be rare, but they
are part of an API being in an experimental state.

The Fix

All Java Apps using Search will need to be re-compiled with the 1.6.6
SDK.  Additionally, if your code gets the response of the Index.add()
method, then you will need to change from,

for example,

 AddDocumentsResponse response = getIndex().add(documents);
 for (String id : response.getDocumentIds()) {
 }

to

 AddResponse response = getIndex().add(documents);
 for (String id : response.getIds()) {
 }


If you're hitting the problem now, you may want to try the pre-release SDK. 
 There are of course risks associated with using a pre-release SDK, so you 
may prefer to wait for the released 1.6.6 SDK.

Pre-release SDK link:
http://code.google.com/p/googleappengine/downloads/detail?name=appengine-java-sdk-1.6.6_prerelease.zip#makechanges

-- 
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/-/rppkWE2BiAkJ.
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: The Schedule Format of cron.xml

2012-05-20 Thread Peter McKenzie
Please create an issue on the issue tracker for this feature request.

On Thursday, May 17, 2012 6:15:38 PM UTC+10, Ian Marshall wrote:

 Thank you 
 - 
 You're welcome. 


 In option 1: Do you mean using *etaMillis of **TaskOptions *using  to 
 specify the execute time? 
 ---
  

 Yes. 


 We can trigger a TaskInit by cron and create 48 tasks in queue(every 
 30 minutes) to avoid chain task. 
 -
  

 Good idea: I didn't think of that. 


 I just wish a simple syntax to support such requirement 
 --- 
 Me too. 


 On May 17, 3:13 am, Larry kuei...@gmail.com wrote: 
  Hi Lan, 
  Thank you. 
  In option 1: 
  Do you mean using *etaMillis of **TaskOptions *using  to specify the 
  execute time? 
  This could be a solution. We can trigger a TaskInit by cron and create 
 48 
  tasks in queue(every 30 minutes) 
  to avoid chain task. 
  
  In option 2: 
  This is my first thought about cron.xml . I just wish a simple 
 syntax 
  to support such requirement. 
  If I change the schedule from 30 minutes to 2 minutes, the cron.xml will 
 be 
  1800 entries. 
  
  Ian Marshall於 2012年5月16日星期三UTC+8下午5時15分11秒寫道: 
  
  
  
  
  
  
  
  
  
   Your syntax problem may lie within your schedule tag (mix of month 
   and every, and unwanted final comma): 
  
 schedule1,15, of month every 2 hours/schedule 
  
   Your description tag and posting text do not match the every 2 hours 
   in your schedule tag. Assuming that you want to run every 30 
   minutes... 
  
   Option 1: try 
  
 schedule1,15 of month 00:00/schedule 
  
   and at the end of your scheduled task enqueue a task to execute 30 
   minutes later, if this would be within the same day. 
  
   Option 2: try 
  
 schedule1,15 of month 00:00/schedule 
 schedule1,15 of month 00:30/schedule 
 schedule1,15 of month 01:00/schedule 
 schedule1,15 of month 01:30/schedule 
 ... 
 schedule1,15 of month 23:30/schedule 
  
   This is more robust than chaining enqueued tasks kicked off by a 
   scheduled task, but would be more cumbersome to code, since you will 
   need a cron entry for each schedule. 
  
   Is this any help? 
  
   On May 15, 12:20 pm, Larry kuei...@gmail.com wrote: 
Hello All, 
 Is it possible to execute my job as following: 
  
?xml version=1.0 encoding=UTF-8? 
cronentries 
  cron 
url/mytask/url 
descriptionExecute my task, every 30 minutes of first and15th 
 of 
month  /description 
schedule1,15, of month every 2 hours/schedule 
timezoneAmerica/New_York/timezone 
  /cron 
/cronentries 
  
This syntax is wrong and fail to deploy to GAE. 
I tested another solution. Execute mytask every 30 minutes. Execute 
 the 
real task only the date is 1 and 15. 
I check the dashboard. The Frontend Instance Hours increase 
   dramatically. 
  
Any thoughts? 
Larry

-- 
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/-/QMCRPOibj2wJ.
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] Update version of GAE application, using php and CURL

2012-05-20 Thread Денис Тимонин
Thanks, i know it. But i want do that without using appcfg.py. Is it 
possible?

суббота, 19 мая 2012 г., 23:11:09 UTC+4 пользователь barryhunter написал:

 Why CURL? 

 Just use shell_exec (or one of the other very similar functions) to 
 run appcfg.py 

 http://php.net/manual/en/function.shell-exec.php 


 Don't reinvent the wheel; appcfg.py script is tried and tested. 


 On Sat, May 19, 2012 at 11:12 AM, Денис Тимонин dentimo...@gmail.com 
 wrote: 
  
  I have GAE application and server with apache and php. I want to 
  update my GAE application (1 file helloworld.py). How can i do this 
  through server with PHP? 
   I want to upload new version. On my serever (with Apache and PHP) i 
  have a new version of GAE application (new version of 2 files 
  app.yaml and helloworld.py ) with new code version and i want to 
  upload these 2 files, with new code version, in my application 
  (123test.appspot.com). Using CURL. 
  
  -- 
  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 view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/u3X9nZI-kNUJ.
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: Update version of GAE application, using php and CURL

2012-05-20 Thread Strom
Yes it is possible, just re-implement it yourself.

On May 20, 11:12 am, Денис Тимонин dentimo...@gmail.com wrote:
 Thanks, i know it. But i want do that without using appcfg.py. Is it
 possible?

 суббота, 19 мая 2012 г., 23:11:09 UTC+4 пользователь barryhunter написал:









  Why CURL?

  Just use shell_exec (or one of the other very similar functions) to
  run appcfg.py

 http://php.net/manual/en/function.shell-exec.php

  Don't reinvent the wheel; appcfg.py script is tried and tested.

  On Sat, May 19, 2012 at 11:12 AM, Денис Тимонин dentimo...@gmail.com
  wrote:

   I have GAE application and server with apache and php. I want to
   update my GAE application (1 file helloworld.py). How can i do this
   through server with PHP?
    I want to upload new version. On my serever (with Apache and PHP) i
   have a new version of GAE application (new version of 2 files
   app.yaml and helloworld.py ) with new code version and i want to
   upload these 2 files, with new code version, in my application
   (123test.appspot.com). Using CURL.

   --
   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: $2,000 worth of AppEngine credit at a discount

2012-05-20 Thread doright
don't know how you're going to make your choice of benefactor, or if you 
have already.  Perhaps you'll pull names from a hat.

So please throw my name into your 'hat', I have a startup on AppEngine that 
could use all the help it can get.

(if they are transferrable of course!)

www.bikeshopmanager.com

cheers,
Doug

On Sunday, May 20, 2012 4:30:25 AM UTC+2, Sri wrote:

 Il take it if it is tranferrable.  We actually use a fair bit of 
 AppEngine and I can see our bill sky rocketting as our usage grows.. 

 On May 20, 7:59 am, Leo Mata jigglyg...@gmail.com wrote: 
  I'll take it if there isnt anyone else up for it ;-) . Personally, I 
 like 
  free stuff. Thanky. 
  
  -Leo 
  
  
  
  
  
  
  
  On Sat, May 19, 2012 at 1:51 PM, Adam Sah adam@gmail.com wrote: 
   um yes of course... but is it transferrable? 
  
   adam 
  
   On Friday, May 18, 2012 4:31:36 PM UTC-7, Andres Douglas wrote: 
  
   Hey there, just stopping by the group to see if anyone is interested 
 in 
   $2,000 worth of AppEngine credit. My team received this as a gift and 
 we're 
   not users of AppEngine, so thought it would be better used by someone 
 here. 
   Leave a contact email and I'll get in touch. 
  
-- 
   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/-/-vkpEWUGz-MJ. 
  
   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 view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/47XzwsrnthsJ.
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: The Schedule Format of cron.xml

2012-05-20 Thread Ian Marshall
Done at

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


On May 20, 7:31 am, Peter McKenzie peter...@google.com wrote:
 Please create an issue on the issue tracker for this feature request.







 On Thursday, May 17, 2012 6:15:38 PM UTC+10, Ian Marshall wrote:

  Thank you
  -
  You're welcome.

  In option 1: Do you mean using *etaMillis of **TaskOptions *using  to
  specify the execute time?
  ---

  Yes.

  We can trigger a TaskInit by cron and create 48 tasks in queue(every
  30 minutes) to avoid chain task.
  -

  Good idea: I didn't think of that.

  I just wish a simple syntax to support such requirement
  ---
  Me too.

  On May 17, 3:13 am, Larry kuei...@gmail.com wrote:
   Hi Lan,
   Thank you.
   In option 1:
   Do you mean using *etaMillis of **TaskOptions *using  to specify the
   execute time?
   This could be a solution. We can trigger a TaskInit by cron and create
  48
   tasks in queue(every 30 minutes)
   to avoid chain task.

   In option 2:
   This is my first thought about cron.xml . I just wish a simple
  syntax
   to support such requirement.
   If I change the schedule from 30 minutes to 2 minutes, the cron.xml will
  be
   1800 entries.

   Ian Marshall於 2012年5月16日星期三UTC+8下午5時15分11秒寫道:

Your syntax problem may lie within your schedule tag (mix of month
and every, and unwanted final comma):

  schedule1,15, of month every 2 hours/schedule

Your description tag and posting text do not match the every 2 hours
in your schedule tag. Assuming that you want to run every 30
minutes...

Option 1: try

  schedule1,15 of month 00:00/schedule

and at the end of your scheduled task enqueue a task to execute 30
minutes later, if this would be within the same day.

Option 2: try

  schedule1,15 of month 00:00/schedule
  schedule1,15 of month 00:30/schedule
  schedule1,15 of month 01:00/schedule
  schedule1,15 of month 01:30/schedule
  ...
  schedule1,15 of month 23:30/schedule

This is more robust than chaining enqueued tasks kicked off by a
scheduled task, but would be more cumbersome to code, since you will
need a cron entry for each schedule.

Is this any help?

On May 15, 12:20 pm, Larry kuei...@gmail.com wrote:
 Hello All,
  Is it possible to execute my job as following:

 ?xml version=1.0 encoding=UTF-8?
 cronentries
   cron
 url/mytask/url
 descriptionExecute my task, every 30 minutes of first and15th
  of
 month  /description
 schedule1,15, of month every 2 hours/schedule
 timezoneAmerica/New_York/timezone
   /cron
 /cronentries

 This syntax is wrong and fail to deploy to GAE.
 I tested another solution. Execute mytask every 30 minutes. Execute
  the
 real task only the date is 1 and 15.
 I check the dashboard. The Frontend Instance Hours increase
dramatically.

 Any thoughts?
 Larry

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



[google-appengine] Understanding Free App Performance

2012-05-20 Thread stevep
I am working toward a proposal for elementary schools to use GAE for a
very, very light-weight process that monitors student's at home work.
We're talking 100 transactions per week. Thought for sure the schools
could set up a free app without any problem -- $9 a month is a hurdle
believe it or not for some schools.

Today I was playing around with a demo setup. I thought the free meant
max of one instance staying resident with the cost of netting out to
zero given G's gracious credit of 28 instance hours each day. What I
found though was every call (calls were a few minutes apart) made to
the app resulted in a new instance spinning up. (Should note that I
did have my app Dashboard open the full time viewing logs, instance
counts, etc.) Each time I checked the instances, there were zero.
Again, I thought one would stay resident.

This is a Python app (not 2.7), and is HR. Settings are full Auto on
the sliders. The handler is about 50 lines of code with imports only
for logging and urllib plus standard app engine library stuff. There
is one db.Model with one record in it which is only read using
get_by_key_name.

Free can still work for the app given the super-small load level. But
with instance spin up times ranging from 700ms to 66,000ms (have no
idea why), it can be a very choppy user experience.

--Coda--
OK, got to be smarter than this, so I enabled billing on the app. This
did result in one instance staying alive, but that *did not matter*.
Even though I was sending just one GET call every few minutes, every
call resulted in the Scheduler starting a new instance -- so I went
from one to two. Sure I understand that I am not getting billed for
the extra instance the Scheduler buffered up, but my call had to wait
for this instance to start up before getting serviced. So with about
one call every 3-5 minute, my average response time was around
6,000ms. Nuts!

I am meeting with a Principal on Tuesday. Again, I thought I had a
grasp on what Free meant, but today's work has left me with nothing
but questions and frustration. Any input would be appreciated.

stevep

-- 
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] Developing Multilingual Web Applications Using JavaServer Pages Technology

2012-05-20 Thread Torleif
I have a web page which has 3 different languages, Swedish, English and 
Russian! In my old java page i set this up with WebTexts_en.properties, 
WebTexts_sv.properties and WebTexts_ry.properties files together with 
LangSupport.jsp to chose the Locale for the browser. 
All my jsp pages has UTF-8 encoding so this should be correct as well i 
think.

Now i have moved my page to Google APP Engine and i wonder if there is 
anybody who have some input on how to make this here? I have tried to 
follow my old setup but it seems not to work, my page are there but i have 
no text what so ever, http://neptune-app-id.appspot.com/
So i wonder if there is anybody who have some input on how google like to 
set this up? I need help with the whole setup of this, where to place my 
files, what to include to get this to work, How to setup up my LangSupport 
file so it choose the right Locale for the browser.

Would also be nice if somebody could show me some documentation for this 
that i can follow when i set this up. I am quiet a beginner with this but i 
have most of the files from my old page. Sp i only need to convert all this 
to work with google app engine instead, please help!!!
Any information would be very helpful since i am stuck right now and cannot 
move forward with my project.

-- 
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/-/5YGutnBl96oJ.
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: java.io.InvalidClassException: com.google.appengine.api.datastore.dev.LocalDatastoreService$Profile

2012-05-20 Thread Deepak Singh
Still not resolved.



On Sat, May 19, 2012 at 12:15 AM, Deepak Singh deepaksingh...@gmail.comwrote:

 Hi,

 I just upgraded from GAEJ1.6.1 to GAEJ1.6.5 and while running in
 development mode, got the following exception

 java.io.InvalidClassException:
 com.google.appengine.api.datastore.dev.LocalDatastoreService$Profile; local
 class incompatible: stream

 Did anyone encounter this issue?

 Thanks
 Deepak Singh




-- 
Deepak Singh

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



[google-appengine] Re: Can't send attachment to Admin Email

2012-05-20 Thread Larry
Hi Abdelkrim,
I can send the email without the attachment.
And the Admins Emailed quota increase.
The sender is the owner of the application.
PS I can send email with attachment by Javamail.
It is only 100 Recipients  only.



abdelkrim boujraf於 2012年5月19日星期六UTC+8上午5時08分30秒寫道:

 Can you send a message without the attachment?

 Is the sender (email address) a developer or an owner of the application?

 Abdelkrim
 http://blog.i14y.net
 http://www.alt-f1.be

 Le vendredi 18 mai 2012 06:38:42 UTC+2, Larry a écrit :

 Hi All,
  I fail to send email to *admins *of app.
  Here is my code 

  MailService mailService = MailServiceFactory.getMailService();
  Message message = new Message();
  message.setSender(x...@gmail.com);
  message.setSubject(This is test);
  message.setHtmlBody(this is bcontent/b);
  Attachment attachment = new Attachment(test.pdf, blob.getBytes()); 
 // blob size = 488k
  message.setAttachments(attachment);
  mailService.*sendToAdmins*(message);

  In the Logs of Administration Console, a warning:
 Bad Request: Admin message exceeds size limits

here is the detail quota:
 MailMail API Calls
 [image: 0%]
 0%0 of 7,000OkayRecipients Emailed
 [image: 0%]
 0%0 of 100OkayAdmins Emailed
 [image: 0%]
 0%0 of 5,000OkayMessage Body Data Sent
 [image: 0%]
 0%0.00 of 0.06 GBytesOkayAttachments Sent
 [image: 0%]
 0%*0.00 of 0.00 GBytes*OkayAttachment Data Sent
 [image: 0%]
 0%0.00 of 0.10 GBytesOkay
  Is it problem of  Attachments Sent? It should be 2,000 attachments.
  Anybody can help me? Thank.




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