[google-appengine] Hi, googlers, can us developers know what imporvements and optimizations made in the recent Scheduled Maintenances?

2010-07-15 Thread Tapir
and will you give more information when the "DataStore Viewer"
returns
the following message in a near future?

  Server Error
  A server error has occurred.


  Return to Applications screen »

-- 
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] Hi, googlers, can us developers know what imporvements and optimizations made in the recent Scheduled Maintenances?

2010-07-15 Thread Tapir
Hi, googlers, can us developers know what imporvements and
optimizations made in the recent Scheduled Maintenances Options

and will you give more information when the "DataStore Viewer"
returns
the following message in a near future?

  Server Error
  A server error has occurred.


  Return to Applications screen »

-- 
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] Hi, googlers, can us developers know what inporvements and optimizations made in the recent Scheduled Maintenances

2010-07-15 Thread Tapir
and will you give more information when the "DataStore Viewer" returns
the following message in a near recent?

  Server Error
  A server error has occurred.

  Return to Applications screen »

-- 
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: App Engine announcement emails being marked as Phishing in Gmail

2010-07-15 Thread Nickolas Daskalou
Went to spam for me.


On 16 July 2010 10:25, Andrius A  wrote:

> Spam fot me
>
> On 15 Jul 2010 22:45, "Robert Kluin"  wrote:
>
> inbox this time.
>
>
>
>
>
> On Thu, Jul 15, 2010 at 11:44 AM, Darien Caldwell
>  wrote:
> > I'm afrai...
>
>  --
> 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: App Datastore Update timing issue

2010-07-15 Thread Sam
Thanks much for the input and direction guys!

I'm coding it in now, so we'll see how it works out.  And yes, I had
missed the one little statement about the retrying of the transaction
until success.

Thanks again!

Sam

On Jul 15, 5:30 pm, Robert Kluin  wrote:
> Yes it was.  :)
>
> Robert
>
>
>
> On Wed, Jul 14, 2010 at 5:49 PM, Chris Copeland  wrote:
>
> > On Wed, Jul 14, 2010 at 3:54 PM, Sam  wrote:
>
> >> I believe all that it would do is
> >> move the timing issue from the main program logic to a defined
> >> transaction and we would still have the potential gap in time between
> >> when the initial query was executed to fetch the data and the put()
> >> was execute to write it back.
>
> > If the data fetched by the get() at the first of the transaction has been
> > changed (by another process) when you do the put() at the end of the
> > transaction, then the transaction will be retried and it will do a new get
> > which will see the other process's changes and the process repeats.  This
> > isn't obvious, but it is talked about in one of the links I sent earlier.
>
> > I think Robert's example is missing a put() at the end of the transaction
> > function:
>
> > def txn():
> >    ccode = CCode.all().filter('Assinged', 0)\
> >                    .filter('ExpireDate >=', dtCompareDate)\
> >                    .filter("PartnerID", intPartnerID).get()
> >    if not ccode:
> >       # handle no ccode
> >    ccode.SessionID = strSessionID
> >    ccode.Assigned = 1
> >    ccode.put()
>
> >  db.run_in_transaction(txn)
>
> > -Chris
>
> > --
> > 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.- Hide quoted text -
>
> - Show quoted text -

-- 
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: App Engine announcement emails being marked as Phishing in Gmail

2010-07-15 Thread Andrius A
Spam fot me

On 15 Jul 2010 22:45, "Robert Kluin"  wrote:

inbox this time.





On Thu, Jul 15, 2010 at 11:44 AM, Darien Caldwell
 wrote:
> I'm afrai...

-- 
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: App Engine announcement emails being marked as Phishing in Gmail

2010-07-15 Thread Andrius A
spam for me

On 15 Jul 2010 22:45, "Robert Kluin"  wrote:

inbox this time.





On Thu, Jul 15, 2010 at 11:44 AM, Darien Caldwell
 wrote:
> I'm afrai...

-- 
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] Analytics via log file?

2010-07-15 Thread Robert Kluin
Hi Mark,
  If you are really expecting to get a lot of traffic you should also
be aware that the log rolls.  So on the plus side you will not have to
worry about downloading a _huge_ file, the down side is that new
entries will overwrite old entries once the log gets to some certain
size.

  If you have a script to parse the log file and your entries have
some easily parsed form, I do not see how the size will affect you
much.



Robert




On Thu, Jul 15, 2010 at 11:20 AM, Mark  wrote:
> Hi,
>
> I was looking at the discussion about analytics here:
>
>
> http://groups.google.com/group/google-appengine/browse_thread/thread/80d40046a3202ef2/4d1cea03e7120fa2?lnk=gst&q=analytics#4d1cea03e7120fa2
>
> I'm in the same situation - there's a few pieces of data that I'd like
> to track, and storing them in the datastore is going to introduce
> extra complexity to my app, eat up more of the 100 quota index limit,
> etc.
>
> I can just make specialized log statements for the events I'm
> interested in, then download the log once a day and parse it to do my
> analysis. I just wonder two things:
>
>  1) Will emitting more log statements slow down my app? For example,
> I log a statement everytime I serve a particular page. If millions of
> people are viewing the page, will all those log statements be a
> significant drain?
>  2) Scalability - downloading the log once a day and parsing it - is
> anyone doing this already and can speak on their experience? I'm a bit
> worried that if the daily log gets really big, trying to download and
> parse it each day might become unrealistic.
>
> I'm not sure if there are any other alternatives?
>
> 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] Re: App Engine announcement emails being marked as Phishing in Gmail

2010-07-15 Thread Robert Kluin
inbox this time.




On Thu, Jul 15, 2010 at 11:44 AM, Darien Caldwell
 wrote:
> I'm afraid this time it went to spam for me.
>
> --
> 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: Hoping to understand the difference between CPU Time and Datastore CPU Time

2010-07-15 Thread Robert Kluin
Greg,
  If you are having issues with long write times, there are two common
options you may consider: smaller batches and transactional tasks.

  I have some code that does batch processing, I set it up to search
for the maximum batch size that is currently succeeding.  Basically I
slowly increase my batch size until I am getting deadline exceeded
warnings then I drop back down adjust my 'growth factor' and repeat
the processes.  This seems to keep my batches running very close to
the upper limit without too many deadline exceeded exceptions.

  The other approach I have used it to offload some of the writes to
other background tasks.  I write a group of entities, then send
another handler another block of entities to write.  This has been
working well for me too.

Robert



On Thu, Jul 15, 2010 at 5:22 PM, Greg Tracy  wrote:
>
> I just started using AppStats for the first time - very nice package!
> However, it didn't reveal any glaring problems. But it did help
> validate my belief that I was using the memcache effectively.
>
> I've been using the 'quota' package to find costly operations, and I
> did discover a bug in my measurement. I was "starting the clock" in
> the wrong spot so I have found some new areas to optimize. Will work
> on that now... but I'm still not confident I can compensate for the
> long write times.
>
> Thanks!
>
>
> On Jul 14, 10:46 pm, Robert Kluin  wrote:
>> If you have not already, take a look at AppStats.  Perhaps you can
>> find a way to improve performance.  You may also want to read through
>> some of the datastore articles in the docs to be sure you are
>> minimizing resource usage.
>>
>> Robert
>>
>>
>>
>> On Wed, Jul 14, 2010 at 7:24 PM, Greg Tracy  wrote:
>>
>> > Not for me... I set a budget and immediately started paying.
>>
>> > Not thrilled about this and may need to start a new thread asking for
>> > advice on datastore contention...
>>
>> > Thanks.
>>
>> > On Jul 14, 5:57 pm, Nate Bauernfeind 
>> > wrote:
>> >> I have been.
>>
>> >> On Wed, Jul 14, 2010 at 5:37 PM, Greg Tracy  wrote:
>> >> > Does this imply that I can go over the CPU Time quota and not pay for
>> >> > it?
>>
>> >> > On Jul 14, 5:26 pm, Nate Bauernfeind 
>> >> > wrote:
>> >> > > The DataStore CPU time is included in total CPU time. To take 
>> >> > > advantage
>> >> > of
>> >> > > "free datastore cpu time" you need to increase your cpu-usage quota. 
>> >> > > When
>> >> > I
>> >> > > loaded a bunch of initial test data into the datastore I got tons of
>> >> > > deadline exceeded errors, though I assumed it was cause I was trying 
>> >> > > to
>> >> > > stuff a lot of data in there all at once.
>>
>> >> > > Nate
>>
>> >> > > On Wed, Jul 14, 2010 at 5:24 PM, Greg Tracy  wrote:
>>
>> >> > > > I've been adding some new datastore-intensive features to an app and
>> >> > > > am blowing through the "CPU Time" quota. While my understanding is
>> >> > > > that the "Datastore CPU Time" quotas have been lifted while the App
>> >> > > > Engine team continues to work on the performance, I can't figure out
>> >> > > > why these are mutually exclusive metrics in my app.
>>
>> >> > > > When I measure the cpu cycles being consumed in the new features, it
>> >> > > > is almost exclusively in the db.put() call. In fact, 50% of the 
>> >> > > > time,
>> >> > > > I'm getting DeadlineExceeded errors before the put call even 
>> >> > > > returns.
>>
>> >> > > > Is the "Datastore CPU Time" also counted in the "CPU Time"? If so, 
>> >> > > > are
>> >> > > > there plans to extend the quota limits there as well?
>>
>> >> > > > I'm interested in finding some resources that track performance
>> >> > > > metrics on App Engine. I don't know what to expect in terms of
>> >> > > > performance when I store, for example, 400 entities in the data 
>> >> > > > store.
>> >> > > > Are there resources where folks are contributing their metrics for
>> >> > > > others to see?
>>
>> >> > > > Thanks.
>>
>> >> > > > --
>> >> > > > You received this message because you are subscribed to the Google
>> >> > Groups
>> >> > > > "Google App Engine" group.
>> >> > > > To post to this group, send email to 
>> >> > > > google-appengine@googlegroups.com
>> >> > .
>> >> > > > To unsubscribe from this group, send email to
>> >> > > > google-appengine+unsubscr...@googlegroups.com> >> > > >  e...@googlegroups.com>> >> > e...@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> >> >  e...@googlegroups.com>
>> >> > .
>> >> > For more options, visit this group at
>> >> >http://groups.google.com/group/google-appengine?hl=en.
>>
>> > --
>> > You

Re: [google-appengine] Re: App Datastore Update timing issue

2010-07-15 Thread Robert Kluin
Yes it was.  :)



Robert





On Wed, Jul 14, 2010 at 5:49 PM, Chris Copeland  wrote:
>
> On Wed, Jul 14, 2010 at 3:54 PM, Sam  wrote:
>>
>> I believe all that it would do is
>> move the timing issue from the main program logic to a defined
>> transaction and we would still have the potential gap in time between
>> when the initial query was executed to fetch the data and the put()
>> was execute to write it back.
>
> If the data fetched by the get() at the first of the transaction has been
> changed (by another process) when you do the put() at the end of the
> transaction, then the transaction will be retried and it will do a new get
> which will see the other process's changes and the process repeats.  This
> isn't obvious, but it is talked about in one of the links I sent earlier.
>
> I think Robert's example is missing a put() at the end of the transaction
> function:
>
> def txn():
>    ccode = CCode.all().filter('Assinged', 0)\
>                    .filter('ExpireDate >=', dtCompareDate)\
>                    .filter("PartnerID", intPartnerID).get()
>    if not ccode:
>       # handle no ccode
>    ccode.SessionID = strSessionID
>    ccode.Assigned = 1
>    ccode.put()
>
>  db.run_in_transaction(txn)
>
>
> -Chris
>
> --
> 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: mysql over http

2010-07-15 Thread James Jones
Its very similar but your's will allow for use of many different types 
of databases and requires tomcat. Also is GAE specific. Mine is a little 
more lite weight and only requires a web server that has php with mysqli 
and json support. Mine can also be use by any language that do http 
requests and understands json. The down side is that it only supports 
MySQL. Just to be clear I am not knocking yours at all, just pointing 
out the difference as I understand them. Please let me know if I missed 
anything.


-James

On 14/07/10 6:26 PM, hector rovira wrote:

I have created a web service that may be similar to what you are
doing.  I use it as part of a service registry that runs on GAE and
provides a REST API used by visualizations, web UIs, command-line
scripts and other web services.

My service exposes the Google Visualizations Data Source API (http://
code.google.com/apis/visualization/documentation/dev/dsl_about.html)
as a REST web service, extending the Java library provided by Google.
I find this to be a comprehensive standard for providing read-only
access to databases.  The Google Java library outputs JSON, CSV, TSV,
HTML but it can easily be extended to provide a custom output format.

I have configured my web service to provide access to any table or
view in a MySQL database; but I've also been able to connect to other
databases with supported JDBC drivers (PostgreSQL, Derby, SqlServer),
although some of the GQL syntax is not supported by all databases
(e.g. limit, offset).

My service defines URIs of the form:  /service-name/database-name/
table-or-view-name.  It provides a simple REST API that allows users
to:
- list registered databases
- list tables (and views) within a database
- list columns (and datatypes) within a particular table (or view)
- submit queries that conform to the datasource wire protocol -
http://code.google.com/apis/visualization/documentation/dev/implementing_data_source.html

I just uploaded a standalone version that easily deploys to any J2EE
web app container (I use Apache Tomcat 6.x):
http://addama.googlecode.com/files/google-dsapi-svc.war.  You can
rename this war file.  Before you deploy it just include the following
files in the classpath ($TOMCAT_HOME/lib):
- the appropriate JDBC driver (jar file) ->  
http://dev.mysql.com/downloads/connector/j/5.0.html
- a configuration file called "google-dsapi-svc.config" containing
local database mappings in a JSON format.  For example:
 {
 locals: [
 {
 uri: "/google-dsapi-svc/demodb",
 classname: "com.mysql.jdbc.Driver",
 jdbcurl: "jdbc:mysql://hostname:port/
databasename",
 username: "username",
 password: ""
 }
 ]
 }

You can find some more information about my software at:  
http://cloud.addama.org

On Jul 14, 4:57 am, outcast  wrote:
   

I am working on new project that will let me use mysql inside of GAE.
I just wanted to some other peoples thought on it. check 
outhttp://github.com/outcast/http-mysqland let me know what you think.

-James
 
   


--
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: Hoping to understand the difference between CPU Time and Datastore CPU Time

2010-07-15 Thread Greg Tracy

I just started using AppStats for the first time - very nice package!
However, it didn't reveal any glaring problems. But it did help
validate my belief that I was using the memcache effectively.

I've been using the 'quota' package to find costly operations, and I
did discover a bug in my measurement. I was "starting the clock" in
the wrong spot so I have found some new areas to optimize. Will work
on that now... but I'm still not confident I can compensate for the
long write times.

Thanks!


On Jul 14, 10:46 pm, Robert Kluin  wrote:
> If you have not already, take a look at AppStats.  Perhaps you can
> find a way to improve performance.  You may also want to read through
> some of the datastore articles in the docs to be sure you are
> minimizing resource usage.
>
> Robert
>
>
>
> On Wed, Jul 14, 2010 at 7:24 PM, Greg Tracy  wrote:
>
> > Not for me... I set a budget and immediately started paying.
>
> > Not thrilled about this and may need to start a new thread asking for
> > advice on datastore contention...
>
> > Thanks.
>
> > On Jul 14, 5:57 pm, Nate Bauernfeind 
> > wrote:
> >> I have been.
>
> >> On Wed, Jul 14, 2010 at 5:37 PM, Greg Tracy  wrote:
> >> > Does this imply that I can go over the CPU Time quota and not pay for
> >> > it?
>
> >> > On Jul 14, 5:26 pm, Nate Bauernfeind 
> >> > wrote:
> >> > > The DataStore CPU time is included in total CPU time. To take advantage
> >> > of
> >> > > "free datastore cpu time" you need to increase your cpu-usage quota. 
> >> > > When
> >> > I
> >> > > loaded a bunch of initial test data into the datastore I got tons of
> >> > > deadline exceeded errors, though I assumed it was cause I was trying to
> >> > > stuff a lot of data in there all at once.
>
> >> > > Nate
>
> >> > > On Wed, Jul 14, 2010 at 5:24 PM, Greg Tracy  wrote:
>
> >> > > > I've been adding some new datastore-intensive features to an app and
> >> > > > am blowing through the "CPU Time" quota. While my understanding is
> >> > > > that the "Datastore CPU Time" quotas have been lifted while the App
> >> > > > Engine team continues to work on the performance, I can't figure out
> >> > > > why these are mutually exclusive metrics in my app.
>
> >> > > > When I measure the cpu cycles being consumed in the new features, it
> >> > > > is almost exclusively in the db.put() call. In fact, 50% of the time,
> >> > > > I'm getting DeadlineExceeded errors before the put call even returns.
>
> >> > > > Is the "Datastore CPU Time" also counted in the "CPU Time"? If so, 
> >> > > > are
> >> > > > there plans to extend the quota limits there as well?
>
> >> > > > I'm interested in finding some resources that track performance
> >> > > > metrics on App Engine. I don't know what to expect in terms of
> >> > > > performance when I store, for example, 400 entities in the data 
> >> > > > store.
> >> > > > Are there resources where folks are contributing their metrics for
> >> > > > others to see?
>
> >> > > > Thanks.
>
> >> > > > --
> >> > > > You received this message because you are subscribed to the Google
> >> > Groups
> >> > > > "Google App Engine" group.
> >> > > > To post to this group, send email to 
> >> > > > google-appengine@googlegroups.com
> >> > .
> >> > > > To unsubscribe from this group, send email to
> >> > > > google-appengine+unsubscr...@googlegroups.com >> > > >  e...@googlegroups.com> >> > e...@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 >> >  e...@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 
> > 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.



[google-appengine] Re: Using a Second App for Testing: Pluses, Minuses, Issues

2010-07-15 Thread stevep
Thanks Ikai. I figured this would be the approach, but since this is
my first app setup, wanted some confirmation.

Might have misstated my original post a bit. Want to run a pure test
app whose data can ignored. Guess that's not really beat, but hadn't
thought it thru when I posted this.

Anyway, I'll be up an running soon. I'm not very experienced in this
area, and am a bit anxious. So many unknowns re: design decisions,
etc.

Cheers,
Steve

On Jul 14, 7:16 pm, "Ikai L (Google)"  wrote:
> The local stubs are at best, stubs. Most of our developers running
> production environments have setups like this:
>
> - development application locally
> - new application with data fixtures for integration testing (different app
> id from main app)
> - main application
> - main application with non-default version (staging server against live
> data)
>
> For a beta test, I would advise using the main application because you will
> be able to roll users' data into the main application when it comes out of
> beta with no more effort than an updated terms of service and removing the
> "beta" image.
>
>
>
>
>
> On Wed, Jul 14, 2010 at 1:49 PM, stevep  wrote:
> > I am at the point where I need to do a full beta test. I'd like to get
> > a sense from others about the pluses, minuses, and issues related to
> > setting up a second application for testing vs. continuing to run
> > everything on my localhost.
>
> > Thanks,
> > Steve
>
> > --
> > 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 > e...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> Blog:http://googleappengine.blogspot.com
> Twitter:http://twitter.com/app_engine
> Reddit:http://www.reddit.com/r/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.



Re: [google-appengine] Problem in windows development server with form with enctype="multipart/form-data"

2010-07-15 Thread Ikai L (Google)
I haven't tried this code, but why not self.request.POST["file"]?

http://pythonpaste.org/webob/reference.html#query-post-variables

On Thu, Jul 15, 2010 at 2:18 AM, Elio Scordo  wrote:

> Hi Ikai, thank you for the help. The GET method is not the point, I use
> POST.
>
> This simple form, for example:
>
>  action="/user/photo" method="post" >
> 
> 
>
> 
>
>  thefile = self.request.get("file")
>  foo = self.request.get("foo")
>  if thefile:
>
> It can upload pictures the first time and the stop working later. On
> the cloud works perfectly.
>
> In debug mode I can see self.request.get( "file") or self.request.get(
> "foo") returning void after the first time.
>
> I found a issue opened in 2008 and closed.. It was related to form parsing.
>
> Does anyone use file upload and window development environment?
>
>
> Thanks
>
>
>
>
>
> 2010/7/15 Ikai L (Google) :
> > I'm pretty sure you can't use a multipart form with a GET (what is the
> > point?). Multipart only makes sense if you are passing large amounts of
> data
> > in the body, whereas GET requests pass parameters in the URL, often
> capped
> > at between 1000-2000 characters (depending on browser). Change this to a
> > POST and see what happens.
> >
> > On Fri, Jul 9, 2010 at 10:05 AM, elio  wrote:
> >>
> >> Hi,
> >>
> >> every call to self.request.get( ) return void after that I put   the
> >> encoding form as enctype="multipart/form-data".
> >>
> >> The fisrt time all work good.
> >>
> >> I can not find any workaround.
> >>
> >> This problem appears only in development (windows 7 with the last
> >> appengine release)
> >>
> >> Any help would be really appreciated
> >>
> >> --
> >> 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.
> >>
> >
> >
> >
> > --
> > Ikai Lan
> > Developer Programs Engineer, Google App Engine
> > Blog: http://googleappengine.blogspot.com
> > Twitter: http://twitter.com/app_engine
> > Reddit: http://www.reddit.com/r/appengine
> >
> > --
> > 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.
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine

-- 
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: Datastore record datetime property stuck

2010-07-15 Thread Daniel
Thanks guys for fixing this.  This is actually the third time that
this has occurred for me.  The first was a couple months ago after the
big unexpected downtime, and then these two additional entities.
Unfortunately, this latest record relies upon the key name, so I
couldn't create a record of duplicate values. With my inability to
delete the record, I wouldn't have been able to free up the key name
for use in the new record. Also, this record has several dependencies,
which I could trace down and change, but I would prefer not to if at
all possible.

On Jul 14, 10:57 pm, Alfred Fuller 
wrote:
> Just to clarify this is an incredibly rare occurrence (lucky you :-)) and we
> will fix it permanently (it just takes a little man power). Changing the key
> name would fix it as well, but we don't expect you to have to do this.
>
> On Wed, Jul 14, 2010 at 7:44 PM, Ikai L (Google)  wrote:
>
>
>
> > Hi Daniel,
>
> > The sort order should be working correctly again. The issue was a broken
> > index value; we have a short term fix in place, but I wouldn't rule out this
> > appearing again. Is it possible for you to create a new entity with the same
> > values with a different key? That's one way to work around this issue in the
> > future.
>
> > On Wed, Jul 14, 2010 at 2:23 PM, Ikai L (Google) wrote:
>
> >> I finished running the index tool. This is very strange. I'm seeing
> >> exactly what you're seeing: the 2011 entity is the first one returned. Let
> >> me chase this down for you.
>
> >> On Wed, Jul 14, 2010 at 12:24 PM, Ikai L (Google) wrote:
>
> >>> Yeah, I'm checking for index corruption. It could also mean there's a bug
> >>> in the way we're sorting.
>
> >>> On Wed, Jul 14, 2010 at 11:51 AM, Daniel 
> >>> wrote:
>
>  Thanks for looking.  If you run the query in the admin console:
>  "SELECT * FROM Keyword WHERE is_active = True ORDER BY last_check ASC"
>  you will see the entity with key
>  agtsb294aWktYmV0YXIaCxIHS2V5d29yZCINa2V5X3N5bnRoZXNpbww appear as the
>  first record although the date is set to 2011.  This indicates that
>  the entity is not returning as it should.  This has nothing to do with
>  my code.
>
>  I don't understand how your admin console is returning something
>  different from mine.
>
>  On Jul 14, 2:22 pm, "Ikai L (Google)"  wrote:
>  > Daniel, I'm going to try running a tool on your data. I'll email this
>  group
>  > again when it's finished. I'm curious as to whether or not this does
>  > anything for you. My testing via the admin console (I don't have
>  access to
>  > your code) seems to indicate that everything is and was working
>  correctly,
>  > but I'd like to establish a greater confidence level either way.
>
>  > On Wed, Jul 14, 2010 at 8:03 AM, Daniel 
>  wrote:
>  > > I would like a reply...
>
>  > > I was able to delete and re-add this record and that fixed that
>  query,
>  > > but it turns out I have another record that is not updating and
>  can't
>  > > be deleted.
>
>  > > This record key is
>  > > agtsb294aWktYmV0YXIaCxIHS2V5d29yZCINa2V5X3N5bnRoZXNpbww the kind is
>  > > Keyword.
>
>  > > It appears that the record broke during the same downtime last week.
>  > > It always show the current time and cannot be changed in the admin
>  > > console or by code.  I cannot delete this entity.
>
>  > > It seems my data is going corrupt all over the place...
>
>  > > On Jul 10, 10:59 am, Daniel  wrote:
>  > > > Okay, regardless of your ability to offer me any sort of instant
>  > > > support, I need this problem fixed.
>
>  > > > I am not setting any read consistency. The query that you
>  specified
>  > > > (SELECT * FROM Search_update ORDER BY last_check DESC LIMIT 10) is
>  set
>  > > > to DESC, so of course it appears correct that the 2011 record is
>  > > > first, but when you change it to ASC the 2011 record still appears
>  > > > first.  The broken entity
>  > > > 'agtsb294aWktYmV0YXIVCxINU2VhcmNoX3VwZGF0ZRi62AUM' now has changed
>  to
>  > > > 2011 from what you did yesterday but is is showing up as the
>  OLDEST
>  > > > record.  if you look at the list you will see that after the
>  broken
>  > > > record, the following 9 records are in ascending order and set to
>  > > > 2010.  My original query above specified ascending order.
>
>  > > > agtsb294aWktYmV0YXIVCxINU2VhcmNoX3VwZGF0ZRi62AUM 2011-07-09
>  > > > 17:57:37.894714
>  > > > agtsb294aWktYmV0YXIVCxINU2VhcmNoX3VwZGF0ZRiUvi8M 2010-07-10
>  > > > 12:14:52.306180
>  > > > agtsb294aWktYmV0YXIVCxINU2VhcmNoX3VwZGF0ZRiawS4M 2010-07-10
>  > > > 12:15:18.649276
>  > > > agtsb294aWktYmV0YXIWCxINU2VhcmNoX3VwZGF0ZRjSkLEBDA 2010-07-10
>  > > > 12:15:40.274290
>  > > > agtsb294aWktYmV0YXIVCxINU2VhcmNoX3VwZGF0ZRiw_gUM 2010-07-10
>  > > > 12:15:43.913061
>  > > > agtsb294aWktYmV0YX

[google-appengine] Re: Analytics via log file?

2010-07-15 Thread Greg Tracy

When I do analytics like this, I use the task queue to generate
records in the datastore. Then I create the special admin handlers to
render the analysis tools inside the browser. It's far easier to parse
the data that way and you can access the results in real-time from
anywhere.

I'm not generating millions of records per day, but I have found this
to be effective for my projects.



On Jul 15, 10:20 am, Mark  wrote:
> Hi,
>
> I was looking at the discussion about analytics here:
>
> http://groups.google.com/group/google-appengine/browse_thread/thread/...
>
> I'm in the same situation - there's a few pieces of data that I'd like
> to track, and storing them in the datastore is going to introduce
> extra complexity to my app, eat up more of the 100 quota index limit,
> etc.
>
> I can just make specialized log statements for the events I'm
> interested in, then download the log once a day and parse it to do my
> analysis. I just wonder two things:
>
>   1) Will emitting more log statements slow down my app? For example,
> I log a statement everytime I serve a particular page. If millions of
> people are viewing the page, will all those log statements be a
> significant drain?
>   2) Scalability - downloading the log once a day and parsing it - is
> anyone doing this already and can speak on their experience? I'm a bit
> worried that if the daily log gets really big, trying to download and
> parse it each day might become unrealistic.
>
> I'm not sure if there are any other alternatives?
>
> 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] HELP!!!!

2010-07-15 Thread ad...@dloweb.com
I have a app engine account, which I created earlier this year, with a
gmail account.  It currently has locked me out.  Whenever I try to log
in to that account, it times out.  I have set up an account on our
google apps domain, but still cannot access the old account.  Who can
I contact regarding this issue?

Michael DeLaney

-- 
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] Problem with having 1 Persistable w/array of all objects?

2010-07-15 Thread Chris Copeland
This is probably not a good idea.  What are your access pattens for this
entity?  How many accounts do you usually need to retrieve at once?  How
often is an account updated?

If you normally access just a few accounts, then you are incurring the cost
of retrieving all of them every time unnecessarily.

When you need to update an account you are incurring the cost of
deserialization/serialization for the entire list.  This will also lead to
contention when multiple users are updating their accounts.

-Chris

On Wed, Jul 14, 2010 at 11:46 PM, coltsith  wrote:

> I had an idea the other day, but know there's probably some issue I'm
> not realizing.
>
> Let's say you have an Account object that represents a registered
> user. Instead of having multiple Account objects that you persist to
> the datastore, why not have 1 object (ie AccountList) that you
> persist, and that object has an array all the Accounts.
>
> So if you want to pull up multiple Accounts or even all of them, it's
> just 1 query to the datastore to get AccountList.
>
> What major issues (if any) would I run into using this model?
>
> 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] create key in type long

2010-07-15 Thread Lu
Hi, there

We can create key if the type is 'Key'.

For instance, Key key =
KeyFactory.createKey(Employee.class.getSimpleName(),
"alfred.sm...@example.com");

How about I want to assign a number(Long) as the key? It doesn't work
though, when I try.

I want to do this because when I run my application locally, the
(Long) id will keep incrementing. However, I want to reset them to
begin with 1 everytime for further stages of my applicaiton.

Thanks,
Lu

-- 
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] django gae importlib

2010-07-15 Thread chuse
Hi, I'm new around here; I'm trying some simple ajax code using django
and dajax. My problem appears when I load localhost:

ImportError at /
No module named importlib
Request Method: GET
Request URL:http://localhost:8080/
Exception Type: ImportError
Exception Value:No module named importlib

the command that raises the error is
from django.utils.importlib import import_module

any help?
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] Is BulkLoader dump consistent?

2010-07-15 Thread Judge
Hi!
I'm going to use BulkLoader (in --dump mode ) for backup purposes. I
wonder if I execute dump on live database (new entities are frequently
created and changed) will this dump be consistent?
I do have foreign keys between different kinds so if dump is not
executed in some sort of global transaction I'll probably have some
broken keys, will I?

-- 
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 groups is werid!

2010-07-15 Thread Iván Rodríguez
same problem

2010/7/15 Ian Marshall 

> Did you post via a Google group discussion web page? If so, I have
> noticed a delay before a new post appears in the list. This delay is
> mostly a few seconds or minutes, in my experience.
>
>
> On Jul 14, 3:15 am, Tapir  wrote:
> > Frequently, I can't find the new discussion I just posted.
>
> --
> 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] Using a Second App for Testing: Pluses, Minuses, Issues

2010-07-15 Thread David Hewitson
I'm confused, why can't you just use the primary deployment? Or do you
already have a previous version up?

On Jul 14, 2010 9:49 PM, "stevep"  wrote:

I am at the point where I need to do a full beta test. I'd like to get
a sense from others about the pluses, minuses, and issues related to
setting up a second application for testing vs. continuing to run
everything on my localhost.

Thanks,
Steve

--
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] [appcfg.py] [Batch Upload/Download data] google.appengine.api.datastore_errors.BadArgumentError: Cannot allocate more than 1000000000 ids at a time

2010-07-15 Thread t0
Hi !

I'm trying to mass upload data from App Engine to the dev. server, but
get this message :
$ appcfg.py upload_data --url=http://localhost:8080/remote_api . --
filename=db.dat
Application: groupe-tdr-vroum; version: 6.
Uploading data records.
[INFO] Logging to bulkloader-log-20100715.144839
[INFO] Throttling transfers:
[INFO] Bandwidth: 25 bytes/second
[INFO] HTTP connections: 8/second
[INFO] Entities inserted/fetched/modified: 20/second
[INFO] Batch Size: 10
[INFO] Opening database: bulkloader-progress-20100715.144839.sql3
Please enter login credentials for localhost
Email: h
Password for h:
[INFO] Connecting to localhost:8080/remote_api
Traceback (most recent call last):
  File "C:\Program Files\Google\google_appengine\appcfg.py", line 68,
in 
run_file(__file__, globals())
  File "C:\Program Files\Google\google_appengine\appcfg.py", line 64,
in run_fil
e
execfile(script_path, globals_)
  File "C:\Program Files\Google\google_appengine\google\appengine\tools
\appcfg.p
y", line 2757, in 
main(sys.argv)
  File "C:\Program Files\Google\google_appengine\google\appengine\tools
\appcfg.p
y", line 2748, in main
result = AppCfgApp(argv).Run()
  File "C:\Program Files\Google\google_appengine\google\appengine\tools
\appcfg.p
y", line 1763, in Run
self.action(self)
  File "C:\Program Files\Google\google_appengine\google\appengine\tools
\appcfg.p
y", line 2619, in __call__
return method()
  File "C:\Program Files\Google\google_appengine\google\appengine\tools
\appcfg.p
y", line 2472, in PerformUpload
run_fn(args)
  File "C:\Program Files\Google\google_appengine\google\appengine\tools
\appcfg.p
y", line 2368, in RunBulkloader
sys.exit(bulkloader.Run(arg_dict))
  File "C:\Program Files\Google\google_appengine\google\appengine\tools
\bulkload
er.py", line 4014, in Run
return _PerformBulkload(arg_dict)
  File "C:\Program Files\Google\google_appengine\google\appengine\tools
\bulkload
er.py", line 3882, in _PerformBulkload
return_code = app.Run()
  File "C:\Program Files\Google\google_appengine\google\appengine\tools
\bulkload
er.py", line 3181, in Run
kinds = self.RunPostAuthentication()
  File "C:\Program Files\Google\google_appengine\google\appengine\tools
\bulkload
er.py", line 3289, in RunPostAuthentication
self.request_manager.IncrementId(list(ancestor_path), kind,
high_id)
  File "C:\Program Files\Google\google_appengine\google\appengine\tools
\bulkload
er.py", line 1226, in IncrementId
start, end = datastore.AllocateIds(model_key, high_id - end)
  File "C:\Program Files\Google\google_appengine\google\appengine\api
\datastore.
py", line 1527, in AllocateIds
'Cannot allocate more than %s ids at a time' % _MAX_ID_BATCH_SIZE)
google.appengine.api.datastore_errors.BadArgumentError: Cannot
allocate more tha
n 10 ids at a time

The db.dat file is small 100Ko ..
I tried with a smaller db.dat file (one kind per file).
Some are ok but a few get the same error ...

Bug in the dev. server ?

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] Re: App Datastore Update timing issue

2010-07-15 Thread Chris Copeland
On Wed, Jul 14, 2010 at 3:54 PM, Sam  wrote:

> I believe all that it would do is
> move the timing issue from the main program logic to a defined
> transaction and we would still have the potential gap in time between
> when the initial query was executed to fetch the data and the put()
> was execute to write it back.
>

If the data fetched by the get() at the first of the transaction has been
changed (by another process) when you do the put() at the end of the
transaction, then the transaction will be retried and it will do a new get
which will see the other process's changes and the process repeats.  This
isn't obvious, but it is talked about in one of the links I sent earlier.

I think Robert's example is missing a put() at the end of the transaction
function:

def txn():
ccode = CCode.all().filter('Assinged', 0)\
   .filter('ExpireDate >=', dtCompareDate)\
.filter("PartnerID", intPartnerID).get()
   if not ccode:
  # handle no ccode
   ccode.SessionID = strSessionID
   ccode.Assigned = 1
*   ccode.put()
*
 db.run_in_transaction(txn)


-Chris

-- 
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] deletePersistentAll

2010-07-15 Thread Lu
Hi, there

I am trying to delete all objects from the database but I get some
errors saying 'java.lang.String cannot be cast to
com.google.appengine.api.datastore.Text'.

Query q2 = pm.newQuery(document.class);
Collection l = (Collection) q2.execute();
pm.deletePersistentAll();

Or what is way to delete all of them?

Thanks,
Lu

-- 
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] federated_identity() vs user_id()

2010-07-15 Thread Johnny Shi
What is the difference? in terms of length, which one is shorter?

-- 
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 Datastore Update timing issue

2010-07-15 Thread Chris Copeland
I think you can handle this with a datastore transaction.  See
http://code.google.com/appengine/articles/transaction_isolation.html for
more details.

The increment_counter example at
http://code.google.com/appengine/docs/python/datastore/transactions.htmlshould
be adaptable to your example.

-Chris


On Wed, Jul 14, 2010 at 10:17 AM, Sam  wrote:

> In working with the data store, I've been able to solve all of my
> "issues" (coming from a RDBMS background, had to rethink a few
> things!), save for one.  In the application I'm working on, it's
> necessary to "reserve" a record at a moment in time and then display
> that record to the end user, ensuring that each user gets a single
> record and no duplicates are issued.  Working with the record prior,
> and using SQL as an engine, I was able to use the following query:
>
> UPDATE CCode SET SessionID = '" + strSessionID + "', Assigned = 1
> WHERE Assigned = 0 AND PartnerID = " + str(intPartnerID) + " AND
> ExpireDate >= '" + str(dtCompareDate) + "' Limit 1"
>
> This would update the record in one pass and effectively reserve the
> record for the established session, with no time lost inbetween
> issuing the update and recording the change while SQL handled any
> conflict resolution should two people request a record at the same
> time.
>
> However, dealing with datastore, I seem to be running into some
> problems with timing and wanted to know if anyone had any creative
> ways around it.
>
> I realize that I can run a standard GqlQuery to return the results I
> need and then update based on the returned result and add the session
> to the record without a problem.  What concerns me is the timing
> factor.  During the time it takes for the query to execute and the
> resulting put() statement, it would be possible for another user to
> arrive and make the same basic query recalling the same record set.  I
> know I could check for updates against the datastore before writing
> back (used to do this years ago...), but this could potentially cause
> a deadlock condition when the load on the system became greater and
> multiple simultaneous users needed access to the records for selection
> and updating.
>
> Any thoughts on how to work around this?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-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: App Engine announcement emails being marked as Phishing in Gmail

2010-07-15 Thread Darien Caldwell
I'm afraid this time it went to spam for me.

-- 
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: Repeated InternalError when running a transaction

2010-07-15 Thread Jason C
Just to close out this thread in case anyone is watching it:

A very helpful soul from Google contacted me directly and twiddled the
appropriate bits at their end to correct this problem.

j

On Jul 14, 2:23 pm, Jason C  wrote:
> This issue is _still_ occurring. Started July 9th, it's now July 14th.
> Failing 100% of the time, once per minute, with anInternalError.
>
> Can someone from Google please reply? IsInternalErrorsomething that
> I can fix? Or does it always point to a problem at Google's end?
>
> affected app id: steprep-demo . The same code is running fine on app
> id: steprep .
>
> j
>
> On Jul 10, 9:44 am, Jason C  wrote:
>
>
>
> > This issue persists - over 48 hrs. We _still_ have a 100% failure rate
> > with anInternalErrorbeing reported. (app id: steprep-demo).
>
> > This code previously ran fine. Is there any way to tell if there is
> > some underlying Datastore issue?
>
> > Any other suggestions?
>
> > j
>
> > On Jul 9, 8:27 am, Jason C  wrote:
>
> > > We have a cron job (once per minute) that has a 100% failure rate. See
> > > below for stack trace.
>
> > > However, this occurs only on our test server (app id: steprep-demo)
> > > and not on our production server.InternalErrorsuggests something at
> > > the Google end of things. This has been happening once per minute for
> > > over 24 hrs now - every request is the same stack trace.
>
> > > The function called in a transaction (cancelDispatchTxn) does a simple
> > > get() and a put() of a single entity.
>
> > > Could this be a problem in our code, or is this definitely at Google's
> > > end?
>
> > > Exception Raised (Resulting in a 500 page for the user)
> > > Traceback (most recent call last):
> > >   File "/base/python_runtime/python_lib/versions/third_party/
> > > django-1.1/django/core/handlers/base.py", line 92, in get_response
> > >     response = callback(request, *callback_args, **callback_kwargs)
> > >   File "/base/data/home/apps/steprep-demo/daily.343229575872925093/
> > > steprep/mgmt/__init__.py", line 27, in wrapper
> > >     return function(*args, **kwargs)
> > >   File "/base/data/home/apps/steprep-demo/daily.343229575872925093/
> > > steprep/mgmt/views/jobs.py", line 52, in cancel
> > >     story = db.run_in_transaction(cancelDispatchTxn, key)
> > >   File "/base/python_runtime/python_lib/versions/1/google/appengine/
> > > api/datastore.py", line 2143, in RunInTransaction
> > >     DEFAULT_TRANSACTION_RETRIES, function, *args, **kwargs)
> > >   File "/base/python_runtime/python_lib/versions/1/google/appengine/
> > > api/datastore.py", line 2265, in RunInTransactionCustomRetries
> > >     raise _ToDatastoreError(err)
> > >InternalError: internal error.

-- 
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] Analytics via log file?

2010-07-15 Thread Mark
Hi,

I was looking at the discussion about analytics here:

 
http://groups.google.com/group/google-appengine/browse_thread/thread/80d40046a3202ef2/4d1cea03e7120fa2?lnk=gst&q=analytics#4d1cea03e7120fa2

I'm in the same situation - there's a few pieces of data that I'd like
to track, and storing them in the datastore is going to introduce
extra complexity to my app, eat up more of the 100 quota index limit,
etc.

I can just make specialized log statements for the events I'm
interested in, then download the log once a day and parse it to do my
analysis. I just wonder two things:

  1) Will emitting more log statements slow down my app? For example,
I log a statement everytime I serve a particular page. If millions of
people are viewing the page, will all those log statements be a
significant drain?
  2) Scalability - downloading the log once a day and parsing it - is
anyone doing this already and can speak on their experience? I'm a bit
worried that if the daily log gets really big, trying to download and
parse it each day might become unrealistic.

I'm not sure if there are any other alternatives?

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: About Datastore

2010-07-15 Thread George J. SUN
I mean I want to use PHP and Database in my server and use Java in
GAE.

Thanks for your suggestions in database.

George

On Jul 13, 3:52 am, Robert Kluin  wrote:
> If you want to build your own server and write the code in PHP, why
> don't you just use MongoDB, Cassandra, CouchDB, or some other similar
> project?
>
> If you like Python and you want to have something like AppEngine, but
> you need to run it own your own servers, look at TyphoonAE.  It is an
> excellent project.
>
> Robert
>
> On Sun, Jul 11, 2010 at 6:02 AM, George J. SUN  wrote:
>
>
>
> > Hi everyone,
>
> > I am a school and try to do a project via GAE. I learnt Datastore was
> > good at queries and reading.
>
> > But in my project, there are several robots on GAE getting and
> > processing some data from Internet and a PHP website(not on GAE
> > because of Chinese Internet fact) is for user to get the data.
> > The robots are mostly like spiders, but the data in Internet is not
> > updated very frequently. The website is not a search engine but just
> > like a summarizer.
>
> > Is Datastore or MySQL Okay for my project? Can I build my own
> > datastore in my own server? How can I use datastore via PHP?
>
> > Thank you!
>
> > --
> > 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.



[google-appengine] Re: About Datastore

2010-07-15 Thread George J. SUN
Good ideas! Thank you!

On Jul 13, 3:01 am, Pieter Coucke  wrote:
> The datastore could to be a fit for this. You can use the development
> environment which has a local datastore on your own server for testing.
> You can access the datastore with php if your php calls a webservice running
> on App Engine which then reads from the datastore and returns datastore
> results (as XML for example).
>
> You can use App Engine task queues for the spiders.
>
> On Sun, Jul 11, 2010 at 12:02 PM, George J. SUN  wrote:
>
>
>
>
>
> > Hi everyone,
>
> > I am a school and try to do a project via GAE. I learnt Datastore was
> > good at queries and reading.
>
> > But in my project, there are several robots on GAE getting and
> > processing some data from Internet and a PHP website(not on GAE
> > because of Chinese Internet fact) is for user to get the data.
> > The robots are mostly like spiders, but the data in Internet is not
> > updated very frequently. The website is not a search engine but just
> > like a summarizer.
>
> > Is Datastore or MySQL Okay for my project? Can I build my own
> > datastore in my own server? How can I use datastore via PHP?
>
> > Thank you!
>
> > --
> > 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 > e...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.
>
> --
> Pieter Coucke
> Onthoo BVBAhttp://www.onthoo.comhttp://www.koopjeszoeker.be

-- 
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: About Datastore

2010-07-15 Thread George J. SUN
Thank you! I mean using PHP in normal server and run my 'spiders'(in
Java) in GAE. I am puzzled in choosing the database.

On Jul 13, 3:18 am, Jaroslav Záruba  wrote:
> > How can I use datastore via PHP?
>
> You can't run PHP antively on GAE, so (in my noob opinion) the "official"
> answer would be 'No, you have to write the data manipulation code in Java or
> Python'
>
> However, there's something called
> Quercuswhich supposedly
> allows PHP-code to run in Java.
>
> On Mon, Jul 12, 2010 at 9:01 PM, Pieter Coucke 
> wrote:
>
>
>
> > The datastore could to be a fit for this. You can use the development
> > environment which has a local datastore on your own server for testing.
> > You can access the datastore with php if your php calls a webservice
> > running on App Engine which then reads from the datastore and returns
> > datastore results (as XML for example).
>
> > You can use App Engine task queues for the spiders.
>
> > On Sun, Jul 11, 2010 at 12:02 PM, George J. SUN wrote:
>
> >> Hi everyone,
>
> >> I am a school and try to do a project via GAE. I learnt Datastore was
> >> good at queries and reading.
>
> >> But in my project, there are several robots on GAE getting and
> >> processing some data from Internet and a PHP website(not on GAE
> >> because of Chinese Internet fact) is for user to get the data.
> >> The robots are mostly like spiders, but the data in Internet is not
> >> updated very frequently. The website is not a search engine but just
> >> like a summarizer.
>
> >> Is Datastore or MySQL Okay for my project? Can I build my own
> >> datastore in my own server? How can I use datastore via PHP?
>
> >> Thank you!
>
> >> --
> >> 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 >>  e...@googlegroups.com>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-appengine?hl=en.
>
> > --
> > Pieter Coucke
> > Onthoo BVBA
> >http://www.onthoo.com
> >http://www.koopjeszoeker.be
>
> > --
> > 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 > e...@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: App Engine announcement emails being marked as Phishing in Gmail

2010-07-15 Thread Danny Tuppeny
Same here - correctly arrived in my inbox this time :-)


On 15 July 2010 11:29, Harshal  wrote:

> This time it landed properly for me in my inbox.
>
>
>
> 2010/7/15 François Masurel 
>
> All the maintenance notification emails have been sent to my GMail
>> spam folder for today's downtime.
>>
>> So I didn't received any, quite annoying.
>>
>> On 2 juil, 23:16, Waleed Abdulla  wrote:
>> > It was marked as spam for me as well. Glad I saw this thread (thanks
>> > Danny).
>> >
>> > Waleed
>> >
>> > On Fri, Jul 2, 2010 at 10:56 AM, Ikai L (Google) 
>> wrote:
>> >
>> >
>> >
>> > > I posted another thread about this. We figured out what was causing
>> this.
>> >
>> > > On Thu, Jul 1, 2010 at 5:55 AM, Albert  wrote:
>> >
>> > >> It's in my spam.
>> >
>> > >> On Jul 1, 3:32 am, "Ikai L (Google)"  wrote:
>> > >> > I didn't see this thread. At any rate, I created a new thread for
>> this.
>> >
>> > >> > I'll look into this. Was anyone able to receive the email address
>> > >> correctly
>> > >> > and not have it flagged as a phishing or spam request?
>> >
>> > >> > On Wed, Jun 30, 2010 at 5:26 AM, Harshal 
>> wrote:
>> > >> > > +1
>> >
>> > >> > > On Wed, Jun 30, 2010 at 2:20 PM, Danny Tuppeny <
>> da...@tuppeny.com>
>> > >> wrote:
>> >
>> > >> > >> When I get emails from the App Engine team, such as one today
>> titled
>> > >> > >> "Notification: Upcoming scheduled maintenance periods July 7th,
>> 2010
>> > >> > >> and July 14th, 2010", it goes into my spam folder, and is marked
>> with
>> > >> > >> the phishing notice:
>> >
>> > >> > >> Warning: This message may not be from the alleged person or
>> > >> > >> organisation. Beware of following any links in it or of
>> providing the
>> > >> > >> sender with any personal information.  Learn more
>> >
>> > >> > >> This seems to happen a lot. I'll keep marking as "not phishing",
>> but
>> > >> I
>> > >> > >> suspect there is probably something amiss at your end for this
>> to be
>> > >> > >> happening :-)
>> >
>> > >> > >> --
>> > >> > >> You received this message because you are subscribed to the
>> Google
>> > >> Groups
>> > >> > >> "Google App Engine" group.
>> > >> > >> To post to this group, send email to
>> > >> google-appeng...@googlegroups.com.
>> > >> > >> To unsubscribe from this group, send email to
>> > >> > >> google-appengine+unsubscr...@googlegroups.com> e...@googlegroups.com>> > >> e...@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> e...@googlegroups.com>> > >> e...@googlegroups.com>
>> > >> > > .
>> > >> > > For more options, visit this group at
>> > >> > >http://groups.google.com/group/google-appengine?hl=en.
>> >
>> > >> > --
>> > >> > Ikai Lan
>> > >> > Developer Programs Engineer, Google App Engine
>> > >> > Blog:http://googleappengine.blogspot.com
>> > >> > Twitter:http://twitter.com/app_engine
>> > >> > Reddit:http://www.reddit.com/r/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> e...@googlegroups.com>
>> > >> .
>> > >> For more options, visit this group at
>> > >>http://groups.google.com/group/google-appengine?hl=en.
>> >
>> > > --
>> > > Ikai Lan
>> > > Developer Programs Engineer, Google App Engine
>> > > Blog:http://googleappengine.blogspot.com
>> > > Twitter:http://twitter.com/app_engine
>> > > Reddit:http://www.reddit.com/r/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> e...@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

Re: [google-appengine] Re: App Engine announcement emails being marked as Phishing in Gmail

2010-07-15 Thread Harshal
This time it landed properly for me in my inbox.



2010/7/15 François Masurel 

> All the maintenance notification emails have been sent to my GMail
> spam folder for today's downtime.
>
> So I didn't received any, quite annoying.
>
> On 2 juil, 23:16, Waleed Abdulla  wrote:
> > It was marked as spam for me as well. Glad I saw this thread (thanks
> > Danny).
> >
> > Waleed
> >
> > On Fri, Jul 2, 2010 at 10:56 AM, Ikai L (Google) 
> wrote:
> >
> >
> >
> > > I posted another thread about this. We figured out what was causing
> this.
> >
> > > On Thu, Jul 1, 2010 at 5:55 AM, Albert  wrote:
> >
> > >> It's in my spam.
> >
> > >> On Jul 1, 3:32 am, "Ikai L (Google)"  wrote:
> > >> > I didn't see this thread. At any rate, I created a new thread for
> this.
> >
> > >> > I'll look into this. Was anyone able to receive the email address
> > >> correctly
> > >> > and not have it flagged as a phishing or spam request?
> >
> > >> > On Wed, Jun 30, 2010 at 5:26 AM, Harshal 
> wrote:
> > >> > > +1
> >
> > >> > > On Wed, Jun 30, 2010 at 2:20 PM, Danny Tuppeny  >
> > >> wrote:
> >
> > >> > >> When I get emails from the App Engine team, such as one today
> titled
> > >> > >> "Notification: Upcoming scheduled maintenance periods July 7th,
> 2010
> > >> > >> and July 14th, 2010", it goes into my spam folder, and is marked
> with
> > >> > >> the phishing notice:
> >
> > >> > >> Warning: This message may not be from the alleged person or
> > >> > >> organisation. Beware of following any links in it or of providing
> the
> > >> > >> sender with any personal information.  Learn more
> >
> > >> > >> This seems to happen a lot. I'll keep marking as "not phishing",
> but
> > >> I
> > >> > >> suspect there is probably something amiss at your end for this to
> be
> > >> > >> happening :-)
> >
> > >> > >> --
> > >> > >> You received this message because you are subscribed to the
> Google
> > >> Groups
> > >> > >> "Google App Engine" group.
> > >> > >> To post to this group, send email to
> > >> google-appeng...@googlegroups.com.
> > >> > >> To unsubscribe from this group, send email to
> > >> > >> google-appengine+unsubscr...@googlegroups.com e...@googlegroups.com> > >> e...@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 e...@googlegroups.com> > >> e...@googlegroups.com>
> > >> > > .
> > >> > > For more options, visit this group at
> > >> > >http://groups.google.com/group/google-appengine?hl=en.
> >
> > >> > --
> > >> > Ikai Lan
> > >> > Developer Programs Engineer, Google App Engine
> > >> > Blog:http://googleappengine.blogspot.com
> > >> > Twitter:http://twitter.com/app_engine
> > >> > Reddit:http://www.reddit.com/r/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 e...@googlegroups.com>
> > >> .
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/google-appengine?hl=en.
> >
> > > --
> > > Ikai Lan
> > > Developer Programs Engineer, Google App Engine
> > > Blog:http://googleappengine.blogspot.com
> > > Twitter:http://twitter.com/app_engine
> > > Reddit:http://www.reddit.com/r/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-appengine@googlegroups.com
> .
> > > To unsubscribe from this group, send email to
> > > google-appengine+unsubscr...@googlegroups.com e...@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] Problem in windows development server with form with enctype="multipart/form-data"

2010-07-15 Thread Elio Scordo
Hi Ikai, thank you for the help. The GET method is not the point, I use POST.

This simple form, for example:







  thefile = self.request.get("file")
  foo = self.request.get("foo")
  if thefile:

It can upload pictures the first time and the stop working later. On
the cloud works perfectly.

In debug mode I can see self.request.get( "file") or self.request.get(
"foo") returning void after the first time.

I found a issue opened in 2008 and closed.. It was related to form parsing.

Does anyone use file upload and window development environment?


Thanks





2010/7/15 Ikai L (Google) :
> I'm pretty sure you can't use a multipart form with a GET (what is the
> point?). Multipart only makes sense if you are passing large amounts of data
> in the body, whereas GET requests pass parameters in the URL, often capped
> at between 1000-2000 characters (depending on browser). Change this to a
> POST and see what happens.
>
> On Fri, Jul 9, 2010 at 10:05 AM, elio  wrote:
>>
>> Hi,
>>
>> every call to self.request.get( ) return void after that I put   the
>> encoding form as enctype="multipart/form-data".
>>
>> The fisrt time all work good.
>>
>> I can not find any workaround.
>>
>> This problem appears only in development (windows 7 with the last
>> appengine release)
>>
>> Any help would be really appreciated
>>
>> --
>> 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.
>>
>
>
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> Blog: http://googleappengine.blogspot.com
> Twitter: http://twitter.com/app_engine
> Reddit: http://www.reddit.com/r/appengine
>
> --
> 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 groups is werid!

2010-07-15 Thread Ian Marshall
Did you post via a Google group discussion web page? If so, I have
noticed a delay before a new post appears in the list. This delay is
mostly a few seconds or minutes, in my experience.


On Jul 14, 3:15 am, Tapir  wrote:
> Frequently, I can't find the new discussion I just posted.

-- 
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: App Engine announcement emails being marked as Phishing in Gmail

2010-07-15 Thread François Masurel
All the maintenance notification emails have been sent to my GMail
spam folder for today's downtime.

So I didn't received any, quite annoying.

On 2 juil, 23:16, Waleed Abdulla  wrote:
> It was marked as spam for me as well. Glad I saw this thread (thanks
> Danny).
>
> Waleed
>
> On Fri, Jul 2, 2010 at 10:56 AM, Ikai L (Google)  wrote:
>
>
>
> > I posted another thread about this. We figured out what was causing this.
>
> > On Thu, Jul 1, 2010 at 5:55 AM, Albert  wrote:
>
> >> It's in my spam.
>
> >> On Jul 1, 3:32 am, "Ikai L (Google)"  wrote:
> >> > I didn't see this thread. At any rate, I created a new thread for this.
>
> >> > I'll look into this. Was anyone able to receive the email address
> >> correctly
> >> > and not have it flagged as a phishing or spam request?
>
> >> > On Wed, Jun 30, 2010 at 5:26 AM, Harshal  wrote:
> >> > > +1
>
> >> > > On Wed, Jun 30, 2010 at 2:20 PM, Danny Tuppeny 
> >> wrote:
>
> >> > >> When I get emails from the App Engine team, such as one today titled
> >> > >> "Notification: Upcoming scheduled maintenance periods July 7th, 2010
> >> > >> and July 14th, 2010", it goes into my spam folder, and is marked with
> >> > >> the phishing notice:
>
> >> > >> Warning: This message may not be from the alleged person or
> >> > >> organisation. Beware of following any links in it or of providing the
> >> > >> sender with any personal information.  Learn more
>
> >> > >> This seems to happen a lot. I'll keep marking as "not phishing", but
> >> I
> >> > >> suspect there is probably something amiss at your end for this to be
> >> > >> happening :-)
>
> >> > >> --
> >> > >> You received this message because you are subscribed to the Google
> >> Groups
> >> > >> "Google App Engine" group.
> >> > >> To post to this group, send email to
> >> google-appeng...@googlegroups.com.
> >> > >> To unsubscribe from this group, send email to
> >> > >> google-appengine+unsubscr...@googlegroups.com >> > >>  e...@googlegroups.com> >> e...@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 >> > >  e...@googlegroups.com> >> e...@googlegroups.com>
> >> > > .
> >> > > For more options, visit this group at
> >> > >http://groups.google.com/group/google-appengine?hl=en.
>
> >> > --
> >> > Ikai Lan
> >> > Developer Programs Engineer, Google App Engine
> >> > Blog:http://googleappengine.blogspot.com
> >> > Twitter:http://twitter.com/app_engine
> >> > Reddit:http://www.reddit.com/r/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 >>  e...@googlegroups.com>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-appengine?hl=en.
>
> > --
> > Ikai Lan
> > Developer Programs Engineer, Google App Engine
> > Blog:http://googleappengine.blogspot.com
> > Twitter:http://twitter.com/app_engine
> > Reddit:http://www.reddit.com/r/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 > e...@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] StringListProperty() Sort Problem

2010-07-15 Thread djidjadji
You have to use basic python code

results = Example.all().filter("tags =", tagSearch).fetch(100)
results.sort(key=lambda x: x.tags.index(tagSearch))

2010/7/14 Vivek Ramachandran 
>
> Hello AppEngine Gurus,
>
>
>
> I have model which looks like this:
>
> class Example (db.Model) :
>
>  name = db.StringProperty()
>  tags = db.StringListProperty()
>
> I first query for a tag to get the list of entities which have them:
>
> results = Example.all().filter("tags =", tagSearch).fetch(100)
>
> This gives me a list of entities containing the "tagSearch" in their "tags" 
> list.
>
> Here is how a sample of the result entities would look like:
>
> entityA = [tagSearch, m, n, o, ]
>
>
> entityB = [a, b, c, tagSearch, ... ]
>
>
> entityC = [a, tagSearch, a, ,a ,x ... ]
>
> I want to sort all the entities in the result set based on the position of 
> the item tagSearch in them, in descending order.
>
> basically - entityA, entityC, entityB
>
> How do I do this? note I am running this on appengine ...
>
> also assumption given than tagSearch will occur only once in any list.
>
> Any help will be highly appreciated.
>
> Rgds,
>
> VR
>
> --
> 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.