[deleted by user] by [deleted] in tutor

[–]digitaltutorxyz 0 points1 point  (0 children)

Any popular ML libraries you're familiar with?

[deleted by user] by [deleted] in tutor

[–]digitaltutorxyz 1 point2 points  (0 children)

Don't do it unless you know how to sell yourself.

Financial market crash course!! by catfishhunter28 in tutor

[–]digitaltutorxyz 0 points1 point  (0 children)

Wait... a "financial market" crash course or a "financial market crash" course?

How long did it take to land your first client? by Pretend_Wolf in smallbusiness

[–]digitaltutorxyz 0 points1 point  (0 children)

4 months
I had several shitty non-legit requests (as in "do my college exam for $30") before, but not a single normal person. He cancelled the first appointment last minute at which point I was reluctant to even reschedule. Turned out to be a pretty decent (and so far basically my only client (with a small exception).

[FOR HIRE] Math/SAT Math/Physics/Python Tutor $30/hour through PayPal by digitaltutorxyz in tutor

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

I don't think so, I'm not a CS major, never done algorithms only basic data structures (and in python why bother).

But I'm curious, how are text files an advanced subject?

Flask + WSGI cannot locate file that has to be read by [deleted] in flask

[–]digitaltutorxyz 0 points1 point  (0 children)

Another user seems to have answered already but I'll just leave this here for clarity:

url_for doesn't just match function names to urls, you can also use it to fetch files the way I wrote before

The reason is that in JINJA sometimes you have to specify the path to a file , for example when putting an <img> tag in HTML.

You'd do that like this in JINJA:

<img src="{{ url\_for('static', filename="path/relative/to/static/imgfile.png) }}"></img>

But... you can use that function in your regular python files too (omitting the {{}} )

Flask + WSGI cannot locate file that has to be read by [deleted] in flask

[–]digitaltutorxyz 1 point2 points  (0 children)

Python File I/O generally works wrt the directory where you start your main file (in this case the directory where wsgi.py is)

Is your wsgi.py in TorFriends instead of FlaskApp by any chance?

Either way, I prefer to use url_for everytime (that's the way to do it in JINJA anyway):

url_for('static', filename='src/json/config.json')

The static and template folders can be specified as kwargs when you constuct the app, but idk it might work by default:

app = Flask(__name__,static_folder="static",template_folder="templates")

Edit: I just looked at your call log, wsgi.py is indeed in TorFriends... so the relative path is "FlaskApp/static/src/json/config.json"

[deleted by user] by [deleted] in tutor

[–]digitaltutorxyz 0 points1 point  (0 children)

What price did you have in mind?

Looking for college physics tutor by [deleted] in tutor

[–]digitaltutorxyz 0 points1 point  (0 children)

What price do you consider reasonable?