An open source Python project CI pipeline
https://brntn.me/blog/open-source-python-ci/
/r/Python
https://redd.it/10e38v0
https://brntn.me/blog/open-source-python-ci/
/r/Python
https://redd.it/10e38v0
brntn.me
Brenton Cleeland - An open source Python project CI pipeline
Personal site of Brenton Cleeland
Best/recommended road map for python beginner?? already met with the basics and now don't know what to start and where to start, just started python for job opportunities and now feeling energetic learning it but don't know what to do next
/r/Python
https://redd.it/10e39zq
/r/Python
https://redd.it/10e39zq
reddit
Best/recommended road map for python beginner?? already met with...
Posted in r/Python by u/Icy_Software_5919 • 9 points and 18 comments
GPTalk : free and open-source Python app to interact with GPT using your voice, in any language
https://github.com/0ut0flin3/GPTalk
/r/Python
https://redd.it/10e78u2
https://github.com/0ut0flin3/GPTalk
/r/Python
https://redd.it/10e78u2
GitHub
GitHub - 0ut0flin3/Talk2GPT: GPT-3 client for Windows and Unix with memories management that supports both text and speech in any…
GPT-3 client for Windows and Unix with memories management that supports both text and speech in any language. Includes a free text2image - 0ut0flin3/Talk2GPT
CDF and PMF of binomial function not same with extreme values
Hello,
I wanted to calculate the chance that I inhale at least one molecule of Ceasars words (see here). I thought to calculate the chance of inhaling zero molecules and distract this value from 1 [1-(binom(0,n,p)\]
I used this code
My output is
When I do normal values my output is the same
How is this possible?
/r/pystats
https://redd.it/10e8bvx
Hello,
I wanted to calculate the chance that I inhale at least one molecule of Ceasars words (see here). I thought to calculate the chance of inhaling zero molecules and distract this value from 1 [1-(binom(0,n,p)\]
I used this code
from scipy.stats import binom def calculate(n, p, r): print (f"{n=} {p=} {r=}") print (f"PMF The chance that you inhale {r} molecules {binom.pmf(r, n, p)}") print (f"CDF The chance that you inhale {r} molecules {binom.cdf(r, n, p)}") n = 25.0*10**21 p = 1.0*10**-21 r = 0 calculate(n, p, r) My output is
PMF The chance that you inhale 0 molecules 1.0CDF The chance that you inhale 0 molecules 1.388794386496407e-11When I do normal values my output is the same
n=10 p=0.1 r=0PMF The chance that you inhale 0 molecules 0.3486784401000001CDF The chance that you inhale 0 molecules 0.34867844009999993How is this possible?
/r/pystats
https://redd.it/10e8bvx
the Guardian
Caesar’s Last Breath: The Epic Story of the Air Around Us – review
Sam Kean’s history of Earth’s atmospheric gases is provocative and entertaining
A flask app I’m working on. Feedback appreciated.
https://exoticonix.ml
/r/flask
https://redd.it/10edco9
https://exoticonix.ml
/r/flask
https://redd.it/10edco9
Renaming folders is usually a bad idea right?
I tried renaming folders to add an "s" in VScode and it totally broke my project.
As a newbie I should avoid doing that, correct?
/r/djangolearning
https://redd.it/10dy6k8
I tried renaming folders to add an "s" in VScode and it totally broke my project.
As a newbie I should avoid doing that, correct?
/r/djangolearning
https://redd.it/10dy6k8
reddit
Renaming folders is usually a bad idea right?
I tried renaming folders to add an "s" in VScode and it totally broke my project. As a newbie I should avoid doing that, correct?
E commerce with django.
Is django a good platform for making ecommerce. If yes do we have any templates which are good. Also what can I use as a payment gateway.
/r/djangolearning
https://redd.it/10dw5bs
Is django a good platform for making ecommerce. If yes do we have any templates which are good. Also what can I use as a payment gateway.
/r/djangolearning
https://redd.it/10dw5bs
reddit
E commerce with django.
Is django a good platform for making ecommerce. If yes do we have any templates which are good. Also what can I use as a payment gateway.
Website not responding after AWS instanse was full and tried to update SSL certificate
Hi,
I have a website that is running in AWS EC2 Ubuntu instance. The site is built using Django and deployed with Nginx and Gunicorn. I just recently got my hands on this project and have not done any code for it.
The problem is that the SSL certificate of the site was expired and also the instance was full of logs so I just ran \`journalctl vacuum\` to delete some old logs. At this time the website was still accessible.
Then I generated new SSL cert using LetsEncrypt Certbot (First time doing this so didn't know you can just renew the existing one). After this the website stopped responding. Earlier it was working with ticking the 'accept security risk' from the browser but now nothing.
I have tried restarting the instance, Nginx and Gunicorn which should fix this but it hasn't worked. I also removed the newly generated SSL cert and tried to renew the old one but didn't work.
Any idea why the website is not responding and how can I fix it?
This stuff is new to me so any help is more than welcome. :)
Here are some files and outputs from the terminal that I think might be useful:
`systemctl
/r/djangolearning
https://redd.it/10dp2ru
Hi,
I have a website that is running in AWS EC2 Ubuntu instance. The site is built using Django and deployed with Nginx and Gunicorn. I just recently got my hands on this project and have not done any code for it.
The problem is that the SSL certificate of the site was expired and also the instance was full of logs so I just ran \`journalctl vacuum\` to delete some old logs. At this time the website was still accessible.
Then I generated new SSL cert using LetsEncrypt Certbot (First time doing this so didn't know you can just renew the existing one). After this the website stopped responding. Earlier it was working with ticking the 'accept security risk' from the browser but now nothing.
I have tried restarting the instance, Nginx and Gunicorn which should fix this but it hasn't worked. I also removed the newly generated SSL cert and tried to renew the old one but didn't work.
Any idea why the website is not responding and how can I fix it?
This stuff is new to me so any help is more than welcome. :)
Here are some files and outputs from the terminal that I think might be useful:
`systemctl
/r/djangolearning
https://redd.it/10dp2ru
reddit
Website not responding after AWS instanse was full and tried to...
Hi, I have a website that is running in AWS EC2 Ubuntu instance. The site is built using Django and deployed with Nginx and Gunicorn. I just...
Is MQ needed for sending many texts?
I have an API endpoint via Twiliio to send texts, and a lot will be sent each day, typically in batches all at once. The endpoints will be hit to do this. Is a full message queue needed to do this?
I was thinking just an async request like this https://github.com/spyoungtech/grequests along with Twilio's built in monitoring on success/not success could do without holding up the application?
/r/djangolearning
https://redd.it/10desde
I have an API endpoint via Twiliio to send texts, and a lot will be sent each day, typically in batches all at once. The endpoints will be hit to do this. Is a full message queue needed to do this?
I was thinking just an async request like this https://github.com/spyoungtech/grequests along with Twilio's built in monitoring on success/not success could do without holding up the application?
/r/djangolearning
https://redd.it/10desde
GitHub
GitHub - spyoungtech/grequests: Requests + Gevent = <3
Requests + Gevent = <3. Contribute to spyoungtech/grequests development by creating an account on GitHub.
How to put 3 different forms in one page with django and how to call Django's own password change view (PasswordChangeView) from another function?
I have a profile page where I want to
1- change profile picture
2- change name/surname/e-mail
3- change password with django's own PasswordChangeView
I wanted to create a profile class for those and change the data from within that one class, dividing it into 3 functions (change picture, change info, change password (which calls the PasswordChangeView)) but I cant seem to use the POST method with 3 different forms inside one page since it blocks me doing so and doesnt even submit data whatever I try to do so.
So my questions are:
1- is there any way for me to call the PasswordChangeView from another class' function and to change the data from there?
2- any ways that I can change 3 different data with 3 different forms through the same page?
Looked at so many stackoverflow questions, watched so many youtube videos, read the documentation but whatever I tried doesnt seem to work. Couldn't find a way to do that. So any help would be much appreciated.
Thank you in advance!
/r/djangolearning
https://redd.it/10debkj
I have a profile page where I want to
1- change profile picture
2- change name/surname/e-mail
3- change password with django's own PasswordChangeView
I wanted to create a profile class for those and change the data from within that one class, dividing it into 3 functions (change picture, change info, change password (which calls the PasswordChangeView)) but I cant seem to use the POST method with 3 different forms inside one page since it blocks me doing so and doesnt even submit data whatever I try to do so.
So my questions are:
1- is there any way for me to call the PasswordChangeView from another class' function and to change the data from there?
2- any ways that I can change 3 different data with 3 different forms through the same page?
Looked at so many stackoverflow questions, watched so many youtube videos, read the documentation but whatever I tried doesnt seem to work. Couldn't find a way to do that. So any help would be much appreciated.
Thank you in advance!
/r/djangolearning
https://redd.it/10debkj
reddit
How to put 3 different forms in one page with django and how to...
I have a profile page where I want to 1- change profile picture 2- change name/surname/e-mail 3- change password with django's own...
Generative art coded in Python
​
https://preview.redd.it/ozw3udzjelca1.jpg?width=8662&format=pjpg&auto=webp&v=enabled&s=b834cfd8faed8642b502550eb0846e448ec1dbb5
The outputs in the image above are fully coded in Python. The codes producing the digital images rely on the pandas, numpy and plotnine packages.
A little more detailed explanation can be found in our medium article.
​
https://medium.com/@mintofchaos/introducing-dawn-of-chaos-generative-art-concept-revolving-around-randomly-generated-points-e112e17dbc08
/r/Python
https://redd.it/10eahk7
​
https://preview.redd.it/ozw3udzjelca1.jpg?width=8662&format=pjpg&auto=webp&v=enabled&s=b834cfd8faed8642b502550eb0846e448ec1dbb5
The outputs in the image above are fully coded in Python. The codes producing the digital images rely on the pandas, numpy and plotnine packages.
A little more detailed explanation can be found in our medium article.
​
https://medium.com/@mintofchaos/introducing-dawn-of-chaos-generative-art-concept-revolving-around-randomly-generated-points-e112e17dbc08
/r/Python
https://redd.it/10eahk7
Medium
Introducing Dawn of Chaos — generative art concept revolving around randomly generated points
Python is the most used programming language in the 21st century. The majority of our current state of the art technologies rely on code…
What are the best IDEs for Python?
PyCharm is so bulky and takes up too much space on my SSD (I'm so confused as to why but whatever.)
VSCode uses PowerShell and it annoys me because everytime I run a code it prints 5-6 lines about PowerShell and whatever. (If you have a way to remove it that would be PERFECT.)
/r/Python
https://redd.it/10ekmyl
PyCharm is so bulky and takes up too much space on my SSD (I'm so confused as to why but whatever.)
VSCode uses PowerShell and it annoys me because everytime I run a code it prints 5-6 lines about PowerShell and whatever. (If you have a way to remove it that would be PERFECT.)
/r/Python
https://redd.it/10ekmyl
reddit
What are the best IDEs for Python?
PyCharm is so bulky and takes up too much space on my SSD (I'm so confused as to why but whatever.) VSCode uses PowerShell and it annoys me...
Python's Assignment Operator: Write Robust Assignments – Real Python
https://realpython.com/python-assignment-operator/
/r/Python
https://redd.it/10ee6gb
https://realpython.com/python-assignment-operator/
/r/Python
https://redd.it/10ee6gb
Realpython
Python's Assignment Operator: Write Robust Assignments – Real Python
In this tutorial, you'll learn how to use Python's assignment operators to write assignment statements that allow you to create, initialize, and update variables in your code.
Using PyArrow with Pandas - Arrow Tables and Parquet Files explored
Hi all,
This week I published our most recent newsletter, so thanks for sharing your projects so I could find them here and link to them. But one article of mine I linked to that was kind of fun was Python Parquet and Arrow: PyArrow and Pandas. The article covers how to use Pandas with Arrow or Parquet and some benchmarks comparing the performance of Arrow Tables vs. Pandas DataFrames, and Parquet vs. several other file storage choices.
/r/Python
https://redd.it/10el34b
Hi all,
This week I published our most recent newsletter, so thanks for sharing your projects so I could find them here and link to them. But one article of mine I linked to that was kind of fun was Python Parquet and Arrow: PyArrow and Pandas. The article covers how to use Pandas with Arrow or Parquet and some benchmarks comparing the performance of Arrow Tables vs. Pandas DataFrames, and Parquet vs. several other file storage choices.
/r/Python
https://redd.it/10el34b
Build Rich GUI Apps In Python With Aid From Delphi
https://www.i-programmer.info/news/216-python/16018-build-rich-gui-apps-in-python-with-aid-from-delphi.html
/r/Python
https://redd.it/10ejy21
https://www.i-programmer.info/news/216-python/16018-build-rich-gui-apps-in-python-with-aid-from-delphi.html
/r/Python
https://redd.it/10ejy21
www.i-programmer.info
Build Rich GUI Apps In Python With Aid From Delphi
Programming book reviews, programming tutorials,programming news, C#, Ruby, Python,C, C++, PHP, Visual Basic, Computer book reviews, computer history, programming history, joomla, theory, spreadsheets and more.
Boost Your Python Application Performance Using Continuous Profiling
https://medium.com/@martin.heinz/boost-your-python-application-performance-using-continuous-profiling-7eb993e68d23
/r/Python
https://redd.it/10egvm8
https://medium.com/@martin.heinz/boost-your-python-application-performance-using-continuous-profiling-7eb993e68d23
/r/Python
https://redd.it/10egvm8
Medium
Boost Your Python Application Performance Using Continuous Profiling
Learn how to use Grafana Phlare and continuous profiling to discover bottlenecks in you code and boost the performance of your Python apps
asynchrony: asyncio Python framework for writing safe and fast concurrent code
https://github.com/orsinium-labs/asynchrony
/r/Python
https://redd.it/10eedhq
https://github.com/orsinium-labs/asynchrony
/r/Python
https://redd.it/10eedhq
GitHub
GitHub - orsinium-labs/asynchrony: asyncio Python framework for writing safe and fast concurrent code
asyncio Python framework for writing safe and fast concurrent code - GitHub - orsinium-labs/asynchrony: asyncio Python framework for writing safe and fast concurrent code
Create Your OWN Programming Language! EP 2 - Token Types
https://youtube.com/watch?v=Yn9hcQxresM&feature=share
/r/Python
https://redd.it/10ejwix
https://youtube.com/watch?v=Yn9hcQxresM&feature=share
/r/Python
https://redd.it/10ejwix
YouTube
Create Your OWN Programming Language! EP 2 - Token Types
This is Episode 2 ins a series on how to create your own interpreted coding language using python. In this episode I will show you how to determine the different types of tokens which we need to do in order to prepare for future episodes.
DISCLAIMER: this…
DISCLAIMER: this…
Faster than calling abs()
instead of
a = abs(a)
I tried
a = a + (a<0) * (-a-a)
measured it with 10 million calls and it runs in 58% of the time,
see anything wrong with this?
saw some other post where people suggest setting _abs = abs before the loop and use _abs() inside it to make it faster
and still my method runs in 68% of the time it takes the _abs() method.
/r/Python
https://redd.it/10ep3y3
instead of
a = abs(a)
I tried
a = a + (a<0) * (-a-a)
measured it with 10 million calls and it runs in 58% of the time,
see anything wrong with this?
saw some other post where people suggest setting _abs = abs before the loop and use _abs() inside it to make it faster
and still my method runs in 68% of the time it takes the _abs() method.
/r/Python
https://redd.it/10ep3y3
reddit
Faster than calling abs()
instead of a = abs(a) I tried a = a + (a<0) * (-a-a) measured it with 10 million calls and it runs in 58% of the time, see anything...