[appengine-java] Re: multiple GAE apps under one Google Apps domain
Yes. The combo is possible... multiple domains pointing to the same App ID. I have a couple of apps already doing stuff... just ensure that you've got the domain mappings done correctly. -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Oct 18, 4:30 pm, Eliot Stock 1...@eliotstock.com wrote: Hi there, I'd like to create subdomains for various environments under my domain.com as follows: dev.domain.com would map to the app ID dev-domain-com test.domain.com - app ID: test-domain-com prod.domain.com - app ID: prod-domain-comwww.domain.com- app ID: prod-domain-com Is this possible? When adding the URL dev.domain.com to an existing GAE app, the redirect into the Google Apps control panel gives me the following error: Sorry, you've reached a login page for a domain that isn't using Google Apps This is not true: domain.com is definitely a domain using Google Apps. It's being confused by dev.domain.com though. Any ideas? Cheers, Eliot. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[google-appengine] Re: Body of a GET request
Hi Anton, I do not see anything in the request that suggests it has a body! What makes you suspect that... -- Happy Hacking, Gaurav Vaish www.mastergaurav.com On Nov 12, 2:25 pm, anton.belyaev anton.bely...@gmail.com wrote: Hello all, Sometimes I see in the logs GET requests with body! Seems, certain browsers consider the url too long and put the parameters of GET request into body. 11-12 01:00AM 57.065 / 500 47ms 23cpu_ms 0kb Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MRA 5.1 (build 02214); .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30),gzip(gfe) 80.246.254.254 - - [12/Nov/2010:01:00:57 -0800] GET / HTTP/1.1 500 425 http://myapp.appspot.com/?api_url=http://api.vkontakte.ru/ api.phpapi_id=99240api_settings=239viewer_id=7530073viewer_type=1sid=c11325deb7016dad0349569471a43aa63fb0d1984288915ffea6271f3dsecret=729d805171user_id=3628group_id=0is_app_user=1auth_key=71913aff2f505a26dlanguage=0parent_language=0api_result= %3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%0A %3Cresponse%20list%3D%22true%22%3E%0A%20%3Cuser%3E%0A%20%20%3Cuid %3E7530073%3C%2Fuid%3E%0A%20%20%3Cfirst_name%3E%D0%90%D0%BB%D0%B5%D0%BA %D1%81%D0%B0%D0%BD%D0%B4%D1%80%3C%2Ffirst_name%3E%0A%20%20%3Clast_name %3E%D0%9A%D0%BE%D0%B6%D0%B5%D0%B2%D0%BD%D0%B8%D0%BA%D0%BE%D0%B2%3C %2Flast_name%3E%0A%20%20%3Cphoto%3Ehttp%3A%2F%2Fcs9650.vkontakte.ru %2Fu7530073%2Fc_18edb437.jpg%3C%2Fphoto%3E%0A%20%20%3Ctimezone%3E3%3C %2Ftimezone%3E%0A%20%3C%2Fuser%3E%0A%3C%2Fresponse%3E %0Alc_name=271aae29hash= Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MRA 5.1 (build 02214); .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30),gzip(gfe) ciliziread.appspot.com ms=47 cpu_ms=23 api_cpu_ms=0 cpm_usd=0.000839 I am trying to process such requests correctly too. self.request.method is 'GET' indeed. But self.request.body is empty and I cant extract the parameters. Any idea on what could I do to process such requests? 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: Body of a GET request
IMHO, : is permitted in the URL and need not be escaped. However, '/' definitely needs to be escaped. -- Happy Hacking, Gaurav Vaish www.mastergaurav.com On Nov 13, 4:33 am, djidjadji djidja...@gmail.com wrote: I don't think that '/' and ':' are allowed characters in a GET parameter. You should try urllib.urlencode and see what it constructs and which chars are excaped with the given set of parameters. If this is an illegal GET request parameter list you might expect the parser to bail out and repost: NO parameter. api_url is not properly escaped, api_result has the chars '/:' escaped. Maybe pars the request string yourself. -- 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: Support for scope in OAuth API
Have a look at https://github.com/mohangk/appengine_oauth_provider -- Happy Hacking, Gaurav Vaish www.mastergaurav.com On Nov 12, 9:02 pm, Vladimir Prudnikov pru...@gmail.com wrote: Is there any chance to get support for scope in OAuth API or should I make custom OAuth Provider functionality if I need scopes? -- 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: Support for scope in OAuth API
Oops! Pressed the send button accidentally... Additionally, you may want to explore: http://code.google.com/p/oauth/ -- Happy Hacking, Gaurav Vaish www.mastergaurav.com On Nov 13, 6:50 am, MasterGaurav gaurav.va...@gmail.com wrote: Have a look athttps://github.com/mohangk/appengine_oauth_provider -- Happy Hacking, Gaurav Vaishwww.mastergaurav.com On Nov 12, 9:02 pm, Vladimir Prudnikov pru...@gmail.com wrote: Is there any chance to get support for scope in OAuth API or should I make custom OAuth Provider functionality if I need scopes? -- 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: Reset memcache immediately after deployment?
Hmm.. Great catch. Wondering if there is or can be some kind of time- stamp-of-the-deployed-app thing that can be put to use. Not sure but one option can be to always touch web.xml during deployment and then use the timestamp to determine if the memcache has to be invalidated. And do this only during application startup to avoid any regular overhead... -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Nov 2, 7:57 am, Stephen Johnson onepagewo...@gmail.com wrote: Wouldn't this reset the cache every time a new instance gets started not just when a new version is deployed. On Mon, Nov 1, 2010 at 6:27 PM, MasterGaurav gaurav.va...@gmail.com wrote: If you are using a Java application, you can do a memcache reset in the context startup. Look at the description of the interface javax.servlet.ServletContextListener. -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Nov 1, 11:05 pm, pdknsk pdk...@googlemail.com wrote: I'd like to automatically reset memcache immediately when I've uploaded a new version. Is this possible? I currently have a /reset script which I run manually every time. It's a bit tedious and I'd like to automate it, especially since there can be a delay of up to a minute between a deployment success message and the updated version actually being available. 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.comgoogle-appengine%2bunsubscr...@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: Do static files count towards bandwidth quota?
They do count towards bandwidth. In the log (I'm assuming the access logs), look at the response code. If it's 304 then in that case the browser used its local cache. -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Nov 2, 8:25 pm, pdknsk pdk...@googlemail.com wrote: I've noticed static files like favicon or external stylesheets are reported with 0 byte size in the log. -- 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: One big Model or several Models?
Hi Kaan, Have you looked into namespace support in modeling? I would personally vouch for one application with multi-tenancy. As for your load balancing over severs, it doesn't matter with GAE. You always point your DNS to ghs.google.com... so, the domain, application ID etc don't matter for scaling out. Google severs do all the hard work :) -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Nov 2, 9:02 am, Kaan Soral kaanso...@gmail.com wrote: I was thinking, Lets say I will have 1.000.000.000 users on 100.000 applications. So there are 100.000 applications that use the same code. Should I give every application its own Model to store users (Lets say 1 users), so that the applications may be load balanced over servers easily maybe? Or should I just use a single Model for 1.000.000.000 users? -- 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: Reset memcache immediately after deployment?
If you are using a Java application, you can do a memcache reset in the context startup. Look at the description of the interface javax.servlet.ServletContextListener. -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Nov 1, 11:05 pm, pdknsk pdk...@googlemail.com wrote: I'd like to automatically reset memcache immediately when I've uploaded a new version. Is this possible? I currently have a /reset script which I run manually every time. It's a bit tedious and I'd like to automate it, especially since there can be a delay of up to a minute between a deployment success message and the updated version actually being available. 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: HTTP ERROR 403
Did you look at the server logs? -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Nov 1, 4:01 am, jargon kotleat...@gmail.com wrote: I was following the jsp tutorial for google app engine and the following error occurred . HTTP ERROR 403 Problem accessing /. Reason: FORBIDDEN I tried everything possible , my web.xml is exactly the same as in the tutorial . Here is my web.xml . I'm using eclipse and can't get around with this problem . Thanks in advance servlet servlet-nameGuestbook/servlet-name servlet-classguestbook.GuestbookServlet/servlet-class /servlet servlet-mapping servlet-nameGuestbook/servlet-name url-pattern/guestbook/url-pattern /servlet-mapping welcome-file-list welcome-fileguestbook.jsp/welcome-file /welcome-file-list /web-app -- 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] Thread Support on GAE
Hi, Wondering is support for Thread is somewhere down the roadmap at GAE? The following structure is something that would be awesome: - Ability to start / control child threads in the app - Definitely, an upper cap on the maximum count - May be an upper limit on the time duration for which the thread can run - And the fundoo stuff... ability to enlist and terminate threads from the dashboard (may be this is too much of an ask) I understand there are several tough tasks related to managing them at the server end because they may run on any of the servers in the cloud... but nevertheless, it is doable... at least by G-Gang :) -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Thread Support on GAE
Hi David, I assume you are referring to Background servers capable of running for longer than 30s item at http://code.google.com/appengine/docs/roadmap.html If that's the case, it's very different from the threading support. -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Oct 22, 3:39 pm, David Parks davidpark...@yahoo.com wrote: I saw on the roadmap that they want to implement something like this using background task servers, in which you can submit your tasks to a background server without the time limitations. It's not clear if they would allow multiple threads, but that's probably a mute point. -Original Message- From: google-appengine@googlegroups.com [mailto:google-appeng...@googlegroups.com] On Behalf Of MasterGaurav Sent: Friday, October 22, 2010 4:57 PM To: Google App Engine Subject: [google-appengine] Thread Support on GAE Hi, Wondering is support for Thread is somewhere down the roadmap at GAE? The following structure is something that would be awesome: - Ability to start / control child threads in the app - Definitely, an upper cap on the maximum count - May be an upper limit on the time duration for which the thread can run - And the fundoo stuff... ability to enlist and terminate threads from the dashboard (may be this is too much of an ask) I understand there are several tough tasks related to managing them at the server end because they may run on any of the servers in the cloud... but nevertheless, it is doable... at least by G-Gang :) -- Happy Hacking, Gaurav Vaishhttp://www.mastergaurav.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group 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.
[appengine-java] Re: doPost with ID and email to save Blob (image)
Instead of saving it in DataStore, I would recommend using BlobStore. I do it something like this: - Retrieve all data uploaded using BlobstoreService::getUploadedBlobs - Do all the validation, as may be required (with other form data) - if !valid = BlobstoreService::delete(...) else = Keep it saved in blob-store and continue -Gaurav www.mastergaurav.com On Oct 21, 4:43 pm, erikzamith eice...@hotmail.com wrote: Hello, I have an image that would save the user (email) and a idimagen. I use a form to send email and idimagen (Book). But do not persistence. I also want to know how to limit the types of images (jpg, png and gif only). This is my public class Upload extends HttpServlet { @Override public void doPost(HttpServletRequest request, HttpServletResponse res) throws ServletException, IOException { Long bookid = -4L; String email = ; Blob imageBlob = null; try{ ServletFileUpload upload = new ServletFileUpload(); FileItemIterator iter = upload.getItemIterator(request); while(iter.hasNext()){ FileItemStream imageItem = iter.next(); if(imageItem.isFormField()) { String name = imageItem.getFieldName(); InputStream imgStream = imageItem.openStream(); byte [] buffer = new byte[1024]; int i=0; while(true) { int v = imgStream.read(); if(v == 0 || v == -1) break; buffer[i] = (byte) v; i++;} String value = new String(buffer,0,i); if(bookid.equals(name)){ bookid = Long.valueOf(value); System.out.println(bookid: +bookid);} if(email.equals(name)) email = value; System.out.println(email: +email);} else { InputStream imgStream = imageItem.openStream(); imageBlob = new Blob(IOUtils.toByteArray(imgStream));} } // construct our entity objects BookImage myImage = new BookImage(bookid, email, imageBlob); // persist image PersistenceManager pm = Commons.instance().getPersistenceManager(); pm.makePersistent(myImage); // respond to query res.setContentType(text/plain); res.getOutputStream().write(OK!.getBytes()); } catch(FileUploadException e){ e.printStackTrace(); } } } But when I show the picture, no picture, not saved any. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Automatic logout via Google Login Service ?
Hi, I assume that your application can distinguish between the user who is logged (as Google Accounts user) is a part of your application or not. You can try doing something like this (for automatic logout)... String link = userService.createLogoutURL(callbackUrl); if(!userInMyApp(request.getUserPrincipal())) { response.sendRedirect(link); return; } -Gaurav www.mastergaurav.com On Oct 21, 9:30 am, Didier Durand durand.did...@gmail.com wrote: Hello, I implemented UserService with GWT to get the login service of Google Accounts. Works fine with the provided login and logout links. But, Google Accounts will accept login for all the accounts it knows (much much more than my application with a few users only) How can I force logout of a user that Google Accounts accepts right after the login because my application doesn't know this user ? Thanks didier -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[google-appengine] Re: Total Files - Limit
Point taken. But then, why are 2000 files being counted at 4000+ files? -Gaurav On Oct 21, 8:40 am, sodso sodhisoluti...@gmail.com wrote: compress ur files into 1 zip file or something like that...thats what google recommends for uploading large number of files...cheers ! On Oct 20, 10:52 pm, MasterGaurav gaurav.va...@gmail.com wrote: Hi, I have 2079 files in my war folder. When I do a appcfg update war, I get a file-limit error for having 4141 files. How can 2079 files turn into 4141 files... where am I missing out? I remember having read somewhere that each file is counted twice in some conditions... don't remember what's the scenario... Any help is appreciated. -Gauravwww.mastergaurav.com 0% Creating staging directory 5% Scanning for jsp files. 20% Scanning files on local disk. 25% Scanned 250 files. 28% Scanned 500 files. 31% Scanned 750 files. 33% Scanned 1000 files. 34% Scanned 1250 files. 35% Scanned 1500 files. 36% Scanned 1750 files. 37% Scanned 2000 files. 37% Scanned 2250 files. 37% Scanned 2500 files. 37% Scanned 2750 files. 37% Scanned 3000 files. 37% Scanned 3250 files. 37% Scanned 3500 files. 37% Scanned 3750 files. 37% Scanned 4000 files. java.io.IOException: Applications are limited to 3000 files, you have 4141. Unable to update app: Applications are limited to 3000 files, you have 4141. -- 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: Total Files - Limit
In anycase, I have been able to put up SmartGWT with all its themes (Enterprise, EnterpriseBlue and Graphite) up and running at http://mastergaurav.appspot.com Using http://code.google.com/p/googleappengine/issues/attachmentText?id=161aid=-5789208962340039421name=ZipServlet.javatoken=ce2427885a6af79c774e7f084ae28339 Original issue info at http://code.google.com/p/googleappengine/issues/detail?id=161 -Gaurav www.mastergaurav.com On Oct 21, 11:36 am, MasterGaurav gaurav.va...@gmail.com wrote: Point taken. But then, why are 2000 files being counted at 4000+ files? -Gaurav On Oct 21, 8:40 am, sodso sodhisoluti...@gmail.com wrote: compress ur files into 1 zip file or something like that...thats what google recommends for uploading large number of files...cheers ! On Oct 20, 10:52 pm, MasterGaurav gaurav.va...@gmail.com wrote: Hi, I have 2079 files in my war folder. When I do a appcfg update war, I get a file-limit error for having 4141 files. How can 2079 files turn into 4141 files... where am I missing out? I remember having read somewhere that each file is counted twice in some conditions... don't remember what's the scenario... Any help is appreciated. -Gauravwww.mastergaurav.com 0% Creating staging directory 5% Scanning for jsp files. 20% Scanning files on local disk. 25% Scanned 250 files. 28% Scanned 500 files. 31% Scanned 750 files. 33% Scanned 1000 files. 34% Scanned 1250 files. 35% Scanned 1500 files. 36% Scanned 1750 files. 37% Scanned 2000 files. 37% Scanned 2250 files. 37% Scanned 2500 files. 37% Scanned 2750 files. 37% Scanned 3000 files. 37% Scanned 3250 files. 37% Scanned 3500 files. 37% Scanned 3750 files. 37% Scanned 4000 files. java.io.IOException: Applications are limited to 3000 files, you have 4141. Unable to update app: Applications are limited to 3000 files, you have 4141. -- 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] Total Files Limit (3000) and Zip/Unzip solution
Hi, I have put up an updated Unzippper servlet to serve static files (actually based on http://code.google.com/p/googleappengine/issues/detail?id=161#c68)... just in case you are looking for a solution. http://code.google.com/p/googleappengine/issues/detail?id=161#c88 My addendum: - Respond with a 304 in case of If-Modified-Since. Hope you find it useful :) -Gaurav www.mastergaurav.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Total Files Limit (3000) and Zip/Unzip solution
And now, added support for If-None-Match and ETag as well. Spawned a new project at Github - http://github.com/gvaish/gae-utils As before, any critics, feedback, inputs and bugs/issues are more than welcome :) -Gaurav http://www.mastergaurav.com On Oct 21, 5:09 pm, MasterGaurav gaurav.va...@gmail.com wrote: Hi Stephen, Great catch! Here's the updated code: --- if(req.getHeader(If-Modified-Since) != null) { long entryTime = entry.getTime(); String rawDate = req.getHeader(If-Modified-Since); Date headerDate; try { headerDate = DateUtil.parseDate(rawDate); long headerTime = headerDate.getTime(); if(headerTime = entryTime) { resp.setStatus(HttpServletResponse.SC_NOT_MODIFIED); return; } } catch(DateParseException e) { e.printStackTrace(); } } --- Doing an update to the server now...http://stackoverflow.com/questions/1930158/how-to-parse-date-from-htt... Removed the use of SimpleDateFormat and replaced it with DateUtil (as mentioned in the above post). -Gauravhttp://www.mastergaurav.com On Oct 21, 3:57 pm, Stephen sdea...@gmail.com wrote: On Oct 21, 8:43 am, MasterGaurav gaurav.va...@gmail.com wrote: Hi, I have put up an updated Unzippper servlet to serve static files (actually based onhttp://code.google.com/p/googleappengine/issues/detail?id=161#c68)... just in case you are looking for a solution. http://code.google.com/p/googleappengine/issues/detail?id=161#c88 My addendum: - Respond with a 304 in case of If-Modified-Since. I don't think this will work: if(req.getHeader(If-Modified-Since) != null) { resp.setStatus(HttpServletResponse.SC_NOT_MODIFIED); return; } If the contents of the zipfile are updated, and the client sends an if- modified-since header, you will respond with a 304 not modified response and the client will show stale content. You need to parse the data supplied with the if-modified-since header and compare it to the last modified time of the file within the zipfile, or at least to the zipfile as a whole. -- 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] Total Files - Limit
Hi, I have 2079 files in my war folder. When I do a appcfg update war, I get a file-limit error for having 4141 files. How can 2079 files turn into 4141 files... where am I missing out? I remember having read somewhere that each file is counted twice in some conditions... don't remember what's the scenario... Any help is appreciated. -Gaurav www.mastergaurav.com 0% Creating staging directory 5% Scanning for jsp files. 20% Scanning files on local disk. 25% Scanned 250 files. 28% Scanned 500 files. 31% Scanned 750 files. 33% Scanned 1000 files. 34% Scanned 1250 files. 35% Scanned 1500 files. 36% Scanned 1750 files. 37% Scanned 2000 files. 37% Scanned 2250 files. 37% Scanned 2500 files. 37% Scanned 2750 files. 37% Scanned 3000 files. 37% Scanned 3250 files. 37% Scanned 3500 files. 37% Scanned 3750 files. 37% Scanned 4000 files. java.io.IOException: Applications are limited to 3000 files, you have 4141. Unable to update app: Applications are limited to 3000 files, you have 4141. -- 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 App Engine Ok now for others? Too many errors in 8:21 AM
And at this point in time, I am unable to upload files to Blobstore :( -Gaurav www.mastergaurav.com On Oct 19, 9:34 pm, Col Wilson terse...@gmail.com wrote: Mine seems to have improved too. So far. Let's hope... On Oct 19, 5:05 pm, Rafael Sierra rafaeljs...@gmail.com wrote: On Tue, Oct 19, 2010 at 1:42 PM, Kangesh Gunaseelan kang...@gmail.com wrote: Hello, I am getting a bunch of HardDeadlineExceededError this morning and Request Aborted errors since 8:20 AM PST today. None of the requests in the past 20 minutes have succeeded. Are others experiencing the issue? Google folks, Can you please update? Thanks! I got only 6 errors (all timeouts) and 51.21k requests in the past 9 hours, it seems fine to me -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Rafael Sierrahttp://blog.rafaelsdm.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Blobstore Service Problem!
Hi, Not sure if it's an outage / issue with other apps as well. I am unable to upload files to the blobstore since last 1hr or so. On the URL /_ah/upload/blah, the does get submitted. The servlet's doPost does get invoked. I do get proper MapString, BlobKey using getUploadedBlobs but then, I don't see any data in the blob-store and also the BlobInfoFactory returns a NULL BlobInfo. :( -Gaurav www.mastergaurav.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Blobstore Service Problem!
Ok... so, I am not alone in this universe. It's working now. Thanks all for responding and consoling me. :-D -Gaurav www.mastergaurav.com On Oct 20, 3:02 am, Charlie charlieev...@mac.com wrote: I'm seeing the same problem. On Oct 19, 4:25 pm, MasterGaurav gaurav.va...@gmail.com wrote: Hi, Not sure if it's an outage / issue with other apps as well. I am unable to upload files to the blobstore since last 1hr or so. On the URL /_ah/upload/blah, the does get submitted. The servlet's doPost does get invoked. I do get proper MapString, BlobKey using getUploadedBlobs but then, I don't see any data in the blob-store and also the BlobInfoFactory returns a NULL BlobInfo. :( -Gauravwww.mastergaurav.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Announcing the Matcher API for Trusted Testers
Hi Ikai, That's a fantastic news! btw wondering if processing pipeline architecture is somewhere down the line in the roadmap? I have been working with FAST and OpenPipe, to name a couple, for document processing... and it will be great to have such a feature incorporated. Is something in roadmap yet? Or any visbility on the same? -Gaurav www.mastergaurav.com On Oct 20, 5:36 am, Ikai Lan (Google) ikai.l+gro...@google.com wrote: That's my fault, here's a working link: https://spreadsheets.google.com/a/google.com/viewform?hl=enformkey=d... And yes, Java support is coming. -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger:http://googleappengine.blogspot.com Reddit:http://www.reddit.com/r/appengine Twitter:http://twitter.com/app_engine On Tue, Oct 19, 2010 at 5:29 PM, Nickolas Daskalou n...@daskalou.comwrote: Hi Ikai, I've tried accessing the trusted tester list but I get this permission error from Google Docs: We're sorry, my email address does not have permission to access this spreadsheet. You are signed in as my email address, but that email address doesn't have permission to access this spreadsheet. (Sign in as a different user or request access to this document) where my email address is this email address I'm sending from now (it's my Google Apps + Google Account email address). Nick On 20 October 2010 11:10, Ikai Lan (Google) ikai.l+gro...@google.comikai.l%2bgro...@google.com wrote: Hey everyone, I wanted to announce that we are accepting signups for trusted testers for the Python Matcher API, which is available for local testing in the 1.3.8 SDK. The Matcher API allows developers to take advantage of Google's high performance matching infrastructure. Developers will be able to register a large number of queries for incoming documents to be matched against. The API will then match these queries against numerical and text properties of incoming data at a very high rate. To better illustrate what the Matcher API can do, let’s pretend you are building a site that notifies users on stock ticker price changes. That is - a user of the site might sign up and register to receive alerts anytime BRK.A is greater than $500 but lower than $525 (by the way, if Berkshire Hathaway is ever in this price range, sell everything you have and buy. Disclosure: I am not a registered financial advisor). Here’s how this might be implemented on App Engine before: 1. When a user wants to create a new alert, a new AlertCondition entity is created. This entity records the ticker_symbol, min_price, max_price, and email to notify. 2. On an incoming notification of a stock price change of BRK.A between $500 and $525, we filter AlertCondition entities. Entities that match are returned, and from these entities, we create offline tasks to email each of the users about the price change. This works decently, given that we don’t have many stock price changes or many alerts in the system. As the number of AlertConditions go up, we will need to change our application to break the queries into multiple pages, or even move them into task queues. Unfortunately for us, stock prices change very frequently, and (we hope) we will have many users. Fetching tens of thousands of Alert Conditions from the datastore can take on the order of seconds, causing the implementation detailed above to be difficult to scale for our expected usage. How does the Matcher API help us solve this problem? --- The Matcher API allows us to register a set of queries, then filter incoming documents against these queries in a scalable, high-performance fashion. The type of problem being solved in the stock price notification example is a good example of how the Matcher API can be used. Here’s what we’d have to do in our application using the Matcher API: 1. When a user wants to create a new alert, we acquire an instance of a Python matcher object and register queries. 2. On an incoming stock price change, we run the alert against the matcher and try to find all the queries that matched. As queries are found, the matcher API enqueues tasks to process the results offline. Unlike the implementation using the datastore in the earlier example, the Matcher API performs checks in parallel and runs using a completely different service optimized for this use case. A single price change notification could match against hundreds of thousands of queries in the time span of a few seconds. Let’s show this example in code (also posted here: http://pastie.org/1234174): # We’re going to call subscribe. Here’s what we’re passing: # dict - this means we are going to match against a Python dictionary. We can also # pass a db.Model type to match against. For instance, StockPrice # “symbol: GOOG AND price 500 AND price 525” - this is our query # “ikai:GOOG” - this is the
[google-appengine] GAE File Upload in IE8
Hi, I am facing a strange problem while uploading file using GWT + GAE. I am using IE8. I get an Access Denied error for the URL: http://www.google.com/extern_js/f/CgJlbiswRTgALCswWjgALCswDjgALCswFzgALCswJzgALCswPDgALCswUTgALCswWTgALCswCjgAQC-aAgJwcywrMBY4ACwrMBk4ACwrMCU4z4gBLCswKjgLLCswKzgRLCswNTgALCswQDgALCswQTgALCswTjgGLCswUzgALCswVDgALCswYzgALCswHTgAmgICcHMsKzBcOAAsKzAYOAAsKzAmOAAsgAIZkAIg/vS-hkGU2XYc.js Now, what's this for? I never referred to any Google APIs except for standard GWT. More so, I do not get this error on Firefox or Chome. Any guesses? -Gaurav www.mastergaurav.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Datastore and File Upload Size
Hi, I trying to upload file onto Blob Store. I am able to upload files only upto 1MB. Anything beyond 1MB doesn't reach the servlet. Is it a hard limit or am I doing something wrong? I'm using simple code... --- BlobstoreService blobSvc = BlobstoreServiceFactory.getBlobstoreService(); MapString, BlobKey blobs = blobSvc.getUploadedBlobs(req); --- -Gaurav www.mastergaurav.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Blobstore Billing
Hi, The billing quotas page at http://code.google.com/appengine/docs/quotas.html#Blobstore reads that the Free Default Quota is 1GB and Billing Enabled Default Quota is 1GB. Is this per-day quota? If so, it should get reset everyday... am I correct in my understanding? Or is the pricing of total data stored cumulatively over time? I notice the usage of Total Stored Data moving up everyday but never getting reset. I am a little confused on this pricing... any help will be appreciated. -Gaurav www.mastergaurav.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Eclipse deletes my images upon deploying
Where are the images located? In the war folder? That's the only one uploaded onto the server. Just recheck and ensure that the images do get copied within the war folder (base or sub-folder). -Gaurav www.mastergaurav.com On Oct 18, 3:59 pm, Michael mike.mo...@gmail.com wrote: Hi, my application runs just fine locally, but my problem is that when i try to deploy it, eclipse deletes my images and none of them are uploaded. I looked for some time now on how to solving it, but i found no post nor documentation about 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.