Unable to load image

Working on an idiot project, would appreciate codecel input

Imagine for a moment that you are me: a balding smoothbrained millenial on the wrong side of 30 emanating a constant funk of mildew and sour milk. The last time you cared about coding you were booting off floppy diskettes and making HTML websites with frames.

Now, I'm working on an idiot project. I want to make a web applet where I could input text, store it in a .txt file and then retrieve it from another PC.

Is web2py and an apache server a feasible approach? I'm too :marseyretard3: for django.

web2py uses SQL for a storage db, but honestly it's going to be a single user app (just me) and storing the .txt files in a directory with a date/time naming scheme would be fine.

Would this work the way I want it to? I have tried googling but these questions are too basic and r-slurred to find answers to.

21
Jump in the discussion.

No email address required.

pretty sure you could do it staticially in js and host it with any static server like apache or nginx

Jump in the discussion.

No email address required.

I think I want to stick with python as I know a little bit of it, I dont know any js at all

Jump in the discussion.

No email address required.

Just use flask (I think rdrama does)

Jump in the discussion.

No email address required.

This seems a lot easier. Can i build a whole butt website in flask? Does it do docker?

Jump in the discussion.

No email address required.

You can.

I would just use the built in webserver and not even bother with apache, for low volume stuff you really don't need a reverse proxy and you can always just add it later if you do.

Jump in the discussion.

No email address required.

I want the applet on the cloud but I dont understand how I would use the built in server on a cloud service. Would something like AWS run flask and I would just build the app there?

I've only ever written (read copy/pasted code) for a Twitter bot that ran off AWS

Jump in the discussion.

No email address required.

I dunno I don't use AWS but you can just use a cheap VPS and run it there. You can also run it in docker if you really want, not sure it's needed for this though.

Jump in the discussion.

No email address required.

That helps a lot! Thanks

Jump in the discussion.

No email address required.

I want the applet on the cloud but I dont understand how I would use the built in server on a cloud service.

Then use whatever google appengine uses (web.py I think).

Deploying your website would be like 95% of the work on a generic cloud service, so unless you want it to be an Important Learning Experience just use appengine.

Jump in the discussion.

No email address required.

I kinda do wanna learn how to run a server and build sites and maybe even make a db, it's stuff I've been avoiding for almost two decades and I kinda wanna know it

Jump in the discussion.

No email address required.

Then my suggestion is to

1. Implement it using appengine

2. Deploy standalone at your leisure

This way there's a risk that you never finish 2, but from your self-description, it's actually less of a risk than that you get stuck with deployment hurdles and never get to writing the actual app at all!

Also, when looking at standalone kind of stuff, I'd consider Heroku. I have never actually used it myself, but apparently it's free if you give them your credit card number (and can work 50% of the time if you don't).

Jump in the discussion.

No email address required.

This is really good advice, I'll look into both of these asap

Jump in the discussion.

No email address required.

just deploy an etherpad container you absolute r-slur

Jump in the discussion.

No email address required.

This isn't quite what I want. I want a directory or db of .txt files with some kind of name scheme like date_time_subject.txt

Jump in the discussion.

No email address required.

explain what the problem you're trying to solve actually is so that I can tell you why you're r-slurred in greater detail please

Jump in the discussion.

No email address required.

I want to create text files from a web applet so they can be added to a local vector db for llama to look at.

Llama will be run locally, the vector db will also be local. The txt files will be on the server

Jump in the discussion.

No email address required.

Is there a reason you're not sending a request from the server to the vector DB directly? The DB should have an API for having entries added to it which the server can use directly rather than going through the intermediary of a txt file and adding them manually yourself

Jump in the discussion.

No email address required.

Eventually that's the plan, there are too many problems for me to tackle to implement that.

The "vector db" is weird python thing that uses langchain to turn entries into FAISS files, it outputs a single FAISS file regardless of number of inputs. I'm sure this can be improved but for now it's fine.

I'm going to just do a daily rebuild of the FAISS file without bothering to check for redundancies until I sort my shit out.

Jump in the discussion.

No email address required.

you're talking about literally a single endpoint to accept a POST request, and an html page with a single form field on it. this is so trivial that even a zoomer could do it.

Jump in the discussion.

No email address required.

It's complicated to ME :soyjaktantrum:

Where does the post go? How do i find it? Who knows!

Jump in the discussion.

No email address required.

Clone rdrama (https://fsdfsd.net/rDrama/rDrama) and remove all unnecessary stuff.

Jump in the discussion.

No email address required.

You should be defining those endpoints and what they do. Couldn't tell you how to do it in Apache though.

Jump in the discussion.

No email address required.

If it's just you, is there an immediate reason not to just use Dropbox?

Jump in the discussion.

No email address required.

I want to quickly and easily have a txt file with the naming scheme made to save me time and effort, dropbox might be okay but could I pull files off of it automatically with a script?

Jump in the discussion.

No email address required.

They have an API you can use, but I imagine you can just access them like a local file if the machine has Dropbox installed

Jump in the discussion.

No email address required.

:#marseysanta2:

Jump in the discussion.

No email address required.

Link copied to clipboard
Action successful!
Error, please refresh the page and try again.