Re: [appengine-java] Re: Reading a Google Doc from google app engine code
Hie Amit Thanks however when i read the input stream using: String content = CharStreams.toString(new InputStreamReader(inStream)); It prints all boxed characters rather plain english text. Please advise Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Fri, Nov 11, 2011 at 5:46 PM, Amit Pandey amit.s...@gmail.com wrote: Mistakenly send wrong code. Here is correct code. On Fri, Nov 11, 2011 at 5:35 PM, Amit Pandey amit.s...@gmail.com wrote: Hi ViK, I did the same before and I use *org.apache.poi.hwpf.HWPFDocument* API. Following code snippet may be useful for you. Let me know if this works. for (DocumentListEntry entry : resultFeed.getEntries()) { String docId = entry.getDocId(); String docType = entry.getType(); URL exportUrl = new URL(https://docs.google.com/feeds/download/; + docType + s/Export?docID= + docId + exportFormat=doc); MediaContent mc = new MediaContent(); mc.setUri(exportUrl.toString()); MediaSource ms = client.getMedia(mc); InputStream inStream = ms.getInputStream(); // Now read the content from input stream. break; } Thanks, Amit On Thu, Nov 10, 2011 at 4:09 PM, Vik vik@gmail.com wrote: Hie Thanks I went through it and could at least get the handle to the google text doc i needed. I am now stuck at how to read the contents. My code looks like: GoogleOAuthParameters oauthParameters = new GoogleOAuthParameters(); oauthParameters.setOAuthConsumerKey(Constants.CONSUMER_KEY); oauthParameters.setOAuthConsumerSecret(Constants.CONSUMER_SECRET); oauthParameters.setOAuthToken(Constants.ACCESS_TOKEN); oauthParameters.setOAuthTokenSecret(Constants.ACCESS_TOKEN_SECRET); DocsService client = new DocsService(sakshum-YourAppName-v1); client.setOAuthCredentials(oauthParameters, new OAuthHmacSha1Signer()); URL feedUrl = new URL( https://docs.google.com/feeds/default/private/full/;); DocumentQuery dquery = new DocumentQuery(feedUrl); dquery.setTitleQuery(blood_donor_verification_template_dev); dquery.setTitleExact(true); dquery.setMaxResults(10); DocumentListFeed resultFeed = client.getFeed(dquery, DocumentListFeed.class); System.out.println(feed size: + resultFeed.getEntries().size()); String emailBody = ; for (DocumentListEntry entry : resultFeed.getEntries()) { System.out.println(entry.getPlainTextContent()); emailBody = entry.getPlainTextContent(); } Plz note that entry.getPlainTextContent() does not work and throws object not TextContent type exception Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, Nov 6, 2011 at 10:24 PM, Vik vik@gmail.com wrote: Thanks for replying actually i just googled and could not really find matching to my needs. thanks for the pointer this should be helpful. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Fri, Nov 4, 2011 at 12:01 AM, Ikai Lan (Google) ika...@google.comwrote: Have you read this? What are your thoughts? What have you tried? http://code.google.com/apis/documents/ Vik, your posts would be a lot more useful if you: 1. List what you have tried 2. Describe what didn't work 3. Describe what it is you are trying to do I like the fact that you keep emails short, but I suspect other people on this list have tuned you out because you're just not providing enough information when you ask for help and it's too much detective work for people who would actually help out otherwise. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Thu, Nov 3, 2011 at 10:42 AM, Vik vik@gmail.com wrote: someone please help on this. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Oct 31, 2011 at 7:11 PM, Vik vik@gmail.com wrote: Hie Can someone please guide on how to read a google doc from my gae code? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- 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. -- 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. -- 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
[appengine-java] Re: Upload files through backend
Yep Bruno: you are right!!! I found a problem with multiple file upload: http://code.google.com/p/googleappengine/issues/detail?id=3351q=uploadcolspec=ID%20Type%20Component%20Status%20Stars%20Summary%20Language%20Priority%20Owner%20Log Do you know any workaround? I am trying to substitute onSubmit the input type=file id=filesToUpload name=myPic[] multiple=multiple/ .. with several: input type=file id=filesToUpload name=myPic[]/ .. but I still have some problems .. On Nov 9, 12:37 pm, Bruno Fuster brunofus...@gmail.com wrote: Hi, You shouldn't have these limitations when using blobstoreService.createUploadUrl(/upload) Att On Wed, Nov 9, 2011 at 6:34 PM, Miguel doctormig...@gmail.com wrote: Hi everyone, I need to upload big files to the Google App Engine blobstore and I was thinking about a possible solution .. The problem with the normal frontend is the 60 seconds timeout, but from what I understood about backends the problem there is that I have to pass from a queue and so the client will lose the endpoint with server, am I right? Is there a way to pass transparently the upload calls to a backend in order to run indefinitely, so that the client can upload also big files? Thank you, Michele -- 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. -- Bruno Fuster -- 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: Datastore Stored Data Quota Report Wrong
by default every property is indexed except Blob / Text, and these indexes are not listed on your index page. Try to unindex them and see how much space you can save. With regards to your *only* composite index, is list property invovled? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/nrwuaUj3e_EJ. 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.
[google-appengine] Two different customer domains point to different versions of same appid
I searched through previous custom domain questions and couldn't find this exact one, sorry if it is a repeat. We test our apps in various stages using multiple appid for integration, qa, etc. In our qa version, we will try to reproduce as close to production data as possible, but that's a whole other discussion. We have these mapped under our own domain like test.mydomain.com, qa.mydomain.com and all is fine. BTW: Our domain is a Google Apps domain, but that just needs a different entry in your Google Apps Domain dashboard, no problem. After testing in QA, we deploy the new release to production appid. But before throwing the switch and making it the default version, I'd like to be able to test it using the current production data. We can do much of this, using one of the version urls on appspot, like: http://1-22-5.myappid.appspot.com/ But there are some things that can't be tested (and others that are different) if the site is not under our own domain. Facebook login (and other services that require you to setup your domain against your account) is one. Question === Is there any way to have two different versions of my app, deployed on the same appid, map to different subdomains of my own domain? Example: appid = myappid version 1.0 - set as default version - main.mydomain.com (also at http://1-0.myappid.appspot.com/) version 1.1 - - next.mydomain.com(also at http://1-1.myappid.appspot.com/) I have it setup as a Google App Engine service in my Google Apps Domain Settings console, but if I add the new URL for it (next.mydomain.com) there is no way to tell it to point to a different version, it will also go to the default version. Thanks for any 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-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.
[google-appengine] Perform sum / count / like query on appengine! Yaac 0.2 is out!
Hi guys, Yaac (Yet Another Admin Console) 0.2 is just released, which helps you to do lots of things you can't do with existing admin console. Here is an incomplete list: Extended GQL (EGQL) Aggregation functions, used together with group by clause and having clause (optional): MAX, MIN, SUM, COUNT, AVG Scalar functions: UCASE / LCASE / MID / LEN / ROUND / FORMAT / NOW / TYPE / DATETIME / KEY(* New*) / USER(*New*) / GEOPT(*New*) Inter properties comparison in where clause: eg, *where property1 = property2* Powerful Arithmetic Expressions: eg, *where property1 + 5 property2 * (2 + property3)* Powerful boolean expressions: eg, *where condition1 and (condition2 or condition3) and not condition4* Like query: eg, *where ucase(property1) like %abc% (new)* More details about EGQL syntax please refer to this page: http://code.google.com/p/yaac/wiki/EGQLReference Datastore Browser: Download datastore blob / text and blobstore blob directly (*new*) Better display keys in list property (*new*) Datastore Statistics: More detailed breakdown on root / non root statistics Features comming soon: sql like Insert / update / delete statements Filter in datastore browser (triditional GQL) sub-query table join billing estimation before query execution (how expensive is the query, more specifically how many datastore operations?) Cross namespace query and more... Sandbox (http://sandbox.yetanotheradminconsole.appspot.com/) is updated with the latest version. 86K soccer matches are uploaded. Login with your google account and play with it! For example, for all *Arsenal*'s away draw matches against those end with *united *having average full time goals are more than 1, we can use following EGQL to query: * select HOME_TEAM, AWAY_TEAM, count(1), sum(FTHG + FTAG) from MATCH where FTHG = FTAG and AWAY_TEAM = Arsenal and lcase(HOME_TEAM) like %united group by HOME_TEAM, AWAY_TEAM having sum(FTHG + FTAG) / count(1) 1 * You can also use this link to try new look of entity viewer (entity with grandparent with almost all datatypes) http://sandbox.yetanotheradminconsole.appspot.com/#editor:ahhzfnlldGFub3RoZXJhZG1pbmNvbnNvbGVydwsSFktJTkRfV0lUSF9BTExfUFJPUEVSVFkYZAwLEhZLSU5EX1dJVEhfQUxMX1BST1BFUlRZIhlzdHJpbmdfa2V5X3dpdGhvdXRfZW50aXR5DAsSFktJTkRfV0lUSF9BTExfUFJPUEVSVFkiCnN0cmluZ19rZXkM To deploy Yaac to your own domain refer to this page: http://code.google.com/p/yaac/wiki/DeployGuideline Any feedback is welcome! -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/LM8kcMHIMhsJ. 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.
[google-appengine] Re: How quick is delivering a message through Channels API
Certainly faster than a second. On Nov 11, 2:19 pm, Andrius andriu...@gmail.com wrote: Hi guys, I have an app which does ajax request every second to get data from the server and display in the browser. My question is how quickly messages are delivered through Channels API to the client? Does anyone measure the latency? Will it deliver messages faster than doing ajax request every second? Would be grateful for you knowledge. Thx, Andrius -- 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.
[google-appengine] Re: New bill did not draw from my Discounted Instance Hours pool
Both microsite-prod and nbrg-prod are now drawing from their respective Discount Instance Hours pools as of the Nov 9 billing report. j On Nov 10, 9:40 am, Jason Collins jason.a.coll...@gmail.com wrote: Actually, I have a second app that is also functioning this way: nbrg- prod. On Nov 10, 9:36 am, Jason Collins jason.a.coll...@gmail.com wrote: This is still occurring on the second day of new pricing model billing. That is, all my other python apps are drawing from the discounted instance hours pool, except for microsite-prod - it is billing everything against the regular Front-end Instance Hours even though a Discount Instance Hours pool is configured. Any ideas? j -- 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.
Re: [google-appengine] Re: New bill did not draw from my Discounted Instance Hours pool
discounted instance hours is 0.025/hour during the half price period. On Nov 10, 2011 3:02 PM, Murph paul.j.mu...@googlemail.com wrote: If you're on Python, the cheapest option is currently 0 discounted hours, as the normal frontend hours are already discounted, until December. Current rates are: Python Frontend: $0.04/hour (normal rate $0.08/hour) Discounted hours: $0.05/hour Unless I've missed something? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/8-xZS6YNQDQJ. 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. -- 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.
[google-appengine] Image upload
Hi, I need to upload an image to GAE server and store it in datastore. I looked for many options and found that FileUpload widget released with GWT 2.4 can do it but the restriction is that this widget must be used with FormPanel. but i dont want to use formPanel. Can anyone suggest me the best possible way w.r.t GWT + GAE I am using GWT 2.4, GAE 1.5.5 Thanks Deepak Singh -- 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.
Re: [google-appengine] Image upload
We have sample code for uploading an image in our open-source adrianremembersme-django project (though this is not using GWT). To use the latest version of it, just create a project on CoderBuddy using the Starting Content options of Guestbook App - Adrian Remembers Me - Django or Adrian Remembers Me - Django. The upload image code is used to store a person's profile photo. You can customize from there. (After you create your first project, you'll have these Starting Content options in the second project.) Hope this helps -- enjoy, -A -- Adrian Scott, Ph.D. CEO, Founder CoderBuddy http://www.coderbuddy.com/ -- Create a Facebook or Google App Engine app in a minute without installing anything On Sat, Nov 12, 2011 at 10:32 AM, Deepak Singh deepaksingh...@gmail.comwrote: Hi, I need to upload an image to GAE server and store it in datastore. I looked for many options and found that FileUpload widget released with GWT 2.4 can do it but the restriction is that this widget must be used with FormPanel. but i dont want to use formPanel. Can anyone suggest me the best possible way w.r.t GWT + GAE I am using GWT 2.4, GAE 1.5.5 Thanks Deepak Singh -- 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. -- 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.
Re: [google-appengine] Re: What happened to the promised reliability improvement for email delivery?
On Fri, Nov 11, 2011 at 7:07 PM, jon jonni.g...@gmail.com wrote: Assume #3. Use a different email provider. There are countless to choose from. Jeff can you recommend one? We're about to integrate with messagebus.com but I don't know enough about their service yet to give the big thumbs up. They're run by very cool people, so all lights are green so far. I'm pretty close to adopting a startup-only policy for service providers. The support we've been getting from MessageBus and WePay (especially WePay!) has been nothing short of astounding. You'll never get the time of day out of Amazon or PayPal. Despite Google's silence on this particular issue (which I suspect is due to a questionable commitment), the support here in this forum has been really good - I'm not sure if you realize it, but the people answering questions in this forum are often the actual engineers developing features. As far as email goes - personally, I'd rather Appengine shut down the email API and put those developers to work on something else. Email is something that many other providers do well, and there's no particular benefit to having it built in (getting two bills is truly a first world problem). I'd rather Google focus on the hard problems which can't easily be implemented by third parties - spatial indexes, pull queue grouping, transactional task deleting, etc. These enable whole new solution domains. Think about the major new features that the GAE team has rolled out in the last year... the HRD, XG transactions, Backends, Exploding Index Repellant, Pull Queues, Memcache CAS, Deferred Tasks, Cursors, Async Datastore Operations... every time one of these features comes out I think How did I ever write code without this? That's what I want more of. 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-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.
Re: [google-appengine] Re: What happened to the promised reliability improvement for email delivery?
As far as email goes - personally, I'd rather Appengine shut down the email API and put those developers to work on something else. Email I agree, completely... well almost completely... Keep the current basic email to help newbies play and test, but minimize devoting any further significant resources and possibly relabel that api as beta/experimental or at least as not destined to receive lots of attention right away, to be up front about it. It's a non-trivial, high-nuisance service to provide/maintain. -A -- Adrian Scott, Ph.D. CEO, Founder CoderBuddy http://www.coderbuddy.com/ -- Create a Facebook or Google App Engine app in a minute without installing anything is something that many other providers do well, and there's no particular benefit to having it built in (getting two bills is truly a first world problem). I'd rather Google focus on the hard problems which can't easily be implemented by third parties - spatial indexes, pull queue grouping, transactional task deleting, etc. These enable whole new solution domains. Think about the major new features that the GAE team has rolled out in the last year... the HRD, XG transactions, Backends, Exploding Index Repellant, Pull Queues, Memcache CAS, Deferred Tasks, Cursors, Async Datastore Operations... every time one of these features comes out I think How did I ever write code without this? That's what I want more of. 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-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. -- 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.
[google-appengine] Share free billing quota over all API
Hi GAE developpers and sorry if I miss a similar thread. I'm using GAE for my hobbie, an open source application. Application is running under all free quota except one: Channel API... I'm going to pays the 9$/month for 200 opened channels a days. So, my request is very simple: could you share the free quota over all API ? Or can we tuned the free quota ? Did you planed different billing policy for open source and not commercial application ? Finally, are the minimum spend per month still be present in our balance if not used ? just in case our site become famous ;) -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/j83k1FdDE68J. 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.
[google-appengine] Re: How quick is delivering a message through Channels API
I've swiched from pulling to channel without problem. Like Max say, latency is neglectable. It also save bandwith and cpu time. Still a little billing issue: channel are cheap but free quota is only 100 opened chanels per days. In my case I'm going to pay the 9$ only for channels. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/iYn_3yy1yhQJ. 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.
[google-appengine] Re: What happened to the promised reliability improvement for email delivery?
If Google announced to drop further support for the mail API, that would be fine, because developers can make an informed decision then. I'm mostly interested in DKIM, which has the potential to really improve reliability and seems (from my basic understanding) almost trivial to implement. Why? It's already set up when you register a domain through Google Apps. Google adds DKIM headers automatically to all emails send from the Google Mail interface. So all that's missing is an additional dkim parameter which automatically adds those headers when sending through App Engine. It might even be possible for developers to calculate and add those headers themselves, if Google adds DKIM-Signature to allowed headers. -- 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.
Re: [google-appengine] Re: What happened to the promised reliability improvement for email delivery?
The email needs to be sorted. No email sent to a hotmail account from the app engine seem to arrive! Sent from my iPhone On 12 Nov 2011, at 19:36, pdknsk pdk...@googlemail.com wrote: If Google announced to drop further support for the mail API, that would be fine, because developers can make an informed decision then. I'm mostly interested in DKIM, which has the potential to really improve reliability and seems (from my basic understanding) almost trivial to implement. Why? It's already set up when you register a domain through Google Apps. Google adds DKIM headers automatically to all emails send from the Google Mail interface. So all that's missing is an additional dkim parameter which automatically adds those headers when sending through App Engine. It might even be possible for developers to calculate and add those headers themselves, if Google adds DKIM-Signature to allowed headers. -- 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. -- 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.
[google-appengine] Re: Python 2.7 multithreaded: ereporter mapreduce compatibility
Hi Brian, As for google.appengine.ext.mapreduce.application Does it mean the SDK/runtime already has its mapreduce? Right now, I still supply an additional copy in my app folder. If SDK/runtime already has it, I will delete my own copy. How about the pipeline? Thanks, coronin On Nov 10, 6:10 pm, Brian Quinlan bquin...@google.com wrote: On Fri, Nov 11, 2011 at 2:44 AM, Pol p...@everpix.net wrote: Hi, What are the plans to get these 2 extensions compatible with Python 2.7 multithreaded? $PYTHON_LIB/google/appengine/ext/mapreduce/main.py $PYTHON_LIB/google/appengine/ext/ereporter/report_generator.py I assume that you are seeing an error during the parsing of your appcfg.py file? The error message should say that you can't use a CGI with threadsafe. The solution is to use WSGI in your handlers instead i.e. google.appengine.ext.mapreduce.application google.appengine.ext.ereporter/report_generator.application Cheers, Brian Thanks, - Pol -- 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 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-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.
Re: [google-appengine] Re: Python 2.7 multithreaded: ereporter mapreduce compatibility
Hi coronin, On Sun, Nov 13, 2011 at 8:05 AM, working coro...@gmail.com wrote: Hi Brian, As for google.appengine.ext.mapreduce.application Does it mean the SDK/runtime already has its mapreduce? Right now, I still supply an additional copy in my app folder. If SDK/runtime already has it, I will delete my own copy. How about the pipeline? The SDK and runtime does include a copy of mapreduce but it is recommended that you include your own copy because mapreduce is experimental and incompatible changes may still be made. Including your own copy will protect your from this. Cheers, Brian Thanks, coronin On Nov 10, 6:10 pm, Brian Quinlan bquin...@google.com wrote: On Fri, Nov 11, 2011 at 2:44 AM, Pol p...@everpix.net wrote: Hi, What are the plans to get these 2 extensions compatible with Python 2.7 multithreaded? $PYTHON_LIB/google/appengine/ext/mapreduce/main.py $PYTHON_LIB/google/appengine/ext/ereporter/report_generator.py I assume that you are seeing an error during the parsing of your appcfg.py file? The error message should say that you can't use a CGI with threadsafe. The solution is to use WSGI in your handlers instead i.e. google.appengine.ext.mapreduce.application google.appengine.ext.ereporter/report_generator.application Cheers, Brian Thanks, - Pol -- 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 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-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. -- 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.
Re: [google-appengine] Re: New Acceptable Use: Porn?
Wow Google is getting off the white horse finally. Are there similar changes coming to Adwords? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/-nTopdr-A58J. 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.
[google-appengine] Re: Image upload
GWT is compiled to JavaScript: it can't do what JavaScript can't either. The trick of FileUpload is sending the form (and the file) in a hidden iframe; that way you haven't to reload the whole page. There is a good reason not to use FormPanel? Ikai has a blog post with some sample code using GWT to upload images to appengine: http://ikaisays.com/2010/09/08/gwt-blobstore-the-new-high-performance-image-serving-api-and-cute-dogs-on-office-chairs/ and the demo: http://ikai-photoshare.appspot.com/ El sábado 12 de noviembre de 2011 16:32:07 UTC+1, Deepak Singh escribió: Hi, I need to upload an image to GAE server and store it in datastore. I looked for many options and found that FileUpload widget released with GWT 2.4 can do it but the restriction is that this widget must be used with FormPanel. but i dont want to use formPanel. Can anyone suggest me the best possible way w.r.t GWT + GAE I am using GWT 2.4, GAE 1.5.5 Thanks Deepak Singh -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/BGrAiR5lzbUJ. 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.
[google-appengine] Re: Datastore Stored Data Quota Report Wrong
no ... my compound index is a combination of a timestamp and a string and only need desc timestamp, no list property involved ... the forking of the list property searching has scared me away from them (fyi) a while back (after the new pricing was announced), i unindexed lots of fields and it reduced indexed writes by a factor of 40 ... is it possible that these former indexes on fields could still be occupying space and, if so, is there a way to get rid of them since i no longer index those fields? e.g. if i copy a namespace and delete the former namespace will that get rid of field indexes which are no longer indexed ... thank so much for your help ... p.s. finally, when i first created my entities i did not realize that every field was indexed by default but finally figure it out ... :) On Nov 12, 4:16 am, Max thebb...@gmail.com wrote: by default every property is indexed except Blob / Text, and these indexes are not listed on your index page. Try to unindex them and see how much space you can save. With regards to your *only* composite index, is list property invovled? -- 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.
[google-appengine] Re: New Acceptable Use: Porn?
Suddenly GAE cost looks cheap compared to its potential ;-) On Nov 11, 8:14 am, Gregory D'alesandre gr...@google.com wrote: I was wondering when someone was gonna notice. This was not a mistake. The new policy does not prohibit pornography nor gambling. The policy was written to disallow illegal activities but to be flexible in terms of the sorts of businesses people are trying to build. While you need to talk to your own lawyers about the legality of the business you build, pornography as a whole is no longer disallowed from acceptable use. -- 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.
[google-appengine] Re: What happened to the promised reliability improvement for email delivery?
+1 with me. This sort of thing gives GAE a bad name. Better implement it good or not at all. But of course people would wonder, aint email one of Google's strength? (Gmail) On Nov 13, 1:50 am, Adrian Scott adr...@coderbuddy.com wrote: As far as email goes - personally, I'd rather Appengine shut down the email API and put those developers to work on something else. Email I agree, completely... -- 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.
[google-appengine] Help resolve massive performance regression in 2.7 vs 2.5 runtime
Hi, Since switching to 2.7 runtime, logging in to http://www.everpix.com went from about a second to anywhere from 15s to 60s. I tracked it down to this single password checking line: from bcrypt import bcrypt bcrypt.hashpw(password, self.password_hash) == self.password_hash This comes from a native Python implementation of the py-bcrypt package from http://www.mindrot.org/projects/py-bcrypt/; grabbed from here: https://github.com/erlichmen/py-bcrypt. So what's happening here and how can we fix this? Thanks, - Pol -- 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.
Re: [google-appengine] Help resolve massive performance regression in 2.7 vs 2.5 runtime
Hi Pol, On Sun, Nov 13, 2011 at 1:48 PM, Pol p...@everpix.net wrote: Hi, Since switching to 2.7 runtime, logging in to http://www.everpix.com went from about a second to anywhere from 15s to 60s. I tracked it down to this single password checking line: from bcrypt import bcrypt bcrypt.hashpw(password, self.password_hash) == self.password_hash What value are you using for threadsafe in your app.yaml? How large is self.password_hash? Cheers, Brian This comes from a native Python implementation of the py-bcrypt package from http://www.mindrot.org/projects/py-bcrypt/; grabbed from here: https://github.com/erlichmen/py-bcrypt. So what's happening here and how can we fix this? Thanks, - Pol -- 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. -- 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.
RE: [google-appengine] Help resolve massive performance regression in 2.7 vs 2.5 runtime
Unless you are protecting Medical records bcrypt is overkill if you do some reasonably smart things like Failed logins from IP 9 Or, if you just do something weird to the password BEFORE you SHA it. Like interleave the user name in the password, Salt1 + UpSaEsRsNwAoMrEd + Salt2 Or Pick 2 Hash's SHA(pass) + Md5(pass) Don't want to store all that string length? Odd Characters from Sha(Pass+salt) + Even Characters from MD5(Pass+Salt) Uniqueness of the method is more important than the method. -Original Message- From: google-appengine@googlegroups.com [mailto:google-appengine@googlegroups.com] On Behalf Of Brian Quinlan Sent: Saturday, November 12, 2011 6:58 PM To: google-appengine@googlegroups.com Subject: Re: [google-appengine] Help resolve massive performance regression in 2.7 vs 2.5 runtime Hi Pol, On Sun, Nov 13, 2011 at 1:48 PM, Pol p...@everpix.net wrote: Hi, Since switching to 2.7 runtime, logging in to http://www.everpix.com went from about a second to anywhere from 15s to 60s. I tracked it down to this single password checking line: from bcrypt import bcrypt bcrypt.hashpw(password, self.password_hash) == self.password_hash What value are you using for threadsafe in your app.yaml? How large is self.password_hash? Cheers, Brian This comes from a native Python implementation of the py-bcrypt package from http://www.mindrot.org/projects/py-bcrypt/; grabbed from here: https://github.com/erlichmen/py-bcrypt. So what's happening here and how can we fix this? Thanks, - Pol -- 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. -- 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. -- 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.
[google-appengine] Re: Help resolve massive performance regression in 2.7 vs 2.5 runtime
Hi Brian, threadsafe is true Here's an example password_hash for an original 8 characters password: $2a$04$cbM2uHwDphIG3jFFRpq1mui5aVjevnDUwhvQ77S/WG/qvJMpiXAL6 On Nov 12, 6:58 pm, Brian Quinlan bquin...@google.com wrote: Hi Pol, On Sun, Nov 13, 2011 at 1:48 PM, Pol p...@everpix.net wrote: Hi, Since switching to 2.7 runtime, logging in tohttp://www.everpix.com went from about a second to anywhere from 15s to 60s. I tracked it down to this single password checking line: from bcrypt import bcrypt bcrypt.hashpw(password, self.password_hash) == self.password_hash What value are you using for threadsafe in your app.yaml? How large is self.password_hash? Cheers, Brian This comes from a native Python implementation of the py-bcrypt package fromhttp://www.mindrot.org/projects/py-bcrypt/; grabbed from here:https://github.com/erlichmen/py-bcrypt. So what's happening here and how can we fix this? Thanks, - Pol -- 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 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-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.
[google-appengine] Re: What happened to the promised reliability improvement for email delivery?
messagebus.com is in private beta now. Does anyone have any other suggestions? I hear you Jeff about GAE ditching the email service but startups have enough 3rd party services to deal with as it is (analytics, mobile push, web channel). Having fewer providers to work with is always better. On Nov 13, 1:09 pm, Thomas Wiradikusuma wiradikus...@gmail.com wrote: +1 with me. This sort of thing gives GAE a bad name. Better implement it good or not at all. But of course people would wonder, aint email one of Google's strength? (Gmail) On Nov 13, 1:50 am, Adrian Scott adr...@coderbuddy.com wrote: As far as email goes - personally, I'd rather Appengine shut down the email API and put those developers to work on something else. Email I agree, completely... -- 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.
Re: [google-appengine] Re: Help resolve massive performance regression in 2.7 vs 2.5 runtime
Hi Pol, Thanks for getting back to me. On Sun, Nov 13, 2011 at 4:50 PM, Pol p...@everpix.net wrote: Hi Brian, threadsafe is true There is a known issue where concurrent requests (enabled with threadsafe) can be much slower than non-concurrent requests, especially if the request is CPU-bound. You might want to set threadsafe to false and see if that fixes the problem. Cheers, Brian Here's an example password_hash for an original 8 characters password: $2a$04$cbM2uHwDphIG3jFFRpq1mui5aVjevnDUwhvQ77S/WG/qvJMpiXAL6 On Nov 12, 6:58 pm, Brian Quinlan bquin...@google.com wrote: Hi Pol, On Sun, Nov 13, 2011 at 1:48 PM, Pol p...@everpix.net wrote: Hi, Since switching to 2.7 runtime, logging in tohttp://www.everpix.com went from about a second to anywhere from 15s to 60s. I tracked it down to this single password checking line: from bcrypt import bcrypt bcrypt.hashpw(password, self.password_hash) == self.password_hash What value are you using for threadsafe in your app.yaml? How large is self.password_hash? Cheers, Brian This comes from a native Python implementation of the py-bcrypt package fromhttp://www.mindrot.org/projects/py-bcrypt/; grabbed from here:https://github.com/erlichmen/py-bcrypt. So what's happening here and how can we fix this? Thanks, - Pol -- 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 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-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. -- 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.
[google-appengine] Re: Python 2.7 multithreaded: ereporter mapreduce compatibility
Hi Brian, Although we can deploy to production using 2.7, accessing /mapreduce fails: Traceback (most recent call last): File /base/python27_runtime/python27_lib/versions/1/google/ appengine/runtime/wsgi.py, line 168, in Handle handler = _config_handle.add_wsgi_middleware(self._LoadHandler()) File /base/python27_runtime/python27_lib/versions/1/google/ appengine/runtime/wsgi.py, line 217, in _LoadHandler __import__(cumulative_path) ImportError: No module named application The app.yaml is set like this: - url: /mapreduce(/.*)? script: google.appengine.ext.mapreduce.application login: admin Thanks for your help! On Nov 11, 1:26 pm, Brian Quinlan bquin...@google.com wrote: Hi Pol, On Sat, Nov 12, 2011 at 7:46 AM, Pol p...@everpix.net wrote: Indeed the problem is the parsing of app.yaml: - url: /mapreduce(/.*)? script: $PYTHON_LIB/google/appengine/ext/ mapreduce/main.py login: admin- url: /ereporter.* script: $PYTHON_LIB/google/appengine/ext/ereporter/report_generator.py login: admin So what do I use instead for script paths? script: google.appengine.ext.mapreduce.application script: google.appengine.ext.ereporter.report_generator.main.APP Looking into the SDK source, these extensions are not2.7multithreaded ready. How so? Cheers, Brian On Nov 10, 6:10 pm, Brian Quinlan bquin...@google.com wrote: On Fri, Nov 11, 2011 at 2:44 AM, Pol p...@everpix.net wrote: Hi, What are the plans to get these 2 extensions compatible with Python 2.7multithreaded? $PYTHON_LIB/google/appengine/ext/mapreduce/main.py $PYTHON_LIB/google/appengine/ext/ereporter/report_generator.py I assume that you are seeing an error during the parsing of your appcfg.py file? The error message should say that you can't use a CGI with threadsafe. The solution is to use WSGI in your handlers instead i.e. google.appengine.ext.mapreduce.application google.appengine.ext.ereporter/report_generator.application Cheers, Brian Thanks, - Pol -- 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 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-appengine@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-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.
Re: [google-appengine] Re: Python 2.7 multithreaded: ereporter mapreduce compatibility
On Sat, Nov 12, 2011 at 8:26 AM, Brian Quinlan bquin...@google.com wrote: Hi Pol, On Sat, Nov 12, 2011 at 7:46 AM, Pol p...@everpix.net wrote: Indeed the problem is the parsing of app.yaml: - url: /mapreduce(/.*)? script: $PYTHON_LIB/google/appengine/ext/ mapreduce/main.py login: admin- url: /ereporter.* script: $PYTHON_LIB/google/appengine/ext/ereporter/report_generator.py login: admin So what do I use instead for script paths? script: google.appengine.ext.mapreduce.application script: google.appengine.ext.ereporter.report_generator Oops, I meant: script: google.appengine.ext.mapreduce.main.APP script: google.appengine.ext.ereporter.report_generator.application Cheers, Brian Looking into the SDK source, these extensions are not 2.7 multithreaded ready. How so? Cheers, Brian On Nov 10, 6:10 pm, Brian Quinlan bquin...@google.com wrote: On Fri, Nov 11, 2011 at 2:44 AM, Pol p...@everpix.net wrote: Hi, What are the plans to get these 2 extensions compatible with Python 2.7 multithreaded? $PYTHON_LIB/google/appengine/ext/mapreduce/main.py $PYTHON_LIB/google/appengine/ext/ereporter/report_generator.py I assume that you are seeing an error during the parsing of your appcfg.py file? The error message should say that you can't use a CGI with threadsafe. The solution is to use WSGI in your handlers instead i.e. google.appengine.ext.mapreduce.application google.appengine.ext.ereporter/report_generator.application Cheers, Brian Thanks, - Pol -- 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 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-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. -- 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.