[google-appengine] Storing data from Excel files to db

2010-12-14 Thread Andrey
Hi all!

I have MS Excel file with data and I want to store data from this file
to db. Is there any easy way to do this?

Andrey

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



Re: [google-appengine] Storing data from Excel files to db

2010-12-14 Thread Wim den Ouden
have you seen this http://www.python-excel.org/

On Tue, Dec 14, 2010 at 10:30 AM, Andrey  wrote:

> Hi all!
>
> I have MS Excel file with data and I want to store data from this file
> to db. Is there any easy way to do this?
>
> Andrey
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appeng...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>


-- 
gr
Wim den Ouden
Gae based E-business  (web) apps
Free open source 
Gae developer tips 

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



Re: [google-appengine] Enhancement/Concept for Foreign Property Synchronization within Models

2010-12-14 Thread djidjadji
What happens when a multiple put is performed?
The Sync must be done before constructing the protocol buffer. Are the
Author entities fetched in parallel or serial?
And how to deal with it if the multiple put contains different types
of objects where all or some have Sync properties?

Nick Johnson has coded a few extra Property classes in aetycoon module.

https://github.com/Arachnid/aetycoon

Maybe you can use the DerivedProperty or the TransformedProperty to
fill the Sync property.
They use (lambda) functions to construct the property content.
I don't know if these properties work when the field they depend on is
a class instance.

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



[google-appengine] Re: Storing data from Excel files to db

2010-12-14 Thread Tim Hoffman
Hi

There are many ways. I assume models will represent rows in your 
spreadsheet.

1. You could export it to csv, and use the bulkloader tools to build a 
custom importer.
2. If its a once off you could read the spreadsheet in a remote shell, and 
write entities to the datastore
3. If its a big spreadsheet and you need to spend lots of time processing 
it, you could export as csv, write it to blobstore and use mapreduce to 
process it.
4. You could upload into to google docs and process it using gdata via 
tasks.

I have done all except option 3.

Why don't you explain a little more about your objectives, what you want to 
do with the data, how the data might be represented in the datastore, 
how often you want to process this spreadsheet etc...

Or am I over complicating things and you just want to store the spreadsheet 
as a blob and allow people to just download the spreadsheet ;-)

Rgds

Tim


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



[google-appengine] google apps wildcard subdomains at godaddy

2010-12-14 Thread Roberto Saccon
google apps lets me define wildcard subdomains

e.g.: http://*.mydomain.com

but when saving the wildcard entry, a message from Google shows up that I 
also need do adjust at godaddy the CNAME '*' to ghs.google.com

So I try to do that at the godaddy DNS panel, but here is the end of the 
game, godaddy says that a wildcard CNAME is not allowed.

So how have others solved this ? Switched to another DNS provider ? Which 
one ? Or did I just so something wrong ?

--
Roberto

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



Re: [google-appengine] google apps wildcard subdomains at godaddy

2010-12-14 Thread Edel SM
On Tue, Dec 14, 2010 at 7:15 PM, Roberto Saccon  wrote:
> google apps lets me define wildcard subdomains
> e.g.: http://*.mydomain.com
> but when saving the wildcard entry, a message from Google shows up that I
> also need do adjust at godaddy the CNAME '*' to ghs.google.com
> So I try to do that at the godaddy DNS panel, but here is the end of the
> game, godaddy says that a wildcard CNAME is not allowed.
> So how have others solved this ? Switched to another DNS provider ? Which
> one ? Or did I just so something wrong ?

i have no experience with godaddy dns panel, but i use mydomain.com
and cloudflare.com, and wildcard is supported.

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



-- 
edel

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



Re: [google-appengine] google apps wildcard subdomains at godaddy

2010-12-14 Thread Chris Copeland
Yep, GoDaddy does not support this.

There are a couple of other options mentioned in this Stack Overflow
question:
http://stackoverflow.com/questions/4135831/wildcard-subdomain-on-google-app-engine-alternatives-to-godaddy-domains/4140169

On Tue, Dec 14, 2010 at 6:31 AM, Edel SM  wrote:

> On Tue, Dec 14, 2010 at 7:15 PM, Roberto Saccon  wrote:
> > google apps lets me define wildcard subdomains
> > e.g.: http://*.mydomain.com
> > but when saving the wildcard entry, a message from Google shows up that I
> > also need do adjust at godaddy the CNAME '*' to ghs.google.com
> > So I try to do that at the godaddy DNS panel, but here is the end of the
> > game, godaddy says that a wildcard CNAME is not allowed.
> > So how have others solved this ? Switched to another DNS provider ? Which
> > one ? Or did I just so something wrong ?
>
> i have no experience with godaddy dns panel, but i use mydomain.com
> and cloudflare.com, and wildcard is supported.
>
> > --
> > Roberto
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine+unsubscr...@googlegroups.com
> .
> > For more options, visit this group at
> > http://groups.google.com/group/google-appengine?hl=en.
> >
>
>
>
> --
> edel
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appeng...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>

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



[google-appengine] Delete or unschedule a task?

2010-12-14 Thread Mark
Hi,

Is there a way to delete or unschedule a task? I've got a multiplayer
game. Whenever a player starts their turn, I schedule a task for now +
n minutes, where n is the total time they have to perform their move.
When the task executes, I check if they have performed the move, if
not, I cancel their turn. But my queue will end up having many
unnecessary tasks in it:

   Round limit = 5 minutes
   queued-task:  game=abc, check at 5:00pm
   queued-task:  game=abc, check at 5:01pm
   ...

As each player starts their turn, all the tasks pile on as above.
Ideally I only need one scheduled task in the queue at any given time.
When a player starts their turn, I could flush the queue of all
previous scheduled tasks, which are no longer needed.

There doesn't appear to be a way to do this, named tasks block
insertion of tasks with the same name, I was hoping to use that as a
trick to find and remove or overwrite the tasks with the same name
(using the game key as a unique identifier)?

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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Delete or unschedule a task?

2010-12-14 Thread ping2ravi
I am not expert of task queues, but looking at ur requirment may be u can leave 
the future task at player's browser.
Run a javascript timer at the browser and whenver it timeout inform the 
server(ajax) and tell the player too. Timer can be set for  player's turn and 
while he is waiting for other player. And ofcourse then u can run task(server 
side) every fix time to clean games(to set game status as finished/abandoned 
etc) which have been crashed/browser crash or people have left without clicking 
proper buttons on ur app.
May be it will save someof ur cpu and tasks count/billing :).

Sent from my BlackBerry® wireless device

-Original Message-
From: Mark 
Sender: google-appengine@googlegroups.com
Date: Tue, 14 Dec 2010 06:28:30 
To: Google App Engine
Reply-To: google-appengine@googlegroups.com
Subject: [google-appengine] Delete or unschedule a task?

Hi,

Is there a way to delete or unschedule a task? I've got a multiplayer
game. Whenever a player starts their turn, I schedule a task for now +
n minutes, where n is the total time they have to perform their move.
When the task executes, I check if they have performed the move, if
not, I cancel their turn. But my queue will end up having many
unnecessary tasks in it:

   Round limit = 5 minutes
   queued-task:  game=abc, check at 5:00pm
   queued-task:  game=abc, check at 5:01pm
   ...

As each player starts their turn, all the tasks pile on as above.
Ideally I only need one scheduled task in the queue at any given time.
When a player starts their turn, I could flush the queue of all
previous scheduled tasks, which are no longer needed.

There doesn't appear to be a way to do this, named tasks block
insertion of tasks with the same name, I was hoping to use that as a
trick to find and remove or overwrite the tasks with the same name
(using the game key as a unique identifier)?

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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

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



[google-appengine] Re: Delete or unschedule a task?

2010-12-14 Thread Mark
Hi, yeah maybe that's the best way to go - then I can run a scheduled
task every two hours or so per game as a back up just in case,

Thanks!

On Dec 14, 9:42 am, ping2r...@gmail.com wrote:
> I am not expert of task queues, but looking at ur requirment may be u can 
> leave the future task at player's browser.
> Run a javascript timer at the browser and whenver it timeout inform the 
> server(ajax) and tell the player too. Timer can be set for  player's turn and 
> while he is waiting for other player. And ofcourse then u can run task(server 
> side) every fix time to clean games(to set game status as finished/abandoned 
> etc) which have been crashed/browser crash or people have left without 
> clicking proper buttons on ur app.
> May be it will save someof ur cpu and tasks count/billing :).
>
> Sent from my BlackBerry® wireless device
>
>
>
>
>
>
>
> -Original Message-
> From: Mark 
>
> Sender: google-appengine@googlegroups.com
> Date: Tue, 14 Dec 2010 06:28:30
> To: Google App Engine
> Reply-To: google-appengine@googlegroups.com
> Subject: [google-appengine] Delete or unschedule a task?
>
> Hi,
>
> Is there a way to delete or unschedule a task? I've got a multiplayer
> game. Whenever a player starts their turn, I schedule a task for now +
> n minutes, where n is the total time they have to perform their move.
> When the task executes, I check if they have performed the move, if
> not, I cancel their turn. But my queue will end up having many
> unnecessary tasks in it:
>
>    Round limit = 5 minutes
>    queued-task:  game=abc, check at 5:00pm
>    queued-task:  game=abc, check at 5:01pm
>    ...
>
> As each player starts their turn, all the tasks pile on as above.
> Ideally I only need one scheduled task in the queue at any given time.
> When a player starts their turn, I could flush the queue of all
> previous scheduled tasks, which are no longer needed.
>
> There doesn't appear to be a way to do this, named tasks block
> insertion of tasks with the same name, I was hoping to use that as a
> trick to find and remove or overwrite the tasks with the same name
> (using the game key as a unique identifier)?
>
> 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-appeng...@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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: Delete or unschedule a task?

2010-12-14 Thread ping2ravi
I would run a task may be every 10(atleast the double the time one player gets 
for his turn) minutes and that task will be able to work on as many games as 
possible. And ofcourse this number(10 min) will depend on how soon u want to 
inform users with the results.
But cleaning as many game as u can in one task is important instead of one task 
per game.
This setup will perform better if total games played are more then 24*60/10. 
Else one task per game is good enough from billing point of view.

Sent from my BlackBerry® wireless device

-Original Message-
From: Mark 
Sender: google-appengine@googlegroups.com
Date: Tue, 14 Dec 2010 06:49:44 
To: Google App Engine
Reply-To: google-appengine@googlegroups.com
Subject: [google-appengine] Re: Delete or unschedule a task?

Hi, yeah maybe that's the best way to go - then I can run a scheduled
task every two hours or so per game as a back up just in case,

Thanks!

On Dec 14, 9:42 am, ping2r...@gmail.com wrote:
> I am not expert of task queues, but looking at ur requirment may be u can 
> leave the future task at player's browser.
> Run a javascript timer at the browser and whenver it timeout inform the 
> server(ajax) and tell the player too. Timer can be set for  player's turn and 
> while he is waiting for other player. And ofcourse then u can run task(server 
> side) every fix time to clean games(to set game status as finished/abandoned 
> etc) which have been crashed/browser crash or people have left without 
> clicking proper buttons on ur app.
> May be it will save someof ur cpu and tasks count/billing :).
>
> Sent from my BlackBerry® wireless device
>
>
>
>
>
>
>
> -Original Message-
> From: Mark 
>
> Sender: google-appengine@googlegroups.com
> Date: Tue, 14 Dec 2010 06:28:30
> To: Google App Engine
> Reply-To: google-appengine@googlegroups.com
> Subject: [google-appengine] Delete or unschedule a task?
>
> Hi,
>
> Is there a way to delete or unschedule a task? I've got a multiplayer
> game. Whenever a player starts their turn, I schedule a task for now +
> n minutes, where n is the total time they have to perform their move.
> When the task executes, I check if they have performed the move, if
> not, I cancel their turn. But my queue will end up having many
> unnecessary tasks in it:
>
>    Round limit = 5 minutes
>    queued-task:  game=abc, check at 5:00pm
>    queued-task:  game=abc, check at 5:01pm
>    ...
>
> As each player starts their turn, all the tasks pile on as above.
> Ideally I only need one scheduled task in the queue at any given time.
> When a player starts their turn, I could flush the queue of all
> previous scheduled tasks, which are no longer needed.
>
> There doesn't appear to be a way to do this, named tasks block
> insertion of tasks with the same name, I was hoping to use that as a
> trick to find and remove or overwrite the tasks with the same name
> (using the game key as a unique identifier)?
>
> 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-appeng...@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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

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



[google-appengine] Re: google apps wildcard subdomains at godaddy

2010-12-14 Thread Gaurav Vaish
Hi,

If you map abcd.xyz.com to ghs.google.com, automatically,
*.abcd.xyz.com will be served by ghs.google.com

I think all you need to do is map "@" to ghs.google.com (which by
default is mapped to "www").


--
Happy Hacking,
Gaurav Vaish
http://www.mastergaurav.com


On Dec 14, 7:24 pm, Chris Copeland  wrote:
> Yep, GoDaddy does not support this.
>
> There are a couple of other options mentioned in this Stack Overflow
> question:http://stackoverflow.com/questions/4135831/wildcard-subdomain-on-goog...
>
> On Tue, Dec 14, 2010 at 6:31 AM, Edel SM  wrote:
> > On Tue, Dec 14, 2010 at 7:15 PM, Roberto Saccon  wrote:
> > > google apps lets me define wildcard subdomains
> > > e.g.: http://*.mydomain.com
> > > but when saving the wildcard entry, a message from Google shows up that I
> > > also need do adjust at godaddy the CNAME '*' to ghs.google.com
> > > So I try to do that at the godaddy DNS panel, but here is the end of the
> > > game, godaddy says that a wildcard CNAME is not allowed.
> > > So how have others solved this ? Switched to another DNS provider ? Which
> > > one ? Or did I just so something wrong ?
>
> > i have no experience with godaddy dns panel, but i use mydomain.com
> > and cloudflare.com, and wildcard is supported.
>
> > > --
> > > Roberto
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google App Engine" group.
> > > To post to this group, send email to google-appeng...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-appengine+unsubscr...@googlegroups.com
> > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-appengine?hl=en.
>
> > --
> > edel
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.
>
>

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



[google-appengine] Re: google apps wildcard subdomains at godaddy

2010-12-14 Thread Roberto Saccon
Gaurav, I that does not work:

ERROR - A record of a different type exists for the hostname @, could 
not create CNAME 

--
Roberto



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



Re: [google-appengine] Re: google apps wildcard subdomains at godaddy

2010-12-14 Thread Massimiliano
You can try with *
It's working for me, but with another provider.

2010/12/14 Roberto Saccon 

> Gaurav, I that does not work:
>
> ERROR - A record of a different type exists for the hostname @, could
> not create CNAME
>
> --
> Roberto
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appeng...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com
> .
>
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>



-- 

My email: massimiliano.pietr...@gmail.com
My Google Wave: massimiliano.pietr...@googlewave.com

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



Re: [google-appengine] Re: google apps wildcard subdomains at godaddy

2010-12-14 Thread Roberto Saccon
Well, it looks like I have to switch to another DNS provider 

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



Re: [google-appengine] App engine admin login dumps me back in the login page (https://appengine.google.com/)

2010-12-14 Thread Robert Kluin
Maybe you used an apps account before.  If you have one have you tried:
appspot.com/a/yourdomain.com









On Sun, Dec 12, 2010 at 15:14, Norlesh  wrote:
> When attempting to access my appengine control page (using
> https://appengine.google.com) I submit the account password only to be
> redirected back to the same page over and over with no error message.
> I hadn't attempted to log in for a few weeks since I had been working
> on the local machine however the test pages from my last upload are
> still active.
> I am using the same account that I originally used to upload the test
> pages and have even reset the password on the account just to be sure.
> Tested this in both Chrome and IE and tried both restarts and clearing
> all application data...
>   Has anyone else experienced these symptoms? How do I get back in?
>     thanks - Shane
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine" group.
> To post to this group, send email to google-appeng...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-appengine+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-appengine?hl=en.
>
>

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



[google-appengine] [Channel API] How do I know the token expired or not in server side?

2010-12-14 Thread Rain Chen
I want to implement a broadcast mechanism by Channel APIs. In server
side, I use a model ClientID to store all connected client IDs, and
send message by each client ID. For better performance, I need to know
which client ID is "available" (the client is still connected or the
token is still available). Is there any way to know below conditions
in server side?
 1, When does the token expire?
 2. Is the client ID available or not? (Does the client still listen
the channel or not?)

Thanks in advance for any answers!

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



Re: [google-appengine] AlwaysOn and WarmUpRequests working poorly?

2010-12-14 Thread Jon McAlister
I think the problem is that we're not doing a good enough job on our
Instances console. You do have three always-on instances, that were
initialized with a /_ah/warmup request, but we don't give you an
indication of how old they are. I do see /_ah/warmup requests in your
logs on 12/14 and 12/12. So, you had three always-on instances that
remained up for two days. You can check the Instances console at any
time to see how many always-on instances and dynamic instances are
currently running for your app.

Your app is a bit more interesting in that it will occasionally need
more instances to handle traffic. For example, right now you have
three always-on instances and one dynamic instance. The dynamic
instance may be turned up be either a loading request or a warmup
request, in the same way that a always-on instance might be turned up
by one or the other. We try to turnup with a warming request but don't
guarantee it right now. More explanation of this is at:
http://code.google.com/appengine/docs/java/config/appconfig.html#Warming_Requests

2010/12/11 Sérgio Lopes :
> Hi Jon!
> Thanks for your help. I made another search for "loading_request=1" in the
> logs and today, 12/11, I had 14 loading requests. They are all user
> requests, there is no warmup request to /_ah/warmup. Same thing yesterday:
> 37 loading requests, not a single one to /_ah/warmup. I think it's still not
> fixed...
> Thanks again
> Sergio
> On Fri, Dec 10, 2010 at 23:13, Jon McAlister  wrote:
>>
>> Hi Sergio,
>>
>> I looked into your app, and unfortunately we had a slight
>> configuration error on our part. This has now been fixed and pushed
>> out. So, it should be significantly better now. Mind having another
>> look?
>>
>> On Wed, Dec 8, 2010 at 5:49 PM, Sergio Lopes  wrote:
>> > Hi guys
>> >
>> > I have AlwaysOn enabled since the release, but I'm not getting the
>> > expected results. Searching my logs for "loading_request=1"  I found
>> > 27 loading requests today. But only 1 of those 27 is an automated /_ah/
>> > warmup request, all others are user requests suffering the startup
>> > latency.
>> >
>> > My app (caelumcombr) doesn't have many requests. Before AlwaysOne, the
>> > Instances panel always reported only 1 instance for my App. And now
>> > that I pay for 3 instances (much more than needed), I'm still seeing a
>> > lot of user requests causing instance startup. Isn't that wrong?
>> >
>> > Sérgio Lopes
>> >
>> > www.caelum.com.br
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Google App Engine" group.
>> > To post to this group, send email to google-appeng...@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > google-appengine+unsubscr...@googlegroups.com.
>> > For more options, visit this group at
>> > http://groups.google.com/group/google-appengine?hl=en.
>> >
>> >
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine" group.
>> To post to this group, send email to google-appeng...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appeng...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>

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



Re: [google-appengine] AlwaysOn and WarmUpRequests working poorly?

2010-12-14 Thread Sérgio Lopes
Hi Jon, thanks again for helping me with this issue

My concern is that there are too many instances being created all time, and
only a few are created using WarmUpRequests to /_ah/warmup. My idea of
AlwaysOn and WarmUpRequests was that, for a small app, most WarmUpRequets
would be to /_ah/warmup and only a few would be user requests (specially
when there is a traffic peek). Is that right?

The logs for today are much better, there are some /_ah/warmup requests.
Today (12/14) from 7am to 10am, I had 13 loading requests (4 are /_ah/warmup
requests). Isn't that too much if I have AlwaysOn with 3 reserved
instances?

And I understand that I always have 3 instances when checking the Instances
panel; that's ok. But why there are too many instances startups and why most
of them are initialized in user requests instead of /_ah/warmup requests?

(And about my app traffic, I had a huge peek yesterday; but most of the time
I have small traffic. Before AlwaysOn, the instances panel always reported
one instance was enough)

Thanks again
Sergio

On Tue, Dec 14, 2010 at 16:03, Jon McAlister  wrote:

> I think the problem is that we're not doing a good enough job on our
> Instances console. You do have three always-on instances, that were
> initialized with a /_ah/warmup request, but we don't give you an
> indication of how old they are. I do see /_ah/warmup requests in your
> logs on 12/14 and 12/12. So, you had three always-on instances that
> remained up for two days. You can check the Instances console at any
> time to see how many always-on instances and dynamic instances are
> currently running for your app.
>
> Your app is a bit more interesting in that it will occasionally need
> more instances to handle traffic. For example, right now you have
> three always-on instances and one dynamic instance. The dynamic
> instance may be turned up be either a loading request or a warmup
> request, in the same way that a always-on instance might be turned up
> by one or the other. We try to turnup with a warming request but don't
> guarantee it right now. More explanation of this is at:
>
> http://code.google.com/appengine/docs/java/config/appconfig.html#Warming_Requests
>
> 2010/12/11 Sérgio Lopes :
> > Hi Jon!
> > Thanks for your help. I made another search for "loading_request=1" in
> the
> > logs and today, 12/11, I had 14 loading requests. They are all user
> > requests, there is no warmup request to /_ah/warmup. Same thing
> yesterday:
> > 37 loading requests, not a single one to /_ah/warmup. I think it's still
> not
> > fixed...
> > Thanks again
> > Sergio
> > On Fri, Dec 10, 2010 at 23:13, Jon McAlister  wrote:
> >>
> >> Hi Sergio,
> >>
> >> I looked into your app, and unfortunately we had a slight
> >> configuration error on our part. This has now been fixed and pushed
> >> out. So, it should be significantly better now. Mind having another
> >> look?
> >>
> >> On Wed, Dec 8, 2010 at 5:49 PM, Sergio Lopes  wrote:
> >> > Hi guys
> >> >
> >> > I have AlwaysOn enabled since the release, but I'm not getting the
> >> > expected results. Searching my logs for "loading_request=1"  I found
> >> > 27 loading requests today. But only 1 of those 27 is an automated
> /_ah/
> >> > warmup request, all others are user requests suffering the startup
> >> > latency.
> >> >
> >> > My app (caelumcombr) doesn't have many requests. Before AlwaysOne, the
> >> > Instances panel always reported only 1 instance for my App. And now
> >> > that I pay for 3 instances (much more than needed), I'm still seeing a
> >> > lot of user requests causing instance startup. Isn't that wrong?
> >> >
> >> > Sérgio Lopes
> >> >
> >> > www.caelum.com.br
> >> >
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups "Google App Engine" group.
> >> > To post to this group, send email to
> google-appeng...@googlegroups.com.
> >> > To unsubscribe from this group, send email to
> >> > google-appengine+unsubscr...@googlegroups.com
> .
> >> > For more options, visit this group at
> >> > http://groups.google.com/group/google-appengine?hl=en.
> >> >
> >> >
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> Groups
> >> "Google App Engine" group.
> >> To post to this group, send email to google-appeng...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> google-appengine+unsubscr...@googlegroups.com
> .
> >> For more options, visit this group at
> >> http://groups.google.com/group/google-appengine?hl=en.
> >>
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine+unsubscr...@googlegroups.com
> .
> > For more options, visit this group at
> > http://groups.google.com/group/google-appengine?hl=en.
> >
>
> --
> You received this message because you are subscribed to

[google-appengine] automate user input in bulkloader's appcfg.py?

2010-12-14 Thread GK
Hi,

I want to write a python script which will automate the bulkloading
process by writing a csv file, then running appcfg.py by using a
command like os.system("appcfg.py ... ")

The problem is I am having trouble automating user input when
appcfg.py asks for authentication. I tried writing a text file called
input.txt with the authentication details (it looked like this:
myem...@gmail.com
MyPassword

and then running appcfg.py < input.txt and this worked for the email,
but not for the password. Would it be possible to modify appcfg.py to
take the username and password as arguments, so that I could run the
script like this: appcfg.py username="myem...@gmail.com"
pass="MyPassword" ? Or could I simply hardcode the username/password
in appcfg.py?  What file would I have to modify in order to do this?

Is there any easier way in python to automate user input?

Any help would be appreciated.

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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Availability of GAE app for Google Apps users

2010-12-14 Thread Glenn Blackler
Thanks for the additional help! The Federated Login feature won't help
me much at this point. The data we manage is relatively sensitive and
we have to use SSL and it looks like they don't support it yet. But,
again, I appreciate your ideas!

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



Re: [google-appengine] AlwaysOn and WarmUpRequests working poorly?

2010-12-14 Thread Eli Jones
I'm also having a hard time understanding how the "Total Number of
Instances" page relates to Cold Starts.

My app is all back end processing stuff.  Every 5 minutes, a chained task
issues calls to two separate handlers. (Technically, it's a single chained
task that calls one handler.  After that task is done, it adds a separate
one-time task for a different handler that runs immediately and also
schedules the next 5 minute task.)

That's it.  No front-end or random requests.  Two handlers (one after
another) every 5 minutes.

I can check the "Instances" page right before the next task executes, and I
will see two Dynamic Instances showing.

Right after the chained task runs, I will then see 4 Dynamic Instances.
 Over the next 5 minutes, two of the instances will slowly time out, and it
will settle back to having 2 Instances showing right before the next 5
minute task runs.  (Where it will then start up 2 additional Instances and
show 4 Instances again.)

When I look at the Logs, it shows that each recent request "caused a new
process to be started for your application".

So, the question becomes, if there are indeed 2 Instances already running,
why is Appengine starting 2 additional Instances to service these requests?

Either the instances aren't really there and the Instances page is
inaccurate, or Appengine is wasting resources by starting 2 additional
Instances when it doesn't need to.

Is there any way to clarify what's going on?

On Fri, Dec 10, 2010 at 8:13 PM, Jon McAlister  wrote:

> Hi Sergio,
>
> I looked into your app, and unfortunately we had a slight
> configuration error on our part. This has now been fixed and pushed
> out. So, it should be significantly better now. Mind having another
> look?
>
> On Wed, Dec 8, 2010 at 5:49 PM, Sergio Lopes  wrote:
> > Hi guys
> >
> > I have AlwaysOn enabled since the release, but I'm not getting the
> > expected results. Searching my logs for "loading_request=1"  I found
> > 27 loading requests today. But only 1 of those 27 is an automated /_ah/
> > warmup request, all others are user requests suffering the startup
> > latency.
> >
> > My app (caelumcombr) doesn't have many requests. Before AlwaysOne, the
> > Instances panel always reported only 1 instance for my App. And now
> > that I pay for 3 instances (much more than needed), I'm still seeing a
> > lot of user requests causing instance startup. Isn't that wrong?
> >
> > Sérgio Lopes
> >
> > www.caelum.com.br
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> > To post to this group, send email to google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com
> .
> > For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appeng...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>

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



[google-appengine] Re: I can't download data using bulkloader

2010-12-14 Thread nacho
Any idea? Anyone has experience using bulkloader in a Java app?

On 10 dic, 17:26, nacho  wrote:
> I'm trying to download data from my app as described 
> here:http://ikaisays.com/2010/06/10/using-the-bulkloader-with-java-app-eng...
>
> But when i run:
>
> > appcfg.py download_data --config_file=config.yml --filename=data.csv 
> > --kind=Account --url=http://myapp.appspot.com/remote_api--application=myapp
>
> I get this error:
>
> Error parsing yaml file:
> Unable to assign value 'None' to attribute 'connector':
> Missing value is required.
>
> But in my config.yml i have this:
>
> - kind: Account
>   connector: csv
>   connector_options:
>     encoding: utf-8
>
> What I am missing?

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



[google-appengine] Disconnect notification via Channel API?

2010-12-14 Thread Mark Jen
Hi,

I noticed that one of the caveats in the new Channel API was that there's no 
disconnect notification and it is suggested that applications implement a 
heartbeat if they wish to maintain client presence. Is connect/disconnect 
notification something that's in the works and may be available in the 
future? Or are there limitations in the infrastructure that prevent such 
events from being routed to a GAE application as a request?

Thanks,
Mark

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



Re: [google-appengine] Article about tuning Java apps for AppEngine

2010-12-14 Thread Paul Bakker
Hi Ian,

It's mostly CPU time that it's using now just generating the test data. The
costs are lower than I expected though so no problem (and interesting to
note in the article).

I can't find any up to date information about the datastore timeout limits.
In 1.4 the background task timeout is 10 minutes, but long before that I get
a datastore timeout for a select all query with a dataset of a few million
rows. I know you shouldn't normally do this, but it's just to test and get
some numbers. Any idea about this?

Paul


On Mon, Dec 13, 2010 at 7:28 PM, Ikai Lan (Google)

> wrote:

> Hi Paul,
>
> You can enable billing for this. I doubt you'll end up paying a lot for it.
> Storage charges are based on snapshots and averaged for the month.
>
> Good luck!
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> Blogger: http://googleappengine.blogspot.com
> Reddit: http://www.reddit.com/r/appengine
> Twitter: http://twitter.com/app_engine
>
>
>
> On Mon, Dec 13, 2010 at 4:54 AM, Paul Bakker wrote:
>
>> Hi Ikai,
>>
>> Glad you like it. The article gets quite some hits so it seems there's a
>> lot of interest in this topic. I got some questions relating large volumes
>> of data. I'm working on another article that goes into the details of this.
>> To get some real numbers I need to run some benchmarks with larger amounts
>> of data (max 10 million rows), but I run into free quota limits. Is there
>> any way this limit could be stretched for a few days so I can finish the
>> article without having to pay a lot for it? I'm trying to advocate the use
>> of GAE after all :-)
>> My app id is 
>> gae-benchmarks
>> .
>>
>> Great work on the latest releases (most specifically no more 1000 row
>> limit in 1.3.1 and always on in 1.4). Takes away a lot of the reasons why
>> not to use GAE!
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine" group.
>> To post to this group, send email to google-appeng...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appeng...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>

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



Re: [google-appengine] Article about tuning Java apps for AppEngine

2010-12-14 Thread Paul Bakker
Hi Ikai,

It's mostly CPU time that it's using now just generating the test data. The
costs are lower than I expected though so no problem (and interesting to
note in the article).

I can't find any up to date information about the datastore timeout limits.
In 1.4 the background task timeout is 10 minutes, but long before that I get
a datastore timeout for a select all query with a dataset of a few million
rows. I know you shouldn't normally do this, but it's just to test and get
some numbers. Any idea about this?

Paul

On Mon, Dec 13, 2010 at 7:28 PM, Ikai Lan (Google)

> wrote:

> Hi Paul,
>
> You can enable billing for this. I doubt you'll end up paying a lot for it.
> Storage charges are based on snapshots and averaged for the month.
>
> Good luck!
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> Blogger: http://googleappengine.blogspot.com
> Reddit: http://www.reddit.com/r/appengine
> Twitter: http://twitter.com/app_engine
>
>
>
> On Mon, Dec 13, 2010 at 4:54 AM, Paul Bakker wrote:
>
>> Hi Ikai,
>>
>> Glad you like it. The article gets quite some hits so it seems there's a
>> lot of interest in this topic. I got some questions relating large volumes
>> of data. I'm working on another article that goes into the details of this.
>> To get some real numbers I need to run some benchmarks with larger amounts
>> of data (max 10 million rows), but I run into free quota limits. Is there
>> any way this limit could be stretched for a few days so I can finish the
>> article without having to pay a lot for it? I'm trying to advocate the use
>> of GAE after all :-)
>> My app id is 
>> gae-benchmarks
>> .
>>
>> Great work on the latest releases (most specifically no more 1000 row
>> limit in 1.3.1 and always on in 1.4). Takes away a lot of the reasons why
>> not to use GAE!
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine" group.
>> To post to this group, send email to google-appeng...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appeng...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>

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



[google-appengine] Re: What CNAME do I set?

2010-12-14 Thread Nick
I can't find any IP on the page: 
http://www.google.com/support/a/bin/answer.py?answer=91080&hl=en

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



Re: [google-appengine] Re: google apps wildcard subdomains at godaddy

2010-12-14 Thread Nick
I have registered my domain name with godaddy. Google also provides domain 
name registration. Instead of switching to other DNS provider (e.g. DynDNS's 
Custom DNS which costs $29.95), can I switch to Google so that I can 
use wildcard subdomains? If yes, what is the step?

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



Re: [google-appengine] Re: google apps wildcard subdomains at godaddy

2010-12-14 Thread Roberto Saccon
unfortunatly no, if you register your domain with google (what I did), your 
namerservers are at godaddy.

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



Re: [google-appengine] Re: google apps wildcard subdomains at godaddy

2010-12-14 Thread Nick
My understanding is the nameservers at godaddy can be changed to the 
nameservers of the new DNS provider/registrar which provide DNS service.

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



[google-appengine] Re: Incredible traffic saving with the header "Cache-control: public"???

2010-12-14 Thread GONZO
Hi, thanks for your response.

I like your answer. Just what I expected. Confirms my theory and my
experiences.

I confirm that requests saved (90%) do not appear in the logs and not
counted in the consumption of bandwidth. It's free total. Amazing.

I appreciate all the information you know about it.

Thank you all. Greetings!

On 8 dic, 03:51, Jason Collins  wrote:
> "Cache-Control: private" only uses the end user cache to cache
> resources.
>
> "Cache-Control: public" uses any downstream cache to cache resources
> (including the browser cache).
>
> Google has a downstream cache in front of App Engine requests, so if
> you serve your resources with "Cache-Control: public", Google will
> cache that resource. Subsequent hits are served from there, and I'm
> pretty sure they won't even show in your request log at all.
>
> j
>
> On Dec 6, 3:19 pm, GONZO  wrote:
>
> > Hi, first thanks for your attention and sorry for my English
> > translation.
>
> > I have a question that intrigues me a few weeks. This is the header
> > "cache-control" in particular the behavior of the options "private"
> > and "public" in Google App Engine.
>
> > First of all, this is only to serve static files (css, js, etc)
>
> > Let's go. With "cache-control: private" experiment curve normal
> > traffic. But with "cache-control: public" experiment Traffic
> > incredible savings. In both cases, everything seems to work well.
>
> > The question is:
>
> > 1. How can traffic be a big savings? Is reduced to 15%.
>
> > 2. Saving you a real traffic? Or is something special instead of
> > Google App Engine?
>
> > Better look at this diagram 
> > illustrates:http://gonzo.teoriza.com/almacen/cache-control.jpg
>
> > Thanks in advance, I hope to be clarified.

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



[google-appengine] Re: Incredible traffic saving with the header "Cache-control: public"???

2010-12-14 Thread Albert
Hi!

This guy seems to implement something similar to yours, but he says,
"...each time a page is served cached, you'll see a 204 logged in your
Appengine dashboard."

http://www.kyle-jensen.com/proxy-caching-on-google-appengine

Did any of you guys notice that too?


Albert

On Dec 15, 9:29 am, GONZO  wrote:
> Hi, thanks for your response.
>
> I like your answer. Just what I expected. Confirms my theory and my
> experiences.
>
> I confirm that requests saved (90%) do not appear in the logs and not
> counted in the consumption of bandwidth. It's free total. Amazing.
>
> I appreciate all the information you know about it.
>
> Thank you all. Greetings!
>
> On 8 dic, 03:51, Jason Collins  wrote:
>
>
>
>
>
>
>
> > "Cache-Control: private" only uses the end user cache to cache
> > resources.
>
> > "Cache-Control: public" uses any downstream cache to cache resources
> > (including the browser cache).
>
> > Google has a downstream cache in front of App Engine requests, so if
> > you serve your resources with "Cache-Control: public", Google will
> > cache that resource. Subsequent hits are served from there, and I'm
> > pretty sure they won't even show in your request log at all.
>
> > j
>
> > On Dec 6, 3:19 pm, GONZO  wrote:
>
> > > Hi, first thanks for your attention and sorry for my English
> > > translation.
>
> > > I have a question that intrigues me a few weeks. This is the header
> > > "cache-control" in particular the behavior of the options "private"
> > > and "public" in Google App Engine.
>
> > > First of all, this is only to serve static files (css, js, etc)
>
> > > Let's go. With "cache-control: private" experiment curve normal
> > > traffic. But with "cache-control: public" experiment Traffic
> > > incredible savings. In both cases, everything seems to work well.
>
> > > The question is:
>
> > > 1. How can traffic be a big savings? Is reduced to 15%.
>
> > > 2. Saving you a real traffic? Or is something special instead of
> > > Google App Engine?
>
> > > Better look at this diagram 
> > > illustrates:http://gonzo.teoriza.com/almacen/cache-control.jpg
>
> > > Thanks in advance, I hope to be clarified.

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



Re: [google-appengine] Re: What CNAME do I set?

2010-12-14 Thread 风笑雪
Do you mean ghs.google.com?

You can follow this document to use your own domain:
http://code.google.com/appengine/docs/domain.html

--
keakon

My blog(Chinese): www.keakon.net
Blog source code: https://bitbucket.org/keakon/doodle/



On Wed, Dec 15, 2010 at 7:13 AM, Nick  wrote:

> I can't find any IP on the page:
> http://www.google.com/support/a/bin/answer.py?answer=91080&hl=en
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appeng...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>

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



Re: [google-appengine] Re: What CNAME do I set?

2010-12-14 Thread Nick
"If you're trying to set the root of your domain, you have to add A 
records with the IPs listed on this page 
http://www.google.com/support/a/bin/answer.py?answer=91080&hl=en";

To add A record in godaddy, IP is needed. ghs.google.com can't be used as 
input to "Points to". ghs.google.com can only be used when adding CNAME 
record. But godaddy doesn't permit wildcard in CNAME entry.

Hence, the option I have are adding A record with IP address or using a DNS 
provider which permits wildcards in CNAME host entries. Does anyone know any 
DSN provider which permits wildcards in CNAME host entries?  

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



[google-appengine] Appengine's Turkey problem

2010-12-14 Thread Kaan Soral
It took me a long time to figure out that the reason of my domain
name(www.something.com) on Appengine not working is that Youtube IP's
are banned in Turkey.

So when i ping my domain, It can't reach ghs.l.google.com

Should Google use seperate IP's for domain related things or should we
forget about Turkey if we use Appengine?

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



[google-appengine] Receive e-mail with different domain

2010-12-14 Thread Vinicius Ruan Cainelli
Hello all,

lately I've been busy with a personal project of temporary email
address / disposable / anonymous: http://www.givemail.me

Well, I wonder if there's a possibility I send an email to
someth...@givemail.me -> someth...@mail-temp.appspotmail.com?

I dunno ... MX entries ...

ie I would like to receive e-mail domain "givemail.me" by google app
engine, as I already do with the "mail-temp.appspotmail.com.

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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Article about tuning Java apps for AppEngine

2010-12-14 Thread Robert Kluin
Hi Paul,
  The overall execution time has been increased, but the limits on
datastore queries have not.  Use cursors and a loop.


Robert





On Tue, Dec 14, 2010 at 16:42, Paul Bakker  wrote:
> Hi Ikai,
> It's mostly CPU time that it's using now just generating the test data. The
> costs are lower than I expected though so no problem (and interesting to
> note in the article).
> I can't find any up to date information about the datastore timeout limits.
> In 1.4 the background task timeout is 10 minutes, but long before that I get
> a datastore timeout for a select all query with a dataset of a few million
> rows. I know you shouldn't normally do this, but it's just to test and get
> some numbers. Any idea about this?
> Paul
> On Mon, Dec 13, 2010 at 7:28 PM, Ikai Lan (Google)
>  wrote:
>>
>> Hi Paul,
>> You can enable billing for this. I doubt you'll end up paying a lot for
>> it. Storage charges are based on snapshots and averaged for the month.
>> Good luck!
>>
>> --
>> Ikai Lan
>> Developer Programs Engineer, Google App Engine
>> Blogger: http://googleappengine.blogspot.com
>> Reddit: http://www.reddit.com/r/appengine
>> Twitter: http://twitter.com/app_engine
>>
>>
>> On Mon, Dec 13, 2010 at 4:54 AM, Paul Bakker 
>> wrote:
>>>
>>> Hi Ikai,
>>> Glad you like it. The article gets quite some hits so it seems there's a
>>> lot of interest in this topic. I got some questions relating large volumes
>>> of data. I'm working on another article that goes into the details of this.
>>> To get some real numbers I need to run some benchmarks with larger amounts
>>> of data (max 10 million rows), but I run into free quota limits. Is there
>>> any way this limit could be stretched for a few days so I can finish the
>>> article without having to pay a lot for it? I'm trying to advocate the use
>>> of GAE after all :-)
>>> My app id is gae-benchmarks.
>>> Great work on the latest releases (most specifically no more 1000 row
>>> limit in 1.3.1 and always on in 1.4). Takes away a lot of the reasons why
>>> not to use GAE!
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google App Engine" group.
>>> To post to this group, send email to google-appeng...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> google-appengine+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-appengine?hl=en.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine" group.
>> To post to this group, send email to google-appeng...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appeng...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>

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



Re: [google-appengine] Receive e-mail with different domain

2010-12-14 Thread Robert Kluin
How about setting up a catch-all address and forwarding it to your app?
http://www.google.com/support/a/bin/answer.py?hl=en&answer=33962



Robert






On Tue, Dec 14, 2010 at 23:43, Vinicius Ruan Cainelli
 wrote:
> Hello all,
>
> lately I've been busy with a personal project of temporary email
> address / disposable / anonymous: http://www.givemail.me
>
> Well, I wonder if there's a possibility I send an email to
> someth...@givemail.me -> someth...@mail-temp.appspotmail.com?
>
> I dunno ... MX entries ...
>
> ie I would like to receive e-mail domain "givemail.me" by google app
> engine, as I already do with the "mail-temp.appspotmail.com.
>
> 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-appeng...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-appengine+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-appengine?hl=en.
>
>

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



Re: [google-appengine] Appengine's Turkey problem

2010-12-14 Thread Will
There is a China problem, too. Same goes in China, if it is not more severe.

I recently implemented a reverse proxy, fixed the problem. Perhaps you can
do the same.

Good luck,

Will

On Wed, Dec 15, 2010 at 12:33 PM, Kaan Soral  wrote:

> It took me a long time to figure out that the reason of my domain
> name(www.something.com) on Appengine not working is that Youtube IP's
> are banned in Turkey.
>
> So when i ping my domain, It can't reach ghs.l.google.com
>
> Should Google use seperate IP's for domain related things or should we
> forget about Turkey if we use Appengine?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appeng...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>

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



[google-appengine] GAE/J and Maven

2010-12-14 Thread Patrick Twohig
Hi,

I'm having some trouble getting a GAE/J build to work with Maven.  I've
added the appropriate Project Nature in my pom.xml and when I open it up in
eclipse, I am getting the following error.  I was curious if anybody else
had the same error and would have any insight as to how to solve it.

"The App Engine SDK '/~/.m2/repository/com/google/appengine' on the
project's build path is not valid" - Google App Engine Problem

Thanks,
Patrick.

-- 
Patrick H. Twohig.

Namazu Studios
P.O. Box 34161
San Diego, CA 92163-4161

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



[google-appengine] Hashing Keys

2010-12-14 Thread johnP
I need to create a large amount of records which relate three other
entities.  Just for example, take 100 people; 100 days; and 100
restaurants.  To create a record for an intersection of a person/day/
restaurant, it's possible to create keyname of person.key()+day.key()
+restaurant.key().  And to retrieve records, it's easy to generate a
list of keys and use a db.get().

In the internet somewhere, I read a comment by Nick Johnson saying
that long keynames are inefficient, and that it can be a good idea to
use a MD5 or SHA1 hash function to shorten the key name.  My question
is, how expensive are the MD5 and SHA1 functions?

For example, if I need to generate 100 keys for each view (e.g. to
retrieve people who visited 1 restaurant in 1 day, I can generate 100
keys and db.get() that list) - is it cheaper to use the MD5 hash to
keep key_names shorter?  Or is the cost of generating the hashes more
than any savings from shortening the keys?




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