[google-appengine] Pyhton Twitter Api
Hello Friends I am using python twitter api in appengine but on executing it it is giving me NotImplementedError at /monitor-twitter Only tempfile.TemporaryFile is available for use Request Method: GET Request URL: http://localhost:8081/monitor-twitter Exception Type: NotImplementedError Exception Value: Only tempfile.TemporaryFile is available for use Exception Location: C:\Program Files\Google\google_appengine\google\appengine\dist\tempfile.py in PlaceHolder, line 57 Python Executable: C:\Python26\pythonw.exe Python Version: 2.6.4 exception. 2.6.4 Can anyone please help me out of this. With Regards Nitin -- 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: Help with data-store statistics
Here is the exact query results = models.Jobs.all().search(keyword.lower()) Rgds Venakatesh -- 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: Help with data-store statistics
Hi Venkatesh, What is the full query that your trying to execute that is giving the error? If it's not a field that contains multiple values I'm not sure what that type of index would do since a single value property would have the same value repeated again and again in the index. What am I missing? Stephen On Jul 29, 9:55 pm, Venkatesh Rangarajan wrote: > Stephen, > > Yes, that is correct. I have only one index. I am not doing any > sorting or filter or anything. > > Total size of all records is close to 1 million records. Raw data > size is i think 500MB. I had uploaded part of the data when Appengine > launched. Abandoned it frustrated with data time out and lack of > search etc. Thought it would be a good time to re-try. > > I don't have multi-property field. > > I did not have too create that index, it was added in the index file > automatically because I am using Searchable Model. Now inspite of > this, i kept getting the following error. > > NeedIndexError: The built-in indices are not efficient enough for this > query and your data. Please add a composite index for this query. > This query needs this index: > - kind: Jobs > properties: > - name: __searchable_text_index > - name: __searchable_text_index > - name: __searchable_text_index > - name: __searchable_text_index > - name: __searchable_text_index > > I manually added, that to index file and that resulted in exploding > index. That index error-ed out and I have vacuum it long back. > > None of this explains how 1gb of data gets translated to 28gb of data > in appstore. I have another 3 gigs of raw data, sitting on my > hard-disk which i am afraid to upload, since I am not sure it would > scale. > > rgds, > Venkatesh -- 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: "too many indexed properties" from bulk loader
Got this one solved by defining a transformer for the model instead of the kind. On Jul 28, 11:15 pm, rw wrote: > I have an entity with a ListProperty that can have many entries. When > calling put() on one of these entities I originally got the "too many > indexed properties" error message, and resolved it by adding > indexed=False to the property. Now however when I try to load the > same data using the bulk loader I get the error again. Is there an > option for bulkloader.yaml that I'm missing? > > 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: Help with data-store statistics
Stephen, Yes, that is correct. I have only one index. I am not doing any sorting or filter or anything. Total size of all records is close to 1 million records. Raw data size is i think 500MB. I had uploaded part of the data when Appengine launched. Abandoned it frustrated with data time out and lack of search etc. Thought it would be a good time to re-try. I don't have multi-property field. I did not have too create that index, it was added in the index file automatically because I am using Searchable Model. Now inspite of this, i kept getting the following error. NeedIndexError: The built-in indices are not efficient enough for this query and your data. Please add a composite index for this query. This query needs this index: - kind: Jobs properties: - name: __searchable_text_index - name: __searchable_text_index - name: __searchable_text_index - name: __searchable_text_index - name: __searchable_text_index I manually added, that to index file and that resulted in exploding index. That index error-ed out and I have vacuum it long back. None of this explains how 1gb of data gets translated to 28gb of data in appstore. I have another 3 gigs of raw data, sitting on my hard-disk which i am afraid to upload, since I am not sure it would scale. rgds, Venkatesh -- 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: Help with data-store statistics
Hi Venkatesh, When you say you have just one index, does that mean you set all the other properties to be unindexed? If not, you could have other indexes that are adding to your total. What kind of data is stored in the __search_text_index property and what would you say the average size of that data is if it is text data or number of properties if it is a multi-property field and how many unique values would you guess that that property contains? Since you're using that property twice in the index, my guess would be that you've got some kind of multiplier effect going kinda like an exploding index ( http://code.google.com/appengine/docs/java/datastore/queriesandindexes.html#Big_Entities_and_Exploding_Indexes). I'm curious to see what your answers are to these questions since I think a lot of us are interested in watching our data usage. Stephen On Jul 29, 7:42 pm, Venkatesh Rangarajan wrote: > I have uploaded about 1GB of text data. It shows as 28GB on the > dashboard. Here are the statistics > > Breakdown by Property Type > Property TypeSize > String825 MBytes > Integer8 MBytes > Date/Time42 KBytes > Float3 KBytes > Metadata6 GBytes > > Total number of entities Size of all entities > 1:50:59 ago 984,006 7 GBytes > > I can understand that 1 GB can become 7GB with all the meta-data and > stuff ( which is still high) , but why is the dashboard showing 28GB > and billing me for it ? > > I have just one index. > > __searchable_text_index ▲ , __searchable_text_index ▲ > Serving > > Please help. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: I can see some of my source code files with Appstats
Thanks! I agree with you, Brian. It should be mentioned in the Appstats documentation that it would possibly leak some source code. If you want to sell applications as "close source", I think you just have to remove Appstats. Or maybe Appstats can have an optional configuration to not display source code. Thanks for the replies! Albert On Jul 29, 11:14 pm, djidjadji wrote: > And that means that the admins of the application that is sold as > "close source" can also see the code if they know the format of the > URL. > These non-developer admins only should be able to manipulate the datastore. > > 2010/7/29 Andi Albrecht : > > > > > On Thu, Jul 29, 2010 at 1:38 PM, bFlood wrote: > >> I'm pretty sure only admins can see appstats but if that's not enough, > > > That's right. According to the appstats docs only admins should be > > able to see the appstats web interface and the source code of your > > files:http://code.google.com/appengine/docs/python/tools/appstats.html#Sett... > > >> you can alter the main appstats handler to only accept a specific user > >> (I did this for our app). Drilling into the source is sometimes pretty > >> helpful > > >> I do agree that somewhere in the appstats docs they should mention > >> leaking source code. > > >> cheers > >> brian > > >> On Jul 29, 4:07 am, Albert wrote: > >>> Hi! > > >>> I just wanted to bring it up again. > > >>> I can see some of my source code files with Appstats. > > >>> Most of which are the python files in my application. > > >>> Is this expected functionality? > > >>> Thanks! > > >>> On Jul 23, 9:13 am, Albert wrote: > > >>> > I can see some of my source code files with Appstats. > > >>> > Most of which are the python files in my application. > > >>> > Is this expected functionality? > > >> -- > >> 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 > > 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: Is it really bad to define global variables?
Yes Jeff, you are correct, constant values are safe to use. On Jul 29, 7:23 pm, Jeff Schwartz wrote: > Stephen > > With all due respect, you are stating the obvious and the use case you > present is like a text book example of last in first out/race ahead > condition. Perhaps if the coder had declared the static variable final and > initialized it in a static constructor it would have prevented multiple > assignments - assuming a single class loader of course and a single class > cache. > > Not that your point isn't valid. One does have to take care when using any > language feature, Java or any language for that matter. That is obvious I > hope. > > In any case I wouldn't advise anyone from avoiding using static class fields > if it fits their use case. With care they can and are used without any > problems. > > Jeff > > On Thu, Jul 29, 2010 at 9:02 PM, Stephen Johnson > wrote: > > > > > > > Hi Jeff (and possible Bill if you're using Java and not Python (not > > sure from the question since I don't know Python)) > > (Assuming Java) Using static variables could cause all kinds of > > trouble if proper care is not taken to limit their accessibility since > > they are shared and all requests that are being handled by that > > particular JVM instance be accessing the same data. That data would be > > accessible for simultaneous requests and would also survive after the > > requests have finished processing and would be available to the next > > request(s). This data would exist until GAE shutdown that particular > > app instance on that JVM (or restarted due to a deployment, etc.) > > Other JVM instances of the app would have different values. > > > So, for example, if we have: > > > public class Beta { > > public int x; > > } > > > public class Alpha { > > public static Beta beta; > > } > > > So if Servlet #1 receives a request and does: > > > Beta b = new Beta(); > > b.x = 5; > > Alpha.beta.x = b; > > > And then Servlet #2 receives a request and does: > > Beta b = new Beta(); > > b.x = 17; > > Alpha.beta.x = b; > > > And then Servlet #1 continues processing: > > b.x = b.x + 5; > > *** Oops! b.x is now 17, not 5 *** > > > Also, this Beta object will exist even after the requests have all > > finished since the static instance will stick around. Note, that this > > occurs even though these objects are not Serializable. > > > So, Jeff in response to: > > > If storing values in class static fields were problematic I'd guess that > > > this would break quite a number of web apps. What do you think? > > Well, static variables are by their very nature are supposed to be > > shared and are not a problem if used correctly and for that purpose, > > but in Bill's case he would be attempting to use a shared variable as > > if it were a private variable accessible only to a particular request > > and so would be used incorrectly and could cause problems for his web > > app. > > > Okay, so static variables may not be ok. What about storing the data > > in an instance variable of the Servlet?? Well, that wouldn't work > > either since the servlet container only creates one instance of each > > servlet class, thus the instance variables of the servlet classes act > > almost like static variables, that is, they are shared amongst all > > requests to that servlet and would survive even after the requests > > have finished processing since the servlet container will keep the > > servlet instances alive until the servlet container shuts down. > > > So, if Bill is using Java, then what should he do. Well, > > 1.) I'm not sure why you have to re-sync the object A that is passed > > in the constructors of the other objects with the handler's object A. > > In Java, these would be the same object unless you are making some > > sort of clone (or copy). So, I think your approach works. At least for > > Java. Unless you've left some detail out. > > 2.) So what you can do is you can use the ThreadLocal class to store > > object A. The ThreadLocal class acts like a Map but the values are > > specific to each thread and other threads don't see each other's > > values. So, at the beginning of the request you can store object A > > into the ThreadLocal object and then objects B, C, D, etc. can access > > that object by key. One caveat is that these values would be available > > to the next request that is handled by that thread so you'd need to > > make sure you clear these values at either the ending or beginning of > > each request. > > > Stephen > > > On Jul 29, 5:40 am, Jeff Schwartz wrote: > > > Hi Tim. > > > > Help me out here 'cause I don't understand what problem you see with > > storing > > > a value in a static field? > > > > As far as I know (and I am limiting my discussion here to Java and > > servlets) > > > objects are not persisted across http requests unless they are > > serializable > > > and stored in session or in memcache and that takes programming effort > > > meaning you have to deliberately program
[google-appengine] Help with data-store statistics
I have uploaded about 1GB of text data. It shows as 28GB on the dashboard. Here are the statistics Breakdown by Property Type Property TypeSize String825 MBytes Integer8 MBytes Date/Time42 KBytes Float3 KBytes Metadata6 GBytes Total number of entitiesSize of all entities 1:50:59 ago 984,006 7 GBytes I can understand that 1 GB can become 7GB with all the meta-data and stuff ( which is still high) , but why is the dashboard showing 28GB and billing me for it ? I have just one index. __searchable_text_index ▲ , __searchable_text_index ▲ Serving Please help. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-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: Is it really bad to define global variables?
Stephen With all due respect, you are stating the obvious and the use case you present is like a text book example of last in first out/race ahead condition. Perhaps if the coder had declared the static variable final and initialized it in a static constructor it would have prevented multiple assignments - assuming a single class loader of course and a single class cache. Not that your point isn't valid. One does have to take care when using any language feature, Java or any language for that matter. That is obvious I hope. In any case I wouldn't advise anyone from avoiding using static class fields if it fits their use case. With care they can and are used without any problems. Jeff On Thu, Jul 29, 2010 at 9:02 PM, Stephen Johnson wrote: > Hi Jeff (and possible Bill if you're using Java and not Python (not > sure from the question since I don't know Python)) > (Assuming Java) Using static variables could cause all kinds of > trouble if proper care is not taken to limit their accessibility since > they are shared and all requests that are being handled by that > particular JVM instance be accessing the same data. That data would be > accessible for simultaneous requests and would also survive after the > requests have finished processing and would be available to the next > request(s). This data would exist until GAE shutdown that particular > app instance on that JVM (or restarted due to a deployment, etc.) > Other JVM instances of the app would have different values. > > So, for example, if we have: > > public class Beta { > public int x; > } > > public class Alpha { > public static Beta beta; > } > > So if Servlet #1 receives a request and does: > > Beta b = new Beta(); > b.x = 5; > Alpha.beta.x = b; > > And then Servlet #2 receives a request and does: > Beta b = new Beta(); > b.x = 17; > Alpha.beta.x = b; > > And then Servlet #1 continues processing: > b.x = b.x + 5; > *** Oops! b.x is now 17, not 5 *** > > Also, this Beta object will exist even after the requests have all > finished since the static instance will stick around. Note, that this > occurs even though these objects are not Serializable. > > So, Jeff in response to: > > If storing values in class static fields were problematic I'd guess that > > this would break quite a number of web apps. What do you think? > Well, static variables are by their very nature are supposed to be > shared and are not a problem if used correctly and for that purpose, > but in Bill's case he would be attempting to use a shared variable as > if it were a private variable accessible only to a particular request > and so would be used incorrectly and could cause problems for his web > app. > > Okay, so static variables may not be ok. What about storing the data > in an instance variable of the Servlet?? Well, that wouldn't work > either since the servlet container only creates one instance of each > servlet class, thus the instance variables of the servlet classes act > almost like static variables, that is, they are shared amongst all > requests to that servlet and would survive even after the requests > have finished processing since the servlet container will keep the > servlet instances alive until the servlet container shuts down. > > So, if Bill is using Java, then what should he do. Well, > 1.) I'm not sure why you have to re-sync the object A that is passed > in the constructors of the other objects with the handler's object A. > In Java, these would be the same object unless you are making some > sort of clone (or copy). So, I think your approach works. At least for > Java. Unless you've left some detail out. > 2.) So what you can do is you can use the ThreadLocal class to store > object A. The ThreadLocal class acts like a Map but the values are > specific to each thread and other threads don't see each other's > values. So, at the beginning of the request you can store object A > into the ThreadLocal object and then objects B, C, D, etc. can access > that object by key. One caveat is that these values would be available > to the next request that is handled by that thread so you'd need to > make sure you clear these values at either the ending or beginning of > each request. > > Stephen > > On Jul 29, 5:40 am, Jeff Schwartz wrote: > > Hi Tim. > > > > Help me out here 'cause I don't understand what problem you see with > storing > > a value in a static field? > > > > As far as I know (and I am limiting my discussion here to Java and > servlets) > > objects are not persisted across http requests unless they are > serializable > > and stored in session or in memcache and that takes programming effort > > meaning you have to deliberately program the behavior. > > > > Yes there are statefull web frameworks such as Wicket and JSF for > instance > > that will persist objects accross requests without programming effort but > > even these are limited to model and view class instances for the most > part. > > > > As for classes (not instances
[google-appengine] Re: Is it really bad to define global variables?
Hi Jeff (and possible Bill if you're using Java and not Python (not sure from the question since I don't know Python)) (Assuming Java) Using static variables could cause all kinds of trouble if proper care is not taken to limit their accessibility since they are shared and all requests that are being handled by that particular JVM instance be accessing the same data. That data would be accessible for simultaneous requests and would also survive after the requests have finished processing and would be available to the next request(s). This data would exist until GAE shutdown that particular app instance on that JVM (or restarted due to a deployment, etc.) Other JVM instances of the app would have different values. So, for example, if we have: public class Beta { public int x; } public class Alpha { public static Beta beta; } So if Servlet #1 receives a request and does: Beta b = new Beta(); b.x = 5; Alpha.beta.x = b; And then Servlet #2 receives a request and does: Beta b = new Beta(); b.x = 17; Alpha.beta.x = b; And then Servlet #1 continues processing: b.x = b.x + 5; *** Oops! b.x is now 17, not 5 *** Also, this Beta object will exist even after the requests have all finished since the static instance will stick around. Note, that this occurs even though these objects are not Serializable. So, Jeff in response to: > If storing values in class static fields were problematic I'd guess that > this would break quite a number of web apps. What do you think? Well, static variables are by their very nature are supposed to be shared and are not a problem if used correctly and for that purpose, but in Bill's case he would be attempting to use a shared variable as if it were a private variable accessible only to a particular request and so would be used incorrectly and could cause problems for his web app. Okay, so static variables may not be ok. What about storing the data in an instance variable of the Servlet?? Well, that wouldn't work either since the servlet container only creates one instance of each servlet class, thus the instance variables of the servlet classes act almost like static variables, that is, they are shared amongst all requests to that servlet and would survive even after the requests have finished processing since the servlet container will keep the servlet instances alive until the servlet container shuts down. So, if Bill is using Java, then what should he do. Well, 1.) I'm not sure why you have to re-sync the object A that is passed in the constructors of the other objects with the handler's object A. In Java, these would be the same object unless you are making some sort of clone (or copy). So, I think your approach works. At least for Java. Unless you've left some detail out. 2.) So what you can do is you can use the ThreadLocal class to store object A. The ThreadLocal class acts like a Map but the values are specific to each thread and other threads don't see each other's values. So, at the beginning of the request you can store object A into the ThreadLocal object and then objects B, C, D, etc. can access that object by key. One caveat is that these values would be available to the next request that is handled by that thread so you'd need to make sure you clear these values at either the ending or beginning of each request. Stephen On Jul 29, 5:40 am, Jeff Schwartz wrote: > Hi Tim. > > Help me out here 'cause I don't understand what problem you see with storing > a value in a static field? > > As far as I know (and I am limiting my discussion here to Java and servlets) > objects are not persisted across http requests unless they are serializable > and stored in session or in memcache and that takes programming effort > meaning you have to deliberately program the behavior. > > Yes there are statefull web frameworks such as Wicket and JSF for instance > that will persist objects accross requests without programming effort but > even these are limited to model and view class instances for the most part. > > As for classes (not instances) persisting across requests (and eliminating > those classes that are servlet and other server pluming classes) what > classes are persisted across requests? > > If storing values in class static fields were problematic I'd guess that > this would break quite a number of web apps. What do you think? > > Jeff > > > > > > On Thu, Jul 29, 2010 at 7:31 AM, Tim Hoffman wrote: > > The biggest problem I see with storing the value at a class/module > > level > > is you really need to make sure you clean up after yourself, otherwise > > the > > value may still be set when the next request is processed and that > > value may not be > > appropriate. > > > I would personally always grab/cache values in request object, > > memcache, and or session > > as appropriate. > > > That way there is no danger of exposing data to other requests. > > > But hey, if you want to use module level caches go for it. > > > I have been running appe
[google-appengine] Vacuum Index : Resource is currently experiencing a short-term quota limit.
I am getting this message in my dashboard. "Resource is currently experiencing a short-term quota limit." The dashboard shows Workflow Backend Index Task Count [image: 0%] 0%381 of 9,223,372,036,854,775,808 I am trying to delete un-used indexes. Is there a problem happening while deleting these indexes. The index was in error state previous and i tried vaccuuming. Appid : payrate Rgds -- 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] Reportlab.zip - can´t deploy to google appengine
Hi, Get this error when debugging my application Import reportlab with success, but can´t deploy to google appengine pydev debugger: warning: psyco not available for speedups (the debugger will still work correctly, but a bit slower) pydev debugger: starting Status: 404 Not Found Content-Type: text/html; charset=utf-8 Cache-Control: no-cache Expires: Fri, 01 Jan 1990 00:00:00 GMT Content-Length: 0 Exception exceptions.AttributeError: "'NoneType' object has no attribute 'print_exc'" in > ignored -- 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] Crob Job not getting started
I have configured cron job for my application[Java] as specified in the following URL: http://code.google.com/appengine/docs/java/config/cron.html But when i deploy this to GAE, my cron job not getting started. Can anybody please help me in solving this problem. -- 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: Same CNAME domain in multiple accounts
Yes, this would work for deployment in a small group, but this doesn't work so well for Enterprise deployments where multiple teams are involved. In our deployment workflow we have separate teams taking care of dev. vs. production applications. In order to push an app to production our Production team takes the application from the Development environment (once tested, QAed, etc.) and then pushes it out to production. They want to make sure that no one, except those that are supposed to, can touch production deployments. In the scenario of having two apps under the same account, there is still the possibility that out of say 10 developers working on the application, one could mistakenly (or potentially on purpose) work with the wrong application. Maybe there are more knobs and switches there for access control which I haven't explored? Also, we would like to separate costs between what our production environment is using and what our development environment is using. I'm not very clear if this information is readily available. Since we're still in our free quota I'm not clear on how this is can be accomplished either and separate accounts would also help... Dre On Jul 29, 4:20 pm, Roberto Saccon wrote: > maybe I am missing your point, but you can publish your app with two > different applications, stable versions two one app-ID, unstable ones > with another app-ID. Then you map the stable app towww.example.com > and the unstable one to dev.example.com > > -- > Roberto > > On Jul 28, 7:00 pm, Dre wrote: > > > > > > > Hi, > > > I would like to separate out our dev and production accounts for App > > Engine so that developers can safely use the dev account without > > affecting production. For each account I would like to have well known > > names for the applications under the same domain. For instance: > > > dev account -> dev.example.com > > production account ->www.example.com > > > To create these CNAMEs I need to register the domain under the same > > account in Google Apps. However, I can't seem to register the same > > domain under two different accounts so I cannot set this scenario up. > > > Is there any way to get around the requirement of using Google Apps to > > register the domain? Not sure why I need to prove I own the domain if > > I have the power to setup the CNAMEs with my DNS provider anyway. > > > Maybe there is another accepted workflow on how to separate dev. and > > production environments? > > > Thanks, > > > Dre -- 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: Same CNAME domain in multiple accounts
maybe I am missing your point, but you can publish your app with two different applications, stable versions two one app-ID, unstable ones with another app-ID. Then you map the stable app to www.example.com and the unstable one to dev.example.com -- Roberto On Jul 28, 7:00 pm, Dre wrote: > Hi, > > I would like to separate out our dev and production accounts for App > Engine so that developers can safely use the dev account without > affecting production. For each account I would like to have well known > names for the applications under the same domain. For instance: > > dev account -> dev.example.com > production account ->www.example.com > > To create these CNAMEs I need to register the domain under the same > account in Google Apps. However, I can't seem to register the same > domain under two different accounts so I cannot set this scenario up. > > Is there any way to get around the requirement of using Google Apps to > register the domain? Not sure why I need to prove I own the domain if > I have the power to setup the CNAMEs with my DNS provider anyway. > > Maybe there is another accepted workflow on how to separate dev. and > production environments? > > Thanks, > > Dre -- 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] Http 404 - Not Found
Hi, When running my app with reportlab, get this error message INFO 2010-07-29 22:46:12,180 appengine_rpc.py:159] Server: appengine.google.com INFO 2010-07-29 22:46:12,187 appcfg.py:357] Checking for updates to the SDK. INFO 2010-07-29 22:46:13,608 appcfg.py:371] The SDK is up to date. WARNING 2010-07-29 22:46:13,609 datastore_file_stub.py:634] Could not read datastore data from c:\users\hp\appdata\local\temp \dev_appserver.datastore INFO 2010-07-29 22:46:13,697 dev_appserver_main.py:431] Running application sample-app on port : http://localhost: INFO 2010-07-29 22:46:49,000 py_zipimport.py:108] zipimporter('reportlab.zip', '') INFO 2010-07-29 22:46:49,005 py_zipimport.py:108] zipimporter('C:\ \Users\\HP\\Documents\\Teste\\src\\reportlab.zip', '') WARNING 2010-07-29 22:46:49,177 dev_appserver.py:1168] Blocking access to skipped file "c:\users\hp\documents\teste\src\~\library \fonts" INFO 2010-07-29 22:46:49,742 dev_appserver.py:3268] "GET / HTTP/ 1.1" 404 - INFO 2010-07-29 22:46:49,750 dev_appserver_index.py:205] Updating C:\Users\HP\Documents\Teste\src\index.yaml INFO 2010-07-29 22:46:49,834 dev_appserver.py:3268] "GET / favicon.ico HTTP/1.1" 404 - It seems that dev_appserver.py is blocking acess to Library/fonts -- 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: shifts2009.appspot.com - HTTP 404 Not found
Daniel, can you follow the steps I posted in the other thread? This is likely something we need to work out with your ISP. On Thu, Jul 29, 2010 at 12:44 PM, Daniel wrote: > Its some sort of a "bug" dont knows whos fault its > > for some reason the appspot does not work properly for israel > > > its annoying like hell!! > > > it will work for u if u try https instead of http > > what is your ISP? > > this error affects all appspot.com > > google ppl please fix it > > On Jul 29, 9:05 am, benzion18 wrote: > > Hi, > > > > I have my applicationhttp://shifts2009.appspot.comworking OK for > > more than a year. Last days most of the time I get "HTTP 404 Not > > found" when I try to visit it. I'm not over quota. What's wrong? > > -- > 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.
Re: [google-appengine] Re: Google Account
on python its _ah/login or something like that. - Cheers, def AlonCarmel(request) import simplejson as json contact = {} contant['email'] = 'a...@aloncarmel.me' contact['twitter'] = '@aloncarmel' contact['web'] = 'http://aloncarmel.me' contact['phone'] = '+972-54-4860380' return HttpResponse(json.dumps(contact)) * If you received an unsolicited email from by mistake that wasn't of your matter please delete immediately. All E-mail sent from Alon Carmel is copyrighted to Alon Carmel 2008. Any details revealed in e-mails sent by Alon Carmel are owned by the Author only. Any attempt to duplicate or imitate any of the Content is prohibited under copyright law 2008. On Thu, Jul 29, 2010 at 8:34 PM, Geoffrey Spear wrote: > You probably don't want your user to be logged in using Google's > servers and then get redirected to localhost. > > Use the Users API to generate the login URL. > > On Jul 29, 5:55 am, Tsolmon Narantsogt wrote: > > Hi guys > > > > I have a question ? > > 1) How to login from my google account ? > > > > i tried this code > > https://www.google.com/accounts/ServiceLogin?service=ah&continue=http..."; > > > > >Sign in > > > > but it's not working . > > > > Help me guys > > > > Regards > > Tsolmon > > -- > 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: shifts2009.appspot.com - HTTP 404 Not found
Its some sort of a "bug" dont knows whos fault its for some reason the appspot does not work properly for israel its annoying like hell!! it will work for u if u try https instead of http what is your ISP? this error affects all appspot.com google ppl please fix it On Jul 29, 9:05 am, benzion18 wrote: > Hi, > > I have my applicationhttp://shifts2009.appspot.comworking OK for > more than a year. Last days most of the time I get "HTTP 404 Not > found" when I try to visit it. I'm not over quota. What's wrong? -- 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: Access from Israel
On Jul 30, 2010, at 1:35 AM, Ikai L (Google) wrote: > Can you guys provide us with this information? Email me directly if you don't > want to expose sensitive info: > > 1) Your IP address (This works pretty well: http://whatismyipaddress.com/) > 2) Do a DNS lookup of www.appspot.com (From the command line - in Linux/OS X: > nslookup www.appspot.com, in Windows just do a "ping" and it should show the > address, I don't remember if there is a Windows analog) Should also be nslookup on Windows. Jan Michael Ibanez jmiba...@gmail.com -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Can we run PHP and Ruby on AppEngine
Oh, that's not an issue. I was just wondering if I could do it, at all. On Jul 28, 3:12 pm, moissinac wrote: > Attention > PHP supported byQuercusdoesn't imply that all the library and > extensions supported by PHP are supported on GAE... it just imply that > the language is supported > and there is a lack of information on supported extensions (XML? > WS?...) -- 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: Access from Israel
Can you guys provide us with this information? Email me directly if you don't want to expose sensitive info: 1) Your IP address (This works pretty well: http://whatismyipaddress.com/) 2) Do a DNS lookup of www.appspot.com (From the command line - in Linux/OS X: nslookup www.appspot.com, in Windows just do a "ping" and it should show the address, I don't remember if there is a Windows analog) 3) traceroute to ip returned from dns for www.appspot.com (From the command line - Linux/OS X: traceroute www.appspot.com, Windows: tracert www.appspot.com) We thought we figured out what the cause of this was, but it seems like we were mistaken. We'll contact Bezeq once we've determined what the issue is. On Wed, Jul 28, 2010 at 11:32 PM, Alon Carmel wrote: > Same here. https works fine. http is 404. > no hebrew, no netex. nothing. > Bezeq International ISP user too. > > > I tried contacting israeli google office CTO Yosi matias but no response. > Drives me insane. > I can access the appspot servers when i surf my own domain > http://www.devunity.com but no appspot for me. > > - > Cheers, > > def AlonCarmel(request) > import simplejson as json > contact = {} > contant['email'] = 'a...@aloncarmel.me' > contact['twitter'] = '@aloncarmel' > contact['web'] = 'http://aloncarmel.me' > contact['phone'] = '+972-54-4860380' > return HttpResponse(json.dumps(contact)) > > * If you received an unsolicited email from by mistake that wasn't of your > matter please delete immediately. All E-mail sent from Alon Carmel is > copyrighted to Alon Carmel 2008. Any details revealed in e-mails sent by > Alon Carmel are owned by the Author only. Any attempt to duplicate or > imitate any of the Content is prohibited under copyright law 2008. > > > > On Thu, Jul 29, 2010 at 8:13 AM, Daniel wrote: > >> https works for me >> >> in firefox im getting "Not Found" >> >> in IE im getting 404 >> >> On Jul 29, 1:41 am, "Ikai L (Google)" wrote: >> > Can you try https? >> > >> > Also, can you tell me what error you get? Is it a 404, timeout, 500, >> etc? >> > >> > On Wed, Jul 28, 2010 at 1:45 PM, Daniel wrote: >> > > it doesn't not have hebrew letters >> > >> > > and i dont have netex service... i confirmed that >> > >> > > i cant even enter thewww.appspot.com >> > >> > > i can acces it only if i browse via some free anonymous proxy that i >> > > found over the web >> > >> > > but if i remove the proxy i cant enter thewww.appspot.comno more... >> > >> > > On Jul 28, 8:43 pm, "Ikai L (Google)" wrote: >> > > > Daniel, can you verify two things for me: >> > >> > > > 1. Do the URLs you are accessing have Hebrew characters in them? >> > > > 2. Can you call Beseq and ask them to remove the Netex service, then >> come >> > > > back and confirm that this resolves the issue? >> > >> > > > On Tue, Jul 27, 2010 at 2:31 PM, Daniel wrote: >> > > > > Im a Bezeq international user too >> > >> > > > > and im having this annoying issue too >> > >> > > > > it drive me crazy!!! its like we surf in china or iran.. >> > >> > > > > please solve this issue asap >> > >> > > > > cause i cant use anything from appspot in this way >> > >> > > > > thx ahead >> > >> > > > > On Jul 19, 10:50 pm, "Ikai L (Google)" wrote: >> > > > > > Hey guys, >> > >> > > > > > The netex service captures URLs entered in Hebrew and searches >> for a >> > > > > correct >> > > > > > term in English. Could this be a possible cause of the 404s? Are >> > > users >> > > > > > entering Hebrew in their URLs? If you have an example URL in >> Hebrew >> > > it >> > > > > would >> > > > > > be very helpful. >> > >> > > > > > On Thu, Jul 8, 2010 at 10:30 AM, Alon Carmel < >> a...@aloncarmel.me> >> > > wrote: >> > > > > > > i got to tell you, im on bezeq int and im not seeing any >> problems >> > > > > accessing >> > > > > > > appspot.com domains. >> > >> > > > > > > - >> > > > > > > Cheers, >> > > > > > > public static function AlonCarmel() { >> > > > > > > //Contact me >> > > > > > > var email = '@aloncarmel.me'; >> > >> > > > > > > var twitter = '@aloncarmel'; >> > > > > > > var web = 'http://aloncarmel.me'; >> > > > > > > var phone = '+972-54-4860380'; >> > > > > > > } >> > >> > > > > > > * If you received an unsolicited email from by mistake that >> wasn't >> > > of >> > > > > your >> > > > > > > matter please delete immediately. All E-mail sent from Alon >> Carmel >> > > is >> > > > > > > copyrighted to Alon Carmel 2008. Any details revealed in >> e-mails >> > > sent >> > > > > by >> > > > > > > Alon Carmel are owned by the Author only. Any attempt to >> duplicate >> > > or >> > > > > > > imitate any of the Content is prohibited under copyright law >> 2008. >> > >> > > > > > > On Mon, Jun 7, 2010 at 8:47 AM, rainmaker < >> > > a.thesilent...@gmail.com >> > > > > >wrote: >> > >> > > > > > >> This is becoming a major inconvenience...any thoughts? >> > >> > > > > > >> On May 15, 12:46 pm, Alon Carmel wrote: >> > > > > > >> > im from israel with bezeq intern
[google-appengine] Re: Google Account
You probably don't want your user to be logged in using Google's servers and then get redirected to localhost. Use the Users API to generate the login URL. On Jul 29, 5:55 am, Tsolmon Narantsogt wrote: > Hi guys > > I have a question ? > 1) How to login from my google account ? > > i tried this code > href="https://www.google.com/accounts/ServiceLogin?service=ah&continue=http..."; > > >Sign in > > but it's not working . > > Help me guys > > Regards > Tsolmon -- 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] shifts2009.appspot.com - HTTP 404 Not found
Hi, I have my application http://shifts2009.appspot.com working OK for more than a year. Last days most of the time I get "HTTP 404 Not found" when I try to visit it. I'm not over quota. What's wrong? -- 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] DatastoreNeedIndexException: no matching index found.
I have an index serving like the following: FoodCategory isMainCategory ▲ , name ▲ Serving And I have the following query: select from FoodCategory where isMainCategory=true order by name However i always get: com.google.appengine.api.datastore.DatastoreNeedIndexException: no matching index found.. Why is that? another question is, i don't know why the auto index file created 2 indexes one for FoodCategory and another for the same but all upper case FOODCATEGORY -- 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] Same CNAME domain in multiple accounts
Hi, I would like to separate out our dev and production accounts for App Engine so that developers can safely use the dev account without affecting production. For each account I would like to have well known names for the applications under the same domain. For instance: dev account -> dev.example.com production account -> www.example.com To create these CNAMEs I need to register the domain under the same account in Google Apps. However, I can't seem to register the same domain under two different accounts so I cannot set this scenario up. Is there any way to get around the requirement of using Google Apps to register the domain? Not sure why I need to prove I own the domain if I have the power to setup the CNAMEs with my DNS provider anyway. Maybe there is another accepted workflow on how to separate dev. and production environments? Thanks, Dre -- 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] "too many indexed properties" from bulk loader
I have an entity with a ListProperty that can have many entries. When calling put() on one of these entities I originally got the "too many indexed properties" error message, and resolved it by adding indexed=False to the property. Now however when I try to load the same data using the bulk loader I get the error again. Is there an option for bulkloader.yaml that I'm missing? 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] Google Voice on the health status dashboard
Hello, Not sure if this is the right group to post this to, but was curious as to why Google Voice is not on the Google uptime status dashboard, e.g. http://www.google.com/appsstatus#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: Can we run PHP and Ruby on AppEngine
Attention PHP supported by Quercus doesn't imply that all the library and extensions supported by PHP are supported on GAE... it just imply that the language is supported and there is a lack of information on supported extensions (XML? WS?...) -- 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: Is it really bad to define global variables?
Hi On Jul 29, 11:32 pm, Jeff Schwartz wrote: > I wasn't the original poster but I was curious about your caution regarding > class static fields. > Sorry missed that. Having not done any development with java on appengine all my development (and hence statements about module level caches) > Which Python framework are you using if you don't mind me asking? > www.polytechnic.wa.edu.au is based on repoze.bfg (http:// bfg.repoze.org/) The current project I am working on is based on bobo, zope.component, formish and repoze.what. (and using a simple bfg based cms for help content). Rgds T > Jeff > > > > > > On Thu, Jul 29, 2010 at 10:49 AM, Tim Hoffman wrote: > > Hi > > > On Jul 29, 8:40 pm, Jeff Schwartz wrote: > > > Hi Tim. > > > > Help me out here 'cause I don't understand what problem you see with > > storing > > > a value in a static field? > > > Wouldn't have a clue. I don't use java on appengine. You didn't > > mention in your original > > post you where specifically talking about java. > > > In python class/module cached definitions last for as long as the app > > instance is running. > > > T > > > > As far as I know (and I am limiting my discussion here to Java and > > servlets) > > > objects are not persisted across http requests unless they are > > serializable > > > and stored in session or in memcache and that takes programming effort > > > meaning you have to deliberately program the behavior. > > > > Yes there are statefull web frameworks such as Wicket and JSF for > > instance > > > that will persist objects accross requests without programming effort but > > > even these are limited to model and view class instances for the most > > part. > > > > As for classes (not instances) persisting across requests (and > > eliminating > > > those classes that are servlet and other server pluming classes) what > > > classes are persisted across requests? > > > > If storing values in class static fields were problematic I'd guess that > > > this would break quite a number of web apps. What do you think? > > > > Jeff > > > > On Thu, Jul 29, 2010 at 7:31 AM, Tim Hoffman wrote: > > > > The biggest problem I see with storing the value at a class/module > > > > level > > > > is you really need to make sure you clean up after yourself, otherwise > > > > the > > > > value may still be set when the next request is processed and that > > > > value may not be > > > > appropriate. > > > > > I would personally always grab/cache values in request object, > > > > memcache, and or session > > > > as appropriate. > > > > > That way there is no danger of exposing data to other requests. > > > > > But hey, if you want to use module level caches go for it. > > > > > I have been running appengine projects ever since it was released and > > > > started out with some > > > > module level cache, and regretted it ever since. It was has proven to > > > > be difficult ensure the cache > > > > has been cleaned up, where as memcahce you can control out of > > > > process. (You can't shut an instance down > > > > if it has an error and you can't remove a value from a module cache) > > > > > Rgds > > > > > T > > > > > On Jul 29, 4:19 pm, Bill Edwards wrote: > > > > > Hey guys, > > > > > > Is it horrible to use global variables? I am currently executing a > > > > > query at the beginning of my handler and storing the query result > > > > > within class object A. I subsequently need to access the query > > result > > > > > within multiple different class objects, say B, C, and D. It has > > been > > > > > recommended to me to cache object A in the request object, but i need > > > > > to access the variable from within various class objects, so I'm > > > > > finding that I have to pass the object A in to the constructor for > > > > > every new object i define, and then sync any changed state of object > > A > > > > > with the handler's version of object A when the various class object > > > > > functions are completed. > > > > > > So it really seems like the simplest way to do things is to just > > > > > define a global variable. Is there a better option? Can I think I > > > > > would ideally want to create something liek a session object to store > > > > > the global object. > > > > > > Thanks! > > > > > Bill > > > > > -- > > > > 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. > > > > -- > > > -- > > > Jeff > > > -- > > 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.c
Re: [google-appengine] Re: Is it really bad to define global variables?
I wasn't the original poster but I was curious about your caution regarding class static fields. Which Python framework are you using if you don't mind me asking? Jeff On Thu, Jul 29, 2010 at 10:49 AM, Tim Hoffman wrote: > Hi > > On Jul 29, 8:40 pm, Jeff Schwartz wrote: > > Hi Tim. > > > > Help me out here 'cause I don't understand what problem you see with > storing > > a value in a static field? > > Wouldn't have a clue. I don't use java on appengine. You didn't > mention in your original > post you where specifically talking about java. > > In python class/module cached definitions last for as long as the app > instance is running. > > T > > > > > > > > As far as I know (and I am limiting my discussion here to Java and > servlets) > > objects are not persisted across http requests unless they are > serializable > > and stored in session or in memcache and that takes programming effort > > meaning you have to deliberately program the behavior. > > > > Yes there are statefull web frameworks such as Wicket and JSF for > instance > > that will persist objects accross requests without programming effort but > > even these are limited to model and view class instances for the most > part. > > > > As for classes (not instances) persisting across requests (and > eliminating > > those classes that are servlet and other server pluming classes) what > > classes are persisted across requests? > > > > If storing values in class static fields were problematic I'd guess that > > this would break quite a number of web apps. What do you think? > > > > Jeff > > > > > > > > > > > > On Thu, Jul 29, 2010 at 7:31 AM, Tim Hoffman wrote: > > > The biggest problem I see with storing the value at a class/module > > > level > > > is you really need to make sure you clean up after yourself, otherwise > > > the > > > value may still be set when the next request is processed and that > > > value may not be > > > appropriate. > > > > > I would personally always grab/cache values in request object, > > > memcache, and or session > > > as appropriate. > > > > > That way there is no danger of exposing data to other requests. > > > > > But hey, if you want to use module level caches go for it. > > > > > I have been running appengine projects ever since it was released and > > > started out with some > > > module level cache, and regretted it ever since. It was has proven to > > > be difficult ensure the cache > > > has been cleaned up, where as memcahce you can control out of > > > process. (You can't shut an instance down > > > if it has an error and you can't remove a value from a module cache) > > > > > Rgds > > > > > T > > > > > On Jul 29, 4:19 pm, Bill Edwards wrote: > > > > Hey guys, > > > > > > Is it horrible to use global variables? I am currently executing a > > > > query at the beginning of my handler and storing the query result > > > > within class object A. I subsequently need to access the query > result > > > > within multiple different class objects, say B, C, and D. It has > been > > > > recommended to me to cache object A in the request object, but i need > > > > to access the variable from within various class objects, so I'm > > > > finding that I have to pass the object A in to the constructor for > > > > every new object i define, and then sync any changed state of object > A > > > > with the handler's version of object A when the various class object > > > > functions are completed. > > > > > > So it really seems like the simplest way to do things is to just > > > > define a global variable. Is there a better option? Can I think I > > > > would ideally want to create something liek a session object to store > > > > the global object. > > > > > > Thanks! > > > > Bill > > > > > -- > > > 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. > > > > -- > > -- > > Jeff > > -- > 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. > > -- -- Jeff -- 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: I can see some of my source code files with Appstats
And that means that the admins of the application that is sold as "close source" can also see the code if they know the format of the URL. These non-developer admins only should be able to manipulate the datastore. 2010/7/29 Andi Albrecht : > On Thu, Jul 29, 2010 at 1:38 PM, bFlood wrote: >> I'm pretty sure only admins can see appstats but if that's not enough, > > That's right. According to the appstats docs only admins should be > able to see the appstats web interface and the source code of your > files: > http://code.google.com/appengine/docs/python/tools/appstats.html#Setting_Up_the_Administrative_Interface > >> you can alter the main appstats handler to only accept a specific user >> (I did this for our app). Drilling into the source is sometimes pretty >> helpful >> >> I do agree that somewhere in the appstats docs they should mention >> leaking source code. >> >> cheers >> brian >> >> On Jul 29, 4:07 am, Albert wrote: >>> Hi! >>> >>> I just wanted to bring it up again. >>> >>> I can see some of my source code files with Appstats. >>> >>> Most of which are the python files in my application. >>> >>> Is this expected functionality? >>> >>> Thanks! >>> >>> On Jul 23, 9:13 am, Albert wrote: >>> >>> >>> >>> > I can see some of my source code files with Appstats. >>> >>> > Most of which are the python files in my application. >>> >>> > Is this expected functionality? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google App Engine" group. >> To post to this group, send email to google-appeng...@googlegroups.com. >> To unsubscribe from this group, send email to >> google-appengine+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/google-appengine?hl=en. >> >> > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to google-appeng...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Is it really bad to define global variables?
Hi On Jul 29, 8:40 pm, Jeff Schwartz wrote: > Hi Tim. > > Help me out here 'cause I don't understand what problem you see with storing > a value in a static field? Wouldn't have a clue. I don't use java on appengine. You didn't mention in your original post you where specifically talking about java. In python class/module cached definitions last for as long as the app instance is running. T > > As far as I know (and I am limiting my discussion here to Java and servlets) > objects are not persisted across http requests unless they are serializable > and stored in session or in memcache and that takes programming effort > meaning you have to deliberately program the behavior. > > Yes there are statefull web frameworks such as Wicket and JSF for instance > that will persist objects accross requests without programming effort but > even these are limited to model and view class instances for the most part. > > As for classes (not instances) persisting across requests (and eliminating > those classes that are servlet and other server pluming classes) what > classes are persisted across requests? > > If storing values in class static fields were problematic I'd guess that > this would break quite a number of web apps. What do you think? > > Jeff > > > > > > On Thu, Jul 29, 2010 at 7:31 AM, Tim Hoffman wrote: > > The biggest problem I see with storing the value at a class/module > > level > > is you really need to make sure you clean up after yourself, otherwise > > the > > value may still be set when the next request is processed and that > > value may not be > > appropriate. > > > I would personally always grab/cache values in request object, > > memcache, and or session > > as appropriate. > > > That way there is no danger of exposing data to other requests. > > > But hey, if you want to use module level caches go for it. > > > I have been running appengine projects ever since it was released and > > started out with some > > module level cache, and regretted it ever since. It was has proven to > > be difficult ensure the cache > > has been cleaned up, where as memcahce you can control out of > > process. (You can't shut an instance down > > if it has an error and you can't remove a value from a module cache) > > > Rgds > > > T > > > On Jul 29, 4:19 pm, Bill Edwards wrote: > > > Hey guys, > > > > Is it horrible to use global variables? I am currently executing a > > > query at the beginning of my handler and storing the query result > > > within class object A. I subsequently need to access the query result > > > within multiple different class objects, say B, C, and D. It has been > > > recommended to me to cache object A in the request object, but i need > > > to access the variable from within various class objects, so I'm > > > finding that I have to pass the object A in to the constructor for > > > every new object i define, and then sync any changed state of object A > > > with the handler's version of object A when the various class object > > > functions are completed. > > > > So it really seems like the simplest way to do things is to just > > > define a global variable. Is there a better option? Can I think I > > > would ideally want to create something liek a session object to store > > > the global object. > > > > Thanks! > > > Bill > > > -- > > 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. > > -- > -- > Jeff -- 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: Please help! App Engine mail marked as spam.
Look here: http://www.kyle-jensen.com/increase-email-deliverability-on-appengine-by It seems that the correct SPF record to use is actually: v=spf1 include:aspmx.googlemail.com ~all On Jul 29, 4:20 am, Greg wrote: > I'm having the same problem. I have SPF records set up, and I'm pro- > actively registering my domain for white-listing with major spam > filter vendors, but it doesn't seem to make much difference. > > The value of my app plummets if email doesn't work, so if I can't > improve things I may have to pass email to another service to deliver. > > If anyone has any other suggestions, it would be great to hear them. -- 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: Is it really bad to define global variables?
Hi Tim. Help me out here 'cause I don't understand what problem you see with storing a value in a static field? As far as I know (and I am limiting my discussion here to Java and servlets) objects are not persisted across http requests unless they are serializable and stored in session or in memcache and that takes programming effort meaning you have to deliberately program the behavior. Yes there are statefull web frameworks such as Wicket and JSF for instance that will persist objects accross requests without programming effort but even these are limited to model and view class instances for the most part. As for classes (not instances) persisting across requests (and eliminating those classes that are servlet and other server pluming classes) what classes are persisted across requests? If storing values in class static fields were problematic I'd guess that this would break quite a number of web apps. What do you think? Jeff On Thu, Jul 29, 2010 at 7:31 AM, Tim Hoffman wrote: > The biggest problem I see with storing the value at a class/module > level > is you really need to make sure you clean up after yourself, otherwise > the > value may still be set when the next request is processed and that > value may not be > appropriate. > > I would personally always grab/cache values in request object, > memcache, and or session > as appropriate. > > That way there is no danger of exposing data to other requests. > > But hey, if you want to use module level caches go for it. > > I have been running appengine projects ever since it was released and > started out with some > module level cache, and regretted it ever since. It was has proven to > be difficult ensure the cache > has been cleaned up, where as memcahce you can control out of > process. (You can't shut an instance down > if it has an error and you can't remove a value from a module cache) > > Rgds > > T > > On Jul 29, 4:19 pm, Bill Edwards wrote: > > Hey guys, > > > > Is it horrible to use global variables? I am currently executing a > > query at the beginning of my handler and storing the query result > > within class object A. I subsequently need to access the query result > > within multiple different class objects, say B, C, and D. It has been > > recommended to me to cache object A in the request object, but i need > > to access the variable from within various class objects, so I'm > > finding that I have to pass the object A in to the constructor for > > every new object i define, and then sync any changed state of object A > > with the handler's version of object A when the various class object > > functions are completed. > > > > So it really seems like the simplest way to do things is to just > > define a global variable. Is there a better option? Can I think I > > would ideally want to create something liek a session object to store > > the global object. > > > > Thanks! > > Bill > > -- > 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. > > -- -- Jeff -- 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: I can see some of my source code files with Appstats
On Thu, Jul 29, 2010 at 1:38 PM, bFlood wrote: > I'm pretty sure only admins can see appstats but if that's not enough, That's right. According to the appstats docs only admins should be able to see the appstats web interface and the source code of your files: http://code.google.com/appengine/docs/python/tools/appstats.html#Setting_Up_the_Administrative_Interface > you can alter the main appstats handler to only accept a specific user > (I did this for our app). Drilling into the source is sometimes pretty > helpful > > I do agree that somewhere in the appstats docs they should mention > leaking source code. > > cheers > brian > > On Jul 29, 4:07 am, Albert wrote: >> Hi! >> >> I just wanted to bring it up again. >> >> I can see some of my source code files with Appstats. >> >> Most of which are the python files in my application. >> >> Is this expected functionality? >> >> Thanks! >> >> On Jul 23, 9:13 am, Albert wrote: >> >> >> >> > I can see some of my source code files with Appstats. >> >> > Most of which are the python files in my application. >> >> > Is this expected functionality? > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to google-appeng...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: I can see some of my source code files with Appstats
I'm pretty sure only admins can see appstats but if that's not enough, you can alter the main appstats handler to only accept a specific user (I did this for our app). Drilling into the source is sometimes pretty helpful I do agree that somewhere in the appstats docs they should mention leaking source code. cheers brian On Jul 29, 4:07 am, Albert wrote: > Hi! > > I just wanted to bring it up again. > > I can see some of my source code files with Appstats. > > Most of which are the python files in my application. > > Is this expected functionality? > > Thanks! > > On Jul 23, 9:13 am, Albert wrote: > > > > > I can see some of my source code files with Appstats. > > > Most of which are the python files in my application. > > > Is this expected functionality? -- 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: Is it really bad to define global variables?
The biggest problem I see with storing the value at a class/module level is you really need to make sure you clean up after yourself, otherwise the value may still be set when the next request is processed and that value may not be appropriate. I would personally always grab/cache values in request object, memcache, and or session as appropriate. That way there is no danger of exposing data to other requests. But hey, if you want to use module level caches go for it. I have been running appengine projects ever since it was released and started out with some module level cache, and regretted it ever since. It was has proven to be difficult ensure the cache has been cleaned up, where as memcahce you can control out of process. (You can't shut an instance down if it has an error and you can't remove a value from a module cache) Rgds T On Jul 29, 4:19 pm, Bill Edwards wrote: > Hey guys, > > Is it horrible to use global variables? I am currently executing a > query at the beginning of my handler and storing the query result > within class object A. I subsequently need to access the query result > within multiple different class objects, say B, C, and D. It has been > recommended to me to cache object A in the request object, but i need > to access the variable from within various class objects, so I'm > finding that I have to pass the object A in to the constructor for > every new object i define, and then sync any changed state of object A > with the handler's version of object A when the various class object > functions are completed. > > So it really seems like the simplest way to do things is to just > define a global variable. Is there a better option? Can I think I > would ideally want to create something liek a session object to store > the global object. > > Thanks! > Bill -- 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] Is it really bad to define global variables?
Use session state to store values that are unique to each user. Use memcache to store values at the application level that are share among all users. Session state will persist your data across requests. Memcache can do likewise but its memory can be reclaimed by the system so there is no guarantee that you will have access to your data and you have to be prepared to recreate it. Also keep in mind that both session state and memcache have limits on the amount of storage that they provide which you can find in the documentation. You can also use the datastore but that comes with a whole different set of issues and I wouldn't use it as a temporary cache if there were better alternatives. I always look for the simplest solution and if I only needed to store data within a single request I would use an instance reference or a class reference depending on whether or not the data is a singleton or not. If my needs extended beyond a single request I would use session or memcache. Jeff -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Google Account
Hi guys I have a question ? 1) How to login from my google account ? i tried this code https://www.google.com/accounts/ServiceLogin?service=ah&continue=http://localhost:8080/_ah/login%3Fcontinue%3Dhttp://localhost:8080/Sign in but it's not working . Help me guys Regards Tsolmon -- 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] Is it really bad to define global variables?
Why not save it to session then? Why not use memcache? Isnt static classes for that? if you run it at the start it will run once for all users and you can call it over and over with the same return. no? http://en.wikipedia.org/wiki/Singleton_pattern - Cheers, def AlonCarmel(request) import simplejson as json contact = {} contant['email'] = 'a...@aloncarmel.me' contact['twitter'] = '@aloncarmel' contact['web'] = 'http://aloncarmel.me' contact['phone'] = '+972-54-4860380' return HttpResponse(json.dumps(contact)) * If you received an unsolicited email from by mistake that wasn't of your matter please delete immediately. All E-mail sent from Alon Carmel is copyrighted to Alon Carmel 2008. Any details revealed in e-mails sent by Alon Carmel are owned by the Author only. Any attempt to duplicate or imitate any of the Content is prohibited under copyright law 2008. On Thu, Jul 29, 2010 at 11:19 AM, Bill Edwards wrote: > Hey guys, > > Is it horrible to use global variables? I am currently executing a > query at the beginning of my handler and storing the query result > within class object A. I subsequently need to access the query result > within multiple different class objects, say B, C, and D. It has been > recommended to me to cache object A in the request object, but i need > to access the variable from within various class objects, so I'm > finding that I have to pass the object A in to the constructor for > every new object i define, and then sync any changed state of object A > with the handler's version of object A when the various class object > functions are completed. > > So it really seems like the simplest way to do things is to just > define a global variable. Is there a better option? Can I think I > would ideally want to create something liek a session object to store > the global object. > > Thanks! > Bill > > -- > 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] Is it really bad to define global variables?
Hey guys, Is it horrible to use global variables? I am currently executing a query at the beginning of my handler and storing the query result within class object A. I subsequently need to access the query result within multiple different class objects, say B, C, and D. It has been recommended to me to cache object A in the request object, but i need to access the variable from within various class objects, so I'm finding that I have to pass the object A in to the constructor for every new object i define, and then sync any changed state of object A with the handler's version of object A when the various class object functions are completed. So it really seems like the simplest way to do things is to just define a global variable. Is there a better option? Can I think I would ideally want to create something liek a session object to store the global object. Thanks! Bill -- 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] HardDeadlineExceededError
i had that exact problem. I resolved it by cutting down the amount of processing from one process to tons of them. You can break all the mini calculations into mini tasks running asyc side by side and get the work done at the same time or even shorter. If tasks isnt the solution for you try the mapper class, google for it. it lets you catch the HardDeadlineExceededError and save your current job location and restart again at the same position. quick tip from what i've learned. google gives you extra few seconds before they break your process with HardDeadlineExceededError, its not something static but its around 2-3 seconds, you can do alot when you hit that. do try: catch on that and test it. For large datastore uploads and so on use the bulkloader tool. - Cheers, def AlonCarmel(request) import simplejson as json contact = {} contant['email'] = 'a...@aloncarmel.me' contact['twitter'] = '@aloncarmel' contact['web'] = 'http://aloncarmel.me' contact['phone'] = '+972-54-4860380' return HttpResponse(json.dumps(contact)) * If you received an unsolicited email from by mistake that wasn't of your matter please delete immediately. All E-mail sent from Alon Carmel is copyrighted to Alon Carmel 2008. Any details revealed in e-mails sent by Alon Carmel are owned by the Author only. Any attempt to duplicate or imitate any of the Content is prohibited under copyright law 2008. On Thu, Jul 29, 2010 at 8:29 AM, Lu wrote: > Hi, > > My application throws 'HardDeadlineExceededError' exception and i know > the reason is that google only allows at most 30 secs to give > response. However, I am doing large amounts of processing on the > server side and I cannot manage to give feedback under 30 secs. > > Is there any mechanism that can throw some whatever stuff back to > client every 30 secs and meanwhile still do the processing on the > server side? > > 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. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: I can see some of my source code files with Appstats
Hi! I just wanted to bring it up again. I can see some of my source code files with Appstats. Most of which are the python files in my application. Is this expected functionality? Thanks! On Jul 23, 9:13 am, Albert wrote: > I can see some of my source code files with Appstats. > > Most of which are the python files in my application. > > Is this expected functionality? -- 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.