Re: [google-appengine] Re: Updates from the Google App Engine team (Fall 2021)

2021-11-09 Thread 'Alex Martelli' via Google App Engine
On Mon, Nov 8, 2021 at 10:47 PM Kaan wrote: ... > And a plug: Python in my opinion is dying, while JS / NodeJS is thriving > According to TIOBE , in October Python was language #3 in terms of popularity (behind Java and C); in November, it vaulted to first

Re: [google-appengine] Re: [Unimportant] Old Python 2.7 Users: Anyway to shrink the local .rdbms / reduce it's size?

2020-06-29 Thread 'Alex Martelli' via Google App Engine
Always glad to help! Alex On Mon, Jun 29, 2020 at 7:29 AM Kaan Soral wrote: > Thank you so much Alex, dropped from 215 to 10 :) > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To unsubscribe from this group and stop receiving ema

Re: [google-appengine] Re: [Unimportant] Old Python 2.7 Users: Anyway to shrink the local .rdbms / reduce it's size?

2020-06-22 Thread 'Alex Martelli' via Google App Engine
On Mon, Jun 22, 2020 at 9:08 AM Kaan Soral wrote: > Whatever system the old dev_appserver.py is using, I forgot the technology > I think it's sqlite, in which case you may want to try (on a copy of your files) "vacuum". per https://stackoverflow.com/questions/7682503/how-to-shrink-sqlite-databas

Re: [google-appengine] Re: Any more migration stories?

2020-05-07 Thread 'Alex Martelli' via Google App Engine
Just as a personal note (I'm a Googler but also help maintain App Engine non-profit sites in my spare time etc), I enthusiastically agree that the migration suddenly validated my own long-standing obsession with more and more (automated, esp. unit) testing -- suddenly, that boring test activity bec

Re: [google-appengine] Re: Any GAE Profiler for Flask

2020-01-13 Thread 'Alex Martelli' via Google App Engine
Stackoverflow discourages asking questions such as "what is the best X for purpose Y?". I fear that "what is the best profiler for Flask on GAE?" matches this discouraged pattern, which might lead to downvotes etc. I think it's critical that before we suggest a question be moved to Stackoverflow w

Re: [google-appengine] Re: 502 Bad Gateway Please try again in 30 seconds... :(

2019-12-18 Thread 'Alex Martelli' via Google App Engine
On Wed, Dec 18, 2019 at 6:05 AM Piotr Zerynger wrote: > I dont mind what do you think, so this forum is about what? about weather > or kitties photos?? > This group is for discussions about Google App Engine that are not suitable for other, more specific channels. These "other channels", in addi

Re: [google-appengine] Datastore export as JSON format

2019-08-27 Thread 'Alex Martelli' via Google App Engine
The error in that traceback is crystal-clear: the code uses a Python 2 `print` *statement*, making it incompatible with Python 3 (where `print` is a *function*), yet you're trying to run it with Python 3.7. Porting the code to be compatible with Python 2 and 3 might be some work. Easier, I think,

Re: [google-appengine] How to redirect www.mysite.appspot.com to mysite.appspot.com

2019-08-13 Thread 'Alex Martelli' via Google App Engine
A simple example of how to do redirection in App Engine Python apps has been written by an independent consultant and posted at their site, https://www.the-swamp.info/blog/google-app-engine-redirection-naked-domain-www/ -- it includes a link to a github repo, also owned by the article's author, wit

Re: [google-appengine] Re: How do you use the Objectify object mapper?

2019-02-28 Thread 'Alex Martelli' via Google App Engine
Surveys are totally inappropriate for StackOverflow and would get you banned from the site pretty fast. On the contrary, I think this google group is perfectly reasonable for such general discussions. Alex On Thu, Feb 28, 2019 at 11:13 AM 'George (Cloud Platform Support)' via Google App Engine w

Re: [google-appengine] Re: webapp2 example for 2nd gen standard GAE Python3

2018-09-15 Thread 'Alex Martelli' via Google App Engine
On Sat, Sep 15, 2018 at 1:44 PM 'Amandeep Kaur(Cloud Platform Support)' via Google App Engine wrote: > Hi Fili, > > As per this doc[1] webapp2 is not compatible with Python 3. Webapp2 > Framework is available to Python 2.7 users only. > Not quite; as Fili Wiesel (original poster in this thread)

Re: [google-appengine] Re: Very slow fetch page queries

2017-09-02 Thread 'Alex Martelli' via Google App Engine
To fetch only some of an entity's properties, consider a projection query, e.g https://cloud.google.com/appengine/docs/standard/python/datastore/projectionqueries Alex On Sat, Sep 2, 2017 at 6:41 PM, Richard Cheesmar wrote: > Hi, Yannick, > > I have solved the issue :). > > What I had to do wa

Re: [google-appengine] Re: Cloud Tasks ETA?

2017-08-27 Thread 'Alex Martelli' via Google App Engine
On Sun, Aug 27, 2017 at 9:37 PM, pdknsk wrote: > Thanks for the reply. I'm probably wrong, but I interpret this as things > not going so well. > That is a frequently seen inference, but it really has no sound basis. Since Google essentially never publishes, ahead of time, any public information

Re: [google-appengine] Is App Engine good for students?

2017-08-16 Thread 'Alex Martelli' via Google App Engine
GCP's "always free" tier, see https://cloud.google.com/free/?utm_source=google&utm_medium=cpc&utm_campaign=na-US-all-en-dr-bkws-all-all-trial-b-dr-1002250&utm_content=text-ad-none-any-DEV_c-CRE_201398096598-ADGP_BKWS+%7C+Multi+~+null_Google+Cloud+Free+Tier-KWID_43700021847830863-kwd-299036639748&ut

Re: [google-appengine] Re: Exceeded soft private memory limit of 128 MB with 128 MB after servicing 238 requests total

2017-08-07 Thread 'Alex Martelli' via Google App Engine
On Mon, Aug 7, 2017 at 12:13 PM, PK wrote: > Is there any general tool successfully used to profile how much memory a > request is using and whether it is leaking any memory? I still do not have > a good general solution when I hit this problem. > The module I used to use for the purpose -- http

Re: [google-appengine] Re: Exceeded soft private memory limit of 128 MB with 128 MB after servicing 238 requests total

2017-08-05 Thread 'Alex Martelli' via Google App Engine
To check if the memory consumption is due to jinja2 caching, make the jinja2 Environment object that you will later use for rendering with cache_size=0 -- this disables jinja2's caching, essentially. If that removes the issue, you've found your root cause. (If not, you need to keep digging). See ht

Re: [google-appengine] How to use google app engine

2017-08-01 Thread 'Alex Martelli' via Google App Engine
App Engine lets you code and deploy suitable programs as web applications. As such, some knowledge of programming and web fundamentals is usually needed to use App Engine. With just web fundamentals (HTML, CSS, Javascripts, images...) you can use App Engine to deploy a purely static website: see h

Re: [google-appengine] Re: App Engine Python and Java community support has moved to Stack Overflow

2017-07-18 Thread 'Alex Martelli' via Google App Engine
The news you're replying to, dated Friday, March 23, 2012, are, of course, somewhat old. Anyway, to post questions on Stack Overflow, no reputation is needed. Check out the process as explained in detail at http://www.wikihow.com/Ask-a-Question-on-Stack-Overflow . Alex On Tue, Jul 18, 2017 at 12

Re: [google-appengine] visualization of classification result using color palette

2017-07-10 Thread 'Alex Martelli' via Google App Engine
This group is meant for discussion about Google App Engine, the product covered at https://cloud.google.com/appengine/ and links therefrom. Said product is not related to Google Earth Engine. For discussion about the latter, please start at https://productforums.google.com/forum/#!forum/maps . Th

Re: [google-appengine] appengine datastore model for twitter like showing posts from users followed

2017-06-15 Thread 'Alex Martelli' via Google App Engine
I would recommend denormalizing your data model -- a common optimization in non-relational DBs (like the datastore) and frequently useful in relational DBs as well. Just have user entities, with the user id as their key's name, containing a list of the authors the user follows. This will make addin

Re: [google-appengine] Re: Controlling the maximum number of instances / service in App Engine Standard?

2017-06-11 Thread 'Alex Martelli' via Google App Engine
On Sun, Jun 11, 2017 at 8:56 AM, Attila-Mihaly Balazs wrote: > Thank you Alex for articulating the reasons so clearly. > > To sum it up: in the current setup you can't use Django on AppEngine with > FE instances (and CloudSQL) since you can pretty easy DoS yourself (because > of the auto-scaler s

Re: [google-appengine] Architectural advice needed: background report generation

2017-06-10 Thread 'Alex Martelli' via Google App Engine
On Sat, Jun 10, 2017 at 2:01 AM, Karoly Kantor wrote: > I have a rather complex data base structure on which I need to enable > users to define various reports and run them in the background. (As the > generation time might exceed what is acceptable real-time.) I want to > enable users to launch

Re: [google-appengine] Setting datasource's maximumPoolSize with a HikariDataSource on AppEngine with Cloud SQL

2017-06-08 Thread 'Alex Martelli' via Google App Engine
On Thu, Jun 8, 2017 at 5:43 AM, Roxana Ioana Roman wrote: > Hello, > I am a bit confused regarding setting the optimal connections pool size > (dataSource.setMaximumPoolSize(maxPoolSize)). > Correct me if my judgement is wrong. Instances on AppEngine have only a > single core. Given that, the opt

Re: [google-appengine] Re: Controlling the maximum number of instances / service in App Engine Standard?

2017-05-26 Thread 'Alex Martelli' via Google App Engine
On Fri, May 26, 2017 at 6:10 AM, Jeff Schnitzer wrote: > I’m confused - this is “low-volume data” but you're worried about > exceeding 4000 connections? Maybe I’m missing something in translation; how > many QPS do you expect? > I'm not sure why the QPS, per se, would matter here; rather, the ke

Re: [google-appengine] Is it possible to contribute to the GAE standard SDK?

2017-05-18 Thread 'Alex Martelli' via Google App Engine
Ciao Ivo, enriching the testbed is definitely possible (and I have a vested interest in that happening, being a testing fanatic and one co-author of a prehistoric version of the testbed). However the GAE SDK, while available on github, is not developed there, but rather internally (other, newer op

Re: [google-appengine] Re: app.yaml resources suggestions for static hosting

2017-05-15 Thread 'Alex Martelli' via Google App Engine
Another possibility for a static-only site, recommended for example in the short, useful video Moving existing applications to Google Cloud Platform , is to use Google Cloud Storage

Re: [google-appengine] NSA on Python Frameworks ?

2017-04-09 Thread 'Alex Martelli' via Google App Engine
and WTForms integrate well, e.g, see http://exploreflask.com/en/latest/forms.html . Alex > > BR, > Johan > > Op zaterdag 8 april 2017 11:39:52 UTC+2 schreef timh: > >> I will chuck in my 2c worth ;-) >> >> I prefer pyramid. (and chameleon) >> >>

Re: [google-appengine] NSA on Python Frameworks ?

2017-04-06 Thread 'Alex Martelli' via Google App Engine
need to optimize for. (Often, e.g for an internal dashboard which will have a few dozen users at most, there's no optimization needed at all -- then I can emphasize simplicity and speed of deployment -- just as an example). > > Good luck with the book and the conference. > Thanks, A

Re: [google-appengine] NSA on Python Frameworks ?

2017-04-05 Thread 'Alex Martelli' via Google App Engine
Of course these questions are quite connected with personal opinion, and since I'm the author of "Python in a Nutshell" (3rd edition due out any day now), you can guess where my bias lies:-). Still, FWIW, here are my opinions (hope others chime in!-)...: On Wed, Apr 5, 2017 at 8:21 AM, Johan Mutsa

Re: [google-appengine] Re: Scheduling Tasks with User params

2017-03-10 Thread 'Alex Martelli' via Google App Engine
On Fri, Mar 10, 2017 at 11:52 AM, 'Jordan (Cloud Platform Support)' via Google App Engine wrote: > You can update the schedule of any CRON job by changing your cron.yaml > > and > redeploying it >

Re: [google-appengine] python 3.6: struggle to send an email with a file attached to it (NameError: name 'encoders' is not defined)

2017-03-04 Thread 'Alex Martelli' via Google App Engine
On Sat, Mar 4, 2017 at 1:52 PM, Guillaume France wrote: > Hi again Alex, I just found your email in the thread, the one you were > talking about the raw= encoders.encode_base64(msg) . > > I discovered that bug yesterday and commented that line (which correctly > send the email ― without the attac

Re: [google-appengine] python 3.6: struggle to send an email with a file attached to it (NameError: name 'encoders' is not defined)

2017-03-04 Thread 'Alex Martelli' via Google App Engine
Hi Guillaume, and I'm very glad to see that you've taken my reply in the positive, helpful spirit it was meant in -- I'm Italian, with a touch of French, and find our Latin cultural openness and frankness sometimes grate in the globalized culture of the tech world... happy it didn't here! On Sat,

Re: [google-appengine] Re: python 3.6: struggle to send an email with a file attached to it (NameError: name 'encoders' is not defined)

2017-03-04 Thread 'Alex Martelli' via Google App Engine
th-plus, and in it I do cover the standard library's email package; so, just checking if I did properly give that warning, as the online docs do per the above quote, in my condensed coverage of email.encoders). Alex On Sat, Mar 4, 2017 at 10:20 AM, Alex Martelli wrote: > On Sat, Mar

Re: [google-appengine] Re: python 3.6: struggle to send an email with a file attached to it (NameError: name 'encoders' is not defined)

2017-03-04 Thread 'Alex Martelli' via Google App Engine
ce.com/forums/249-general . I am sure there are many, many other channels which either or both do use or could use (for example, this mailing list is one) although at some point you run into the problem of "too many channels". Alex > > On Sat, Mar 4, 2017 at 12:17 AM, 'Alex M

Re: [google-appengine] python 3.6: the script send message but without the attachement

2017-03-03 Thread 'Alex Martelli' via Google App Engine
As I posted to another one of your duplicate threads: I would recommend you post this code and question to stackoverflow.com -- a very popular site regularly visited by many programming experts who like to answer technical questions (me included, when I have free time). You may want to just tag th

Re: [google-appengine] Re: python 3.6: struggle to send an email with a file attached to it (NameError: name 'encoders' is not defined)

2017-03-03 Thread 'Alex Martelli' via Google App Engine
I would recommend you post this code and question to stackoverflow.com -- a very popular site regularly visited by many programming experts who like to answer technical questions (me included, when I have free time). You may want to just tag the question as python and email, since it's not really g

Re: [google-appengine] I'm struggling to attach a file to this email

2017-03-03 Thread 'Alex Martelli' via Google App Engine
I answered on the duplicate thread you opened 2.5 hours later. To repeat: there's a bug in your code, a missing `from email import encoders` at the top. BTW, I think your bug has nothing to do with Google App Engine. Alex On Fri, Mar 3, 2017 at 7:08 AM, Guillaume France wrote: > I'm struggling

Re: [google-appengine] python 3.6: struggle to send an email with a file attached to it (NameError: name 'encoders' is not defined)

2017-03-03 Thread 'Alex Martelli' via Google App Engine
Indeed, as the message says, you have nowhere defined the top-level name `encoders`. Presumably, you're missing an import for that name as per https://docs.python.org/3/library/email.encoders.html -- `from email import encoders` among other imports at the top of your code. Alex On Fri, Mar 3, 2

Re: [google-appengine] Can I run Ruby and Node.JS applications under the same Project/App Engine?

2017-02-16 Thread 'Alex Martelli' via Google App Engine
You can have multiple *services* (once known as *modules*) within the same app; each service can use whatever language you prefer. See e.g https://cloud.google.com/appengine/docs/flexible/python/configuration-files to start. Alex On Thu, Feb 16, 2017 at 11:51 AM, Subrahmanyam Madduru wrote: > I

Re: [google-appengine] Re: Entitites in the transaction

2016-12-09 Thread 'Alex Martelli' via Google App Engine
Hmmm, just guessing: perhaps if you also log the `get`s (as well as the `put`s and `delete`s that you say you're already logging) you'll find that the total does exceed the 25-entity-groups limit in one transaction...? Alex On Fri, Dec 9, 2016 at 2:06 AM, Rajesh Gupta < rajesh.gu...@veersoftsolu

Re: [google-appengine] Django project on GAE

2016-12-04 Thread &#x27;Alex Martelli' via Google App Engine
On Sat, Dec 3, 2016 at 10:52 PM, Vaishnavi Manjunath < vaishnavira...@gmail.com> wrote: > Hey, > I am currently exploring all options to develop web application with > python and came across django as the most popular web development > framework. GAE support for django is with standard and flexibl

Re: [google-appengine] log quota

2016-11-24 Thread &#x27;Alex Martelli' via Google App Engine
We're working to clarify the exact wording in time for Dec 5 (not easy over the Thanksgiving holidays here in the US, so, apologies for any timing glitch) but the general intention (subject to more precise wording) is as follows...: On Thu, Nov 24, 2016 at 6:40 AM, sophie wrote: > Hello! > > Loo

Re: [google-appengine] Re: NeedIndexError ? Please help

2016-11-14 Thread &#x27;Alex Martelli' via Google App Engine
You're apparently reviving a thread from 5 years and 6 months ago -- it will be difficult for anybody trying to help to get full context about the issue, particularly as software releases etc may well have changed during this long span of time. Could you please instead open a new thread with all th

Re: [google-appengine] Configuring app.yaml to use PHP (5.5) and Python (2.7) in the same project

2016-11-01 Thread &#x27;Alex Martelli' via Google App Engine
To use multiple languages in an App Engine app, you must deploy them as separate services (once known as modules), each with its own .yaml configuration file. app.yaml configures the default service, which doesn't get named; each other .yaml configures a separate service and is typically named, say

Re: [google-appengine] Créer un proxy avec Google Engine

2016-10-12 Thread &#x27;Alex Martelli' via Google App Engine
En anglais s'il vous plait -- nous ne pouvons pas soutenir les clients en autres langues. Moreover...: App Engine does not run arbitrary customer code such as proxies: just web *applications*. *Compute* Engine is the Google product you may be looking for. So you may want to ask on https://groups

Re: [google-appengine] Advantages of Google Datastore Entity Groups

2016-10-06 Thread &#x27;Alex Martelli' via Google App Engine
On Tue, Oct 4, 2016 at 5:23 PM, Paul Mazzuca wrote: > Is there any reason to use an Entity Group in Google Datastore other than > for enabling transactions? > Strong consistency: ancestor queries are strongly consistent. That's a key semantic difference compared with the eventual consistency of

Re: [google-appengine] Re: Deferred tasks in flexible environment

2016-10-03 Thread &#x27;Alex Martelli' via Google App Engine
On Sun, Oct 2, 2016 at 11:59 PM, Randy Sugianto wrote: > I already solved it. > > This is because the flexible environment does not support > > builtins: > - deferred: on > > on app.yaml. > > You should mention this on the migration document or emit an error when > deploying. This is a really bad

Re: [google-appengine] Re: Error sending email: The API call mail.Send() required more quota than is available.

2016-09-20 Thread &#x27;Alex Martelli' via Google App Engine
On Tue, Sep 20, 2016 at 9:59 AM, Richard Cheesmar wrote: > Ok, the site cannot send out emails at all > > Any chance of a Google response to this? > As specified at https://cloud.google.com/appengine/docs/quotas , and I quote: Sending mail above your daily mail quota If your app needs to send

Re: [google-appengine] Error sending email: The API call mail.Send() required more quota than is available.

2016-09-20 Thread &#x27;Alex Martelli' via Google App Engine
On Tue, Sep 20, 2016 at 6:06 AM, Richard Cheesmar wrote: > Hi, > > I'm getting below Error when sending an email via the task queue > Error sending email: The API call mail.Send() required more quota than is > available. I think 11 emails were sent today thus far, and now they are not > sending..

Re: [google-appengine] Place to post appengine jobs?

2016-09-13 Thread &#x27;Alex Martelli' via Google App Engine
On Tue, Sep 13, 2016 at 1:37 PM, 'Bob Evans' via Google App Engine < google-appengine@googlegroups.com> wrote: > Hi, > > I don't want to spam the group, but, I would be interested to know where > would be an appropriate place to post jobs to find experienced Java > Appengine developers. Any though

Re: [google-appengine] Re: How to specify a region for AppEngine Flexible

2016-09-05 Thread &#x27;Alex Martelli' via Google App Engine
Ciao Mattia, On Mon, Sep 5, 2016 at 2:28 PM, Mattia Iavarone wrote: > Hi Nick, > > is there any ETA for this feature? Days, weeks, months? > che io sappia, Google non ha mai annunciato in anticipo simili aspetti della roadmap ; sicuramente non vi sono preannunci in questo specifico caso. (Mi s

Re: [google-appengine] Re: After long time not deployed my GAE go project, I found I lost the ability to deploy a project.

2016-08-21 Thread &#x27;Alex Martelli' via Google App Engine
Thanks Tapir for the very specific bug report wrt the -V flag -- I've opened an internal docs bug so my go-specialist colleagues can check out and, as needed, correct the docs here. Alex On Sun, Aug 21, 2016 at 1:10 AM, Tapir wrote: > > > On Sunday, August 21, 2016 at 4:01:43 PM UTC+8, Tapir wr

Re: [google-appengine] How to read a csv file on google cloud storage using python on Jupyter Notebook?

2016-08-18 Thread &#x27;Alex Martelli' via Google App Engine
This question is not related to google-appengine and thus it's inappropriate on this group. Rather, ask on the gce-discussion group, or on stackoverflow.com with the right tags (python jupyter google-compute-engine google-cloud-storage). Anyway, the issue is that Python's `open` only supports actu

Re: [google-appengine] Re: GAE time sync across instances

2016-07-29 Thread &#x27;Alex Martelli' via Google App Engine
On Fri, Jul 29, 2016 at 10:51 AM, 'Nick (Cloud Platform Support)' via Google App Engine wrote: > Hey Sam, > > Thanks for your patience. I can now report based on my investigation of > the matter: > > 1. There aren't any guarantees for time synchronization for App Engine, > and this is reflected i

Re: [google-appengine] Channels per instance

2016-07-22 Thread &#x27;Alex Martelli' via Google App Engine
The quotas documented at https://cloud.google.com/appengine/docs/quotas are per application, not per instance (so, they're independent of number of instances currently alive). Alex On Fri, Jul 22, 2016 at 2:59 PM, Adrián Camilo wrote: > Good afternoon, > I would like to know if the maximum lim

Re: [google-appengine] Re: Google frontend serves gzipped content even if the client doesn't ask for it

2016-07-19 Thread &#x27;Alex Martelli' via Google App Engine
On Tue, Jul 19, 2016 at 6:13 AM, Attila-Mihaly Balazs wrote: > If I get a trace, I'll be sure to post it. There is also this short > back-and-forth I had about the topic on the cURL mailing list: > http://comments.gmane.org/gmane.comp.web.curl.general/15227 > > BTW, from the quote I understand th

Re: [google-appengine] microservice messaging

2016-07-11 Thread &#x27;Alex Martelli' via Google App Engine
If you want data isolation between services, *namespaces* can deliver it on datastore and memcache (as the series that Jason suggests mentions, perhaps without enough emphasis). If you have no other need for namespaces (no multitenancy etc), just have each service set the namespace it uses -- serv

Re: [google-appengine] Re: Concepts, use and testing Cloud Datastore in local.

2016-06-11 Thread &#x27;Alex Martelli' via Google App Engine
On Sat, Jun 11, 2016 at 12:08 PM, Juan Antonio Fernández Sánchez < juan.antonio.fernandez.sanchez...@gmail.com> wrote: > First for all, > Thanks thanks thanks you so much for all the help guys! > > I think that I'm starting to understand. When I use the dev server he > start much of services. But

Re: [google-appengine] Ho creato un server con app inventor per il tinywebdb trammite app engine ma chiunque può modificare i dati sulla pagina che finisce con appspot.com.Chi mi sa dire come mettere

2016-06-11 Thread &#x27;Alex Martelli' via Google App Engine
In inglese per favore -- da Italiano, simpatizzo, ma non possiamo supportare altri linguaggi che l'inglese. As is, I may be the only tech-support Googler able to understand your plea, just because I happen to be Italian; this is just not scalable nor supportable. As http://appinventor.mit.edu/expl

Re: [google-appengine] Concepts, use and testing Cloud Datastore in local.

2016-06-10 Thread &#x27;Alex Martelli' via Google App Engine
The testbed provides stubs for App Engine services (in the original sense of the word, not, as used today, as a renaming of what used to be called App Engine modules) which let you control precisely the entire setup in which you unit-test your Python code meant to run in App Engine. It deals with A

Re: [google-appengine] Where to store thousands of Constants?

2016-06-09 Thread &#x27;Alex Martelli' via Google App Engine
On Thu, Jun 9, 2016 at 6:50 PM, YuRen Lin wrote: > Hi, Nicholas > > Thanks for your explanation. Very nice. I think the most simple and > fastest way is to store all these constants in resource file and then load > them to instance memory. Do you know how much instance memory a Java App > Engine

Re: [google-appengine] My apps are offline!

2016-06-02 Thread &#x27;Alex Martelli' via Google App Engine
What DNS arrangements are you using to send ironhelmet.com to appspot? I can't spot any from a simple DNS query: $ dig ironhelmet.com ; <<>> DiG 9.8.3-P1 <<>> ironhelmet.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29655 ;; flags: qr rd ra; Q

Re: [google-appengine] Re: What's the meaning of 28 instances hours mean in free limit section of pricing detail? Can i know what's the price for firebase cloud messaging?

2016-05-27 Thread &#x27;Alex Martelli' via Google App Engine
On Thu, May 26, 2016 at 11:36 PM, Lim Ta Sheng wrote: > > > Hello Kamran, >> > > How do i select which instance class to use > That's done in the configuration files for each of your application's services (previously known as modules). In Java, that information is in appengine-web.xml, see ht

Re: [google-appengine] Happy Feedback

2016-05-26 Thread &#x27;Alex Martelli' via Google App Engine
On Wed, May 25, 2016 at 11:48 PM, Jeff Schnitzer wrote: > On Wed, May 25, 2016 at 4:04 PM, 'Alex Martelli' via Google App Engine < > google-appengine@googlegroups.com> wrote: > >> [*] people on this group keep expressing doubts about that, but, facts >> are o

Re: [google-appengine] Happy Feedback

2016-05-25 Thread &#x27;Alex Martelli' via Google App Engine
On Wed, May 25, 2016 at 3:38 PM, Emanuele Ziglioli wrote: > Hi everyone > > I'd like to provide some happy feedback, for once... (I hope Alex Martelli > is listening) > I sure am -- great timing, since for the next coming week I won't be (traveling to Pycon US in Port

Re: [google-appengine] Re: GAE memory quotas should be per version per instance, not just per instance

2016-05-24 Thread &#x27;Alex Martelli' via Google App Engine
You can run many versions of your App Engine app (only one being the default), but what convinces you that they're going to be running on the same instance? To the best of my knowledge, multiple instances will be spawned as needed (indeed you could even be using e.g different instance classes in th

Re: [google-appengine] Fire and forget URL

2016-05-24 Thread &#x27;Alex Martelli' via Google App Engine
Not sure what advantage you'd envision for XMPP here -- this kind of job (handing out a task to a worker) is exactly what task queues were designed for. Alex On Tue, May 24, 2016 at 2:51 PM, Barry Hunter wrote: > Or maybe even use XMPP, to 'chat' with itself. > https://cloud.google.com/appengin

Re: [google-appengine] Re: Sockets don't work any more

2016-05-18 Thread &#x27;Alex Martelli' via Google App Engine
Ciao Emanuele, (strong temptation to switch to Italian, presumably your native language as well as mine, since the following is more emotional than technical, and Italian's great at that... but, let's resist for the sake of keeping the thread readable by all!), > I wish support people had some ex

Re: [google-appengine] Google Cloud -- Good for small programmes?

2016-04-19 Thread &#x27;Alex Martelli' via Google App Engine
On Tue, Apr 19, 2016 at 3:17 PM, ryan broman wrote: > Thank you! All the libraries I need are pure Python, so the GAE shouldn't > have any problem downloading them if I put it in the requirements.txt > As long as everything's Python *** 2.7 ***, that should indeed be the case. Alex > > -- > Y

Re: [google-appengine] Google Cloud -- Good for small programmes?

2016-04-19 Thread &#x27;Alex Martelli' via Google App Engine
Hello Ryan, the task you describe sounds ideal for Google App Engine, which does have an ongoing free quota you'd likely fit in -- *except* that GAE (in the standard runtimes, those with free quotas) does not currently support Python 3 -- you'd have to port your program to Python 2.7. (Also, you c

Re: [google-appengine] Problem with custom domain

2016-04-03 Thread &#x27;Alex Martelli' via Google App Engine
On Sun, Apr 3, 2016 at 11:53 AM, Bibhu Sahoo <2bi...@gmail.com> wrote: > I added my custom domain 'www.siaria.net' in Appengine-> Settings-> > custom domains as per the guide. My domainname is from namecheap. Its more > than 24hrs now still my site www.siaria.net shows 404 page not found. I > can

Re: [google-appengine] anyone went to google's gcpnext event?

2016-03-23 Thread &#x27;Alex Martelli' via Google App Engine
I couldn't make it to SF, but it's all available online -- https://cloudplatformonline.com/NEXT2016-Live.html - and I was already able to catch most of it, including Eric's own keynote. I do recommend watching the livestream, but, TL;DR, WITH a bit of context that obviously Twitter tends to be pre

Re: [google-appengine] Modules with different languages - Is it Possible?

2016-03-23 Thread &#x27;Alex Martelli' via Google App Engine
Yes, an app's modules can be in different languages. You do need to pay care to how they share entries in the datastore or memcache (if they do such sharing) -- the byte-stream-level is typically not documented (if any interoperability is in fact possible). For example, if a Python module uses a fi

Re: [google-appengine] New App Engine Managed VM Docs

2016-03-04 Thread &#x27;Alex Martelli' via Google App Engine
> Karl > > On Tuesday, February 23, 2016 at 3:51:56 AM UTC-8, troberti wrote: >> >> This is encouraging to hear and hope it happens. I like webapp2 just fine >> as it is: simple, stable, easy to test, *just works*. The fact that it >> doesn't 'evolve' i

Re: [google-appengine] Index Question

2016-02-24 Thread &#x27;Alex Martelli' via Google App Engine
On Wed, Feb 24, 2016 at 6:51 AM, Joshua Smith wrote: > I just wrote a new app and it has an entity that I use to show a leader > board: > > class CountModel(db.Model): > count = db.IntegerProperty(default=0) > trend = db.FloatProperty(default=0.0) > > I get the list of these using a simple qu

Re: [google-appengine] New App Engine Managed VM Docs

2016-02-22 Thread &#x27;Alex Martelli' via Google App Engine
Just a personal input/data point -- writing not as a Googler but as a "Python guru":-) Currently writing the 3rd edition of Python in a Nutshell (in my copious personal time), I've recently finished the "serving HTTP" chapter (the book is already available in Early Release form at the O'Reilly web

Re: [google-appengine] Incoming emails to live app are rejected

2016-02-05 Thread &#x27;Alex Martelli' via Google App Engine
I would change app = webapp2.WSGIApplication([ ('/_ah/mail/', MailHandler), to app = webapp2.WSGIApplication([ ('/_ah/mail/.+', MailHandler), Alex On Thu, Feb 4, 2016 at 7:52 PM, John Barham wrote: > I'm testing incoming email URLs in a new app and am stumped why they work > in the

Re: [google-appengine] support for Django 1.9 in Google App Engine

2016-01-31 Thread &#x27;Alex Martelli' via Google App Engine
Support for any Django version (or any version of any other WSGI web framework, actually) can best be provided by simple third-party open source adapters, rather than waiting for any given version of any given WSGI web framework to be included in the App Engine SDK and servers. For example, https:/

Re: [google-appengine] Planning to use appengine/datastore/cloud storage. Have few questions

2016-01-31 Thread &#x27;Alex Martelli' via Google App Engine
On Sun, Jan 31, 2016 at 5:14 AM, Dhanunjaya Naidu. Yandrapu < dhanun...@gmail.com> wrote: > Hi, > > I am new to Google cloud and have few question. I have few questions. I > would very much appreciate if you could answer them. > > we are planning to use appengine, datastore/cloud storage and golan

Re: [google-appengine] Re: How can I prevent a free App Engine instance from idle?

2016-01-25 Thread &#x27;Alex Martelli' via Google App Engine
at I'm only returning a "hello world" > message, nothing heavy. > Can you show the relevant sections of your app.yaml and cron.yaml? 47k requests, 1 per second, maps to 13 hours -- which matches neither the 8 nor the 16.29 hours you report. Alex > > > > El d

Re: [google-appengine] Re: How can I prevent a free App Engine instance from idle?

2016-01-24 Thread &#x27;Alex Martelli' via Google App Engine
On Fri, Jan 22, 2016 at 12:59 PM, Aldo Suarez wrote: > Manual scaling provides 8 frontend hours per day, not 28. > Yep, that's the total for manual plus basic scaling (in addition to the autoscaling 28 instance hours -- there is no such thing as "frontend hours"). > I also read that the instan

Re: [google-appengine] Developing with app engine with no internet

2016-01-24 Thread &#x27;Alex Martelli' via Google App Engine
On Sat, Jan 23, 2016 at 11:53 AM, David Williams wrote: > is Google App engine designed in a way that makes offline development easy? > > Its usually pretty simple to install mysql and php on a computer. > develop the app, then transfer. > > I do not have internet. > > Is there any way to develop

Re: [google-appengine] Do Google App Engine charge my application for this action?

2016-01-18 Thread &#x27;Alex Martelli' via Google App Engine
On Mon, Jan 18, 2016 at 12:04 PM, Nick wrote: > Unfortunately, the implementation you describe is completely unsuitable > for appengine. > I have to concur with Nick here. Number one issue is that the default scaling approach for Google App Engine is "autoscaling": as more users send requests, A

Re: [google-appengine] Re: Can't access Task Queues: "Failed to load"

2016-01-15 Thread &#x27;Alex Martelli' via Google App Engine
On Fri, Jan 15, 2016 at 2:01 PM, Andrea De Togni wrote: ... > > - I have no idea what is an "App Engine Module". > See https://cloud.google.com/appengine/docs/php/modules/ . Alex -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To uns

Re: [google-appengine] Re: Cast some light on Task Queue execution. I am confused

2015-12-28 Thread &#x27;Alex Martelli' via Google App Engine
On Sun, Dec 27, 2015 at 9:32 PM, Naresh Pokuri wrote: > Thanks for the reply. When will be bucket refilled? what parameters impact > bucket filling? > One token is added to the bucket every 1/rate -- so if your rate is 60/h, one token will be added every minute. However, no tokens are added if t

Re: [google-appengine] google gql

2015-12-21 Thread &#x27;Alex Martelli' via Google App Engine
In GQL just as in most every other SQL-like language, it's a serious mistake to use string formatting (as you're doing) instead of query parameters. Not only can you get the query syntax wrong, you're opening yourself to the security problems known as "SQL injection" -- see https://xkcd.com/327/ .

Re: [google-appengine] Re: The price of Google Channel API

2015-12-17 Thread &#x27;Alex Martelli' via Google App Engine
many of them. Negotiation for huge increases in quotas would obviously be very private ones -- one more reason to not involve us (1:many) in such "huge customer" negotiations!-) Best of luck, Alex > Looking forward to your early reply. > best regards, > Forest > > >

Re: [google-appengine] Contention happens using Task Queue

2015-12-17 Thread &#x27;Alex Martelli' via Google App Engine
On Wed, Dec 16, 2015 at 6:20 PM, Christian F. Howes < christian.ho...@starmakerinteractive.com> wrote: > is the object part of an entity group? there is a limit on the number of > writes to an entity group (with or without transactions) > Yep, and, note that "being part of an entity group" just

Re: [google-appengine] Re: The price of Google Channel API

2015-12-17 Thread &#x27;Alex Martelli' via Google App Engine
On Thu, Dec 17, 2015 at 6:31 AM, F.L Lee wrote: > hi Nick, > Thanks for your confirmation. This does help us to make business decision! > But I have not seen the updates on docs yet. > It's at https://cloud.google.com/appengine/pricing , last row in table "Resource billing rates": """ Sending E

Re: [google-appengine] Can appengine be used for a Saas where customers have their own subdomain or point their own custom domain to my appengine app?

2015-12-14 Thread &#x27;Alex Martelli' via Google App Engine
On Thu, Dec 10, 2015 at 7:33 AM, Barry Hunter wrote: > > > On 10 December 2015 at 15:22, Gitted wrote: > >> Do you get a static ip address for your GAE application or is it a >> dynamic IP because of load balancing? >> > > For naked domains you should be given static IP addresses (because cant >

Re: [google-appengine] Async calls from Java to datastore

2015-12-09 Thread &#x27;Alex Martelli' via Google App Engine
I've answered on Stackoverflow, where you posted the identical question at http://stackoverflow.com/questions/34165290/java-google-datastore-async-calls -- let's please keep the conversation there, where a larger community can listen, chime in, learn, and so on. In general, Stackoverflow (for devel

Re: [google-appengine] Saving incoming email to datastore

2015-12-09 Thread &#x27;Alex Martelli' via Google App Engine
gle.com/p/googleappengine/issues/detail?id=10560>. :-) > > On Dec 9, 2015, at 9:48 AM, 'Alex Martelli' via Google App Engine < > google-appengine@googlegroups.com> wrote: > > Good point: an incoming email (inc. attachments) can be up to 31+MB -- far > above the lar

Re: [google-appengine] Re: GAE Inbound Email to non-default Module

2015-12-09 Thread &#x27;Alex Martelli' via Google App Engine
Indeed, looks like an excellent FR -- could you please enter it at https://code.google.com/p/googleappengine/issues/list?can=2&q=Type%3DFeature ? (PK's FR about implicit use of GCS is also good, but I can see the technical difficulties with that one in receiving emails, risking a DOS attack by fill

Re: [google-appengine] Saving incoming email to datastore

2015-12-09 Thread &#x27;Alex Martelli' via Google App Engine
Good point: an incoming email (inc. attachments) can be up to 31+MB -- far above the largest datastore entity, 1MB. So, stashing the mail away in GCS (and, the raw form does seem best), with metadata in the datastore, seems the best strategy. Alex On Wed, Dec 9, 2015 at 8:18 AM, Phil Hodey wrote

Re: [google-appengine] Google Cloud Storage - token Not accepted all of a sudden.

2015-12-08 Thread &#x27;Alex Martelli' via Google App Engine
Looks like an effect of the incident being tracked at https://status.cloud.google.com/incident/appengine/15025 . Alex On Tue, Dec 8, 2015 at 9:26 AM, Will Reiher wrote: > Nothing has changed since yesterday when uploading was working as > expected. Today I'm seeing 401s and invalid token errors

Re: [google-appengine] Blobstore without form.

2015-12-04 Thread &#x27;Alex Martelli' via Google App Engine
On Fri, Dec 4, 2015 at 9:30 AM, Trez Ertzzer wrote: > Hello. > My question is: is it possible to use the blobstore without a form? > > I am asking this question because I want to do the following in a > ionic/cordava App: > > the user take a picture with his phone, click a button upload and the f

Re: [google-appengine] App Engine Dev server error: "Current logged in user ... is not authorized to view this page."

2015-11-30 Thread &#x27;Alex Martelli' via Google App Engine
min fake userid, so it correctly denied you access to `login: admin` URLs. Alex > > On Monday, November 30, 2015 at 8:35:04 PM UTC, Alex Martelli wrote: >> >> >> >> On Mon, Nov 30, 2015 at 12:20 PM, Alex Kerr wrote: >> >>> Hi, >>> >>

Re: [google-appengine] App Engine Dev server error: "Current logged in user ... is not authorized to view this page."

2015-11-30 Thread &#x27;Alex Martelli' via Google App Engine
On Mon, Nov 30, 2015 at 12:20 PM, Alex Kerr wrote: > Hi, > > When I try to access a PHP or HTML file from my project in my local > browser, when running the dev server (PHP SDK), I just get the message > "Current logged in user [my email address] is not authorized to view this > page.". I get thi

Re: [google-appengine] Re: Text based RPG

2015-11-24 Thread &#x27;Alex Martelli' via Google App Engine
On Tue, Nov 24, 2015 at 5:39 AM, martin n <3inf.dr...@gmail.com> wrote: > > > On Tuesday, September 8, 2009 at 6:54:26 AM UTC+2, Brandon Wirtz wrote: >> >> ... Not a Telnet like session. . . >> >> Have similar telnet-related question. > Is GAE able to accept incoming telnet connection ? > No: HTT

Re: [google-appengine] Visual Basic Programmer - should I use Python, Java, PHP or GO

2015-11-15 Thread &#x27;Alex Martelli' via Google App Engine
On Sun, Nov 15, 2015 at 11:46 AM, Chris Ketchell < chris.ketchell...@gmail.com> wrote: > Thanks very much I'll probably work through the introductions for each > > Would you say any are similar to .Net? > No, I don't think any of the App Engine runtimes are particularly "similar to .Net". In term

Re: [google-appengine] Visual Basic Programmer - should I use Python, Java, PHP or GO

2015-11-15 Thread &#x27;Alex Martelli' via Google App Engine
A highly debatable (and hotly debated!) subject, is the choice of programming language -- me, I'm a Python fan (my vanity license plate is P-heart-THON -- the heart sign looks a bit like a Y and, of course, stands for "love":-) so my take will no doubt be biased towards Python -- just as that of a

  1   2   >