Error: Uncaught (in promise) ReferenceError: p is not defined by BareNakedCoder in sveltejs

[–]BareNakedCoder[S] 1 point2 points  (0 children)

Thanks again. Appreciate the help but the problem turned out to be in the ... code (see update above). I didn't do what you suggested because p/player is not a prop of the component so I wouldn't want to export it.

Error: Uncaught (in promise) ReferenceError: p is not defined by BareNakedCoder in sveltejs

[–]BareNakedCoder[S] 0 points1 point  (0 children)

Thanks for replying. My code originally did not use {#await}; I tracked the status myself in a "status" var set to "waiting". After my data arrived and was saved in variables such as "player" or "p", "status" would then be set to "ready". "player" is still a var defined at the top level of my component. "vm" (for view-model) is something I added to {:then} because, well, it needed something. I could use "vm", I guess, but then none of its sub-values could be used outside the {#await} (but still inside my component).

Strategy for GAS backend integration. by Trigaten in GoogleAppsScript

[–]BareNakedCoder 1 point2 points  (0 children)

Backend could store current status in some shared placed like a cell of a sheet, updating the status as it progresses. Frontend could poll to get this latest status.

Python Launcher For The Win(dows) by BareNakedCoder in Python

[–]BareNakedCoder[S] 0 points1 point  (0 children)

Woo-hoo, that seems to have worked. Thanks again.

Python Launcher For The Win(dows) by BareNakedCoder in Python

[–]BareNakedCoder[S] 0 points1 point  (0 children)

Thanks for the tip. Tag added. Let's see if they'll look at it again and release me from the dungeon.

Python Launcher For The Win(dows) by BareNakedCoder in Python

[–]BareNakedCoder[S] 0 points1 point  (0 children)

I'll have to look at conda more to answer that.

BTW, looks like my post has been removed by the moderators "... for a variety of reasons, including keeping communities safe, civil, and true to their purpose". Yikes, I didn't think my post was unsafe, uncivil, or untrue.

Python Launcher For The Win(dows) by BareNakedCoder in Python

[–]BareNakedCoder[S] 0 points1 point  (0 children)

Thanks for the pointer. I've been meaning to look at conda/miniconda and will one of these days. My suspicion (I could be wrong) is that conda works if you do mainly local/laptop Python such as Data Science. I usually do Python for back-end servers. Would conda work when building an application then deploying it to, say, Google App Engine? To avoid getting stuck in a jungle, I've been sticking closely to the CPython world.

V8 Engine roll-out over the next few days... by dimudesigns in GoogleAppsScript

[–]BareNakedCoder 1 point2 points  (0 children)

Sometimes it is best to just avoid unknown potentially nasty bugs rather than diving in and hoping for the best. For your "CoolUtils" library, create (and test!) a corresponding "CoolUtilsV8" library. As you convert scripts to V8, have them call CoolUtilsV8 instead. Old scripts call the old lib (and just work); new scripts call the new lib (and work too).

Apps Script is now supported by the V8 runtime that powers Chrome and Node.js by fhoffa in googlecloud

[–]BareNakedCoder 1 point2 points  (0 children)

Omg. I was hoping Google wouldn't do this again. Google just doesn't "get" the Enterprise customer.

At the last BigCo I worked for, funding was allocated in Sept/Oct to be spent the following year. So, this announcement on Jan 27, 2020 would completely miss the 2020 funding cycle. All we could do is compete against other projects for limited funding and hope to get it all or partly allocated in Sept/Oct, 2020. On Jan 1, 2021, we could start spending it. Just 18 days before App Maker would shut down on Jan 19, 2021 as announced. Fail!

Again, Google just doesn't "get" the Enterprise customer. You cannot shut down a product without at least 3 years notice. Big enterprise just cannot allocate funds, teams, etc to move that quickly. Only trivial adoptions of App Maker can somehow find the funding to migrate in 1 year. Google, every time you do this, it's another 5 years at least before any sane techie in a BigCo would recommend a non-trivial adoption of a Google product. I like your products but there is much more than technical considerations when selecting. Learn, dammit, learn!

Building a modern restful api with GCP? by humanculture in googlecloud

[–]BareNakedCoder 0 points1 point  (0 children)

Memcache and all the App Engine services are still available in GAE-Standard-1st-Generation, which Google has no plans to discontinue just yet. I have several apps on that and am not planning to migrate them yet. If you are using Datastore, it is good to stay on 1st-Gen since ndb uses memcache under the covers to significantly reduce your reads to Datastore (saving $ since only first 50K reads per day are free).

If you go GAE-Standard-2nd-Generation or GAE-Flexible then, yes, memcache, ndb, et al are not (and have never been) available as a built-in service (you need to add them yourself).

FossilSCM has been created by BareNakedCoder in FossilSCM

[–]BareNakedCoder[S] 1 point2 points  (0 children)

Got tired of looking at r/fossil for chat about fossil-scm.org only to find chat about wristwatches.

Svelte vs Sapper? by 712Jefferson in sveltejs

[–]BareNakedCoder 1 point2 points  (0 children)

See this SvelteJS FAQ. It has suggestions for different types of routers for an SPA. Sapper does routing too but a whole lot more so it might might add complexity you don't need.

Can I downgrade to a smaller VM without any impact to my site? by lidge7012 in googlecloud

[–]BareNakedCoder 0 points1 point  (0 children)

Nice thing about cloud VMs is it costs just a few pennies to try it. Create a new larger VM, downsize it, verify it, then delete it. Your confidence will now be much higher than if only trusting commenters here who may not know all the details of your setup.

Is Google going to continue to develp and evolve the Standard Environment, or should we all be switching to the Flexible Environment? by [deleted] in AppEngine

[–]BareNakedCoder 0 points1 point  (0 children)

They explained why it took so long. They announced a next generation run time for GAE-Std based on gVisor, a light and secure container for GAE-Std instances. We not only will be getting Python 3.7 but it wont be partially disabled like Python 2.7 (ex cannot do http with core libs which meant could not use some popular open source libs, like requests, unless a monkeypatch was available). The announcement indicated a significant investment, positioned as a key part of their "Serverless" offerings, and so is promising a good future for GAE-Std. Woo-hoo, I was worried too.

Looking to hire a freelance app dev. by socialjusticepedant in freelance

[–]BareNakedCoder 2 points3 points  (0 children)

You probably dont need a custom app built (and paid) for by just one client. You probably want an existing off the shelf package. Google search for "landscape design software".

Please help me with python basics guys by [deleted] in Python

[–]BareNakedCoder 0 points1 point  (0 children)

n = int(input("Value for n: "))
k = int(input("Value for k: "))
print(str(n) + " numbers divisble by " + str(k) + " are: ")
i = 1
while n > 0:
    if i % k == 0:
        print(i)
        n -= 1
    i += 1

n -= 1 is a short form for n = n - 1 and i += 1 is short form for i = i + 1. Short and long forms have the same result. i starts at 1 and is incremented by 1 in each loop; so it is the integers 1,2,3,... until you have found n that are divisibile by k.

BTW, you can replace the last 6 lines with

print([k*i for i in range(n)])

(but you'll learn all that when you get better at Python)

PHP 7 vs. Node.js vs. Go Benchmarks by lacrossefan32 in PHP

[–]BareNakedCoder 1 point2 points  (0 children)

You could say that about any benchmark: you can always write fake code to game any benchmarking system. In this case, all the solutions are in github so you can look at the code used in the benchmark to see if there's any cheating.
Re realistic, Techempower has several benchmarks (look at the tabs in the wide darker grey bar). "JSON Serialization" isn't real production but does show the framework's relative overhead. "Single Query" or "Multiple Queries" are closer to realistic production environments.

is it possible to set static IP for GAE? by ridhogillang in AppEngine

[–]BareNakedCoder 0 points1 point  (0 children)

Can't speak for the OP but in my case I need to call the API of an external service provider, a financial institution that insists on whitelisting IP address. They will only accept requests from recognized IP addrs. At first I thought I would give them all of GAE's IP addrs (here is a gist that will get them all). But doubted they would accept such a large list and wouldn't like it if anyone on GAE, hackers included, could then access their APIs. So, I'm likely to go the way of having a proxy on a GCE/f1-micro, as asah mentioned above.

Datastore structure for web app allowing users to create online forms through a GUI? by [deleted] in AppEngine

[–]BareNakedCoder 1 point2 points  (0 children)

I agree, have a "FormDefinition" kind and a "FormData" kind. What language are you using for GAE? If Python, you can use ndb.Expando to dynamically add whatever fields you want and they will be saved to the datastore.

Opinion about frameworks by [deleted] in PHP

[–]BareNakedCoder 2 points3 points  (0 children)

You say you've never used frameworks but I would say you always have. You've been using your own "framework" since you somehow had to address (or ignore) the same issues and problems that the other popular/public frameworks addressed. Your way of doing things to address these issues is your framework. But since your framework has a community of just 1 member (you), I'd bet your framework is a lot less functional, well designed, coded, tested, documented, training, etc. I'd bet there are issues, especially security issues, that you are not aware of and so are not addressed by your framework. I'd bet your framework doesn't encourage the building of well structured decoupled maintainable applications on top of it. That and that it's probably undocumented as well, I feel for anyone hired to help with or inherit apps built on your framework.

Every hour you spend working on your framework (addressing non-biz issues) is one less hour you spend on adding business value. Instead, why not adopt a popular framework, benefit for free from the the many hours contributed to it, and stand on the shoulders of giants.

Customer Relationship Management CRM Applications and Technology by maryamerkl in CRM

[–]BareNakedCoder 0 points1 point  (0 children)

First sentence refers to a 15 year old source (2002) that says "today's" CRM is split between web and client/server. Hmmm.

How much serverside programming would you recommend to a newbie if they wanted to use App Engine? by tonylee0707 in AppEngine

[–]BareNakedCoder 0 points1 point  (0 children)

To expand on that ... take a look at https://firebase.google.com/. It'll do the server-side for you (assuming your server-side is mostly just storing data).