[google-appengine] Re: In login page programmatically change t...@example to my username

2010-08-13 Thread Mahmoud
You can edit: google_appengine\google\appengine\tools \dev_appserver_login.py:RenderLoginTemplate Obviously your changes will be lost when you upgrade your SDK. On Aug 12, 8:44 pm, brianl wrote: > Wondering if there's a way to change the email address in the > generated login dialog/page for the

[google-appengine] Re: HTTP request

2008-08-27 Thread Mahmoud
How are you making the put and delete requests? Most ajax libraries I've seen, fake out PUT and DELTE by sending a flag with the operation name as a parameter to POST and rely on the webservice understanding that. See: http://dobrzanski.net/2007/04/22/using-put-and-delete-methods-in-ajax-requesta

[google-appengine] Re: Can I use Python script in the HTML just like the javascript?

2008-09-11 Thread Mahmoud
Hi Allen, Python cannot run in the browser the way javascript does. However, you can use Django templates to render HTML on the server and then serve it to the client. This is somewhat similar to PHP-in-HTML scripts. -Mahmoud On Sep 11, 11:54 am, "Andrew Badera" <[EMAIL PROT

[google-appengine] Re: Dev server is soo slow that it corrupts the web site

2008-09-16 Thread Mahmoud
We use Apache to serve up all static content in development mode, and dev_appserver for everything else. A build script updates a path variable that the html templates use to fetch the static content, so that static content is served by GAE. On Sep 13, 6:14 am, Sylvain <[EMAIL PROTECTED]> wrote:

[google-appengine] Re: Dev server is soo slow that it corrupts the web site

2008-09-16 Thread Mahmoud
reduce the number of http requests needed to initialize your pages! -Mahmoud On Sep 16, 11:34 am, Mahmoud <[EMAIL PROTECTED]> wrote: > We use Apache to serve up all static content in development mode, and > dev_appserver for everything else. A build script updates a path > variabl

[google-appengine] Re: deploy .net applications in google's web server

2008-09-24 Thread Mahmoud
The latter. On Sep 24, 3:33 am, RPR <[EMAIL PROTECTED]> wrote: > Hi all, > > I have created one web based application in . net. Can I host it on > google's server.Or only python based applications can be hosted? > > Thanx, > RPR. --~--~-~--~~~---~--~~ You received

[google-appengine] Re: Line drawing+Text graphics in delivered HTML

2008-09-24 Thread Mahmoud
You might also want to check out the Canvas HTML element: http://developer.mozilla.org/en/Canvas_tutorial On Sep 23, 10:26 am, hbdave <[EMAIL PROTECTED]> wrote: > I am developing a small application, wherein some simple line drawings > (lines, arcs, rectangles) and small amount of labeling text a

[google-appengine] Re: Using exec() in GAE

2008-09-26 Thread Mahmoud
Do you mean eval() ? If so, yes. On Sep 26, 12:39 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hello, >  I could not find it in the documentation and it kind of seems to > work. But please, put my worries at rest: is it ok to exec() a string > in the Google App Engine? >  Thank you, > >  

[google-appengine] Re: SearchableQuery and OffSet

2008-09-26 Thread Mahmoud
Can you do: query.Search(keyword).filter("name >", index) where index, is the name (or whatever you're searchijng for) of the last person on the current page? On Sep 23, 12:12 pm, "Venkatesh Rangarajan" <[EMAIL PROTECTED]> wrote: > Folks, > > I am trying to implement "pagination" for Search ab

[google-appengine] Re: Dealing with lots of data -- any tips?

2008-09-26 Thread Mahmoud
If you're trying to infer some type of statistical information from the dataset after it has been stored, then this might be difficult, especially in the absence of background/offline processing. However, here is something you might want to try, for the particular scenario you describe: 1. Create

[google-appengine] Re: Dealing with lots of data -- any tips?

2008-09-29 Thread Mahmoud
gt; Thanks again. > > -s > > On Sep 26, 3:03 pm,Mahmoud<[EMAIL PROTECTED]> wrote: > > > If you're trying to infer some type of statistical information from > > the dataset after it has been stored, then this might be difficult, > > especially in the absence

[google-appengine] undocumented size cap on memcache entries

2008-10-01 Thread Mahmoud
Just a heads up, in case you get bit by this like we did: It seems that there is an undocumented size cap of 1 MB on memcache entries. Our application caches a list of entities with a thumbnail BlobProperty, and we weren't putting memcache.set() in a try/catch block. It turns out, that it stopped

[google-appengine] Re: undocumented size cap on memcache entries

2008-10-02 Thread Mahmoud
> > It seems that there is an undocumented size cap of 1 MB on memcache > > entries. Our application caches a list of entities with a thumbnail > > BlobProperty, and we weren't putting memcache.set() in a try/catch > > block. It turns out, that it stopped working after a while, with the > > follo

[google-appengine] Re: How to get ReferenceProperty's key without causing a 'get'

2008-10-03 Thread Mahmoud
Awesome. Thanks dude. On Oct 2, 6:40 pm, Rafe <[EMAIL PROTECTED]> wrote: >   Folks, > >   There have been a number of people asking on the forums what the > correct way to get the key of a ReferenceProperty without causing a > whole 'get' to the datastore.  This can be especially inefficient if >

[google-appengine] Billing charge discrepency. Charged $21 to start!

2010-01-07 Thread Mahmoud
I'm unsure who to email about this, so I figured I'd post to this group. After enabling billing for my app, at a maximum of $3 a day, Google Checkout charged me $21 right away. My understanding is that it is supposed to be "up to $21 a week". Here is what the bill looks like: Digital delivery

[google-appengine] Re: Sitewide 500 errors

2010-02-02 Thread Mahmoud
I see the same problem. However, accessing the application using the *.appspot.com URL seems to work fine. Seems to be a problem in Google's DNS. On Feb 2, 11:19 am, _matt_ wrote: > Experiencing the problem with my apps also. > > If you think the status page should reflect this issue (thus giving

[google-appengine] Re: Any interest in a Boston-area users group?

2009-07-21 Thread Mahmoud
I'm down. Maybe you can post the first session to Sponty: http://www.thesponty.com On Jun 24, 11:29 am, Adam wrote: > Are  there any other AppEngine developers here who are located in the > greater Boston area who would be interested in starting a Users Group? > I am willing to organize such a

[google-appengine] Re: Getting around joins/in queries

2009-07-29 Thread Mahmoud
s. Easy. 2. db.get_by_key_name(key_names) <= this happens quite fast. 3. To kick things up a notch, use memcache in #2. For entities not found in memcache, retrieve them from the datastore. Now for a list of 200 friends, this executes in less than 400ms! Cheers, -Mahmoud On Jul 27, 3:10 pm,

[google-appengine] Re: Retrieve source code from appspot

2009-07-29 Thread Mahmoud
Hi G, See the Community FAQ here: http://knol.google.com/k/marce/app-engine-community-faqs/vkzeph4si12v/1# Cheers, Mahmoud On Jul 29, 4:14 pm, G wrote: > Is there any mechanism to retrieve the deployed source code from > appspot ? > > I have had my laptop stolen and some of my

[google-appengine] Did the API for Model._toPb change recently?

2009-08-06 Thread Mahmoud
The search functionality in our app mysteriously started breaking today. We use a modified version of SearcheableModel. Here is the stack trace: results = SpontyUser.all().search(query).order('name').fetch (PAGE_SIZE+1) File "/base/python_lib/versions/1/google/appengine/ext/db/ __init__.py"

[google-appengine] Re: Poor app performance: periods of very high latency

2009-09-18 Thread Mahmoud
Actually, our app (spont.appspot.com) has been seeing elevated latency as well in the last two weeks. The code has not changed at all in those two weeks. -M On Sep 18, 4:54 am, "Nick Johnson (Google)" wrote: > Hi Brandon, > What is your App ID? > > > > > > On Fri, Sep 18, 2009 at 8:46 AM, Brand

[google-appengine] Re: IN and != sub query

2009-09-24 Thread Mahmoud
Hi ten_foot_ninja, We had a similar problem in our application. To resolve it, we reworked things to use calculable key_names for entities. This way, if you know the key_names in advance, you can fetch all the entities in parallel using db.get_by_key_names(). I wrote a detailed snippet about this

[google-appengine] Re: AttributeError: 'Key' object has no attribute '_str'

2009-10-13 Thread Mahmoud
Yup. I found this out empirically yesterday. Clearing memcache will solve it. On Oct 13, 10:42 am, "Nick Johnson (Google)" wrote: > Hi johnP, > The quick and easy solution is to clear your app's memcache. > > -Nick Johnson > > > > > > On Tue, Oct 13, 2009 at 3:36 PM, johnP wrote: > > > This bug

[google-appengine] Re: Newbie question - Request params available to def post(self)

2008-10-14 Thread Mahmoud
ginal "favorites" input. -Mahmoud On Oct 14, 11:49 am, Alex Vartan <[EMAIL PROTECTED]> wrote: > Let's say I redirect a user to the url: > > myapp.com/stuff?favorites=oatmeal&raisinbran > > I generate the page with a def get(self) method in the Stuff &g

[google-appengine] Re: Possible to subclass User?

2008-10-14 Thread Mahmoud
://code.google.com/appengine/docs/users/userobjects.html -Mahmoud On Oct 14, 11:15 am, Alex Vartan <[EMAIL PROTECTED]> wrote: > Apologies if this is a simple question, I'm still a python / GAE > novice. Is it possible to subclass the User class? I have just a > couple of extra properties a

[google-appengine] Re: No response?

2008-10-14 Thread Mahmoud
You should add some logging to your application. It will make it easier to see what is going awry: http://code.google.com/appengine/docs/python/logging.html On Oct 13, 6:16 am, sternr <[EMAIL PROTECTED]> wrote: > I've just uploaded my first application, and no matter what request I > try, I get e

[google-appengine] Re: Static files not cached with GAE

2008-10-15 Thread Mahmoud
Content-Length 849 I've tried with Firefox 3.0.3 and it seems to cache it just fine! -Mahmoud On Oct 15, 8:38 am, noamway <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm building my first application with GAE and I got a problem with > caching static files. > F

[google-appengine] Re: Bulkloadclient Loading of related tables data

2008-10-16 Thread Mahmoud
awesome. We use it to load test data for our unit and functional tests. You can use the datastore file created by fixture with dev_appserver. http://farmdev.com/projects/fixture/using-fixture-with-appengine.html -Mahmoud On Oct 16, 9:20 am, Alan <[EMAIL PROTECTED]> wrote: > I don't know i

[google-appengine] Re: Is there a way to get mcycles in code?

2008-10-16 Thread Mahmoud
You might want to profile your code: http://code.google.com/appengine/kb/commontasks.html#profiling On Oct 16, 12:04 pm, "Ethan Post" <[EMAIL PROTECTED]> wrote: > I would like to include the # of mcycles consumed in some of my logging. At > the moment it a put to two entities has occasional timeo

[google-appengine] Re: FFmpeg

2008-10-16 Thread Mahmoud
Currently, there is a size limit of 1mb on uploaded files, and an overall 500 mb storage limit. -Mahmoud On Oct 16, 9:53 am, PythoNewbie <[EMAIL PROTECTED]> wrote: > Hello! > I want to upload movies to my site (and convert them to .flv) > does Google App Engine support FF

[google-appengine] Re: localized log time

2008-10-30 Thread Mahmoud
Pacific time? I would expect it to be in UTC, similar to how the datastore stores a DateTimeProperty. On Oct 29, 12:29 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote: > Hi, > > Currently, the logs are only available in pacific time, but this is a good > feature request.  If it isn't already in t

[google-appengine] Re: Add a flag to the appcfg.py to zip/upload the sources

2008-10-31 Thread Mahmoud
om GAE, if you can easily and securely check it out from SVN. -Mahmoud On Oct 31, 5:36 am, Sylvain <[EMAIL PROTECTED]> wrote: > It seems that a lot of developers would like to download their full > project (source + static). > Currently, there is no solution (even a source constrol).

[google-appengine] Re: Permanent Unique User Identifier

2008-11-03 Thread Mahmoud
Use entity.key(). You can easily create your own AppUser entity that wraps the users API user entity. See: http://code.google.com/appengine/docs/users/userobjects.html On Nov 3, 5:46 pm, Ryan Lamansky <[EMAIL PROTECTED]> wrote: > Is there a good way to establish a permanent unique user identifie

[google-appengine] Re: 300ms maximum avg. request

2008-11-04 Thread Mahmoud
that you get a CPU cycles warning for requests that are over 2x the average response time of your requests. If most of your requests finish within 300ms, you will probably get warnings for requests that take over 600ms. -Mahmoud --~--~-~--~~~---~--~~ You received thi

[google-appengine] Re: Best practice for user objects

2008-11-10 Thread Mahmoud
I would wrap the user api object (users.user) in an application specific AppUser object, and use a reference property for which_user. -Mahmoud On Nov 8, 11:02 pm, warreninaustintexas <[EMAIL PROTECTED]> wrote: > What is the best way to access one user's information from another &g

[google-appengine] Re: How to: Variable assignment in django template.

2008-11-11 Thread Mahmoud
Here are some things you can do: 1. Django templates can tell you the value of the current counter/ index in the 'for' loop. Maybe you can use that somehow. 2. If you really want to assign a variable, then use a javascript tag: var x = {{greeting.content}}; -Mahmoud On Nov 1

[google-appengine] Re: switch users based on current google account

2008-11-24 Thread Mahmoud
Good question. I'm not sure. Please let us know if you figure this out. On Nov 23, 2:18 pm, apalankat <[EMAIL PROTECTED]> wrote: > Hi, > I'm trying to develop a gmail gadget using app engine, and I'd like > the gadget to get always the current gmail user. > The problem is, once a user logs into t

[google-appengine] Re: binding of parameters to GQL query: varargs + dictionary

2008-11-24 Thread Mahmoud
Have you seen GqlQuery.bind() ? http://code.google.com/appengine/docs/datastore/gqlqueryclass.html#GqlQuery_bind -Mahmoud On Nov 23, 4:47 pm, GAERiddler <[EMAIL PROTECTED]> wrote: > Hello, > > So I am not a Python programmer, though I am currently trying to pick > it up.

[google-appengine] Re: ORDER BY changes the number of results in production server

2008-12-04 Thread Mahmoud
Yes. I've noticed this as well. However, the difference is usually just -1 and never this disparate. On Dec 3, 12:41 pm, Siva Velusamy <[EMAIL PROTECTED]> wrote: > Hi, > > I find this weird behavior in the current production server: > > If I have a query of the form: > > SELECT * FROM model1 WHER

[google-appengine] Re: Task Queues and Asynchronous Processing TODAY

2008-12-11 Thread Mahmoud
Yup. We do exactly what Ben describes. On Dec 10, 9:26 am, Ben Nevile <[EMAIL PROTECTED]> wrote: > Hi Dennis - > > I am using an architecture similar to what you describe.  Rather than > use a separate server to do the pinging, I use client-side JS to do > this dirty work.  You need to have a fai

[google-appengine] Re: Creating a short unique URL for an entity

2009-01-11 Thread Mahmoud
Just create a random n-character string for each document. Do that in put() before the entity is saved for the first time. Choose n based on what risk of collision (two documents having the same randomly generated slug) is practical. I say n=6 is pretty good. On Jan 10, 10:24 am, Jesse Grosjean

[google-appengine] Re: Caching using global variables

2009-01-22 Thread Mahmoud
-automatically -Mahmoud On Jan 22, 11:13 am, Blixt wrote: > Yup, I know, that's what brings forth my questions about the large- > scale behavior of in-memory caching. Will the instances be recreated > too often for it to be more effective than memcache? Will there be too > many instan

[google-appengine] Re: Small & Dirty Fix for NoseGAE and SDK 1.1.9

2009-02-12 Thread Mahmoud
Ha. I had the same problem. Actually, I've submitted a patch here: http://code.google.com/p/nose-gae/issues/detail?id=18 -Mahmoud On Feb 10, 9:30 am, Koen Bok wrote: > Change linenosegae.py:125 to: > > dev_appserver.FakeFile.SetAllowedP

[google-appengine] Re: usercount

2009-02-24 Thread Mahmoud
You can also make your clients send ajax hearbeats every so often. The heartbeat call would update the last_seen property. On Feb 24, 3:13 am, Brandon Thomson wrote: > One way is to store a "lastSeen" datetime property for each user in > some kind of user entity in your data model and then do a

[google-appengine] Re: Testing Datastore without SDK

2009-02-24 Thread Mahmoud
ng tests for GAE a lot of fun!. I can provide some sample code. -Mahmoud On Feb 24, 8:27 am, Steven Farley wrote: > You could write unit tests using GAEUnit (http://code.google.com/p/ > gaeunit/).  It uses the same datastore that dev_app

[google-appengine] Re: Announce: datastore-sqlite-sync tool release.

2009-02-24 Thread Mahmoud
h in [ '/usr/local/google_appengine' ]: if os.path.exists(path): return path You might want to let users pass in the SDK location as a parameter. Look at NoseGAE:configure, it might be useful: http://code.google.com/p/nose-gae/source/browse/trunk/nosegae.py -Mahmoud On

[google-appengine] Re: Cyclic Definition Problem

2009-02-24 Thread Mahmoud
Hello, Can you provide samples form your model definitions? It would make it much easier to follow what you're trying to do. On Feb 24, 12:01 pm, simpsus_science wrote: > Hallo, > > I read up the solution for implementing 1:n relationships by placing a > ReferenceProperty on the "n" part and nam

[google-appengine] Re: Template Includes: setting TEMPLATE_DIRS

2009-02-24 Thread Mahmoud
This is what I usually use. It looks for a directory called "templates" relative to the current handler script. def get_template_path(template_name): """ Returns the path to a given template_name""" return os.path.join(os.path.dirname(__file__), 'templates', '%s.html' % template_name) On

[google-appengine] Re: Converting model objects to JSON

2009-03-07 Thread Mahmoud
The easiest way is to write a to_dict() method on your models, and then call that before converting to json. On Mar 6, 6:28 am, Devraj Mukherjee wrote: > Hi all, > > Quick question about converting model objects in JSON. Have done some > reading and I can't find a way to use simplejson to serial

[google-appengine] Re: A question for Jaiku's developers, if they're watching..

2009-03-14 Thread Mahmoud
e result of the presence call, it can take as long as possible. -Mahmoud On Mar 13, 2:23 am, Brett Slatkin wrote: > Heyo, > > Good finds, peterk! > > pubsubhubbub uses some of the same techniques that Jaiku uses for > doing one-to-many fan-out of status message updates. The mi

[google-appengine] Re: raise NotImplementedError("Only tempfile.TemporaryFile is available for use")

2009-03-21 Thread Mahmoud
Venkat, You should try Miha's patch here: http://persistent.info/files/twitter_appengine.patch It patches twitter.py to work with GAE's restrictions. -Mahmoud On Mar 20, 8:19 am, venkat rambotla wrote: > hey hi tim, > my twitter.py code goes like this > >

[google-appengine] Re: local datastore missing after restart the computer

2009-03-27 Thread Mahmoud
You can write a script that inserts all the test data. Give it an admin entry in app.yaml and call it whenever you need to re-bootstrap your local datastore. On Mar 27, 6:19 am, ribao wei wrote: > HI all, > I am developing GAE in a Ubuntu machine. the problem is, very time i > restart my compute

[google-appengine] Re: 500 Error when sending mail

2009-03-27 Thread Mahmoud
You can only send email "from" the currently logged in user or a registered admin account. However, you can send email to anyone. It would be helpful if you post the error trace you get. On Mar 26, 11:49 pm, Wiiboy wrote: > I just noticed in the Docs that it can send mail to "the currently > lo

[google-appengine] index.yaml is not source control friendly

2009-04-07 Thread Mahmoud
behavior. Any one else noticed this? Do you have any suggestions? -Mahmoud --~--~-~--~~~---~--~~ 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

[google-appengine] Re: Templating Logic

2009-04-07 Thread Mahmoud
>     path = 'Templates/mytemplate2.html' >     self.response.out.write(template.render(path, template_values)) Does that also work in production? If so, then you're good to go. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

[google-appengine] Re: Local Google App Engine stopped work

2009-04-07 Thread Mahmoud
What version of Python are you using? On Apr 6, 8:15 am, Leonardo Luiz wrote: > Hi, > > Today, my local app engine server simply stopped work. I think it's > because last auto update, once It worked fine yesterday. > > It's the log: > > C:\Program Files\Google\google_appengine\google\appengine\t

[google-appengine] Re: index.yaml is not source control friendly

2009-04-07 Thread Mahmoud
I meant "index.yaml" in the post body. On Apr 7, 1:04 pm, Mahmoud wrote: > So it seems that dev_appserver.py keeps updating the comments in > app.yaml mostly with usage counters. I keep having to diff and revert > it before making commits, unless the changes were legit

[google-appengine] Re: How to set Current User in code?

2009-04-09 Thread Mahmoud
Here is what I do in unit tests: import os def login_as(email): """ Logs in as the user identified by the email. @param email: The email address of the user you want to login as. """ # This is how you login os.environ['USER_EMAIL'] = email On Apr 9, 11:55 am, slatvick wro

[google-appengine] SMS verification problem

2010-10-28 Thread Mahmoud Ismail
hi all, i've got with sms verification, i'm from Egypt (Mobinil) i've tried my mobile phone multiple times and i never received any messages. thanks in advance, Mahmoud Ismail -- You received this message because you are subscribed to the Google Groups "Google App Engin

[google-appengine] web2py + Google Apps Engine deployment error

2012-07-29 Thread Moustafa Mahmoud
hello everyone , can you please help me I have developed a web2py application and used the included app.yaml to migrate it to google apps engin, it work very well on the local host and in the GAE sdl , but when i try to deploy it to my google apps engine account it keeps giving me "This web

[google-appengine] Re: Call to undefined function imagewebp() webp php support

2018-10-09 Thread &#x27;Mahmoud Sharif (Google Cloud Platform)' via Google App Engine
Hello, This group is dedicated to the Google App Engine group. Since you’ve already posted this thread on serverfault, you could wait for someone to answer you in that forum. As an alternative, I also suggest that you ask your question on the dedicated WebP discussion forum