Re: [google-appengine] One problem in catching webpage through google app engine
What kind of cache do you use? Memcache is cross instance, while app caching isn't. -- keakon My blog(Chinese): www.keakon.net Blog source code: https://bitbucket.org/keakon/doodle/ On Mon, Dec 20, 2010 at 2:52 PM, Jimmy wrote: > Hi, I want use google app engine to catch 15 webpages. My program is > correct on my PC. It's means the program can catch 15 pages. > But when I upload to google app engine, the program catch pages > randomly. The program can not catch 15 pages correctly through google > app engine. > I want to know why this problem happen. And thanks for your reply. > > -- > 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] One problem in catching webpage through google app engine
Hi, I want use google app engine to catch 15 webpages. My program is correct on my PC. It's means the program can catch 15 pages. But when I upload to google app engine, the program catch pages randomly. The program can not catch 15 pages correctly through google app engine. I want to know why this problem happen. And thanks for your reply. -- 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] Session User
Hi Wasfi, Use gaesessions. I am using this library and its very lightweight and robust. and can be used with webApps framework. it can be configured to use cookies, memcache and the datastore. read the advantages here : https://github.com/dound/gae-sessions and then follow the directions to install it, Installation is very simple and requires < a minute to get started . After that when the user logs in, you can store the users id or key in the session session['uid'] = value and in the subsequent classes or main handler you can check if the session['uid'] has a value. if not then the user is not logged in, and you redirect her to the login page. hope this helps :) Warm Regards Sarfaraz Farooqui -- Strong and bitter words indicate a weak cause On Sun, Dec 19, 2010 at 6:57 PM, Mohamed Wasfi wrote: > I am developing an app where I don't want to force the users to use > google authentication or openID but just sign in with their basic e- > mail addresses. I will create the login and logout pages myself. Can I > get a suggestion on how to keep track of the current user in the > session like what "user = users.get_current_user()" does. Maybe use > memcache? > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to google-appeng...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Appengine's Turkey problem
Robert, You are right, and that is exactly the reason why GAE is blocked right now. I am afraid Kaan is a little behind the times with the YouTube ban, which has since been lifted. The most recent ban, that also affects one of the IP addresses that ghs.google.com resolves to, is related to a copyright violation by a site running on GAE or Blogger. For people who are interested (and can read Turkish), you can find a copy of the court order here: http://imgur.com/gYzPl.jpg . The IP address 74.125.43.121 is clearly visible. Kaan, Turkish authorities have reverted to blocking IP address for good now. I don't think they will change that soon, since they have seen DNS blocking does not work as they want (too easy to circumvent). About your reachability problem, I am afraid there is hardly anything Google can do about it. I know it is frustrating (I have an app or two on GAE as well) but as others have said there are ways around it: 1. You can go the reverse proxy route. Others have suggested (I am afraid I don't remember who) on this very mailing list, to use a small Linux VPS instance on RackSpace to setup a reverse proxy for your site. It seems the ping times from there to GAE are very low and the cost is only around $10 a month. I already had some Windows services hosted on an EC2 instance on AWS and set up ARR on the IIS7 server to do the reverse proxy in about 10 minutes, and haven't looked back. 2. I came upon an alternative just the other day. It appears that if you set your DNS records to point to one of alternate the IP addresses of ghs.google.com, you won't have any problems. (source: http://www.burcakcubukcu.com/2010/12/bloggerda-bulunan-alan-adl-siteme.html) Now, I haven't tried this myself, but I presume it would work for GAE as well. I suggest you setup an A record for yourself such as " redirect.example.com" with the IP address contained in the linked article and CNAME you primary site (let's say "www.example.com" to " redirect.example.com"). If, and, hopefully, when, the ban is lifted, you can change the "redirect.example.com" from an A record to a CNAME record that points to "ghs.google.com" and you will be all set. YMMV, though. Best, Ufuk On Sun, Dec 19, 2010 at 12:20 AM, Robert Kluin wrote: > So what happens when they find an app hosted on App Engine they don't > like and block that? > > > > > > On Sat, Dec 18, 2010 at 14:57, Kaan Soral wrote: > > Actually Turkey doesn't block google, they block Youtube IP's, so the > > problem is probebly caused by shared IP's. > > > > So in my opinion the problem can be solved if Google uses seperate > > IP's for components. > > > > And for government blocking, they normally block domain names rather > > than IP's but for some reason they only block Youtube IP's because > > people just enter the site using seperate DNS etc. > > > > On Dec 17, 2:29 am, Tim Hoffman wrote: > >> Hi > >> > >> I don't really believe it is solvable by google. > >> > >> If they add a new pool of addresses for appengine, and some apps turn up > on > >> appengine that > >> any particular government doesn't like, they will block access to that > range > >> and you are > >> back in the same situation. > >> > >> All anyone can do is educate and lobby their government. > >> > >> Rgds > >> > >> Tim Hoffman > > > > -- > > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > > To post to this group, send email to google-appeng...@googlegroups.com. > > To unsubscribe from this group, send email to > google-appengine+unsubscr...@googlegroups.com > . > > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > > > > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to google-appeng...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] re: from google.appengine.ext.webapp import template
dear Martin I am also using 1.4. and it seems to be working fine with django what does the trace tell you? regards On Dec 19, 2010 9:13 AM, "Martin Webb" wrote: > hi all... > Since we have moved to 1.4 - ive not updated my local dev pc yet - now i deploy > my app - it dosnt work - the includes fail in all my modules for: > > from google.appengine.ext.webapp import template > > > > i have tracked it down to the webb django template helper - please dont tell me > this has been removed from 1.4 - can i still use django - or do i need to redo > all my templates using a new templater? > > > Regards > > > Martin Webb > > T. 01233 660879 > F. 01233 640949 > M. 07798946071 > > The information contained in this email is confidential and may contain > proprietary information. It is meant solely for the intended recipient. Access > to this email by anyone else is unauthorised. If you are not the intended > recipient, any disclosure, copying, distribution or any action taken or omitted > in reliance on this, is prohibited and may be unlawful. No liability or > responsibility is accepted if information or data is, for whatever reason > corrupted or does not reach its intended recipient. No warranty is given that > this email is free of viruses. The views expressed in this email are, unless > otherwise stated, those of the author > > > > > -- > 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] Session User
I am developing an app where I don't want to force the users to use google authentication or openID but just sign in with their basic e- mail addresses. I will create the login and logout pages myself. Can I get a suggestion on how to keep track of the current user in the session like what "user = users.get_current_user()" does. Maybe use memcache? -- 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] NoClassDefFoundError even though the jar is in WEB-INF/lib
Hi, I'm facing a peculiar issue. One of my JSPs uses javax.servlet.jsp.jstl.fmt.LocaleSupport.getLocalizedMessage to get localized message from resource bundles. I have copied the jakarta- taglibs-standard-1.1.2.jar and jakarta-taglibs-jstl-1.1.2.jar into WEB- INF/lib directory. On my local SDK the application works just fine. But when I deploy it on GAE it gives out the following error. java.lang.NoClassDefFoundError: org/apache/taglibs/standard/tag/common/ fmt/BundleSupport at javax.servlet.jsp.jstl.fmt.LocaleSupport.getLocalizedMessage(LocaleSupport.java: 143) at javax.servlet.jsp.jstl.fmt.LocaleSupport.getLocalizedMessage(LocaleSupport.java: 63) at org.apache.jsp.templates.default_.LoginContent_jsp._jspService(LoginContent_jsp.java: 547) This happens on both 1.3.8 and 1.4.0 SDKs. Any clues on what is happening? Thanks, - Madhu -- 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: Memcache broken with Always On?
Through trial and error, I figured out that I was using it wrong. With the JCache API, you have to make sure that you "create" and register the cache once on each GAE instance (JVM) before you can just do a getCache(String cachename) on it within that JVM. So even in code that only reads from the cache, you need to make sure the full cache initialization is performed or has already been done somewhere in that JVM instance. For example: cache = CacheManager.getInstance().getCache("testcache"); if (cache == null) { cache = CacheManager.getInstance().getCacheFactory() .createCache(Collections.emptyMap()); //Or whatever properties are required CacheManager.getInstance().registerCache("testcache", cache); } This is the same code you use to create and register the global cache in the first place. For new instances, it appears to just create the required link to the existing global cache. Makes sense to me now since you don't know which instance or reader/writer code will be hit the first time a cache comes into play. After invoking the code above in my readers, I now see the cache and entries in it being shared globally. Thanks, Tom On Dec 15, 10:42 pm, Tom Phillips wrote: > I posted on this this in the java forum, but no traction there and I > suspect it's not java specific. > > Memcache entries seem to be being scoped to an instance, not global. > After a cache entry is made, it can be retrieved fine for any request > that goes to that same instance. Any request to one of the other > instances never finds the entry in the cache. > > Bug in Always On? Bug in 1.4.0? Design intent? > > Thanks, > Tom -- 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: Problem with ReferenceProperty
Please give me sample, I would like to see it. I don't know how to google topic you've described (don't understand which key words use for search). On Dec 6, 10:43 pm, Robert Smart wrote: > Normally one should avoid using ReferenceProperty. Best to build a > key_name from data in the record, or allocate_ids and keep the > allocated ids in the database (in its parent or in the some other > record you're bound to use like the record of user data). Then you can > build the key whenever you need and (importantly) you can build the > key before the record is stored and use that for various purposes > (like parenting) without having to have special cases for when the > record has/hasn't been written yet. -- 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: from google.appengine.ext.webapp import template
Hello The templates should work like before. I too had this failure with importing template when upgrading to SDK 1.4 and solved it going through the error message seeing it originated from some third party library I had added myself to my project. I removed that library and again things worked. If you post or more closely investigate the error log it may show that your problem/solution is the result of some library conflict. I hope some of this info can give you an idea how to deploy a working version. Best regards, Niklas R On Dec 19, 6:13 am, Martin Webb wrote: > hi all... > Since we have moved to 1.4 - ive not updated my local dev pc yet - now i > deploy > my app - it dosnt work - the includes fail in all my modules for: > > from google.appengine.ext.webapp import template > > i have tracked it down to the webb django template helper - please dont tell > me > this has been removed from 1.4 - can i still use django - or do i need to redo > all my templates using a new templater? > > Regards > > Martin Webb > > T. 01233 660879 > F. 01233 640949 > M. 07798946071 > > The information contained in this email is confidential and may contain > proprietary information. It is meant solely for the intended recipient. Access > to this email by anyone else is unauthorised. If you are not the intended > recipient, any disclosure, copying, distribution or any action taken or > omitted > in reliance on this, is prohibited and may be unlawful. No liability or > responsibility is accepted if information or data is, for whatever reason > corrupted or does not reach its intended recipient. No warranty is given that > this email is free of viruses. The views expressed in this email are, unless > otherwise stated, those of the author -- 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] Getting my GAE site indexed on Google
No, that's why you follow these instructions. http://www.ozdroid.com/#!BLOG/2010/10/12/How_to_Make_Google_AppEngine_Applications_Ajax_Crawlable -- 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] doubt about TOS regarding betting related app
I want to make an application related to gambling and I am not sure if it would break the terms of service or not. In principle, the TOS prohibit gambling content (letter f of "Prohibited content" under "Google AppEngine Program Policies"). The application would be similar to a blog on sports betting, with tips and advice for people who enjoy betting in sports competitions. Users will not be able to make bets using my application, but they would receive explicit advise on which bets are more profitable than others. Would that break the terms of service? I am thinking of GAE to develop the application but I am not sure if it could be rejected by Google, because clearly it is not an app that enables gambling but it will help bettors in their decissions. Any clue? Thank you very much. -- 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] Getting my GAE site indexed on Google
Text rendered by widget can not be seen by crawler as it is only rendered on the client so use straight html instead. On Nov 26, 2010 6:10 PM, "CedarLeaf" wrote: Does any one have any pointers on getting my site indexed on Google? My site (http://www.cedarleafmusic.com) is a GAE/GWT site for tracking music artists and albums. Since my site is a dynamic GAE web application, it only has one html page, but I have added meta tags, submitted it to Google and submitted a sitemap to Google Web Master tools. On the anonymous page prior to login, the static paragraphs are an HTML widget added to a vertical panel. Does anyone know if text in widgets can be read by Google's bot or if I would be better off adding text directly to the site's HTML page? Any help would be appreciated. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- 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: Getting my GAE site indexed on Google
> Does any one have any pointers on getting my site indexed on Google? http://www.ozdroid.com/#!BLOG/2010/10/12/How_to_Make_Google_AppEngine_Applications_Ajax_Crawlable My site is GWT/GAE based as well and the method I use as detailed above seems to be working well now. Unfortunately you will have to pay for "Always On" to get it to work until the URLFetch timeout is lengthened - but it does work and you get the added bonus of faster startups with Always On. -- 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: my app has been "disabled"
If that's the case, then the app i'm developing will be shut for sure, because it extends the Google Contacts platform, making use of the API Google provides. Makes no sense, right? 2010/12/19 Philip > There is no way that the app was disabled because Google fears > competition. I'm currently developing a google news like service on > app engine and I got access to the matcher api and prediction api > without any problems even though I have told explicitly that I am > doing this. I also got always help from Googlers like Ikai in the IRC > channel. > > Besides, I'm pretty sure that it would be *highly* risky for Google to > disable apps that are competing with their own services. They would > abuse their online monopoly and this could result in astronomically > huge judicial punishment. > > On Dec 18, 8:56 am, Nickolas Daskalou wrote: > > It may have been disabled because it competes with Google's URL > > shortening offering (http://goo.gl/). > > > > Nick > > > > On 18/12/2010, at 1:21 PM, vrypan wrote: > > > > > > > > > > > > > > > > > Hi. I've been running my URL shortener, urlborg.com, on appengine > > > since 2008. Suddenly, yesterday, the app was marked as DISABLED by > > > google, and no one can access it. How do I get in contact with > > > someone that can explain what's going on? I feel really bad for the > > > users that relied on my service. > > > > > I really, really like AppEngine, I mean, if you are offering a > > > hosting environment, and people are paying for it, you can't just > > > switch off an account, without a warning, or a notice or something... > > > > > Panayotis > > > -- > > > You received this message because you are subscribed to the Google > > > Groups "Google App Engine" group. > > > To post to this group, send email to google- > > > appeng...@googlegroups.com. > > > To unsubscribe from this group, send email to > google-appengine+unsubscr...@googlegroups.com > > > . > > > For more options, visit this group athttp:// > groups.google.com/group/google-appengine?hl=en > > > . > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to google-appeng...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: my app has been "disabled"
There is no way that the app was disabled because Google fears competition. I'm currently developing a google news like service on app engine and I got access to the matcher api and prediction api without any problems even though I have told explicitly that I am doing this. I also got always help from Googlers like Ikai in the IRC channel. Besides, I'm pretty sure that it would be *highly* risky for Google to disable apps that are competing with their own services. They would abuse their online monopoly and this could result in astronomically huge judicial punishment. On Dec 18, 8:56 am, Nickolas Daskalou wrote: > It may have been disabled because it competes with Google's URL > shortening offering (http://goo.gl/). > > Nick > > On 18/12/2010, at 1:21 PM, vrypan wrote: > > > > > > > > > Hi. I've been running my URL shortener, urlborg.com, on appengine > > since 2008. Suddenly, yesterday, the app was marked as DISABLED by > > google, and no one can access it. How do I get in contact with > > someone that can explain what's going on? I feel really bad for the > > users that relied on my service. > > > I really, really like AppEngine, I mean, if you are offering a > > hosting environment, and people are paying for it, you can't just > > switch off an account, without a warning, or a notice or something... > > > Panayotis > > -- > > 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: my app has been "disabled"
the most attractive feature of google's appengine is free to start. but when your project becomes large, you may found a better platform to deploy your project. i don't think google appengine can be used for large projects because there are so many dependencies on the app engine platform. even the data is stored in a way very hard to manipulate(upload, download, delete, modify). I would like to define the app engine as a new blog platform which users can do more customization on it. -- 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.