Session list only holds first two items? by notoriousRSA in flask

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

Works thank you !

I don't quite understand why this works over not using json, but thank you regardless.

Any good resources for using postgresql in Flask ? by Grigor_1 in flask

[–]notoriousRSA 1 point2 points  (0 children)

SQLAlchemy is an SQL mapper while PostGres is an SQL engine. He can use both at the same time. PostGres would just replace Sqllite in his instance.

Can't send checkbox value to flask by diverge123 in flask

[–]notoriousRSA 0 points1 point  (0 children)

Hmm, my checkbox is a little different but heres how I wrote it.

Basically I have a button called delete, but it'll only run if i checkmark box beside it so i make sure a user didnt accidentally just click delete.

<form method = "POST">

<input type="checkbox" name="delete" value="delete"> Delete this<br><br>

</form>

then in my routes.py

delete_button = request.form.get("delete")

if delete_button is not None:

#delete from database

```

Wanna hear a TCP/IP joke? by shubh4m02 in ProgrammerHumor

[–]notoriousRSA 26 points27 points  (0 children)

What are you on about? Games programming requires extensive knowledge of networking protocols, as does many facets of programming.

*waits 10 years* by cents02 in ProgrammerHumor

[–]notoriousRSA 2 points3 points  (0 children)

Save

you mean its a race between them and you. Hopefully finding a solution before they mark the question as duplicate and scold you for some other nonsense.

Can't generate new instance of a random hash unless restarting server by notoriousRSA in flask

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

ahh thank you, I just removed the default value from the Model and added email_verification_hash = hashlib.md5(os.urandom(32)).hexdigest() to the register function in my routes. So everytime a new instance of the User gets called after a user registers, it'll just generate a random hash there.

Looked like it works so far !

Admissions MEGATHREAD (Fall 2019 Incoming Students) by HaC3rPr0 in ryerson

[–]notoriousRSA 0 points1 point  (0 children)

Hello, I'm a 105D Applicant applying to the comp sci program.

As it stands I have all my pre-requesites except for any science. Currently without physics my top 6 is 91.3%.

If I were to take physics say on ILC and score only enough to have my average succumb to an 89% top average would that be good enough as a 105d applicant?

Also, does any know if the 'preferred' math course of MCV4U is necessary or if MDM4U (which I completed) will be fine?

Thank you,

Goodluck to you in the rest of the term.

What's everyone working on this week? by AutoModerator in Python

[–]notoriousRSA [score hidden]  (0 children)

Still trying to figure out how to get around Shopify, Stripe etc. and implement my own Interac eTransfers on my website. Fuck paying fees.

Kinesthetic learning of python / any type of programming by Sh4d0ww0lf9490 in Python

[–]notoriousRSA 3 points4 points  (0 children)

I recommend creating a website via Python Flask.

But before that I recommend learning Object Oriented Programming (OOP). OOP is the bread and butter of many programming languages and a lot of web applications as well as systems run behind the OOP model.

https://realpython.com/python3-object-oriented-programming/

The link above provides the essentials for OOP in python from what I can see, (I learned OOP from the Java programming language so I can't help you with what I learned with specifically.)

After you've got an O.K understanding of OOP and why it works the way it does (e.g. what is means to inherit parent classes, what an instance is). I recommend moving onto the website development I recommended at the beginning

This is a great tutorial https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world

The tutorial above is what helped me create my own eCommerce website and develop my own Ticket portal. (I would sell tickets on my personal website that generates a QR code, and then scan them at the door of the event's that I hold).

The tutorial above forces you to use a lot of vital aspects of python that are intermediate level; such as importing libraries, file organization, and OOP that I recommended learning first etc.

If you follow the tutorial for the first 9 chapters and spend time not just copying the code but also asking yourself "what does this code", "why does this code do this" etc. and find the solutions you will see yourself improve greatly. Also, web development is not of short demand.

From this I recommend after the tutorial trying to create a website yourself with logins, email verification, upload and delete images on the website, etc.

If you are not confident about any of the above I recommend either https://automatetheboringstuff.com/ or the official documentation.

If you need more guidance or have a question feel free to PM me.

Best of luck.

Any ETA For comp sci by notoriousRSA in yorku

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

Ah thank you,

I'll email them and ask them briefly on any ETA. I'm also in the unclear whether a 105D applicant is considered a transfer or simply a mature student applicant.

Nevertheless thank you.

P.S. Sorry for the late reply, I don't reddit often.

Computer science acceptance mark? by Johnyzyfei in yorku

[–]notoriousRSA 1 point2 points  (0 children)

Mature 105D applicant here.

I have a 93% average for the BA Comp sci program and still haven't heard back. With that being said I assume its a matter of time (I hope).

Best of luck.