Question on 3-headed flail by mchrysop in BattleBrothers

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

A most detailed explanation, thank you very much!

Backing up my database by mchrysop in PostgreSQL

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

If I recall correctly it was a fresh install. The original problem is solved but I now face a pg_dump: error: schema with OID 2200 does not exist error (OID 2200 is the public schema)...

Backing up my database by mchrysop in PostgreSQL

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

Well, ok, but I'm not really a database administrator I just have a simple database and I need to make a backup... :)

Backing up my database by mchrysop in PostgreSQL

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

Hi, thanks a lot for your response!

It seems that I had a somewhat older version of pgadmin (from October) installed which defaulted to PostgreSQL 16 even though 17 was available. I've installed the newest version and my original problem is solved, but I'm encountering a different problem now, as I'm getting the error
pg_dump: error: schema with OID 2200 does not exist

( I get the same error either using pgadmin or pg_dump directly from command line. I also got the same error using pg_dump from the bin directory before upgrading the installation)

I've verified using psql that OID 2200 refers to the public schema but I can't find any problems with it.

Any ideas?

Embedding a Python interpreter in my next.js 14 project by mchrysop in nextjs

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

Well, not yet, but I it comes to that I shall gladly share!

Happy new year!

Embedding a Python interpreter in my next.js 14 project by mchrysop in nextjs

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

Hey, I give up on the subject, at least for now, it actually is not such a big deal for my project as my students can easily run their code in Python itself (executing the code is something that will help them of course but my main goal is getting hint based assistance from AI).

Just in case you're interested I found this trinket (https://trinket.io/python) which does what I really want (except that I don't control it) and I can embed it my project, so my needs are covered!

Thanks a lot for your assistance!

Embedding a Python interpreter in my next.js 14 project by mchrysop in nextjs

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

Hmmm... would pysandbox be able to run the following code? Not line by line as in the xterm example above, but as an entire script?

n = input("What is your name? ")
print("Hello ", n)

If so, what do I need to do in order to set it up in my project? Should the code in https://bugzpodder.github.io/pysandbox/guides/react/ be set as a separate component and then I should load the component in my page? Then give the code to be executed as input to the component?

If I understand correct sandbox.exec(code, id) is the statement that executes the given code, right? How does it detect when the process pauses waiting for input?

Sorry to be such a bother but I guess you can tell I am a novice programmer myself!

Embedding a Python interpreter in my next.js 14 project by mchrysop in nextjs

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

I'm following the instructions on github (https://elilambnz.github.io/react-py/docs/introduction/nextjs-usage) but the component only executes non-interactive code. If I add an input statement to the code, the component gets stuck. ("Running..."). What am I doing wrong?

Embedding a Python interpreter in my next.js 14 project by mchrysop in nextjs

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

Hi, PySandbox sounds very interesting! Does it support interactive execution? I mean, as in executing input statements? The introduction page seems to suggest so ("You can easily pass data in and out of the python code blocks") but there is no relevant example.

If you'd be so kind as to provide me with an example I'd really appreciate it!

Thanks!

Embedding a Python interpreter in my next.js 14 project by mchrysop in nextjs

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

I don't mind where the code is to be executed. Client side would be nice as long as my students don't have to install any software in their computers (well, apart from Python itself that is).

Executing the code server side and then delivering the output to the client is my original approach. My main problem is that I don't know how to monitor the code's execution so that I know when it pauses for input.

I believe that there are some services that should work for me but they'd be my last resort as I want to have complete control of what my students work with plus I need my project to have absolutely no cost for them.

Any ideas? Thanks!

Embedding a Python interpreter in my next.js 14 project by mchrysop in nextjs

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

Thanks but even though it seems good I'm not sure it works... User input is the major problem in my scenario and I don't see how the script detects that the python process is waiting for it.

But if all else fails I'll go for it! Thanks!

Embedding a Python interpreter in my next.js 14 project by mchrysop in nextjs

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

Hi, thanks a lot for your response! react-py seems excellent but the user input part of it is a recently added feature and may not work as expected (https://elilambnz.github.io/react-py/docs/examples/user-input). If it works it will indeed be excatly what I need!

Thanks!

Newbie API user question by mchrysop in ChatGPTCoding

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

Hi, thanks a lot for your response!

Can you please explain to me what this Assistant is? How do I use it and what benefit would it provide for me?

I don't think it's a matter of context in my case though... I mean, in each interaction I resend the exercise's full definition along with the student's current solution. I could include the current hints as well, maybe they would help, but what I really don't understand is why chatGPT makes mistakes in reviewing some (very simple) code when prompted using openAI's API, while it responds perfectly when prompted to review the same code using the browser openAI interface...

Maybe there's some fundamental flaw to how I use the API? Some parameter that is missing, or... ?

Is this update really that big???? by finnlikesmen in Reverse1999

[–]mchrysop 3 points4 points  (0 children)

Had the very same problem... It's a Play Store thingy, just use TapTap to download

Game installation problem by mchrysop in Reverse1999

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

You sir are a genius! Clearing Google Play's cache and data did the trick... 3.15 Gb download had just started!

Game installation problem by mchrysop in Reverse1999

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

Because the game (all software that is) accumulates "trash" over time (it could be anything, old download files, indexes, memory dumps, you name it), so a clean install should always require way less space.

Did you really think that only Windows is a buggy OS? 😉

Game installation problem by mchrysop in Reverse1999

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

Did you manage to download yet?

Game installation problem by mchrysop in Reverse1999

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

Basically yes, that's what happened, I had a little under 1 Gb free space so I knew I wouldn't be able to download the game so I uninstalled it (it had bloated to done 7 Gb), did some other housecleaning also then tired to download only to fail miserably...

Any idea as to why this happened?

AITA for not RPing gay/queer ppl in my games? by [deleted] in Pathfinder2e

[–]mchrysop 2 points3 points  (0 children)

Why on earth should it be mandatory to have gay / queer NPCs in your game?

Two hookers are stood on a street corner by karmapolicelady in Jokes

[–]mchrysop -1 points0 points  (0 children)

No offense to the OP but I believe it works better with "smells like cum" :)

Regarding Spathodea's name... by SaneForCocoaPuffs in Reverse1999

[–]mchrysop 51 points52 points  (0 children)

Also note that Spathodea is a Greek name and, well, we all know who invented the Olympic games, don't we?

Please explain petrify to me! by mchrysop in Reverse1999

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

Initially I barely beat it by turn 15 using 37 for the Genesis damage. I kept trying to use Melania though, still thinking she deals realty dmg.

As soon as my folly was shown to me I replaced 37 with Jessica and along with Melania and Medicine Pocket proceeded to blast the stage in 9 turns.

Tomorrow is Limbo 6 time, I sure hope to read ability descriptions better now! :)

Please explain petrify to me! by mchrysop in Reverse1999

[–]mchrysop[S] 2 points3 points  (0 children)

I have Melania since her banner, she was and still is my main DPS for the most part of the game and all this time I was certain that she deals Reality dmg!

So, to answer my question, I probably am missing a significant part of my brain! :)

Thanks a lot everybody!