[google-appengine] More bulkloader headache :(
I'm getting this when trying to do a nightly backup of my app from a cron job... No handlers could be found for logger "google.appengine.tools.appengine_rpc" Please go to https://www.google.com/accounts/DisplayUnlockCaptcha. Upon entering my account information with the correct password at CAPTCHA, it tells me the username/account isn't correct. Furthermore, I'm able to log the same account into gmail just fine. The Google account I'm using is a Google Apps account. Any suggestions? Thanks, -- Patrick H. Twohig. Namazu Studios P.O. Box 34161 San Diego, CA 92163-4161 -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: My own class getting: java.lang.NoClassDefFoundError: Could not initialize class ????
Answered my own question. I was accidentally accessing a gwt.client class on the server. The class had JSNI in it, so of course the server couldn't figure it out. On Mar 17, 1:14 am, Blake wrote: > This is weird - the recent version of my app (but not active one) > can't find one of my own classes that's in my project. I'm getting > the standard: > > java.lang.NoClassDefFoundError: Could not initialize class > > Has anyone else seen this? This is server-side, running in a task. > > There haven't been any changes to this class, and my project compiles > and runs otherwise. > > 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] My own class getting: java.lang.NoClassDefFoundError: Could not initialize class ????
This is weird - the recent version of my app (but not active one) can't find one of my own classes that's in my project. I'm getting the standard: java.lang.NoClassDefFoundError: Could not initialize class Has anyone else seen this? This is server-side, running in a task. There haven't been any changes to this class, and my project compiles and runs otherwise. 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] Google App Engine Django
I installed the helper r100, typed python manage.py runserver, and received. /usr/local/google_appengine/google/appengine/api/ datastore_file_stub.py:40: DeprecationWarning: the md5 module is deprecated; use hashlib instead import md5 /usr/local/google_appengine/google/appengine/api/memcache/__init__.py: 31: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha Traceback (most recent call last): File "manage.py", line 21, in InstallAppengineHelperForDjango() File "/local/src/djangocode/myproject/appengine_django/__init__.py", line 544, in InstallAppengineHelperForDjango InstallDjangoModuleReplacements() File "/local/src/djangocode/myproject/appengine_django/__init__.py", line 261, in InstallDjangoModuleReplacements import django.db File "/usr/local/lib/python2.6/dist-packages/django/db/__init__.py", line 57, in 'TIME_ZONE': settings.TIME_ZONE, File "/local/src/djangocode/myproject/appengine_django/db/base.py", line 117, in __init__ self._setup_stubs() File "/local/src/djangocode/myproject/appengine_django/db/base.py", line 128, in _setup_stubs from google.appengine.tools import dev_appserver_main File "/usr/local/google_appengine/google/appengine/tools/ dev_appserver_main.py", line 82, in from google.appengine.tools import appcfg File "/usr/local/google_appengine/google/appengine/tools/appcfg.py", line 53, in from google.appengine.api import dosinfo File "/usr/local/google_appengine/google/appengine/api/dosinfo.py", line 25, in import ipaddr ImportError: No module named ipaddr If I insert into manage.py: import sys sys.path.insert(0,'/usr/local/google_appengine/lib/ipaddr') Now it appears to work. Is this sufficient or is there a known gotcha? -- 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 App
python manage.py /usr/local/google_appengine/google/appengine/api/ datastore_file_stub.py:40: DeprecationWarning: the md5 module is deprecated; use hashlib instead import md5 /usr/local/google_appengine/google/appengine/api/memcache/__init__.py: 31: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha Traceback (most recent call last): File "manage.py", line 21, in InstallAppengineHelperForDjango() File "/local/src/djangocode/myproject/appengine_django/__init__.py", line 544, in InstallAppengineHelperForDjango InstallDjangoModuleReplacements() File "/local/src/djangocode/myproject/appengine_django/__init__.py", line 261, in InstallDjangoModuleReplacements import django.db File "/usr/local/lib/python2.6/dist-packages/django/db/__init__.py", line 57, in 'TIME_ZONE': settings.TIME_ZONE, File "/local/src/djangocode/myproject/appengine_django/db/base.py", line 117, in __init__ self._setup_stubs() File "/local/src/djangocode/myproject/appengine_django/db/base.py", line 128, in _setup_stubs from google.appengine.tools import dev_appserver_main File "/usr/local/google_appengine/google/appengine/tools/ dev_appserver_main.py", line 82, in from google.appengine.tools import appcfg File "/usr/local/google_appengine/google/appengine/tools/appcfg.py", line 53, in from google.appengine.api import dosinfo File "/usr/local/google_appengine/google/appengine/api/dosinfo.py", line 25, in import ipaddr ImportError: No module named ipaddr -- 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: Pre-release 1.3.2 SDKs available
Wow, this is a substantial release! App Engine Python SDK - Release Notes Version 1.3.2 = - New API to read the contents of uploaded Blobs (fetch_data) http://code.google.com/p/googleappengine/issues/detail?id=2536 - URLFetch now supports accessing ports 80-90, 440-450, and 1024-65535 - Mail API now allows common document formats as attachments http://code.google.com/p/googleappengine/issues/detail?id=494 - The Task Queue API now supports adding multiple tasks in a single call to Queue.add() - Fixed charset handling for inbound emails http://code.google.com/p/googleappengine/issues/detail?id=2326 - Fixed issue with compositing background colors in dev_appserver - New feature in the datastore to specify whether to use strong or eventually consistent reads (the default is strong) - New datastore feature allows setting deadlines for operations - Increased the maximum Task Queue refill rate from 20/s to 50/s - Support for IP blacklisting to prevent denial of service (DoS) attacks - Fix an issue with Mac Launcher in Mac OSX 10.5.5 http://code.google.com/p/googleappengine/issues/detail?id=778 - Fix issue with slow updates when there are many skipped files http://code.google.com/p/googleappengine/issues/detail?id=2492 - Fix issue with cursor not updating when using a GqlQuery http://code.google.com/p/googleappengine/issues/detail?id=2757 On Mar 16, 8:31 pm, "Jason (Google)" wrote: > Hi Everyone. Just a quick note that we just uploaded pre-release 1.3.2 > SDKs for Python and Java to our Google Code project page: > > http://code.google.com/p/googleappengine/downloads/list > > Both pre-release SDKs include RELEASE_NOTE files that indicate what's > new, but the App Engine back-ends have not yet been updated, so please > don't try to use these new features in production just yet. Please > test your existing applications locally using the new SDK and report > any bugs as soon as possible. Our next general release will likely > follow in the next couple of weeks barring any unforeseen issues. > > Thanks, > - Jason -- 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] Pre-release 1.3.2 SDKs available
>From the release notes: "New feature in the datastore to specify whether to use strong or eventually consistent reads (the default is strong)" Didn't think this would be out for quite a while. Very, very cool. :) On 17 March 2010 14:31, Jason (Google) wrote: > Hi Everyone. Just a quick note that we just uploaded pre-release 1.3.2 > SDKs for Python and Java to our Google Code project page: > > http://code.google.com/p/googleappengine/downloads/list > > Both pre-release SDKs include RELEASE_NOTE files that indicate what's > new, but the App Engine back-ends have not yet been updated, so please > don't try to use these new features in production just yet. Please > test your existing applications locally using the new SDK and report > any bugs as soon as possible. Our next general release will likely > follow in the next couple of weeks barring any unforeseen issues. > > Thanks, > - Jason > > -- > 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] Pre-release 1.3.2 SDKs available
Hi Everyone. Just a quick note that we just uploaded pre-release 1.3.2 SDKs for Python and Java to our Google Code project page: http://code.google.com/p/googleappengine/downloads/list Both pre-release SDKs include RELEASE_NOTE files that indicate what's new, but the App Engine back-ends have not yet been updated, so please don't try to use these new features in production just yet. Please test your existing applications locally using the new SDK and report any bugs as soon as possible. Our next general release will likely follow in the next couple of weeks barring any unforeseen issues. Thanks, - Jason -- 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: GAE getting CAPTCHA-locked by Google Apps?
I too am seeing this across multiple GAE apps deployed by separate accounts. Clearing the Captcha does not seem to resolve the Captcha lock but multiple attempts will eventually succeed. Running the same code on my local machine does not *ever* produce a Captcha lock. Password complexity is set high and the wrong password has not been attempted for the accounts. Jay On Mar 15, 4:15 pm, Jan Z wrote: > gdata ClientLogin calls from GAE (and from GAE only) appear to get > frequent spurious CAPTCHA locks. > > By "spurious" I mean that another ClientLogin attempt a couple of > seconds later succeeds (with same credentials), so there is no need > for users to actually go through the unlockcaptcha step. > > We can reproduce this on GAE reliably (as in a captcha occurring one > or more times for every five attempts) using gdata (python) or > straight protocol access with urlfetch. Same code runs on local SDK > without encountering a single captcha. > > So it looks like the API is captcha-locking the GAE. > > We have an existing support case #00618963 for this, would be great to > get someone from the GAE team to have a look please? > > Jan -- 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] Few questions about commercial use
Hi, I would like to use GAE to set up web service for company I work for. I am not sure if I understood everything well. Please help me to avoid mistakes. 1. I have my private Google App Engine account, should I set up a new one for this purpose? Can I? 2. Is it still free then unless I set up billing and exceed free quota? 3. Can I attach domain i.e. www.mojafirma.pl to point to this app (I am already owner of this domain)? 4. I have read that I must also sign in to Google Apps for it. Is it free for company? Best regards Michał Mierzwa -- 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: Users are not redirected back to app after creating a google account.
Hi Francois! Thanks! I hope people at Google can fix this soonest. It seems like a major hindrance for me to use the AppEngine Users framework for authentication. I think it's the most convenient for the developer to use, however, it should also be convenient for the users. Anyway, I hope they get to fix it soon! I have an app to release this May, and I want to use the Users framework for performance reasons. Thank you and enjoy! On Mar 17, 4:37 am, François Masurel wrote: > You can star > issuehttp://code.google.com/p/googleappengine/issues/detail?id=1781 > > On 16 mar, 16:26, Aurelian wrote: > > > > > Totally agree. > > I had to build a full authentication system for that reason, because > > creating new Google Accounts was very confusing, moreover user was not > > forwarded to application. > > > On Mar 16, 1:55 pm, Albert wrote: > > > > Quoted from the > > > linkhttp://code.google.com/appengine/docs/python/users/overview.html#Sign... > > > > "Once the user has signed in or created a Google account, the user is > > > redirected back to your application. The app provides the redirect URL > > > to the method that generates the sign-in URL." > > > > I have tested this in my app, and the user is not redirected back to > > > the app after creating a google account. After creation of the google > > > account (after pressing the button marked, "I accept. Create my > > > account."), the user is directed to a "a verification link has been > > > sent to your email, please check your email" page. > > > > After opening the users email, and clicking the verification link, the > > > user is also not redirected to the app. > > > > I believe that this behavior is not good to apps, since users have to > > > manually go back to the app after creating a google account. For apps > > > that target novice internet users that don't have existing google > > > accounts, the "create account" process has to be very streamlined. > > > > By the way, an additional create_account_url() function to the Users > > > service could also be handy. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Datastore Viewer Constantly Failing
Thanks, but I have already deleted all my entities. All my new entities are being displayed correctly by the Datastore Viewer. On Mar 16, 2:47 pm, "Ikai L (Google)" wrote: > Try this workaround: the property is stored as a String anyway, so you > *should* be able to change the type to "String" and see if the > datastore viewer begins working again. Not sure if this will work or > not, but some developers have reported this working. > > > > > > On Tue, Mar 16, 2010 at 12:21 PM, Seth wrote: > > Aloha Ikai, > > >> Do you use any non-"primitive" properties to store data? LinkProperty, > >> PhoneNumberProperty, etc? If these are set to null values or do not > >> pass validation, this can cause the admin screen to error > >> out:http://code.google.com/p/googleappengine/issues/detail?id=384 > > > I do use the Link property type. However, I didn't think any were > > null and I don't know what validation logic you are referring to. But > > I suppose it's possible that somehow these values aren't valid enough > > for the datastore viewer. > > > I hope this bug gets fixed soon! > > > Thanks, > > Seth > > > -- > > 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. > > -- > Ikai Lan > Developer Programs Engineer, Google App > Enginehttp://googleappengine.blogspot.com|http://twitter.com/app_engine -- 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: Datastore Viewer Constantly Failing
Try this workaround: the property is stored as a String anyway, so you *should* be able to change the type to "String" and see if the datastore viewer begins working again. Not sure if this will work or not, but some developers have reported this working. On Tue, Mar 16, 2010 at 12:21 PM, Seth wrote: > Aloha Ikai, > > >> Do you use any non-"primitive" properties to store data? LinkProperty, >> PhoneNumberProperty, etc? If these are set to null values or do not >> pass validation, this can cause the admin screen to error >> out:http://code.google.com/p/googleappengine/issues/detail?id=384 > > I do use the Link property type. However, I didn't think any were > null and I don't know what validation logic you are referring to. But > I suppose it's possible that somehow these values aren't valid enough > for the datastore viewer. > > I hope this bug gets fixed soon! > > Thanks, > Seth > > -- > 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 http://googleappengine.blogspot.com | http://twitter.com/app_engine -- 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! Unintentionally triggered gdata api query limit..
Thanks, it's seems to have resolved itself. On Mar 15, 5:58 pm, "Ikai L (Google)" wrote: > Have you asked the folks on the GData groups? They'll likely be able > to look into this for > you:https://groups.google.com/group/google-help-dataapi?pli=1 > > > > > > On Sun, Mar 14, 2010 at 3:54 PM, Anekdotz wrote: > > Hey there, > > > My application uses the javascript GData (google base) API. There was > > a bug that kept refreshing a search query every 5 seconds (the scheme > > is to query once and then save the results on the client, but > > mistakenly it was performing a fresh search each time). This happened > > for a total of around 5-10 minutes. > > > I have fixed the bug, but am now unable to continue testing since > > Google thinks I'm sending automated queries. Does anyone know how to > > fix this situation? > > > I browsed through the GData documentation, but there isn't specific > > information except to stop sending queries and wait. Has this > > happened to anyone, and if so how long is the waiting period usually.. > > > Thanks > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google App Engine" group. > > To post to this group, send email to google-appeng...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-appengine+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/google-appengine?hl=en. > > -- > Ikai Lan > Developer Programs Engineer, Google App > Enginehttp://googleappengine.blogspot.com|http://twitter.com/app_engine -- 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: Publish-subscribe to dynamic recipient lists
I'd say that relative to reads (and writes) of the news feed, updating friends lists is uncommon. We've sort of settled for an "eventually consistent" model now where we update the recipient lists of the freshest messages immediately and queue the update of older messages using the Tasks API. Really good to know that this path is tried and proven before us. Thanks! And thanks for the jaikuengine link. Strange, I actually knew it was open sourced, but didn't think about exploring it. Yes, you really helped us in our design considerations! /PEZ On Mar 16, 8:00 pm, "Ikai L (Google)" wrote: > A couple of thoughts here: > > - is removing of friends a common event? similarly, is adding of > friends a common event? (All relative, relative to "reads" of the news > feed) > - From what I remember, the only way to make heavy reads scale is to > write the data multiple times in peoples' streams. Twitter does this, > from what I remember, using a "eventually consistent" model. This is > why your feed will not update for several minutes when they are under > heavy load. The general consensus, though, is that a relational, > normalized model simply will not work. > - the Jaiku engine is open source for your > study:http://code.google.com/p/jaikuengine. This runs on App Engine > > Hope these help when you're considering a design. > > > > > > On Mon, Mar 15, 2010 at 5:32 AM, PEZ wrote: > > We first modeled publish-subscribe "fan out" using conventional RDBMS > > thinking. It seemed to work at first, but then, since the IN operator > > works the way it does, we quickly realized we couldn't continue on > > that path. We found Brett Slatkin's presentation from last years > > Google I/O and we have now watched it a few times and also played some > > with thehttp://pubsub-test.appspot.com/example but it isn't clear to > > us how to do it with "dynamic" recipient lists. > > > We want to implement a "News feed" where a user can see messages > > broadcasted by her friends, sorted with newest message first. But the > > feed should reflect changes in her friends list. (If she adds new > > friends, messages from those should be included in the feed, and if > > she removes friends their messages should not be included.) If we use > > the pubsub-test example and attach a recipient list to each message > > this means a lot of manipulation of the recipient lists when users > > connect and disconnect friends. > > > What we need are some hints on how to "think" when modeling this. Does > > this description even make sense? > > > -- > > 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. > > -- > Ikai Lan > Developer Programs Engineer, Google App > Enginehttp://googleappengine.blogspot.com|http://twitter.com/app_engine -- 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: Examples of big demanding web apps running on google appengine
May be this link helps : http://googlecode.blogspot.com/2009/04/google-developer-products-help.html Also I am sure I have seen more demanding applications than this one but hard to remember now. Hm .. one I discoverd my self some days ago is panoramio.com see my comments in techcrunch http://techcrunch.com/2010/02/24/google-app-engine-outage/ Happy coding ;) Nick -- 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: Image.getHeight throws UnsupportedOperationException when Image instanced from Blobstore
Do you think I should file a bug? On Sun, Mar 14, 2010 at 1:24 PM, JavaJosh wrote: > Hi there, > > I'm new to Google App Engine, and was wondering what I'm doing wrong. > In my application, users upload (potentially large) images into the > Blobstore. I also need to create a thumbnail image that is 300px wide > (and high enough to maintain aspect ratio). Although > ImagesServiceFactory.makeImageFromBlob(blobKey) returns an Image > that's not null, when I try to access width and height properties of > the returned image I get an UnsupportedOperationException "No image > data is available.". > > Here is the simplest code I can think of to reproduce (this is based > on blobstore example; to make it work setup that example, then add a > web.xml entry for this servlet and then change the "upload" servlet > mapping to point to it): > > import java.io.IOException; > import java.util.Map; > import java.util.logging.Logger; > > import javax.servlet.ServletException; > import javax.servlet.http.HttpServlet; > import javax.servlet.http.HttpServletRequest; > import javax.servlet.http.HttpServletResponse; > > import com.google.appengine.api.blobstore.BlobKey; > import com.google.appengine.api.blobstore.BlobstoreService; > import com.google.appengine.api.blobstore.BlobstoreServiceFactory; > import com.google.appengine.api.images.Image; > import com.google.appengine.api.images.ImagesServiceFactory; > > > public class ImageBlobBug extends HttpServlet { >private static final long serialVersionUID = 1L; >private BlobstoreService blobstoreService = > BlobstoreServiceFactory.getBlobstoreService(); >private static final Logger log = > Logger.getLogger(ImageBlobBug.class.getName()); > >public void doPost(HttpServletRequest req, HttpServletResponse res) > throws ServletException, IOException { >Map blobs = > blobstoreService.getUploadedBlobs(req); >BlobKey blobKey = blobs.get("myFile"); >Image image = > ImagesServiceFactory.makeImageFromBlob(blobKey); > >res.sendRedirect("#"+ (image == null ? "Image could not be > made from > blob":"Image successfully retrieved with height: " + > image.getHeight())); >} > > } > > Here is the stacktrace: > > java.lang.UnsupportedOperationException: No image data is available. >at > com.google.appengine.api.images.ImageImpl.updateDimensions(ImageImpl.java: > 130) >at > com.google.appengine.api.images.ImageImpl.getHeight(ImageImpl.java: > 63) >at ImageBlobBug.doPost(ImageBlobBug.java:27) >at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) >at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) >at > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: > 487) >at > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: > 362) >at > org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: > 216) >at > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: > 181) >at > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: > 712) >at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: > 405) >at > > com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java: > 70) >at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:268) >at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126) >at > > com.google.appengine.api.blobstore.dev.UploadBlobServlet.handleUpload(UploadBlobServlet.java: > 368) >at com.google.appengine.api.blobstore.dev.UploadBlobServlet.access > $000(UploadBlobServlet.java:72) >at com.google.appengine.api.blobstore.dev.UploadBlobServlet > $1.run(UploadBlobServlet.java:100) >at java.security.AccessController.doPrivileged(Native Method) >at > > com.google.appengine.api.blobstore.dev.UploadBlobServlet.doPost(UploadBlobServlet.java: > 98) >at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) >at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) >at > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: > 487) >at org.mortbay.jetty.servlet.ServletHandler > $CachedChain.doFilter(ServletHandler.java:1093) >at > > com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java: > 51) >at org.mortbay.jetty.servlet.ServletHandler > $CachedChain.doFilter(ServletHandler.java:1084) >at > > com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: > 43) >at org.mortbay.jetty.servlet.ServletHandler > $CachedChain.doFilter(ServletHandler.java:1084) >at > > com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java: > 121) >at org.mortbay.jetty.servlet.ServletHandler > $CachedChain.do
[google-appengine] Re: Users are not redirected back to app after creating a google account.
You can star issue http://code.google.com/p/googleappengine/issues/detail?id=1781 On 16 mar, 16:26, Aurelian wrote: > Totally agree. > I had to build a full authentication system for that reason, because > creating new Google Accounts was very confusing, moreover user was not > forwarded to application. > > On Mar 16, 1:55 pm, Albert wrote: > > > > > Quoted from the > > linkhttp://code.google.com/appengine/docs/python/users/overview.html#Sign... > > > "Once the user has signed in or created a Google account, the user is > > redirected back to your application. The app provides the redirect URL > > to the method that generates the sign-in URL." > > > I have tested this in my app, and the user is not redirected back to > > the app after creating a google account. After creation of the google > > account (after pressing the button marked, "I accept. Create my > > account."), the user is directed to a "a verification link has been > > sent to your email, please check your email" page. > > > After opening the users email, and clicking the verification link, the > > user is also not redirected to the app. > > > I believe that this behavior is not good to apps, since users have to > > manually go back to the app after creating a google account. For apps > > that target novice internet users that don't have existing google > > accounts, the "create account" process has to be very streamlined. > > > By the way, an additional create_account_url() function to the Users > > service could also be handy. -- 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 there any max() function available in appengine datastore to find max of selected records
On Tue, Mar 16, 2010 at 12:01 PM, Ulrich wrote: > Max wrote: >> >> Use a global variable to store max(salary) > > If you store this global variable in the datastore and have a high number of > inserts, you have to update this global variable too often and it will not > work without some kind of sharding. Even if there are zillions of salaries and they are constantly changing, it's still unlikely that max(salary) is going to change often enough for this to be a problem. 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: If-Modified-Since HTTP conditional Get header supported in 1.3.1?
One more info that could be relevant. The mime type is application/x- silverlight-2; the file extension is xap. On Mar 16, 12:04 pm, JC wrote: > I suspect that somehow GAE is not treating the resource as static file > - specifically with its xap file extension. > > I tried setting a custom mime-mapping in web.xml for the xap > extension, and also tried to declare it as static file using the > static-files tag in appengine-web.xml. None worked. > In summary, we have gone over the outside server possibility, the date > format issue. The file is not located under WEB-INF directory. All of > them don't seem to be the cuase of the issue. > > Please advise. > > Thanks, > > On Mar 16, 10:37 am, JC wrote: > > > > > I see what you mean. > > > In my case, the resource (with .xap extension, don't know if that > > matters) resides in GAE server as part of the deployed web app; there > > is not URL Fetch to fetch the resource from outside server. The > > resource is not located in the WEB-INF directory either; it is located > > under a directory called ClientBin under root. It is a static file > > that I thought should be treated like other static files; say, a jpg > > file. > > > On Mar 16, 2:15 am, Alkis Evlogimenos ('Αλκης Ευλογημένος) > > > wrote: > > > Ermm ok lets try for a third time :-). Say you have a GAE app and you > > > fetch pages from cnn.com. If cnn.com does not supportIf-Modified-Sincethen > > > you are never getting 304's back, no matter what headers you put in your > > > request. It has nothing to do with GAE. > > > > In the example above "server" is cnn.com. > > > > - alkis > > > > 2010/3/16 JC > > > > > Are you saying that not all GAE servers running in the Google data > > > > center supportIf-Modified-Since? Can you elaborate a bit more? The > > > > Java app was deployed to GAE data center which I assume is running the > > > > latest 1.3.1 which claims to support conditional Get. > > > > > On Mar 15, 6:15 pm, Alkis Evlogimenos ('Αλκης Ευλογημένος) > > > > wrote: > > > > > With server I mean the server you are fetching pages from. That server > > > > might > > > > > not have support forIf-Modified-Since. > > > > > > - alkis > > > > > > 2010/3/16 JC > > > > > > > Thanks for the prompt reply! > > > > > > > I don't quite understand what you meant by server not supporting it. > > > > > > It is running against central GAE server, not my local development > > > > > > server. > > > > > > > As for the date format, This is the dump of the HTTP header through > > > > > > a > > > > > > network sniffer as follow.. It seems to be conforming to HTTP spec. > > > > > > Do > > > > > > you see anything wrong? > > > > > > > GET /ClientBin/oob.xap HTTP/1.1 > > > > > >If-Modified-Since: Tue, 16 Mar 2010 00:28:17 GMT > > > > > > User-Agent: Silverlight > > > > > > > Thanks, > > > > > > > On Mar 15, 2:22 pm, Alkis Evlogimenos ('Αλκης Ευλογημένος) > > > > > > wrote: > > > > > > >If-Modified-Sinceworks in GAE. Either the server you are hitting > > > > does > > > > > > not > > > > > > > support it, or you are sending it a timestamp it doesn't > > > > > > > understand. > > > > > > > > - alkis > > > > > > > > On Mon, Mar 15, 2010 at 6:28 PM, JC wrote: > > > > > > > > GAE 1.3.1 for Java includes a fix (issue 575) to support > > > > conditional > > > > > > > > get for static files. I have tried sendingIf-Modified-SinceGet > > > > > > > > header to retrieve a static file from GAE, It always returns 200 > > > > (with > > > > > > > > full payload) instead of 304 (unmodified) even though the static > > > > file > > > > > > > > hasn't been changed for a while. I have cleared my browser > > > > > > > > cache so > > > > > > > > that the timestamp in theIf-Modified-Sinceis current timestamp. > > > > It > > > > > > > > doesn't seem to work. Has anyone usedIf-Modified-Sinceon 1.3.1 > > > > with > > > > > > > > success? > > > > > > > > > -- > > > > > > > > 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 > > > > > > > > > > > > > > > > > > . > > > > > > > > For more options, visit this group at > > > > > > > >http://groups.google.com/group/google-appengine?hl=en.-Hidequoted > > > > > > text - > > > > > > > > - Show quoted text - > > > > > > > -- > > > > > > You received this message because you are subscribed to the Google > > > > Groups > > > > > > "Google App Engine" group. > > > > > > To post to this group, send email to > > > > > > google-appengine@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.
[google-appengine] Re: Datastore Viewer Constantly Failing
Aloha Ikai, > Do you use any non-"primitive" properties to store data? LinkProperty, > PhoneNumberProperty, etc? If these are set to null values or do not > pass validation, this can cause the admin screen to error > out:http://code.google.com/p/googleappengine/issues/detail?id=384 I do use the Link property type. However, I didn't think any were null and I don't know what validation logic you are referring to. But I suppose it's possible that somehow these values aren't valid enough for the datastore viewer. I hope this bug gets fixed soon! Thanks, Seth -- 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] Datastore Viewer Constantly Failing
Seth, Do you use any non-"primitive" properties to store data? LinkProperty, PhoneNumberProperty, etc? If these are set to null values or do not pass validation, this can cause the admin screen to error out: http://code.google.com/p/googleappengine/issues/detail?id=384 On Tue, Mar 16, 2010 at 10:45 AM, Seth wrote: > Aloha, > > I have been unable to use the Datastore Viewer in the admin pages for > some time now (at least five days). Every time I try to access it, I > get: > > Server Error > A server error has occurred. > Return to Applications screen » > > Other pages in my admin screens seem to be functioning just fine. > > My add id is adorableurl > > Hope this helps! > > Thanks, > Seth > > -- > 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 http://googleappengine.blogspot.com | http://twitter.com/app_engine -- 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: If-Modified-Since HTTP conditional Get header supported in 1.3.1?
I suspect that somehow GAE is not treating the resource as static file - specifically with its xap file extension. I tried setting a custom mime-mapping in web.xml for the xap extension, and also tried to declare it as static file using the static-files tag in appengine-web.xml. None worked. In summary, we have gone over the outside server possibility, the date format issue. The file is not located under WEB-INF directory. All of them don't seem to be the cuase of the issue. Please advise. Thanks, On Mar 16, 10:37 am, JC wrote: > I see what you mean. > > In my case, the resource (with .xap extension, don't know if that > matters) resides in GAE server as part of the deployed web app; there > is not URL Fetch to fetch the resource from outside server. The > resource is not located in the WEB-INF directory either; it is located > under a directory called ClientBin under root. It is a static file > that I thought should be treated like other static files; say, a jpg > file. > > On Mar 16, 2:15 am, Alkis Evlogimenos ('Αλκης Ευλογημένος) > > > > wrote: > > Ermm ok lets try for a third time :-). Say you have a GAE app and you > > fetch pages from cnn.com. If cnn.com does not supportIf-Modified-Sincethen > > you are never getting 304's back, no matter what headers you put in your > > request. It has nothing to do with GAE. > > > In the example above "server" is cnn.com. > > > - alkis > > > 2010/3/16 JC > > > > Are you saying that not all GAE servers running in the Google data > > > center supportIf-Modified-Since? Can you elaborate a bit more? The > > > Java app was deployed to GAE data center which I assume is running the > > > latest 1.3.1 which claims to support conditional Get. > > > > On Mar 15, 6:15 pm, Alkis Evlogimenos ('Αλκης Ευλογημένος) > > > wrote: > > > > With server I mean the server you are fetching pages from. That server > > > might > > > > not have support forIf-Modified-Since. > > > > > - alkis > > > > > 2010/3/16 JC > > > > > > Thanks for the prompt reply! > > > > > > I don't quite understand what you meant by server not supporting it. > > > > > It is running against central GAE server, not my local development > > > > > server. > > > > > > As for the date format, This is the dump of the HTTP header through a > > > > > network sniffer as follow.. It seems to be conforming to HTTP spec. Do > > > > > you see anything wrong? > > > > > > GET /ClientBin/oob.xap HTTP/1.1 > > > > >If-Modified-Since: Tue, 16 Mar 2010 00:28:17 GMT > > > > > User-Agent: Silverlight > > > > > > Thanks, > > > > > > On Mar 15, 2:22 pm, Alkis Evlogimenos ('Αλκης Ευλογημένος) > > > > > wrote: > > > > > >If-Modified-Sinceworks in GAE. Either the server you are hitting > > > does > > > > > not > > > > > > support it, or you are sending it a timestamp it doesn't understand. > > > > > > > - alkis > > > > > > > On Mon, Mar 15, 2010 at 6:28 PM, JC wrote: > > > > > > > GAE 1.3.1 for Java includes a fix (issue 575) to support > > > conditional > > > > > > > get for static files. I have tried sendingIf-Modified-SinceGet > > > > > > > header to retrieve a static file from GAE, It always returns 200 > > > (with > > > > > > > full payload) instead of 304 (unmodified) even though the static > > > file > > > > > > > hasn't been changed for a while. I have cleared my browser cache > > > > > > > so > > > > > > > that the timestamp in theIf-Modified-Sinceis current timestamp. > > > It > > > > > > > doesn't seem to work. Has anyone usedIf-Modified-Sinceon 1.3.1 > > > with > > > > > > > success? > > > > > > > > -- > > > > > > > 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 > > > > > > > > > > > > > > > . > > > > > > > For more options, visit this group at > > > > > > >http://groups.google.com/group/google-appengine?hl=en.-Hidequoted > > > > > text - > > > > > > > - Show quoted text - > > > > > > -- > > > > > You received this message because you are subscribed to the Google > > > Groups > > > > > "Google App Engine" group. > > > > > To post to this group, send email to google-appengine@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.-Hidequoted > > > text - > > > > > - Show quoted text - > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "Google App Engine" group. > > > To post to this group, send email to google-appeng...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > google-appengine+unsubscr...@googlegroups.com > > > . > > > For more opt
Re: [google-appengine] Re: is there any max() function available in appengine datastore to find max of selected records
Max wrote: Order by salary means an extra index will be built over this field, which will affect your write speed. Use a global variable to store max(salary) If you store this global variable in the datastore and have a high number of inserts, you have to update this global variable too often and it will not work without some kind of sharding. -Ulrich On Mar 15, 10:12 am, Takashi Matsuo wrote: Hi, Perhaps you can order by salary property descending, and just get the first one, for getting max value. max_salaried_employee = Employee.all().order("-salary").get() max_salary = max_salaried_employee.salary hope this helps -- Takashi Matsuo Kay's daddy On Mon, Mar 15, 2010 at 11:00 AM, Greg wrote: On Mar 14, 3:48 am, pyrocks wrote: here shall we have any max() function available like in oracle to find max salaried employee. In a word, no. You need to store the maximum salary in the datastore, and every time time a salary changes check to see if it exceeds the maximum, and update it if so. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Publish-subscribe to dynamic recipient lists
A couple of thoughts here: - is removing of friends a common event? similarly, is adding of friends a common event? (All relative, relative to "reads" of the news feed) - From what I remember, the only way to make heavy reads scale is to write the data multiple times in peoples' streams. Twitter does this, from what I remember, using a "eventually consistent" model. This is why your feed will not update for several minutes when they are under heavy load. The general consensus, though, is that a relational, normalized model simply will not work. - the Jaiku engine is open source for your study: http://code.google.com/p/jaikuengine. This runs on App Engine Hope these help when you're considering a design. On Mon, Mar 15, 2010 at 5:32 AM, PEZ wrote: > We first modeled publish-subscribe "fan out" using conventional RDBMS > thinking. It seemed to work at first, but then, since the IN operator > works the way it does, we quickly realized we couldn't continue on > that path. We found Brett Slatkin's presentation from last years > Google I/O and we have now watched it a few times and also played some > with the http://pubsub-test.appspot.com/ example but it isn't clear to > us how to do it with "dynamic" recipient lists. > > We want to implement a "News feed" where a user can see messages > broadcasted by her friends, sorted with newest message first. But the > feed should reflect changes in her friends list. (If she adds new > friends, messages from those should be included in the feed, and if > she removes friends their messages should not be included.) If we use > the pubsub-test example and attach a recipient list to each message > this means a lot of manipulation of the recipient lists when users > connect and disconnect friends. > > What we need are some hints on how to "think" when modeling this. Does > this description even make sense? > > -- > 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 http://googleappengine.blogspot.com | http://twitter.com/app_engine -- 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] replicating PMF
Can you post some code? It sounds like you are instantiating a PersistenceManagerFactory instead of doing it once and referencing the singleton. On Tue, Mar 16, 2010 at 9:54 AM, david jones wrote: > hey, i'm pretty new to the app engine, and basically i'm in the middle > of creating something whereby i need multiple pages with seperate > comment systems using PMF. if i try to use my PMF on more than 1 page, > though, i get an error saying > > Caused by: javax.jdo.JDOFatalUserException: Application code attempted > to create a PersistenceManagerFactory named transactions-optional, but > one with this name already exists! Instances of > PersistenceManagerFactory are extremely slow to create and it is > usually not necessary to create one with a given name more than once. > Instead, create a singleton and share it throughout your code. If you > really do need to create a duplicate PersistenceManagerFactory (such > as for a unittest suite), set the > appengine.orm.disable.duplicate.pmf.exception system property to avoid > this error. > at > org.datanucleus.store.appengine.jdo.DatastoreJDOPersistenceManagerFactory.getPersistenceManagerFactory(DatastoreJDOPersistenceManagerFactory.java: > 135) > > now i can create a PMF named something seperate and it all works fine > except it uses the exact same comments that have been posted - not > exactly what i'm after! so i was wondering if anyone knows how to get > around this e.g. how to set the > appengine.orm.disable.duplicate.pmf.exception or something else? > > thanks, > david > > -- > 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 http://googleappengine.blogspot.com | http://twitter.com/app_engine -- 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] Examples of big demanding web apps running on google appengine
Hi! I have a demo about appengine in 20 minutes.. Do anyone have some good examples of some Big sites running on google appengine? with my best regards, David -- David Barnholdt Developer/Agile Coach/Team Coach Crisp AB Sveavägen 31 111 34 Stockholm Phone: +46 70 200 52 90 www.crisp.se/david.barnholdt -- 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] Access group info?
Hi folks, Is it possible to access information about which (google apps) groups a user is a member of via the API? I haven't been able to search for this information as the term 'group' merely finds discussion groups such as this (there's a tough problem for your algorithm to solve, google ;) Cheers, Victor -- 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] Multiple Automatically Configured Domains
Greetings! I am investigating the feasibility of creating something like Weebly.com with App Engine. Weebly allows anyone to create their own website, and handles hosting for them as an integrated service. Weebly provides a free subdomain for each site, but also allows people to connect their own second level domain name (mydomanname.com) to their Weebly site. How would I go about achieving this in App Engine? In a chat session yesterday on #appengine, I received suggestions for cname redirects and several other ideas - but no one was sure that they would work. Is this supported by App Engine? If not, why not? If not, what other options do I have? -Aubrey Falconer -- 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 there any max() function available in appengine datastore to find max of selected records
Order by salary means an extra index will be built over this field, which will affect your write speed. Use a global variable to store max(salary) On Mar 15, 10:12 am, Takashi Matsuo wrote: > Hi, > > Perhaps you can order by salary property descending, and just get the > first one, for getting max value. > > max_salaried_employee = Employee.all().order("-salary").get() > max_salary = max_salaried_employee.salary > > hope this helps > > -- > Takashi Matsuo > Kay's daddy > > On Mon, Mar 15, 2010 at 11:00 AM, Greg wrote: > > On Mar 14, 3:48 am, pyrocks wrote: > >> here shall we have any max() function available like in oracle to find > >> max salaried employee. > > > In a word, no. You need to store the maximum salary in the datastore, > > and every time time a salary changes check to see if it exceeds the > > maximum, and update it if so. > > > -- > > 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] replicating PMF
hey, i'm pretty new to the app engine, and basically i'm in the middle of creating something whereby i need multiple pages with seperate comment systems using PMF. if i try to use my PMF on more than 1 page, though, i get an error saying Caused by: javax.jdo.JDOFatalUserException: Application code attempted to create a PersistenceManagerFactory named transactions-optional, but one with this name already exists! Instances of PersistenceManagerFactory are extremely slow to create and it is usually not necessary to create one with a given name more than once. Instead, create a singleton and share it throughout your code. If you really do need to create a duplicate PersistenceManagerFactory (such as for a unittest suite), set the appengine.orm.disable.duplicate.pmf.exception system property to avoid this error. at org.datanucleus.store.appengine.jdo.DatastoreJDOPersistenceManagerFactory.getPersistenceManagerFactory(DatastoreJDOPersistenceManagerFactory.java: 135) now i can create a PMF named something seperate and it all works fine except it uses the exact same comments that have been posted - not exactly what i'm after! so i was wondering if anyone knows how to get around this e.g. how to set the appengine.orm.disable.duplicate.pmf.exception or something else? thanks, david -- 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] Increasing Task Queue Quota Limit
I managed to burn the whole taskqueue quota (1M) with some runaway recursive tasks for one of our apps. My bad, but is there any chance to get a temporary increase on the quota? Next reset is still 18h away. :) appid netcycler-qa -- 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] Question: How to use "login: admin" properly?
Hi, I am trying to set a section of my application as limited to admin access only. When I goto the the protected URL, I get the google login page - instead of the login page for my google apps account. If I try to login with my google apps account (which is administrator for the app) I am told it's the wrong email/password combo. How can I access the admin-only areas of my app? Here is my App.yaml file: application: myapp version: 1 runtime: python api_version: 1 handlers: - url: /DI2/(.*) static_files: DI2/\1 upload: DI2/(.*) login: admin - url: / static_files: static/welcome.html upload: static/welcome.html - url: / static_dir: static - url: /(.*) static_files: static/\1 upload: static/(.*) -- 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: Error: Server Error
Check your logs. I wonder if you will find in them something like "Too many open files". On Tue, Mar 16, 2010 at 1:08 PM, riq wrote: > Since yesterday I'm getting this error as well. But according to > AppEngine status (http://code.google.com/status/appengine) everything > is working fine. > > Any idea ? Thanks > > My application is: http://www.cocoslive.net > > -- > 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: If-Modified-Since HTTP conditional Get header supported in 1.3.1?
I see what you mean. In my case, the resource (with .xap extension, don't know if that matters) resides in GAE server as part of the deployed web app; there is not URL Fetch to fetch the resource from outside server. The resource is not located in the WEB-INF directory either; it is located under a directory called ClientBin under root. It is a static file that I thought should be treated like other static files; say, a jpg file. On Mar 16, 2:15 am, Alkis Evlogimenos ('Αλκης Ευλογημένος) wrote: > Ermm ok lets try for a third time :-). Say you have a GAE app and you > fetch pages from cnn.com. If cnn.com does not support If-Modified-Since then > you are never getting 304's back, no matter what headers you put in your > request. It has nothing to do with GAE. > > In the example above "server" is cnn.com. > > - alkis > > 2010/3/16 JC > > > > > Are you saying that not all GAE servers running in the Google data > > center support If-Modified-Since? Can you elaborate a bit more? The > > Java app was deployed to GAE data center which I assume is running the > > latest 1.3.1 which claims to support conditional Get. > > > On Mar 15, 6:15 pm, Alkis Evlogimenos ('Αλκης Ευλογημένος) > > wrote: > > > With server I mean the server you are fetching pages from. That server > > might > > > not have support for If-Modified-Since. > > > > - alkis > > > > 2010/3/16 JC > > > > > Thanks for the prompt reply! > > > > > I don't quite understand what you meant by server not supporting it. > > > > It is running against central GAE server, not my local development > > > > server. > > > > > As for the date format, This is the dump of the HTTP header through a > > > > network sniffer as follow.. It seems to be conforming to HTTP spec. Do > > > > you see anything wrong? > > > > > GET /ClientBin/oob.xap HTTP/1.1 > > > > If-Modified-Since: Tue, 16 Mar 2010 00:28:17 GMT > > > > User-Agent: Silverlight > > > > > Thanks, > > > > > On Mar 15, 2:22 pm, Alkis Evlogimenos ('Αλκης Ευλογημένος) > > > > wrote: > > > > > If-Modified-Since works in GAE. Either the server you are hitting > > does > > > > not > > > > > support it, or you are sending it a timestamp it doesn't understand. > > > > > > - alkis > > > > > > On Mon, Mar 15, 2010 at 6:28 PM, JC wrote: > > > > > > GAE 1.3.1 for Java includes a fix (issue 575) to support > > conditional > > > > > > get for static files. I have tried sending If-Modified-Since Get > > > > > > header to retrieve a static file from GAE, It always returns 200 > > (with > > > > > > full payload) instead of 304 (unmodified) even though the static > > file > > > > > > hasn't been changed for a while. I have cleared my browser cache so > > > > > > that the timestamp in the If-Modified-Since is current timestamp. > > It > > > > > > doesn't seem to work. Has anyone used If-Modified-Since on 1.3.1 > > with > > > > > > success? > > > > > > > -- > > > > > > 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 > > > > > > > > > > > > . > > > > > > For more options, visit this group at > > > > > >http://groups.google.com/group/google-appengine?hl=en.-Hidequoted > > > > text - > > > > > > - Show quoted text - > > > > > -- > > > > You received this message because you are subscribed to the Google > > Groups > > > > "Google App Engine" group. > > > > To post to this group, send email to google-appengine@googlegroups.com > > . > > > > To unsubscribe from this group, send email to > > > > google-appengine+unsubscr...@googlegroups.com > > > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/google-appengine?hl=en.-Hide quoted > > text - > > > > - Show quoted text - > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google App Engine" group. > > To post to this group, send email to google-appeng...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-appengine+unsubscr...@googlegroups.com > > . > > For more options, visit this group at > >http://groups.google.com/group/google-appengine?hl=en.- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Datastore Viewer Constantly Failing
Aloha, I have been unable to use the Datastore Viewer in the admin pages for some time now (at least five days). Every time I try to access it, I get: Server Error A server error has occurred. Return to Applications screen » Other pages in my admin screens seem to be functioning just fine. My add id is adorableurl Hope this helps! Thanks, Seth -- 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] Using String as primary key and loading large objects?
Hi, Kind of new to this, two questions if anyone can help: 1) I want to make some class that is persistent on the data store. I can use a primary key of either Long or String. It would be more convenient for me to use String as the primary key. Is this going to really hurt performance-wise when doing lookups for objects vs a Long? 2) I have some objects which are somewhat large, like: public class Story { private String mId; private String mTitle; private String mFullText; <-- large } if I want to get a list of Story items, I don't want to spend time loading the mFullText parameter on each one. I can hold off on loading that until a user wants to see the full story. Is there a way to implement two different load methods for Story to control this? Or do we simply break a class like this up into two separate classes: public class StoryDescription { private String mId; private String mTitle; } public class StoryText { private String mId; private String mFullText; } and load as needed? Thanks -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Users are not redirected back to app after creating a google account.
Totally agree. I had to build a full authentication system for that reason, because creating new Google Accounts was very confusing, moreover user was not forwarded to application. On Mar 16, 1:55 pm, Albert wrote: > Quoted from the > linkhttp://code.google.com/appengine/docs/python/users/overview.html#Sign... > > "Once the user has signed in or created a Google account, the user is > redirected back to your application. The app provides the redirect URL > to the method that generates the sign-in URL." > > I have tested this in my app, and the user is not redirected back to > the app after creating a google account. After creation of the google > account (after pressing the button marked, "I accept. Create my > account."), the user is directed to a "a verification link has been > sent to your email, please check your email" page. > > After opening the users email, and clicking the verification link, the > user is also not redirected to the app. > > I believe that this behavior is not good to apps, since users have to > manually go back to the app after creating a google account. For apps > that target novice internet users that don't have existing google > accounts, the "create account" process has to be very streamlined. > > By the way, an additional create_account_url() function to the Users > service could also be handy. -- 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] Templates in subfolders
What is the value of 'path' after the os.path.join()? 2010/3/15 Kenchu : > Displaying a template that resides in the main folder together with > the script works just fine, but as soon as I try to display one in a > subfolder, I get an error: > > TemplateDoesNotExist: index.htm > > It's weird that it doesn't display the full path. > > This is the code I use: > > path = os.path.join(os.path.dirname(__file__), 'flash/index.htm') > self.response.out.write(template.render(path,{})) > > Are you not allowed to display templates in subfolders? > > -- > 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: Error: Server Error
Since yesterday I'm getting this error as well. But according to AppEngine status (http://code.google.com/status/appengine) everything is working fine. Any idea ? Thanks My application is: http://www.cocoslive.net -- 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] Users are not redirected back to app after creating a google account.
Quoted from the link http://code.google.com/appengine/docs/python/users/overview.html#Signing_In_and_Out "Once the user has signed in or created a Google account, the user is redirected back to your application. The app provides the redirect URL to the method that generates the sign-in URL." I have tested this in my app, and the user is not redirected back to the app after creating a google account. After creation of the google account (after pressing the button marked, "I accept. Create my account."), the user is directed to a "a verification link has been sent to your email, please check your email" page. After opening the users email, and clicking the verification link, the user is also not redirected to the app. I believe that this behavior is not good to apps, since users have to manually go back to the app after creating a google account. For apps that target novice internet users that don't have existing google accounts, the "create account" process has to be very streamlined. By the way, an additional create_account_url() function to the Users service could also be handy. -- 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: If-Modified-Since HTTP conditional Get header supported in 1.3.1?
Ermm ok lets try for a third time :-). Say you have a GAE app and you fetch pages from cnn.com. If cnn.com does not support If-Modified-Since then you are never getting 304's back, no matter what headers you put in your request. It has nothing to do with GAE. In the example above "server" is cnn.com. - alkis 2010/3/16 JC > Are you saying that not all GAE servers running in the Google data > center support If-Modified-Since? Can you elaborate a bit more? The > Java app was deployed to GAE data center which I assume is running the > latest 1.3.1 which claims to support conditional Get. > > On Mar 15, 6:15 pm, Alkis Evlogimenos ('Αλκης Ευλογημένος) > wrote: > > With server I mean the server you are fetching pages from. That server > might > > not have support for If-Modified-Since. > > > > - alkis > > > > 2010/3/16 JC > > > > > > > > > Thanks for the prompt reply! > > > > > I don't quite understand what you meant by server not supporting it. > > > It is running against central GAE server, not my local development > > > server. > > > > > As for the date format, This is the dump of the HTTP header through a > > > network sniffer as follow.. It seems to be conforming to HTTP spec. Do > > > you see anything wrong? > > > > > GET /ClientBin/oob.xap HTTP/1.1 > > > If-Modified-Since: Tue, 16 Mar 2010 00:28:17 GMT > > > User-Agent: Silverlight > > > > > Thanks, > > > > > On Mar 15, 2:22 pm, Alkis Evlogimenos ('Αλκης Ευλογημένος) > > > wrote: > > > > If-Modified-Since works in GAE. Either the server you are hitting > does > > > not > > > > support it, or you are sending it a timestamp it doesn't understand. > > > > > > - alkis > > > > > > On Mon, Mar 15, 2010 at 6:28 PM, JC wrote: > > > > > GAE 1.3.1 for Java includes a fix (issue 575) to support > conditional > > > > > get for static files. I have tried sending If-Modified-Since Get > > > > > header to retrieve a static file from GAE, It always returns 200 > (with > > > > > full payload) instead of 304 (unmodified) even though the static > file > > > > > hasn't been changed for a while. I have cleared my browser cache so > > > > > that the timestamp in the If-Modified-Since is current timestamp. > It > > > > > doesn't seem to work. Has anyone used If-Modified-Since on 1.3.1 > with > > > > > success? > > > > > > > -- > > > > > 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 > > > > > > > > > . > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/google-appengine?hl=en.-Hide quoted > > > text - > > > > > > - Show quoted text - > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "Google App Engine" group. > > > To post to this group, send email to google-appengine@googlegroups.com > . > > > To unsubscribe from this group, send email to > > > google-appengine+unsubscr...@googlegroups.com > > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-appengine?hl=en.- Hide quoted > text - > > > > - Show quoted text - > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to google-appeng...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- 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: Please delete indexes that I cannot delete
Hi Ikai, It looks like there is one index still remaining with status "Error" and it's preventing other indexes to be built. WorkshopDate workshop ▲ , workshopDate ▲ Error Can you please delete this and let other indexes be created? Thank you, Shinichi On Mon, Mar 15, 2010 at 17:03, Shinichi Nakanishi wrote: > Thank you, Ikai. > > Shinichi > > On Mon, Mar 15, 2010 at 15:21, Ikai L (Google) wrote: >> These indexes have been placed into error state. Go ahead and run the >> vacuum_indexes tool. >> >> On Mon, Mar 15, 2010 at 2:20 PM, Shinichi Nakanishi >> wrote: >>> I really need to get rid of these zombie indexes that have been there >>> for a few days that cannot be deleted by vacuum_indexes. >>> >>> Someone from Google, please delete these asap. I cannot proceed my >>> development because of these 88 zombie indexes. >>> >>> Thank you, >>> >>> Shinichi >>> >>> On Mon, Mar 15, 2010 at 00:20, Shinichi Nakanishi >>> wrote: Hi. I have been trying to delete indexes, but I am not succeeding. There are 88 indexes that have never been built for a couple days. Their status has been "Building" and never been created or deleted. I have tried appcfg vacuum_indexes for several times but no luck. I believe I have tried everything I could, and arrived at a conclusion that I have to ask someone from Google to do that. Please delete my indexes that I can never get rid of. My app ID is 921145. I need to delete all of 88 indexes. Thank you, Shinichi >>> >>> -- >>> 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 >> http://googleappengine.blogspot.com | http://twitter.com/app_engine >> >> -- >> 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] Does datastore cache for ReferenceProperty?
Does datastore run query for Instructor each time? Or does it some sort of cache thing? If I have these models: class Instructor(db.Model) firstName = db.StringProperty() lastName = db.StringProperty() class Participant(db.Model) firstName = db.StringProperty() lastName = db.StringProperty() workshop = db.ReferenceProperty(Workshop, collection_name = "participants") class Workshop(db.Model) instructor = db.ReferenceProperty(Instructor) Then if I do the following, workshop = Workshop.all().get() for participant in workshop.participants: someMethod(workshop, participant) def someMethod(self, workshop, participant) if (workshop.instructor... # does it run query every time or does it cache? If datastore queries Instructor every time when I do workshop.instructor, I thought I should pass instructor as an argument. Shinichi -- 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.