DB design
I am working as an intern as a backend dev using django. Now my senior dev asked me to do "db design" for a module. I have default dbsqlite in django. Now, what does this db design means?? What I am supposed to do? I know I have to create models to make a table in database. Apart from that what is db design?? .Please explain in layman terms.
/r/djangolearning
https://redd.it/ivlbn7
I am working as an intern as a backend dev using django. Now my senior dev asked me to do "db design" for a module. I have default dbsqlite in django. Now, what does this db design means?? What I am supposed to do? I know I have to create models to make a table in database. Apart from that what is db design?? .Please explain in layman terms.
/r/djangolearning
https://redd.it/ivlbn7
reddit
DB design
I am working as an intern as a backend dev using django. Now my senior dev asked me to do "db design" for a module. I have default dbsqlite in...
Can't create new django project [VS CODE]
PS C:\Users\Kwaku Biney\Desktop\hello_django> django-admin startproject dj_pro
django-admin : The term 'django-admin'
is not recognized as the name of a
cmdlet, function, script file, or
operable program. Check the spelling of
the name, or if a path was included,
verify that the path is correct and try
again.
At line:1 char:1
+ django-admin startproject dj_pro
+ ~~~~~~~~~~~~
+ CategoryInfo : ObjectNotF
ound: (django-admin:String) [], Comm
andNotFoundException
+ FullyQualifiedErrorId : CommandNot
FoundException
This is what happens everytime a try to create a new project. How do I rectify it? Created the path and everything.. but still
/r/djangolearning
https://redd.it/ivgwl2
PS C:\Users\Kwaku Biney\Desktop\hello_django> django-admin startproject dj_pro
django-admin : The term 'django-admin'
is not recognized as the name of a
cmdlet, function, script file, or
operable program. Check the spelling of
the name, or if a path was included,
verify that the path is correct and try
again.
At line:1 char:1
+ django-admin startproject dj_pro
+ ~~~~~~~~~~~~
+ CategoryInfo : ObjectNotF
ound: (django-admin:String) [], Comm
andNotFoundException
+ FullyQualifiedErrorId : CommandNot
FoundException
This is what happens everytime a try to create a new project. How do I rectify it? Created the path and everything.. but still
/r/djangolearning
https://redd.it/ivgwl2
reddit
Can't create new django project [VS CODE]
PS C:\Users\Kwaku Biney\Desktop\hello_django> django-admin startproject dj_pro django-admin : The term 'django-admin' is not...
[D] Quality Contributions Roundup 9/14
Last quality roundup thread can be found here: https://www.reddit.com/r/MachineLearning/comments/hvzyz7/d_quality_contributions_roundup_722/
To encourage quality contributions, the mods will periodically collate a set of quality technical discussions on /r/MachineLearning. Of course, we haven't read every comment on /r/MachineLearning, and what we consider to be quality discussions will nevertheless reflect our biases and what we're interested in.
In the future, if you see an insightful comment, please report them with the reason "Quality Contribution". Alternately, bring them up in the comments, and we may add them to the main post.
In general, these roundups will consist of any post since the last Quality Contributions roundup. We will focus on technical discussions - that is, we will ignore comments like Geoff Hinton's response to Schmidhuber. Thus, here we are!
---
[Mode collapse approaches, data augmentation for GANs, and StyleGAN vs BigGAN](https://www.reddit.com/r/MachineLearning/comments/hwf093/d_what_are_the_recent_papers_that_address_the/fyzionh/) by u/gwern
> Data augmentation historically just screws up GANs, causing G to emit artifacts, but apparently all you have to do, turns out, is always apply data augmentation to all images before training or scoring (rather than the usual approach of augmenting just reals), and then it Just Works. So you can get surprisingly good results out of StyleGAN training from scratch on just thousands of images, even.
---
[Breaking
/r/MachineLearning
https://redd.it/ivk4bb
Last quality roundup thread can be found here: https://www.reddit.com/r/MachineLearning/comments/hvzyz7/d_quality_contributions_roundup_722/
To encourage quality contributions, the mods will periodically collate a set of quality technical discussions on /r/MachineLearning. Of course, we haven't read every comment on /r/MachineLearning, and what we consider to be quality discussions will nevertheless reflect our biases and what we're interested in.
In the future, if you see an insightful comment, please report them with the reason "Quality Contribution". Alternately, bring them up in the comments, and we may add them to the main post.
In general, these roundups will consist of any post since the last Quality Contributions roundup. We will focus on technical discussions - that is, we will ignore comments like Geoff Hinton's response to Schmidhuber. Thus, here we are!
---
[Mode collapse approaches, data augmentation for GANs, and StyleGAN vs BigGAN](https://www.reddit.com/r/MachineLearning/comments/hwf093/d_what_are_the_recent_papers_that_address_the/fyzionh/) by u/gwern
> Data augmentation historically just screws up GANs, causing G to emit artifacts, but apparently all you have to do, turns out, is always apply data augmentation to all images before training or scoring (rather than the usual approach of augmenting just reals), and then it Just Works. So you can get surprisingly good results out of StyleGAN training from scratch on just thousands of images, even.
---
[Breaking
/r/MachineLearning
https://redd.it/ivk4bb
reddit
[D] Quality Contributions Roundup 7/22
To encourage quality contributions, the mods will periodically collate a set of quality technical discussions on /r/MachineLearning. Of course, we...
JupyterHub Notebook Repo w/out nbgitpuller
I have a LittlestJupyterHub server I'm hosting, and I have a shared folder (read-only) that all my users can access. I want to add a git repo to it, but Im not sure how to then make JupyterHub run notebook for the users.
Normally you would cd into the repo and run `jupyter notebook` but I don't know how to achieve that in JupyterHub.
Thanks in advance.
/r/JupyterNotebooks
https://redd.it/ivnjx5
I have a LittlestJupyterHub server I'm hosting, and I have a shared folder (read-only) that all my users can access. I want to add a git repo to it, but Im not sure how to then make JupyterHub run notebook for the users.
Normally you would cd into the repo and run `jupyter notebook` but I don't know how to achieve that in JupyterHub.
Thanks in advance.
/r/JupyterNotebooks
https://redd.it/ivnjx5
reddit
JupyterHub Notebook Repo w/out nbgitpuller
I have a LittlestJupyterHub server I'm hosting, and I have a shared folder (read-only) that all my users can access. I want to add a git repo to...
Missing data when converting to dataframe with django_pandas' read_frame
The queryset returns values for both adviser & introducer, but when converted to a dataframe using django_pandas.io read_frame the adviser values remain and the introducer is set to None.
This how the model is set up
class Split(models.Model):
adviser = models.ForeignKey(Account, null=True, on_delete=models.SET_NULL, related_name='adviser')
name = models.CharField(max_length=50, null=True)
reference = models.CharField(max_length=10, null=True)
introducer = models.ForeignKey(Account, null=True, blank=True, on_delete=models.SET_NULL, related_name='introducer')
split = models.FloatField(default=0, null=True, blank=False)
date_created = models.DateTimeField(auto_now_add=True, null=True)
def __str__ (self):
return self.name
And this is my method of creating a dataframe
splits = Split.objects.all()
splits_df = read_frame(splits)
/r/djangolearning
https://redd.it/ivs7a7
The queryset returns values for both adviser & introducer, but when converted to a dataframe using django_pandas.io read_frame the adviser values remain and the introducer is set to None.
This how the model is set up
class Split(models.Model):
adviser = models.ForeignKey(Account, null=True, on_delete=models.SET_NULL, related_name='adviser')
name = models.CharField(max_length=50, null=True)
reference = models.CharField(max_length=10, null=True)
introducer = models.ForeignKey(Account, null=True, blank=True, on_delete=models.SET_NULL, related_name='introducer')
split = models.FloatField(default=0, null=True, blank=False)
date_created = models.DateTimeField(auto_now_add=True, null=True)
def __str__ (self):
return self.name
And this is my method of creating a dataframe
splits = Split.objects.all()
splits_df = read_frame(splits)
/r/djangolearning
https://redd.it/ivs7a7
reddit
Missing data when converting to dataframe with django_pandas'...
The queryset returns values for both adviser & introducer, but when converted to a dataframe using django_pandas.io read_frame the adviser values...
[D] Interview with the VP of Research at NVIDIA on ML Research & Research at NVIDIA
Hi All,
I run a non-monetised, ad-free podcast a service to the community where I interview my ML Heroes.
I had the privilege to interview one of the pioneers of the ML: Bryan Catanzaro about his journey into ML, Research at NVIDIA and beyond.
[Video](https://www.youtube.com/watch?v=guJT5GOiNjA)
[Audio](https://anchor.fm/chaitimedatascience/episodes/Bryan-Catanzaro--Research-at-NVIDIA--RTX-3000--Deep-Learning--CTDS-Show-101-ej4sql)
If you have any suggestions on how to improve the podcast or any guest recommendations, I'd be happy to take them. Hope you enjoy the interview!
Thanks!
/r/MachineLearning
https://redd.it/ivnh9i
Hi All,
I run a non-monetised, ad-free podcast a service to the community where I interview my ML Heroes.
I had the privilege to interview one of the pioneers of the ML: Bryan Catanzaro about his journey into ML, Research at NVIDIA and beyond.
[Video](https://www.youtube.com/watch?v=guJT5GOiNjA)
[Audio](https://anchor.fm/chaitimedatascience/episodes/Bryan-Catanzaro--Research-at-NVIDIA--RTX-3000--Deep-Learning--CTDS-Show-101-ej4sql)
If you have any suggestions on how to improve the podcast or any guest recommendations, I'd be happy to take them. Hope you enjoy the interview!
Thanks!
/r/MachineLearning
https://redd.it/ivnh9i
YouTube
Bryan Catanzaro | Research at NVIDIA | RTX 3000 | Deep Learning | CTDS.Show #101
GTC Conference tickets giveaway details: https://twitter.com/bhutanisanyam1/status/1306637737592840193?s=20
Audio (Podcast Version) available here: https://anchor.fm/chaitimedatascience
Subscribe here to the newsletter: https://tinyletter.com/sanyambhutani…
Audio (Podcast Version) available here: https://anchor.fm/chaitimedatascience
Subscribe here to the newsletter: https://tinyletter.com/sanyambhutani…
This media is not supported in your browser
VIEW IN TELEGRAM
Just want to share with you some recent updates on spolarfy.com, my personal project that helps me find similar songs on Spotify. Enjoy your Saturday!
/r/flask
https://redd.it/ivpu4n
/r/flask
https://redd.it/ivpu4n
Create a simple face detection application using Intel Openvino in under 10 lines of code.
https://youtu.be/mOG-6VfB2cI
/r/Python
https://redd.it/ivmsnk
https://youtu.be/mOG-6VfB2cI
/r/Python
https://redd.it/ivmsnk
YouTube
Simplified Face Detection Implementation using OpenVINO
#IntelOpenVINO #OpenVINO #FaceDetection #OpenCV #ComputerVision #Docker #Python #AI #DeepLearning #NeuralNetwork #MachineLearning #MobileNet
This unscripted tutorial walks you through a simple implementation of a Face Detection application which uses a…
This unscripted tutorial walks you through a simple implementation of a Face Detection application which uses a…
My first django site
Happy to finally create my first project after picking up programming earlier this year. It's nothing special, but I'm glad to have made it here. There's a lot more to learn, so do give me some feedback and suggestions! I used django for the backend, and some basic JS, HTML and CSS for the front end. It's basically a student council management site so there's not much to it, but I'd love to hear some criticism and ways to improve it!
[xmumsc.herokuapp.com](https://xmumsc.herokuapp.com)
/r/django
https://redd.it/ivrpbz
Happy to finally create my first project after picking up programming earlier this year. It's nothing special, but I'm glad to have made it here. There's a lot more to learn, so do give me some feedback and suggestions! I used django for the backend, and some basic JS, HTML and CSS for the front end. It's basically a student council management site so there's not much to it, but I'd love to hear some criticism and ways to improve it!
[xmumsc.herokuapp.com](https://xmumsc.herokuapp.com)
/r/django
https://redd.it/ivrpbz
Herokuapp
Xiamen University Malaysia Student Council
Xiamen University Malaysia Student Council page for all things related to
XMUM's student council.
XMUM's student council.
Sunday megathread: 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/iw3hs1
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/iw3hs1
reddit
Sunday megathread: 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...
Typing speed test right in your terminal
I started this project as a beginner 6 months back. But now both the project and me have grown up to an intermediate level!
​
https://preview.redd.it/rg0s472ao4o51.png?width=518&format=png&auto=webp&s=95dafdd2078f2ffa8c32f2624d6bebae390e63c2
Check it out on github [here](https://github.com/Mithil467/mitype) or you can also run the online [repl](https://mitype.mithil467.repl.run/) but the latency is very high on web
/r/Python
https://redd.it/ivvamv
I started this project as a beginner 6 months back. But now both the project and me have grown up to an intermediate level!
​
https://preview.redd.it/rg0s472ao4o51.png?width=518&format=png&auto=webp&s=95dafdd2078f2ffa8c32f2624d6bebae390e63c2
Check it out on github [here](https://github.com/Mithil467/mitype) or you can also run the online [repl](https://mitype.mithil467.repl.run/) but the latency is very high on web
/r/Python
https://redd.it/ivvamv
This media is not supported in your browser
VIEW IN TELEGRAM
Made this Twitter like website using Django. My second Django project.
/r/django
https://redd.it/ivykki
/r/django
https://redd.it/ivykki
I built a Minesweeper game that let's you add custom tile backgrounds
[https://github.com/israel-dryer/Minesweeper-PSG](https://github.com/israel-dryer/Minesweeper-PSG)
https://preview.redd.it/8rhjvlvhd7o51.png?width=792&format=png&auto=webp&s=8909356ae79d664c0aa1b2424db63319f091cf46
/r/Python
https://redd.it/iw4jg3
[https://github.com/israel-dryer/Minesweeper-PSG](https://github.com/israel-dryer/Minesweeper-PSG)
https://preview.redd.it/8rhjvlvhd7o51.png?width=792&format=png&auto=webp&s=8909356ae79d664c0aa1b2424db63319f091cf46
/r/Python
https://redd.it/iw4jg3
GitHub
israel-dryer/Minesweeper-PSG
A minesweeper game built using PySimpleGUI that allows you to theme with custom backgrounds - israel-dryer/Minesweeper-PSG
[D] Which mobile apps are based on On-Device AI
There are many On-Device AI framworks/libraries such as Tensorflow Lite and Pytorch Mobile, but I wonder about what are the apps which have on-device AI functionality/ which have ML models inside the app
/r/MachineLearning
https://redd.it/iw96bn
There are many On-Device AI framworks/libraries such as Tensorflow Lite and Pytorch Mobile, but I wonder about what are the apps which have on-device AI functionality/ which have ML models inside the app
/r/MachineLearning
https://redd.it/iw96bn
reddit
[D] Which mobile apps are based on On-Device AI
There are many On-Device AI framworks/libraries such as Tensorflow Lite and Pytorch Mobile, but I wonder about what are the apps which have...
In ipyparallel, how does one reset the namespace of the engines without restarting them?
If I'm not mistaken, each engine in ipyparallel has its own persistent namespace. As a result, if I import some module **M** in **engine\_i**, kill the main process (client code), and finally modify **M,** simply restarting the main process (client code) will not be sufficient for the changes in **M** to be reloaded in **engine\_i**.
The most reliable way to solve that problem so far has been to kill/reset all engines, but it is really tedious as I have to make a lot of frequent modifications to modules that are imported to engines.
I've tried reloading/deep\_reloading modules in engines, using the magics %reset etc, but to no avail. Is there a trivial way to reset engine namespaces? I can't believe that all developpers working with ipyparallel constantly kill/restart clusters.
Thanks for your help.
PS: if farming reputation on stackoverflow is your thing, I've made a more detailed post [here](https://stackoverflow.com/questions/63968732/ipyparallel-what-is-the-most-reliable-way-to-clear-reset-engine-namespaces-with).
/r/IPython
https://redd.it/iwaqrz
If I'm not mistaken, each engine in ipyparallel has its own persistent namespace. As a result, if I import some module **M** in **engine\_i**, kill the main process (client code), and finally modify **M,** simply restarting the main process (client code) will not be sufficient for the changes in **M** to be reloaded in **engine\_i**.
The most reliable way to solve that problem so far has been to kill/reset all engines, but it is really tedious as I have to make a lot of frequent modifications to modules that are imported to engines.
I've tried reloading/deep\_reloading modules in engines, using the magics %reset etc, but to no avail. Is there a trivial way to reset engine namespaces? I can't believe that all developpers working with ipyparallel constantly kill/restart clusters.
Thanks for your help.
PS: if farming reputation on stackoverflow is your thing, I've made a more detailed post [here](https://stackoverflow.com/questions/63968732/ipyparallel-what-is-the-most-reliable-way-to-clear-reset-engine-namespaces-with).
/r/IPython
https://redd.it/iwaqrz
Stack Overflow
ipyparallel: what is the most reliable way to clear/reset engine namespaces without restarting the cluster?
As far as I understand, an ipython cluster manages a set of persistent namespaces (one per engine). As a result, if a module that is imported by an engine engine_i is modified, killing the main
Python decorators
Hi, decorator are useful and quite simple to use, at the beginning they may seem a little complex, but once you get the way they work they can save you tons of time keeping the code in order, making it more readable, mantainable and flexible. Have a look at the code into this repo [GH repository](https://github.com/formazione/python_cheatsheet) and take a look at the video in this post [https://youtu.be/C62Nu4yFFsM](https://youtu.be/C62Nu4yFFsM)
​
https://preview.redd.it/nxgaiwg839o51.png?width=800&format=png&auto=webp&s=3775c3192774f3598a3443a5c8e6ca136ba723c5
/r/Python
https://redd.it/iw8ytp
Hi, decorator are useful and quite simple to use, at the beginning they may seem a little complex, but once you get the way they work they can save you tons of time keeping the code in order, making it more readable, mantainable and flexible. Have a look at the code into this repo [GH repository](https://github.com/formazione/python_cheatsheet) and take a look at the video in this post [https://youtu.be/C62Nu4yFFsM](https://youtu.be/C62Nu4yFFsM)
​
https://preview.redd.it/nxgaiwg839o51.png?width=800&format=png&auto=webp&s=3775c3192774f3598a3443a5c8e6ca136ba723c5
/r/Python
https://redd.it/iw8ytp
GitHub
formazione/python_cheatsheet
Code examples ready to be used in python. Contribute to formazione/python_cheatsheet development by creating an account on GitHub.
Why have I not been using f-strings...
I have been using format() for a few years now and just realized how amazing f strings are.
/r/Python
https://redd.it/iwdzzx
I have been using format() for a few years now and just realized how amazing f strings are.
/r/Python
https://redd.it/iwdzzx
reddit
Why have I not been using f-strings...
I have been using format() for a few years now and just realized how amazing f strings are.
Need to make a web app that shares info (through dashboards) and handles basic automation, but should be incredibly secure - is Flask the right tool for the job.
I figured I would make a Flask portal where clients could log in and access visualizations (tool I will use is Dash) of various sorts we need them to see.
Depending on the person logged in, this flask app would also allow some degree of automation to be done - I.e. the user just clicks stuff on the site and some code runs on the backend and executes the necessary results.
Given that I've always been itching to get into web development, the first thing that came to mind was Flask. But I'm not sure about the security aspect of things.
1. I will be hosting the flask app on an EC2 instance and fetching data from our prod DB essentially via an SQL connection - is this something that is generally completely safe, given the environment variables will probably be access keys to our DB
2. Is it possible to implement industry standard MFA mechanisms into the login process, say through OTPs or Google Authenticator
3. Some of the automation I have in mind will involve interfacing with AWS APIs, which again means the environment variables will need to be access and secret keys. Is this generally safe?
/r/flask
https://redd.it/iwbkpz
I figured I would make a Flask portal where clients could log in and access visualizations (tool I will use is Dash) of various sorts we need them to see.
Depending on the person logged in, this flask app would also allow some degree of automation to be done - I.e. the user just clicks stuff on the site and some code runs on the backend and executes the necessary results.
Given that I've always been itching to get into web development, the first thing that came to mind was Flask. But I'm not sure about the security aspect of things.
1. I will be hosting the flask app on an EC2 instance and fetching data from our prod DB essentially via an SQL connection - is this something that is generally completely safe, given the environment variables will probably be access keys to our DB
2. Is it possible to implement industry standard MFA mechanisms into the login process, say through OTPs or Google Authenticator
3. Some of the automation I have in mind will involve interfacing with AWS APIs, which again means the environment variables will need to be access and secret keys. Is this generally safe?
/r/flask
https://redd.it/iwbkpz
reddit
Need to make a web app that shares info (through dashboards) and...
I figured I would make a Flask portal where clients could log in and access visualizations (tool I will use is Dash) of various sorts we need them...