How to deploy Gunicorn behind Nginx in a shared instance
https://medium.com/@RafaelBattesti/how-to-deploy-gunicorn-behind-nginx-in-a-shared-instance-f336d2ba4519
/r/Python
https://redd.it/aox99q
https://medium.com/@RafaelBattesti/how-to-deploy-gunicorn-behind-nginx-in-a-shared-instance-f336d2ba4519
/r/Python
https://redd.it/aox99q
ITNEXT
How to deploy Gunicorn behind Nginx in a shared instance
Use a cloud instance to deploy 2 environments for Flask API.
[D] The Limitations of Deep Learning for Vision and How We Might Fix Them
Newest article from the Gradient discussion what deep learning can and can't do. [https://thegradient.pub/the-limitations-of-visual-deep-learning-and-how-we-might-fix-them/](https://thegradient.pub/the-limitations-of-visual-deep-learning-and-how-we-might-fix-them/)
/r/MachineLearning
https://redd.it/aova4j
Newest article from the Gradient discussion what deep learning can and can't do. [https://thegradient.pub/the-limitations-of-visual-deep-learning-and-how-we-might-fix-them/](https://thegradient.pub/the-limitations-of-visual-deep-learning-and-how-we-might-fix-them/)
/r/MachineLearning
https://redd.it/aova4j
The Gradient
Limitations of Deep Learning for Vision, and How We Might Fix Them
History of Deep Learning We are witnessing the third rise of deep learning. The first two waves — 1950s–1960s and 1980s–1990s — generated considerable excitement but slowly ran out of steam, since these neural networks neither achieved their promised performance…
I recreated Flappy Bird in Python with Pygame!
The link to the GitHub page is [here](https://github.com/carterjean/Flappy-Bird-in-Pygame/).
I thought that to learn Pygame I would start with a physics heavy, yet retro game.
On the page, you can download the images and file and play it for yourself!
One problem that I found is that I couldn’t find a way to automatically restart the game :/
If you have any problems with the game, just leave a comment and I’ll try and fix it!
Edit : not sure why there’s a massive picture of Garfield there but okay
Edit 2 : oh that’s my profile pic never mind
/r/Python
https://redd.it/ap0dwe
The link to the GitHub page is [here](https://github.com/carterjean/Flappy-Bird-in-Pygame/).
I thought that to learn Pygame I would start with a physics heavy, yet retro game.
On the page, you can download the images and file and play it for yourself!
One problem that I found is that I couldn’t find a way to automatically restart the game :/
If you have any problems with the game, just leave a comment and I’ll try and fix it!
Edit : not sure why there’s a massive picture of Garfield there but okay
Edit 2 : oh that’s my profile pic never mind
/r/Python
https://redd.it/ap0dwe
GitHub
GitHub - carterjean/Flappy-Bird-in-Pygame: its in the title
its in the title. Contribute to carterjean/Flappy-Bird-in-Pygame development by creating an account on GitHub.
Accessing child relations when overriding save()
I am trying to wrap up my first app using Django (specifically Django Rest Framework which may change the save behavior), but have run into an issue that I haven't been able to solve for about 10 hours now.
I am trying to override the save() method of a model to modify a field on a bunch of child objects when it is created; however, I can't figure out any way get the objects or ids for the children.
My code looks something like:
~~~
class Parent(models.Model):
"""When I create this, I want the children to be modified."""
def save(self, *args, **kwargs):
if not self.pk:
self._begin(*args, **kwargs)
else:
super(Parent, self).save(*args, **kwargs)
def _begin(self, *args, **kwargs):
super(Parent, self).save(*args, **kwargs)
print(self.child_set.all()) # --> This gives: "<QuerySet []>"
for i in self.child_set.all():
/r/django
https://redd.it/ap1t7f
I am trying to wrap up my first app using Django (specifically Django Rest Framework which may change the save behavior), but have run into an issue that I haven't been able to solve for about 10 hours now.
I am trying to override the save() method of a model to modify a field on a bunch of child objects when it is created; however, I can't figure out any way get the objects or ids for the children.
My code looks something like:
~~~
class Parent(models.Model):
"""When I create this, I want the children to be modified."""
def save(self, *args, **kwargs):
if not self.pk:
self._begin(*args, **kwargs)
else:
super(Parent, self).save(*args, **kwargs)
def _begin(self, *args, **kwargs):
super(Parent, self).save(*args, **kwargs)
print(self.child_set.all()) # --> This gives: "<QuerySet []>"
for i in self.child_set.all():
/r/django
https://redd.it/ap1t7f
reddit
r/django - Accessing child relations when overriding save()
1 vote and 0 comments so far on Reddit
[D] Adversary, Attractor, Astonishment : Subverting traps in Human vs AI games
Hi,
​
I am an AI PhD student at MIT and I just wrote an (hype neutral) article discussing human vs AI in games in the context of the recent AlphaStar agent that learns to play Starcraft 2.
​
Specifically, I discuss under which circumstances is it hopeless for a human to win, and under which circumstances do we have a good shot. Link here: [https://medium.com/@evanthebouncy/adversary-attractor-astonishment-cea801d761](https://medium.com/@evanthebouncy/adversary-attractor-astonishment-cea801d761)
​
It should be a good read ! !
​
I can answer any questions here as well, I do not work for DeepMind so I can be more frank in my answers, but at the same times these answers will largely be speculative as I do not work directly on the project.
/r/MachineLearning
https://redd.it/aoyhgd
Hi,
​
I am an AI PhD student at MIT and I just wrote an (hype neutral) article discussing human vs AI in games in the context of the recent AlphaStar agent that learns to play Starcraft 2.
​
Specifically, I discuss under which circumstances is it hopeless for a human to win, and under which circumstances do we have a good shot. Link here: [https://medium.com/@evanthebouncy/adversary-attractor-astonishment-cea801d761](https://medium.com/@evanthebouncy/adversary-attractor-astonishment-cea801d761)
​
It should be a good read ! !
​
I can answer any questions here as well, I do not work for DeepMind so I can be more frank in my answers, but at the same times these answers will largely be speculative as I do not work directly on the project.
/r/MachineLearning
https://redd.it/aoyhgd
Medium
Adversary, Attractor, Astonishment
Subverting traps in Human vs AI games
Executing python code in pygame window
Hello everyone! I’m hoping someone can point me in the right direction. I made a text-based game using python. It requires text input for answering questions, navigating etc. The game works fine with no problems. I later realized that I wanted to add some graphics which lead me to pygame. My question is whether I am able to run my game in the pygame window or do I have to start from scratch. I just want my current game to run in the pygame window so that I can also add graphics to it. I’m completely new to all this. Thank you!
/r/Python
https://redd.it/ap256m
Hello everyone! I’m hoping someone can point me in the right direction. I made a text-based game using python. It requires text input for answering questions, navigating etc. The game works fine with no problems. I later realized that I wanted to add some graphics which lead me to pygame. My question is whether I am able to run my game in the pygame window or do I have to start from scratch. I just want my current game to run in the pygame window so that I can also add graphics to it. I’m completely new to all this. Thank you!
/r/Python
https://redd.it/ap256m
reddit
r/Python - Executing python code in pygame window
3 votes and 1 comment so far on Reddit
Django zappa setup with aws postgres rds
i have created a django api deployed on lambda using zappa . Then i created postgres instance on rds after that connected with pgadmin4 and created a database but when i am entering rds username, password and database name which i created with pgadmin4 . its not working also updated the latest one with zappa.
i am confused which database name i should enter the one i created with pgadmin4 or one with the localhost
/r/django
https://redd.it/ap3qva
i have created a django api deployed on lambda using zappa . Then i created postgres instance on rds after that connected with pgadmin4 and created a database but when i am entering rds username, password and database name which i created with pgadmin4 . its not working also updated the latest one with zappa.
i am confused which database name i should enter the one i created with pgadmin4 or one with the localhost
/r/django
https://redd.it/ap3qva
reddit
r/django - Django zappa setup with aws postgres rds
1 vote and 0 comments so far on Reddit
This media is not supported in your browser
VIEW IN TELEGRAM
My implementation of 3 NLP models for text classification in Pytorch and Tensorflow
/r/IPython
https://redd.it/ap52lc
/r/IPython
https://redd.it/ap52lc
What to choose Django CMS or Wagtail?
Hi. I have read many tutorials about this two CMS and have tried demos, but couldn't finally choose what is better for my project.
The main purpose is simplicity for developer add/edit pages and project scalability - many fields of different types and dependencies between them. (Field changes it's value or range depends of another field choosing)
Who has practice working with this two frameworks?
/r/django
https://redd.it/ap61wv
Hi. I have read many tutorials about this two CMS and have tried demos, but couldn't finally choose what is better for my project.
The main purpose is simplicity for developer add/edit pages and project scalability - many fields of different types and dependencies between them. (Field changes it's value or range depends of another field choosing)
Who has practice working with this two frameworks?
/r/django
https://redd.it/ap61wv
reddit
r/django - What to choose Django CMS or Wagtail?
10 votes and 7 comments so far on Reddit
I am having trouble with extensions in JupyerLab: Code folding
Hi!
I have been happy to see that code folding seems to be implemented in JupyerLab:
[commit on github](https://github.com/jupyterlab/jupyterlab/pull/5761)
I am kind of new to github. It says, that this pull request is merged to the master branch. But how do I get this version? Do I simply update jupyter lab?
And how do I activate the extension? I installed nodejs according to the [extensions documentation](https://jupyterlab.readthedocs.io/en/stable/user/extensions.html).
I have been searching the web a lot about how to do this, but have not been able to do that.
I am running jupyter lab 0.35.4
/r/IPython
https://redd.it/ap6g38
Hi!
I have been happy to see that code folding seems to be implemented in JupyerLab:
[commit on github](https://github.com/jupyterlab/jupyterlab/pull/5761)
I am kind of new to github. It says, that this pull request is merged to the master branch. But how do I get this version? Do I simply update jupyter lab?
And how do I activate the extension? I installed nodejs according to the [extensions documentation](https://jupyterlab.readthedocs.io/en/stable/user/extensions.html).
I have been searching the web a lot about how to do this, but have not been able to do that.
I am running jupyter lab 0.35.4
/r/IPython
https://redd.it/ap6g38
GitHub
Code folding by fcollonval · Pull Request #5761 · jupyterlab/jupyterlab
Fixes #4083
Screenshots
Screenshots
How difficult is it and how long does it take to become a remote Django developer?
I’ve been studying Django on and off for the past year or so. I’m hoping to become a django fullstack developer as soon as possible. For those who were able to become a remote developer, can you shed some light on your experience and the route you took? Is it difficult to become a remote developer and how long did it take you to become that?
Also, what stack are you on? Is it easier to become a django backend and do JavaScript angular/react etc front end instead of doing just Django for both?
I’d like to travel and work at the same time so any tips or advices would be appreciated.
/r/django
https://redd.it/apae3w
I’ve been studying Django on and off for the past year or so. I’m hoping to become a django fullstack developer as soon as possible. For those who were able to become a remote developer, can you shed some light on your experience and the route you took? Is it difficult to become a remote developer and how long did it take you to become that?
Also, what stack are you on? Is it easier to become a django backend and do JavaScript angular/react etc front end instead of doing just Django for both?
I’d like to travel and work at the same time so any tips or advices would be appreciated.
/r/django
https://redd.it/apae3w
reddit
r/django - How difficult is it and how long does it take to become a remote Django developer?
9 votes and 4 comments so far on Reddit
[D] Are we expected to solve hard programming challenges to work in ML/DL industry?
Lots of tech companies hire people based on programming challenges. People [quit their job](https://medium.freecodecamp.org/why-i-studied-full-time-for-8-months-for-a-google-interview-cc662ce9bb13) to dedicate months preparing for an interview. [Cracking the Code Interview](https://www.amazon.com/Cracking-Coding-Interview-Programming-Questions/dp/0984782850) is the #1 best-selling book in programming and software development. Even if a person has a strong experience in developing real-world software, they [may fail an interview](https://twitter.com/mxcl/status/608682016205344768) because of a CS/coding question.
I understand that there is a correlation between people that can solve these challenges and people that can do real-world software engineering, but I believe that this correlation is not as strong as companies believe. People may just overfit to these challenges and get a job without getting their hands dirty in real software development.
Enough of my rant.
I work as a ML/CV software engineer in the same company for five years. I did not have a single interview in the meantime. I'm considering applying to another job and I'm worried about the coding challenge interviews. I can produce well-written and maintainable code. I can understand, discuss, and implement recent advances in computer vision. But give me a simple data-structure interview challenge and I will struggle to solve it without looking at some references.
Am I expect to solve hard programming challenges during interviews for
/r/MachineLearning
https://redd.it/ap4knu
Lots of tech companies hire people based on programming challenges. People [quit their job](https://medium.freecodecamp.org/why-i-studied-full-time-for-8-months-for-a-google-interview-cc662ce9bb13) to dedicate months preparing for an interview. [Cracking the Code Interview](https://www.amazon.com/Cracking-Coding-Interview-Programming-Questions/dp/0984782850) is the #1 best-selling book in programming and software development. Even if a person has a strong experience in developing real-world software, they [may fail an interview](https://twitter.com/mxcl/status/608682016205344768) because of a CS/coding question.
I understand that there is a correlation between people that can solve these challenges and people that can do real-world software engineering, but I believe that this correlation is not as strong as companies believe. People may just overfit to these challenges and get a job without getting their hands dirty in real software development.
Enough of my rant.
I work as a ML/CV software engineer in the same company for five years. I did not have a single interview in the meantime. I'm considering applying to another job and I'm worried about the coding challenge interviews. I can produce well-written and maintainable code. I can understand, discuss, and implement recent advances in computer vision. But give me a simple data-structure interview challenge and I will struggle to solve it without looking at some references.
Am I expect to solve hard programming challenges during interviews for
/r/MachineLearning
https://redd.it/ap4knu
freeCodeCamp.org
Why I studied full-time for 8 months for a Google interview
By Googley as Heck It’s true. I’ve spent thousands of hours reading books, writing code, and watching computer science lectures, all to prepare for the Google software engineer interview. If you’d like to prepare for a Google interview, here’s my stu...
[P] Introducing Silas: a fast, accurate and dependable binary classifier
Hi fellow data enthusiasts,
​
For a few months now, we've been working on a new binary classifier based on ensemble decision trees with a strong emphasis on dependability. Today, we are proud to present to you our new classification tool -- Silas, now available on Windows, Mac and Linux for free!
​
Fast and accurate, Silas provides you with the ability to formally verify properties of its predictive models as well as the ability to enforce them during learning.
​
We invite all data enthusiasts with structured datasets to try it out! We greatly appreciate all your feedback!
​
[Download](https://www.depintel.com/silas_download.html)
[Documentation](https://www.depintel.com/documentation/_build/html/index.html)
[Get started](https://www.depintel.com/documentation/_build/html/tutorials/basic.html)
/r/MachineLearning
https://redd.it/apau7n
Hi fellow data enthusiasts,
​
For a few months now, we've been working on a new binary classifier based on ensemble decision trees with a strong emphasis on dependability. Today, we are proud to present to you our new classification tool -- Silas, now available on Windows, Mac and Linux for free!
​
Fast and accurate, Silas provides you with the ability to formally verify properties of its predictive models as well as the ability to enforce them during learning.
​
We invite all data enthusiasts with structured datasets to try it out! We greatly appreciate all your feedback!
​
[Download](https://www.depintel.com/silas_download.html)
[Documentation](https://www.depintel.com/documentation/_build/html/index.html)
[Get started](https://www.depintel.com/documentation/_build/html/tutorials/basic.html)
/r/MachineLearning
https://redd.it/apau7n
Depintel
Depintel - Dependable Intelligence
Official website of Depintel (Dependable Intelligence Pty Ltd)
How can I remove the 'static/' from URLs of static files?
I have my images and icon files in a folder called `static`. This is for internal organization.
Publicly, the URLs for these files are like this:
example.com/static/icon/favicon.ico
But I want them to be like this:
example.com/icon/favicon.ico
How can I achieve this?
/r/django
https://redd.it/apd802
I have my images and icon files in a folder called `static`. This is for internal organization.
Publicly, the URLs for these files are like this:
example.com/static/icon/favicon.ico
But I want them to be like this:
example.com/icon/favicon.ico
How can I achieve this?
/r/django
https://redd.it/apd802
7 years of Programming, starts from this book
Hello Redditors,
7 years ago, I was a college student. My college doesn't teach me advance programming, but only basic of all programming language ( I learn from QBASIC, Visual Basic, Java, Cobol, C, C++, and more).
I love C/C++ back then, but I found some barrier while learning it. The barrier is: Different compiler and preprocessor while using different OS.
So I decided to learn one language that running in all platform. The first choice is Perl. I love because I can simplify and "code golfing" while code. But Perl is not my answer, because after 1 week writing the code, I forgot why I wrote in that way. I create many vapor code using Perl.
So, I need other solution for it. And my choice is Python.
​
My college doesn't teach me Python, so I decided to **pirate** [this book](https://www.amazon.com/Learning-Python-5th-Mark-Lutz/dp/1449355730). For 1 month and 2 weeks, I learn that e-book.
I also create some script for my private hobby (scrapping from online manga, automation file clean up), and much more.
After about 6 month practice with Python, I try to apply programming job using the knowledge I know.
For about 2 years works after that, I finish my college also pay all my college
/r/Python
https://redd.it/apehzq
Hello Redditors,
7 years ago, I was a college student. My college doesn't teach me advance programming, but only basic of all programming language ( I learn from QBASIC, Visual Basic, Java, Cobol, C, C++, and more).
I love C/C++ back then, but I found some barrier while learning it. The barrier is: Different compiler and preprocessor while using different OS.
So I decided to learn one language that running in all platform. The first choice is Perl. I love because I can simplify and "code golfing" while code. But Perl is not my answer, because after 1 week writing the code, I forgot why I wrote in that way. I create many vapor code using Perl.
So, I need other solution for it. And my choice is Python.
​
My college doesn't teach me Python, so I decided to **pirate** [this book](https://www.amazon.com/Learning-Python-5th-Mark-Lutz/dp/1449355730). For 1 month and 2 weeks, I learn that e-book.
I also create some script for my private hobby (scrapping from online manga, automation file clean up), and much more.
After about 6 month practice with Python, I try to apply programming job using the knowledge I know.
For about 2 years works after that, I finish my college also pay all my college
/r/Python
https://redd.it/apehzq
The state of Python Packaging [aka pip 19 and PEP-517/518]
https://www.bernat.tech/pep-517-and-python-packaging/
/r/Python
https://redd.it/apes4n
https://www.bernat.tech/pep-517-and-python-packaging/
/r/Python
https://redd.it/apes4n
Tech articles about stuff I encounter
The state of Python Packaging - package types
Describes where Python packaging is today, and where the Python Packaging Authority hopes will move next. In this post learn about package types.
[D] Trump will launch American AI Initiative with an executive order
Regardless of your politics, this news may be relevant to American labs and research institutions working on machine learning.
MIT Tech Review article: [Trump has a plan to keep America first in artificial intelligence](https://www.technologyreview.com/s/612926/trump-will-sign-an-executive-order-to-put-america-first-in-artificial-intelligence/)
WIRED: [Trump's plan to keep America first in AI](https://www.wired.com/story/trumps-plan-keep-america-first-ai/)
/r/MachineLearning
https://redd.it/apdpar
Regardless of your politics, this news may be relevant to American labs and research institutions working on machine learning.
MIT Tech Review article: [Trump has a plan to keep America first in artificial intelligence](https://www.technologyreview.com/s/612926/trump-will-sign-an-executive-order-to-put-america-first-in-artificial-intelligence/)
WIRED: [Trump's plan to keep America first in AI](https://www.wired.com/story/trumps-plan-keep-america-first-ai/)
/r/MachineLearning
https://redd.it/apdpar
MIT Technology Review
Trump has a plan to keep America first in artificial intelligence
Artificial intelligence may have been invented in the United States, but other nations, including China, Canada, and France, have made bigger moves to back and benefit from the technology in recent years. President Donald Trump will seek to change that Monday…