Django bugfix releases: 2.0.1 and 1.11.9
https://www.djangoproject.com/weblog/2018/jan/01/bugfix-releases/
/r/django
https://redd.it/7nj5cw
https://www.djangoproject.com/weblog/2018/jan/01/bugfix-releases/
/r/django
https://redd.it/7nj5cw
reddit
Django bugfix releases: 2.0.1 and 1.11.9 • r/django
10 points and 0 comments so far on reddit
Update, create and delte without interacting with your webapp forms
Is it possible for someone to interact and fuck up your database without interacting with your website? I know that even some really secure databases get hacked. . But is it really easy to hack a simple django application with database integration?
Thanks!
/r/django
https://redd.it/7nkhgs
Is it possible for someone to interact and fuck up your database without interacting with your website? I know that even some really secure databases get hacked. . But is it really easy to hack a simple django application with database integration?
Thanks!
/r/django
https://redd.it/7nkhgs
reddit
Update, create and delte without interacting with your... • r/django
Is it possible for someone to interact and fuck up your database without interacting with your website? I know that even some really secure...
bs4 : output html content into a txt file
Self-learning python. The following code returns UnicodeEncodeError. How should I fix it? Thanks.
import bs4, requests
#----------------------------------------------------------------------------
URL = "https://learnxinyminutes.com/docs/r"
#----------------------------------------------------------------------------
soup = bs4.BeautifulSoup(requests.get(URL).text, "lxml")
with open( r"C:\Users\User\Desktop\Test.txt" ,"w") as oFile:
oFile.write(str(soup.html))
oFile.close()
UnicodeEncodeError: 'cp950' codec can't encode character '\xf8' in position 20242: illegal multibyte sequence
/r/Python
https://redd.it/7nm7gs
Self-learning python. The following code returns UnicodeEncodeError. How should I fix it? Thanks.
import bs4, requests
#----------------------------------------------------------------------------
URL = "https://learnxinyminutes.com/docs/r"
#----------------------------------------------------------------------------
soup = bs4.BeautifulSoup(requests.get(URL).text, "lxml")
with open( r"C:\Users\User\Desktop\Test.txt" ,"w") as oFile:
oFile.write(str(soup.html))
oFile.close()
UnicodeEncodeError: 'cp950' codec can't encode character '\xf8' in position 20242: illegal multibyte sequence
/r/Python
https://redd.it/7nm7gs
[D] Machine Learning - WAYR (What Are You Reading) - Week 39
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|
|----|-----|-----|-----|
|[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 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 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 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/5ob7dx/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_le
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|
|----|-----|-----|-----|
|[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 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 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 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/5ob7dx/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_le
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
arning_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 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/)||
Most upvoted papers two weeks ago:
/u/lmcinnes: [Metric Realization of Fuzzy Simplicial Sets](http://math.mit.edu/~dspivak/files/metric_realization.pdf)
/u/no_bear_so_low: https://arxiv.org/abs/1604.00289v2
/u/red-black-trees: https://arxiv.org/pdf/1609.06838.pdf
Besides that, there are no rules, have fun.
/r/MachineLearning
https://redd.it/7nayri
|[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 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/)||
Most upvoted papers two weeks ago:
/u/lmcinnes: [Metric Realization of Fuzzy Simplicial Sets](http://math.mit.edu/~dspivak/files/metric_realization.pdf)
/u/no_bear_so_low: https://arxiv.org/abs/1604.00289v2
/u/red-black-trees: https://arxiv.org/pdf/1609.06838.pdf
Besides that, there are no rules, have fun.
/r/MachineLearning
https://redd.it/7nayri
reddit
[Discussion] Machine Learning - WAYR (What Are You Reading) - Week 18
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's everyone working on this week?
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your current project or your pet project; whatever you want to share.
/r/Python
https://redd.it/7nmm6m
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your current project or your pet project; whatever you want to share.
/r/Python
https://redd.it/7nmm6m
reddit
What's everyone working on this week? • r/Python
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your...
Humble bundle has 15 books on python for 12 bucks right now... Is the potential opportunity I'm looking for?
I'm a project manager and administrative head for about 60 people right now looking for a change. I manage technical people and understand what they do, need, and how to get it but I know I'm coming to a head in where I'm at and if I want to be marketable more than just getting by on a willingness to lead and 8 years experience doing it. I need to be technical as well. I've had Security plus cert and I've taught CCNA mod 1 so I understand computers and basic network design decently enough but I don't feel like if I were to get dumped into the workforce tomorrow I'm viable. My tech education was a mile wide an inch deep so that I could manage techs whose education was an inch wide and a mile deep. Is this humble bundle the potential opportunity a godsend?
/r/Python
https://redd.it/7nmjf6
I'm a project manager and administrative head for about 60 people right now looking for a change. I manage technical people and understand what they do, need, and how to get it but I know I'm coming to a head in where I'm at and if I want to be marketable more than just getting by on a willingness to lead and 8 years experience doing it. I need to be technical as well. I've had Security plus cert and I've taught CCNA mod 1 so I understand computers and basic network design decently enough but I don't feel like if I were to get dumped into the workforce tomorrow I'm viable. My tech education was a mile wide an inch deep so that I could manage techs whose education was an inch wide and a mile deep. Is this humble bundle the potential opportunity a godsend?
/r/Python
https://redd.it/7nmjf6
reddit
Humble bundle has 15 books on python for 12 bucks right... • r/Python
I'm a project manager and administrative head for about 60 people right now looking for a change. I manage technical people and understand what...
Click Tips: Writing Advanced Python Command-Line Apps
https://dbader.org/blog/mastering-click-advanced-python-command-line-apps#info
/r/Python
https://redd.it/7nmwte
https://dbader.org/blog/mastering-click-advanced-python-command-line-apps#info
/r/Python
https://redd.it/7nmwte
dbader.org
Mastering Click: Writing Advanced Python Command-Line Apps – dbader.org
How to improve your existing Click Python CLIs with advanced features like sub-commands, user input, parameter types, contexts, and more.
When should we avoid classes?
I like to read about cool python project blogs and articles. What I have noticed is that many python programmers uses classes even for small projects. Do we need to use classes for every python projects? Do python veterans recommend writing codes only with classes or we can avoid it?
/r/Python
https://redd.it/7nn912
I like to read about cool python project blogs and articles. What I have noticed is that many python programmers uses classes even for small projects. Do we need to use classes for every python projects? Do python veterans recommend writing codes only with classes or we can avoid it?
/r/Python
https://redd.it/7nn912
reddit
When should we avoid classes? • r/Python
I like to read about cool python project blogs and articles. What I have noticed is that many python programmers uses classes even for small...
Payment system for monthly subscriptions (SAAS application)
I'm currently building an SPA and wondering if anyone had some tips on the payment system.
* I plan on having monthly and annual plans, where annual plans are the same as monthly but reduced price.
* Using Stripe for payments
* It has a free tier and 3 paid tiers
* Ideally would be easy to change price plans and have that reflected on the billing page for the customer.
Would be nice to hear what packages you used, example models and any do's and don'ts for long-term success.
/r/django
https://redd.it/7nm7hc
I'm currently building an SPA and wondering if anyone had some tips on the payment system.
* I plan on having monthly and annual plans, where annual plans are the same as monthly but reduced price.
* Using Stripe for payments
* It has a free tier and 3 paid tiers
* Ideally would be easy to change price plans and have that reflected on the billing page for the customer.
Would be nice to hear what packages you used, example models and any do's and don'ts for long-term success.
/r/django
https://redd.it/7nm7hc
reddit
Payment system for monthly subscriptions (SAAS application) • r/django
I'm currently building an SPA and wondering if anyone had some tips on the payment system. * I plan on having monthly and annual plans, where...
Send javascript variables value to flask?
So I'm doing a school project and I have made a web game. I now need to send the score from that game to the backend, so it can be stored in my database. How do I do this?
I've been looking online but they all use forms/input boxes, whereas I need to be able to call a function automatically (not pressing a button) and have that function send it to flask.
Can anyone link me a decent tutorial that does it in the way I need?
cheers.
/r/flask
https://redd.it/7nq8gx
So I'm doing a school project and I have made a web game. I now need to send the score from that game to the backend, so it can be stored in my database. How do I do this?
I've been looking online but they all use forms/input boxes, whereas I need to be able to call a function automatically (not pressing a button) and have that function send it to flask.
Can anyone link me a decent tutorial that does it in the way I need?
cheers.
/r/flask
https://redd.it/7nq8gx
reddit
Send javascript variables value to flask? • r/flask
So I'm doing a school project and I have made a web game. I now need to send the score from that game to the backend, so it can be stored in my...
Write your own miniature Redis with Python
http://charlesleifer.com/blog/building-a-simple-redis-server-with-python/
/r/Python
https://redd.it/7np87h
http://charlesleifer.com/blog/building-a-simple-redis-server-with-python/
/r/Python
https://redd.it/7np87h
Deep Learning & Art: Neural Style Transfer – An Implementation with Tensorflow in Python
https://sandipanweb.wordpress.com/2018/01/02/deep-learning-art-neural-style-transfer-an-implementation-with-tensorflow-in-python/
/r/Python
https://redd.it/7npsho
https://sandipanweb.wordpress.com/2018/01/02/deep-learning-art-neural-style-transfer-an-implementation-with-tensorflow-in-python/
/r/Python
https://redd.it/7npsho
sandipanweb
Deep Learning & Art: Neural Style Transfer – An Implementation with Tensorflow (using Transfer Learning with a Pre-trained VGG…
This problem appeared as an assignment in the online coursera course Convolution Neural Networks by Prof Andrew Ng, (deeplearing.ai). The description of the problem is taken straightway fro…
Google's official python tutorial violates PEP8, recommends python 2.4-2.6, and my university just assigned it to us.
https://developers.google.com/edu/python/set-up
/r/Python
https://redd.it/7nr322
https://developers.google.com/edu/python/set-up
/r/Python
https://redd.it/7nr322
reddit
Google's official python tutorial violates PEP8,... • r/Python
22 points and 14 comments so far on reddit
Serial Programming [Help]
I tried to send data to a fingerprint sensor but the the write() method just returns different integers if I use different argument hex values.
>>> import serial
>>> ser = serial.Serial('/dev/ttyAMA0', baudrate=9600, timeout=0.5)
>>> ser.write('\x01')
1
The fingerprint doesn't seem to initialize. I tried checking it by cranking up the LED to see if the sensor is initialized, but the LED doesn't seem to work either.
/r/Python
https://redd.it/7ns474
I tried to send data to a fingerprint sensor but the the write() method just returns different integers if I use different argument hex values.
>>> import serial
>>> ser = serial.Serial('/dev/ttyAMA0', baudrate=9600, timeout=0.5)
>>> ser.write('\x01')
1
The fingerprint doesn't seem to initialize. I tried checking it by cranking up the LED to see if the sensor is initialized, but the LED doesn't seem to work either.
/r/Python
https://redd.it/7ns474
reddit
Serial Programming [Help] • r/Python
I tried to send data to a fingerprint sensor but the the write() method just returns different integers if I use different argument hex...
A lightweight and flexible desktop remote control server in Python3
https://github.com/matdombrock/receiver_zero
/r/Python
https://redd.it/7nrxif
https://github.com/matdombrock/receiver_zero
/r/Python
https://redd.it/7nrxif
GitHub
matdombrock/receiver_zero
receiver_zero - Control your computer remotely using python3.
Tkinter or pygame?
Hi everyone,
Currently creating my beginners game design class for 14-15 year old students. The school's IT team is struggling to install pygame and is contemplating giving me a set of *nix laptops as it is much easier to install pygame. However as I will be new at this school I don't want to get the IT team annoyed at me, I am thinking that maybe I should use tkinter instead. I only need to give my students a taste of python as we will be using game maker for the majority of the time ( as the next unit we will be exploring python in depth and will be using cloud 9 edu so I have full control over the environment they are using). My husband who is a professional python programmer hates tkinter (cites a bad experience when he was learning python as his reason) and feels that I should persist and ask for pygame. I haven't had an issue with tkinter but now I am second guessing my choice. Is using tkinter a suitable choice for creating a simple game?
/r/Python
https://redd.it/7nta74
Hi everyone,
Currently creating my beginners game design class for 14-15 year old students. The school's IT team is struggling to install pygame and is contemplating giving me a set of *nix laptops as it is much easier to install pygame. However as I will be new at this school I don't want to get the IT team annoyed at me, I am thinking that maybe I should use tkinter instead. I only need to give my students a taste of python as we will be using game maker for the majority of the time ( as the next unit we will be exploring python in depth and will be using cloud 9 edu so I have full control over the environment they are using). My husband who is a professional python programmer hates tkinter (cites a bad experience when he was learning python as his reason) and feels that I should persist and ask for pygame. I haven't had an issue with tkinter but now I am second guessing my choice. Is using tkinter a suitable choice for creating a simple game?
/r/Python
https://redd.it/7nta74
reddit
Tkinter or pygame? • r/Python
Hi everyone, Currently creating my beginners game design class for 14-15 year old students. The school's IT team is struggling to install pygame...