“The Cathedral and the Bazaar”: Mathematica vs. python, IPython and Jupyter, and their application to scientific papers
https://www.theatlantic.com/science/archive/2018/04/the-scientific-paper-is-obsolete/556676/
/r/Python
https://redd.it/8aqmzk
https://www.theatlantic.com/science/archive/2018/04/the-scientific-paper-is-obsolete/556676/
/r/Python
https://redd.it/8aqmzk
The Atlantic
The Scientific Paper Is Obsolete
Here's what's next.
Pyforms: Embedding a pyplot into a pyForm using ControlMatplotlib
I have come across the ControlMatplotlib control, however I cannot for the life of me figure out how to pass the pyplot to this control.
There is little to no example code for the use of this control and the docs don't have example code.
Any insight is greatly appreciated.
/r/Python
https://redd.it/8apvjp
I have come across the ControlMatplotlib control, however I cannot for the life of me figure out how to pass the pyplot to this control.
There is little to no example code for the use of this control and the docs don't have example code.
Any insight is greatly appreciated.
/r/Python
https://redd.it/8apvjp
reddit
Pyforms: Embedding a pyplot into a pyForm using... • r/Python
I have come across the ControlMatplotlib control, however I cannot for the life of me figure out how to pass the pyplot to this control. There...
[AF] Does anyone use webtest? If so, why use it over flask's built-in test client?
I've been learning unit/integration testing following [sloria/cookiecutter-flask](https://github.com/sloria/cookiecutter-flask) as an example. I know this approach is opinionated, but does anyone know what value webtest brings over flask's built-in test client? I'm relatively new to flask but I suspect that the author simply prefers using webtest (perhaps since it's a more general tool).
/r/flask
https://redd.it/89tvn5
I've been learning unit/integration testing following [sloria/cookiecutter-flask](https://github.com/sloria/cookiecutter-flask) as an example. I know this approach is opinionated, but does anyone know what value webtest brings over flask's built-in test client? I'm relatively new to flask but I suspect that the author simply prefers using webtest (perhaps since it's a more general tool).
/r/flask
https://redd.it/89tvn5
GitHub
GitHub - cookiecutter-flask/cookiecutter-flask: A flask template with Bootstrap, asset bundling+minification with webpack, starter…
A flask template with Bootstrap, asset bundling+minification with webpack, starter templates, and registration/authentication. For use with cookiecutter. - cookiecutter-flask/cookiecutter-flask
Thumbnail in form or formset
Hi everyone,
What's the easiest way to display the image that has been uploaded to the form in addition to or rather than just the filepath of the image within a form or formset. Really struggling with this one.
Thanks!
/r/django
https://redd.it/8as2gu
Hi everyone,
What's the easiest way to display the image that has been uploaded to the form in addition to or rather than just the filepath of the image within a form or formset. Really struggling with this one.
Thanks!
/r/django
https://redd.it/8as2gu
reddit
Thumbnail in form or formset • r/django
Hi everyone, What's the easiest way to display the image that has been uploaded to the form in addition to or rather than just the filepath of...
Allowing user to add details to flask-mail message
So I have a modal on my site from which I want my user to be able to enter their email, hit submit, and then the app to message me with the users email. So far I've got the site sending a message but I'm unsure how to get the users email into the message. Any help would be much appreciated.
My code for sending the email
@app.route('/sendmail/', methods=['POST','GET'])
def send_mail():
try:
#emaiil = request.form['email']
msg = Message("Access request",
sender="SENDING_EMAIL",
recipients=["MY_EMAIL"])
msg.body = "Users email is"
mail.send(msg)
flash('Request sent!')
return redirect(url_for('main'))
except Exception, e:
return(str(e))
My modal for which the user enters their email
<div class="modal-body">
<p>Password can be obtained from somewhere</p>
<form action="{% print url_for('send_mail') %}" class ="form- inline" method="post">
<input type = "email" class = "form-control" placeholder="Email" name = "email">
<a href="/sendmail" class ="btn btn-default">Submit</a>
<button type="button" class="btn btn-secondary" data- dismiss="modal modal2">Close</button>
</form>
The modal is called from here
@app.route("/", methods=['POST','GET'])
def main():
return render_template('main.html')
/r/flask
https://redd.it/8at9sg
So I have a modal on my site from which I want my user to be able to enter their email, hit submit, and then the app to message me with the users email. So far I've got the site sending a message but I'm unsure how to get the users email into the message. Any help would be much appreciated.
My code for sending the email
@app.route('/sendmail/', methods=['POST','GET'])
def send_mail():
try:
#emaiil = request.form['email']
msg = Message("Access request",
sender="SENDING_EMAIL",
recipients=["MY_EMAIL"])
msg.body = "Users email is"
mail.send(msg)
flash('Request sent!')
return redirect(url_for('main'))
except Exception, e:
return(str(e))
My modal for which the user enters their email
<div class="modal-body">
<p>Password can be obtained from somewhere</p>
<form action="{% print url_for('send_mail') %}" class ="form- inline" method="post">
<input type = "email" class = "form-control" placeholder="Email" name = "email">
<a href="/sendmail" class ="btn btn-default">Submit</a>
<button type="button" class="btn btn-secondary" data- dismiss="modal modal2">Close</button>
</form>
The modal is called from here
@app.route("/", methods=['POST','GET'])
def main():
return render_template('main.html')
/r/flask
https://redd.it/8at9sg
reddit
Allowing user to add details to flask-mail message • r/flask
So I have a modal on my site from which I want my user to be able to enter their email, hit submit, and then the app to message me with the users...
How do you code in css without running collectstatic with each change?
How do you guys write css without collecting static on each change to see the effect?
Thanks!
/r/django
https://redd.it/8atv09
How do you guys write css without collecting static on each change to see the effect?
Thanks!
/r/django
https://redd.it/8atv09
reddit
How do you code in css without running collectstatic... • r/django
How do you guys write css without collecting static on each change to see the effect? Thanks!
Programming is awesome! [Rus with Eng. subs, live coding in Python, imdb, beginner level]
https://www.youtube.com/watch?v=QEoiSNNkwTU
/r/Python
https://redd.it/8auamt
https://www.youtube.com/watch?v=QEoiSNNkwTU
/r/Python
https://redd.it/8auamt
YouTube
Programming is Awesome, supposedly (with English subtitles)
Talk I gave at CodeDay 2018 in Khabarovsk for local highschool and freshman students about awesomeness of programming.
With a taste of livecoding.
https://github.com/valignatev/codeday2018 - code and slides
https://twitter.com/valignatev - my Twitter
Also…
With a taste of livecoding.
https://github.com/valignatev/codeday2018 - code and slides
https://twitter.com/valignatev - my Twitter
Also…
Domain Tree Structure Best Practices?
I'm curious as to what judgement criteria is generally used when organizing the placement of apps (or sections) of a website within the tree structure?
In particular, when is it best practice to place an app name in front of your domain www.appname.domain.com vs behind it www.domain/appname.com? Is this related more to SPA's?
/r/django
https://redd.it/8atrk0
I'm curious as to what judgement criteria is generally used when organizing the placement of apps (or sections) of a website within the tree structure?
In particular, when is it best practice to place an app name in front of your domain www.appname.domain.com vs behind it www.domain/appname.com? Is this related more to SPA's?
/r/django
https://redd.it/8atrk0
reddit
Domain Tree Structure Best Practices? • r/django
I'm curious as to what judgement criteria is generally used when organizing the placement of apps (or sections) of a website within the tree...
[AF] How do I test my CLI scripts?
With help from this [repo](https://github.com/sloria/cookiecutter-flask), I was able to test my routes, models, and forms, but I can't figure out how to test my CLI scripts. Does anyone have an example?
/r/flask
https://redd.it/89f6by
With help from this [repo](https://github.com/sloria/cookiecutter-flask), I was able to test my routes, models, and forms, but I can't figure out how to test my CLI scripts. Does anyone have an example?
/r/flask
https://redd.it/89f6by
GitHub
GitHub - cookiecutter-flask/cookiecutter-flask: A flask template with Bootstrap, asset bundling+minification with webpack, starter…
A flask template with Bootstrap, asset bundling+minification with webpack, starter templates, and registration/authentication. For use with cookiecutter. - cookiecutter-flask/cookiecutter-flask
Combinations in Python
Need help counting the different ways I can get 10 pairs of couples from a ballroom dance club with 10 males and 12 females to choose from. I was thinking importing itertools would be helpful.
/r/Python
https://redd.it/8auuzu
Need help counting the different ways I can get 10 pairs of couples from a ballroom dance club with 10 males and 12 females to choose from. I was thinking importing itertools would be helpful.
/r/Python
https://redd.it/8auuzu
reddit
Combinations in Python • r/Python
Need help counting the different ways I can get 10 pairs of couples from a ballroom dance club with 10 males and 12 females to choose from. I was...
Bruteforce protection for Django projects (Redis based). Simple, powerful, extendable.
https://github.com/orsinium/django-bruteforce-protection
/r/Python
https://redd.it/8awn1r
https://github.com/orsinium/django-bruteforce-protection
/r/Python
https://redd.it/8awn1r
GitHub
orsinium/django-bruteforce-protection
Bruteforce protection for Django projects based on Redis. Simple, powerful, extendable. - orsinium/django-bruteforce-protection
[D] Machine Learning - WAYR (What Are You Reading) - Week 44
This is a place to share machine learning research papers, journals, and articles that you're reading this week. If it relates to what you're researching, by all means elaborate and give us your insight, otherwise it could just be an interesting paper you've read.
Please try to provide some insight from your understanding and please don't post things which are present in wiki.
Preferably you should link the arxiv page (not the PDF, you can easily access the PDF from the summary page but not the other way around) or any other pertinent links.
Previous weeks :
|1-10|11-20|21-30|31-40|41-50|
|----|-----|-----|-----|-----|
|[Week 1](https://www.reddit.com/r/MachineLearning/comments/4qyjiq/machine_learning_wayr_what_are_you_reading_week_1/)|[Week 11](https://www.reddit.com/r/MachineLearning/comments/57xw56/discussion_machine_learning_wayr_what_are_you/)|[Week 21](https://www.reddit.com/r/MachineLearning/comments/60ildf/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 31](https://www.reddit.com/r/MachineLearning/comments/6s0k1u/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 41](https://www.reddit.com/r/MachineLearning/comments/7tn2ax/d_machine_learning_wayr_what_are_you_reading_week/)|||
|[Week 2](https://www.reddit.com/r/MachineLearning/comments/4s2xqm/machine_learning_wayr_what_are_you_reading_week_2/)|[Week 12](https://www.reddit.com/r/MachineLearning/comments/5acb1t/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 22](https://www.reddit.com/r/MachineLearning/comments/64jwde/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 32](https://www.reddit.com/r/MachineLearning/comments/72ab5y/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 42](https://www.reddit.com/r/MachineLearning/comments/7wvjfk/d_machine_learning_wayr_what_are_you_reading_week/)||
|[Week 3](https://www.reddit.com/r/MachineLearning/comments/4t7mqm/machine_learning_wayr_what_are_you_reading_week_3/)|[Week 13](https://www.reddit.com/r/MachineLearning/comments/5cwfb6/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 23](https://www.reddit.com/r/MachineLearning/comments/674331/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 33](https://www.reddit.com/r/MachineLearning/comments/75405d/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 43](https://www.reddit.com/r/MachineLearning/comments/807ex4/d_machine_learning_wayr_what_are_you_reading_week/)||
|[Week 4](https://www.reddit.com/r/MachineLearning/comments/4ub2kw/machine_learning_wayr_what_are_you_reading_week_4/)|[Week 14](https://www.reddit.com/r/MachineLearning/comments/5fc5mh/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 24](https://www.reddit.com/r/MachineLearning/comments/68hhhb/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 34](https://www.reddit.com/r/MachineLearning/comments/782js9/d_machine_learning_wayr_what_are_you_reading_week/)||
|[Week 5](https://www.reddit.com/r/MachineLearning/comments/4xomf7/machine_learning_wayr_what_are_you_reading_week_5/)|[Week 15](https://www.reddit.com/r/MachineLearning/comments/5hy4ur/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 25](https://www.reddit.com/r/MachineLearning/comments/69teiz/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 35](https://www.reddit.com/r/MachineLearning/comments/7b0av0/d_machine_learning_wayr_what_are_you_reading_week/)||
|[Week 6](https://www.reddit.com/r/MachineLearning/comments/4zcyvk/machine_learning_wayr_what_are_you_reading_week_6/)|[Week 16](https://www.reddit.com/r/MachineLearning/comments/5kd6vd/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 26](https://www.reddit.com/r/MachineLearning/comments/6d7nb1/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 36](https://www.reddit.com/r/MachineLearning/comments/7e3fx6/d_machine_learning_wayr_what_are_you_reading_week/)||
|[Week 7](https://www.reddit.com/r/MachineLearning/comments/52t6mo/machine_learning_wayr_what_are_you_reading_week_7/)|[Week 17](https://www.reddit.com/r/MachineLearning/comments/5o
This is a place to share machine learning research papers, journals, and articles that you're reading this week. If it relates to what you're researching, by all means elaborate and give us your insight, otherwise it could just be an interesting paper you've read.
Please try to provide some insight from your understanding and please don't post things which are present in wiki.
Preferably you should link the arxiv page (not the PDF, you can easily access the PDF from the summary page but not the other way around) or any other pertinent links.
Previous weeks :
|1-10|11-20|21-30|31-40|41-50|
|----|-----|-----|-----|-----|
|[Week 1](https://www.reddit.com/r/MachineLearning/comments/4qyjiq/machine_learning_wayr_what_are_you_reading_week_1/)|[Week 11](https://www.reddit.com/r/MachineLearning/comments/57xw56/discussion_machine_learning_wayr_what_are_you/)|[Week 21](https://www.reddit.com/r/MachineLearning/comments/60ildf/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 31](https://www.reddit.com/r/MachineLearning/comments/6s0k1u/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 41](https://www.reddit.com/r/MachineLearning/comments/7tn2ax/d_machine_learning_wayr_what_are_you_reading_week/)|||
|[Week 2](https://www.reddit.com/r/MachineLearning/comments/4s2xqm/machine_learning_wayr_what_are_you_reading_week_2/)|[Week 12](https://www.reddit.com/r/MachineLearning/comments/5acb1t/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 22](https://www.reddit.com/r/MachineLearning/comments/64jwde/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 32](https://www.reddit.com/r/MachineLearning/comments/72ab5y/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 42](https://www.reddit.com/r/MachineLearning/comments/7wvjfk/d_machine_learning_wayr_what_are_you_reading_week/)||
|[Week 3](https://www.reddit.com/r/MachineLearning/comments/4t7mqm/machine_learning_wayr_what_are_you_reading_week_3/)|[Week 13](https://www.reddit.com/r/MachineLearning/comments/5cwfb6/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 23](https://www.reddit.com/r/MachineLearning/comments/674331/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 33](https://www.reddit.com/r/MachineLearning/comments/75405d/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 43](https://www.reddit.com/r/MachineLearning/comments/807ex4/d_machine_learning_wayr_what_are_you_reading_week/)||
|[Week 4](https://www.reddit.com/r/MachineLearning/comments/4ub2kw/machine_learning_wayr_what_are_you_reading_week_4/)|[Week 14](https://www.reddit.com/r/MachineLearning/comments/5fc5mh/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 24](https://www.reddit.com/r/MachineLearning/comments/68hhhb/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 34](https://www.reddit.com/r/MachineLearning/comments/782js9/d_machine_learning_wayr_what_are_you_reading_week/)||
|[Week 5](https://www.reddit.com/r/MachineLearning/comments/4xomf7/machine_learning_wayr_what_are_you_reading_week_5/)|[Week 15](https://www.reddit.com/r/MachineLearning/comments/5hy4ur/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 25](https://www.reddit.com/r/MachineLearning/comments/69teiz/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 35](https://www.reddit.com/r/MachineLearning/comments/7b0av0/d_machine_learning_wayr_what_are_you_reading_week/)||
|[Week 6](https://www.reddit.com/r/MachineLearning/comments/4zcyvk/machine_learning_wayr_what_are_you_reading_week_6/)|[Week 16](https://www.reddit.com/r/MachineLearning/comments/5kd6vd/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 26](https://www.reddit.com/r/MachineLearning/comments/6d7nb1/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 36](https://www.reddit.com/r/MachineLearning/comments/7e3fx6/d_machine_learning_wayr_what_are_you_reading_week/)||
|[Week 7](https://www.reddit.com/r/MachineLearning/comments/52t6mo/machine_learning_wayr_what_are_you_reading_week_7/)|[Week 17](https://www.reddit.com/r/MachineLearning/comments/5o
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
b7dx/discussion_machine_learning_wayr_what_are_you/)|[Week 27](https://www.reddit.com/r/MachineLearning/comments/6gngwc/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 37](https://www.reddit.com/r/MachineLearning/comments/7hcc2c/d_machine_learning_wayr_what_are_you_reading_week/)||
|[Week 8](https://www.reddit.com/r/MachineLearning/comments/53heol/machine_learning_wayr_what_are_you_reading_week_8/)|[Week 18](https://www.reddit.com/r/MachineLearning/comments/5r14yd/discussion_machine_learning_wayr_what_are_you/)|[Week 28](https://www.reddit.com/r/MachineLearning/comments/6jgdva/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 38](https://www.reddit.com/r/MachineLearning/comments/7kgcqr/d_machine_learning_wayr_what_are_you_reading_week/)||
|[Week 9](https://www.reddit.com/r/MachineLearning/comments/54kvsu/machine_learning_wayr_what_are_you_reading_week_9/)|[Week 19](https://www.reddit.com/r/MachineLearning/comments/5tt9cz/discussion_machine_learning_wayr_what_are_you/)|[Week 29](https://www.reddit.com/r/MachineLearning/comments/6m9l1v/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 39](https://www.reddit.com/r/MachineLearning/comments/7nayri/d_machine_learning_wayr_what_are_you_reading_week/)||
|[Week 10](https://www.reddit.com/r/MachineLearning/comments/56s2oa/discussion_machine_learning_wayr_what_are_you/)|[Week 20](https://www.reddit.com/r/MachineLearning/comments/5wh2wb/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 30](https://www.reddit.com/r/MachineLearning/comments/6p3ha7/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 40](https://www.reddit.com/r/MachineLearning/comments/7qel9p/d_machine_learning_wayr_what_are_you_reading_week/)||
Most upvoted papers two weeks ago:
/u/marcossilva_604: https://arxiv.org/abs/1802.06006.
/u/hohomomo1212: Learning to Play with Intrinsically-Motivated Self-Aware Agents (https://arxiv.org/abs/1802.07442). It is a paper on a form of reinforcement learning without extrinsic rewards. Think of a robot wandering around in the world without being told what to do but instead figuring out what to do by itself using a model of its own abilities. That's why they call it self-aware. Pretty cool :)
Besides that, there are no rules, have fun.
/r/MachineLearning
https://redd.it/8aluhs
|[Week 8](https://www.reddit.com/r/MachineLearning/comments/53heol/machine_learning_wayr_what_are_you_reading_week_8/)|[Week 18](https://www.reddit.com/r/MachineLearning/comments/5r14yd/discussion_machine_learning_wayr_what_are_you/)|[Week 28](https://www.reddit.com/r/MachineLearning/comments/6jgdva/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 38](https://www.reddit.com/r/MachineLearning/comments/7kgcqr/d_machine_learning_wayr_what_are_you_reading_week/)||
|[Week 9](https://www.reddit.com/r/MachineLearning/comments/54kvsu/machine_learning_wayr_what_are_you_reading_week_9/)|[Week 19](https://www.reddit.com/r/MachineLearning/comments/5tt9cz/discussion_machine_learning_wayr_what_are_you/)|[Week 29](https://www.reddit.com/r/MachineLearning/comments/6m9l1v/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 39](https://www.reddit.com/r/MachineLearning/comments/7nayri/d_machine_learning_wayr_what_are_you_reading_week/)||
|[Week 10](https://www.reddit.com/r/MachineLearning/comments/56s2oa/discussion_machine_learning_wayr_what_are_you/)|[Week 20](https://www.reddit.com/r/MachineLearning/comments/5wh2wb/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 30](https://www.reddit.com/r/MachineLearning/comments/6p3ha7/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 40](https://www.reddit.com/r/MachineLearning/comments/7qel9p/d_machine_learning_wayr_what_are_you_reading_week/)||
Most upvoted papers two weeks ago:
/u/marcossilva_604: https://arxiv.org/abs/1802.06006.
/u/hohomomo1212: Learning to Play with Intrinsically-Motivated Self-Aware Agents (https://arxiv.org/abs/1802.07442). It is a paper on a form of reinforcement learning without extrinsic rewards. Think of a robot wandering around in the world without being told what to do but instead figuring out what to do by itself using a model of its own abilities. That's why they call it self-aware. Pretty cool :)
Besides that, there are no rules, have fun.
/r/MachineLearning
https://redd.it/8aluhs
reddit
[D] Machine Learning - WAYR (What Are You Reading) - Week 27
This is a place to share machine learning research papers, journals, and articles that you're reading this week. If it relates to what you're...
What are some fun things to do with Python?
I became fluent in Python a few years ago but never used it for anything besides assigned coursework or job related tasks. I’ve been looking to apply my skills in a way that would inspire me to excel while being enjoyable and have been having a fairly hard time with it.
So what are the most fun things you’ve used Python for that can be turned into a long term hobby?
/r/Python
https://redd.it/8axg0p
I became fluent in Python a few years ago but never used it for anything besides assigned coursework or job related tasks. I’ve been looking to apply my skills in a way that would inspire me to excel while being enjoyable and have been having a fairly hard time with it.
So what are the most fun things you’ve used Python for that can be turned into a long term hobby?
/r/Python
https://redd.it/8axg0p
reddit
What are some fun things to do with Python? • r/Python
I became fluent in Python a few years ago but never used it for anything besides assigned coursework or job related tasks. I’ve been looking to...
Minesweeper clone in Python, using PyQt
https://martinfitzpatrick.name/article/minesweeper-python-desktop-pyqt/
/r/Python
https://redd.it/8aycnm
https://martinfitzpatrick.name/article/minesweeper-python-desktop-pyqt/
/r/Python
https://redd.it/8aycnm
Martin Fitzpatrick
Moonsweeper | Minesweeper clone in Python, using PyQt
Explore the mysterious moon of Q'tee without getting too close to the alien natives! Moonsweeper is a single-player puzzle video game. The objective of the game is to explore the area around your landed space rocket, without coming too close to the deadly…
Never put DEBUG = True in any django server that is accessible from outside your LAN
While this is quiet obvious and must have already read it in django docs, many people (me included) still do it sometimes.
**Why?**
Mainly because ~~most recommended django configurations,~~ Django doesn't serve static/media files if `Debug = False`. So you might be tempted to temporarily set `Debug = True` while your client is reviewing the website and making the final changes before deployment.
**Why `Debug = True` is Evil?**
When any exception happen, django expose all your settings, environment variables to the world.
Remember that `SECRET_KEY` settings that django tells you never reveal? It's there for anyone across the globe to view freely.
Database password? Yep, it's there also.
Email credentials? API for external services? All there.
I know some of you would call me stupid for setting `Debug = True` on a test site that is accessible online and I would agree.
I'm writing this so that no one else would be doing that stupid mistake
/r/django
https://redd.it/8ax6cb
While this is quiet obvious and must have already read it in django docs, many people (me included) still do it sometimes.
**Why?**
Mainly because ~~most recommended django configurations,~~ Django doesn't serve static/media files if `Debug = False`. So you might be tempted to temporarily set `Debug = True` while your client is reviewing the website and making the final changes before deployment.
**Why `Debug = True` is Evil?**
When any exception happen, django expose all your settings, environment variables to the world.
Remember that `SECRET_KEY` settings that django tells you never reveal? It's there for anyone across the globe to view freely.
Database password? Yep, it's there also.
Email credentials? API for external services? All there.
I know some of you would call me stupid for setting `Debug = True` on a test site that is accessible online and I would agree.
I'm writing this so that no one else would be doing that stupid mistake
/r/django
https://redd.it/8ax6cb
reddit
Never put DEBUG = True in any django server that is... • r/django
While this is quiet obvious and must have already read it in django docs, many people (me included) still do it sometimes. **Why?** Mainly...
My first automated web scraping for Lego sets.
Using Python and selenium, I made a crude script which web scraps and extracts the Title, item number, Numbers of Pieces and Product Details for different Lego sets.
[Code](https://github.com/WillPhillipsCVdemo/LegoSets_scan/blob/master/Lego_Scan_loop.py)
/r/Python
https://redd.it/8axbvj
Using Python and selenium, I made a crude script which web scraps and extracts the Title, item number, Numbers of Pieces and Product Details for different Lego sets.
[Code](https://github.com/WillPhillipsCVdemo/LegoSets_scan/blob/master/Lego_Scan_loop.py)
/r/Python
https://redd.it/8axbvj
GitHub
WillPhillipsCVdemo/LegoSets_scan
LegoSets_scan - Using Python and selenium, the code automatically scans and retrieves product details for several lego sets
Bookrest - The easiest way to add DRF powered Rest API to an arbitrary DB
https://github.com/agiliq/bookrest
/r/django
https://redd.it/8b0spg
https://github.com/agiliq/bookrest
/r/django
https://redd.it/8b0spg
GitHub
agiliq/bookrest
Bookrest - The easiest way to add rest API to an arbitrary DB - agiliq/bookrest
A simple Python PDF report generator using Pug, SemanticUI, and Weasyprint.
https://github.com/Edinburgh-Genome-Foundry/pdf_reports
/r/Python
https://redd.it/8azc17
https://github.com/Edinburgh-Genome-Foundry/pdf_reports
/r/Python
https://redd.it/8azc17
GitHub
GitHub - Edinburgh-Genome-Foundry/pdf_reports: :closed_book: Python library and CSS theme to generate PDF reports from HTML/Pug
:closed_book: Python library and CSS theme to generate PDF reports from HTML/Pug - Edinburgh-Genome-Foundry/pdf_reports
store app config in sqlite
I have an app that will be polling info from an api.
I want to be able to store the credentials and other config components in sqlite.
Is there already a framework for this ?
Thanks
/r/flask
https://redd.it/8b0fgc
I have an app that will be polling info from an api.
I want to be able to store the credentials and other config components in sqlite.
Is there already a framework for this ?
Thanks
/r/flask
https://redd.it/8b0fgc
reddit
store app config in sqlite • r/flask
I have an app that will be polling info from an api. I want to be able to store the credentials and other config components in sqlite. Is...
[P] Lessons learned reproducing a deep reinforcement learning paper
http://amid.fish/reproducing-deep-rl
/r/MachineLearning
https://redd.it/8ay4u6
http://amid.fish/reproducing-deep-rl
/r/MachineLearning
https://redd.it/8ay4u6
reddit
[P] Lessons learned reproducing a deep... • r/MachineLearning
168 points and 7 comments so far on reddit