[P] I used a Variational Autoencoder to build a feature-based face editing software
Hey reddit,
In my latest weekend-project I have been using a Variational Autoencoder to build a feature-based face editor. The model is explained in my youtube video:
https://youtu.be/uszj2MOLY08
You can inspect the code at Github:
https://github.com/SteffenCzolbe/FeatureTransferApp
The feature editing is based on modifying the latent distribution of the VAE. After training of the VAE is completed, the latent space is mapped by encoding the training data once more. Latent space vectors of each feature are determined based on the labels of the training data. Then to edit an image, we can add a combination of feature vectors to its latent distribution, and then reconstruct it. The reconstruction creates an altered version of the original image, based on the featrures we added to the latent representation.
The model used is heavily inspired by the Bate-VAE used in this paper by google deepmind (https://pdfs.semanticscholar.org/a902/26c41b79f8b06007609f39f82757073641e2.pdf). I made some adjustments to it to incorporate more recent advancements in neural network architecture, like using a Leaky ReLu activation function. The dataset used is celebA, which consist of 200.000 annotated images of celebrities. I aligned and cropped the images to a 64x64 resolution before training. The model is implememted in PyTorch, and PyGame has been used for the GUI. Training on my
/r/MachineLearning
https://redd.it/bdtmgh
Hey reddit,
In my latest weekend-project I have been using a Variational Autoencoder to build a feature-based face editor. The model is explained in my youtube video:
https://youtu.be/uszj2MOLY08
You can inspect the code at Github:
https://github.com/SteffenCzolbe/FeatureTransferApp
The feature editing is based on modifying the latent distribution of the VAE. After training of the VAE is completed, the latent space is mapped by encoding the training data once more. Latent space vectors of each feature are determined based on the labels of the training data. Then to edit an image, we can add a combination of feature vectors to its latent distribution, and then reconstruct it. The reconstruction creates an altered version of the original image, based on the featrures we added to the latent representation.
The model used is heavily inspired by the Bate-VAE used in this paper by google deepmind (https://pdfs.semanticscholar.org/a902/26c41b79f8b06007609f39f82757073641e2.pdf). I made some adjustments to it to incorporate more recent advancements in neural network architecture, like using a Leaky ReLu activation function. The dataset used is celebA, which consist of 200.000 annotated images of celebrities. I aligned and cropped the images to a 64x64 resolution before training. The model is implememted in PyTorch, and PyGame has been used for the GUI. Training on my
/r/MachineLearning
https://redd.it/bdtmgh
YouTube
Editing Faces with AI - Variational Autoencoder
Hey! A demonstration on how to use a Variational Autoencoder to edit facial features. Code + Install guide: https://github.com/SteffenCzolbe/FeatureTransferA...
Implement ASGI handler and coroutine-safety by andrewgodwin · Pull Request #11209 · django/django · GitHub
https://github.com/django/django/pull/11209
/r/django
https://redd.it/bdtfcd
https://github.com/django/django/pull/11209
/r/django
https://redd.it/bdtfcd
GitHub
Fixed #30451 -- Added ASGI handler and coroutine-safety. by andrewgodwin · Pull Request #11209 · django/django
This adds in an AsgiHandler handler class, get_asgi_application, and an asgi.py file into the default project template. It serves Django over an ASGI interface, but does not yet allow asynchronous ...
Provide safe downloads of digital products?
Hi, r/flask!
I am working on a webpage for a friend that's selling beats. The project is nearing an end, but I need to develop a way to provide downloads for the products we sell.
My main focus needs to be security and efficiency. The store needs to provide immediate downloads to customers, and it is naturally very important to prevent unauthorized access to these files.
How can I solve this? What should my main concern be? Where can I get help/info about things like this?
Thanks in advance.
/r/flask
https://redd.it/bds8n4
Hi, r/flask!
I am working on a webpage for a friend that's selling beats. The project is nearing an end, but I need to develop a way to provide downloads for the products we sell.
My main focus needs to be security and efficiency. The store needs to provide immediate downloads to customers, and it is naturally very important to prevent unauthorized access to these files.
How can I solve this? What should my main concern be? Where can I get help/info about things like this?
Thanks in advance.
/r/flask
https://redd.it/bds8n4
reddit
r/flask - Provide safe downloads of digital products?
7 votes and 5 comments so far on Reddit
[D] I couldn’t find a good resource for data scientists to learn Linux/shell scripting, so I made a cheat sheet and uploaded three hours of lessons. Enjoy!
I’ve taught Linux/UNIX/shell scripting at my past few jobs and realized I should record lessons and put them online. This is for everyone who wants/needs to learn Linux on the fly. Hopefully it’s useful.
[The cheat sheet is located here](https://www.dropbox.com/s/k7athu9i8lmmeln/Linux%20Cheat%20Sheet%20David%20Relyea.pdf)
[The three hours of lessons are located here](https://www.youtube.com/playlist?list=PLdfA2CrAqQ5kB8iSbm5FB1ADVdBeOzVqZ)
/r/MachineLearning
https://redd.it/bdviis
I’ve taught Linux/UNIX/shell scripting at my past few jobs and realized I should record lessons and put them online. This is for everyone who wants/needs to learn Linux on the fly. Hopefully it’s useful.
[The cheat sheet is located here](https://www.dropbox.com/s/k7athu9i8lmmeln/Linux%20Cheat%20Sheet%20David%20Relyea.pdf)
[The three hours of lessons are located here](https://www.youtube.com/playlist?list=PLdfA2CrAqQ5kB8iSbm5FB1ADVdBeOzVqZ)
/r/MachineLearning
https://redd.it/bdviis
Dropbox
Dropbox - Error
Dropbox is a free service that lets you bring your photos, docs, and videos anywhere and share them easily. Never email yourself a file again!
Templated Email for Python (use Jinja2 to render emails)
https://github.com/kkinder/templatemail
/r/flask
https://redd.it/bdxysj
https://github.com/kkinder/templatemail
/r/flask
https://redd.it/bdxysj
GitHub
GitHub - kkinder/templatemail: Templated Email for Python
Templated Email for Python. Contribute to kkinder/templatemail development by creating an account on GitHub.
A Crash Course in Django: A quick way to get started making basic Django websites without going too in-depth.
https://ceiphr.com/blog/a-crash-course-in-django
/r/django
https://redd.it/bdyd26
https://ceiphr.com/blog/a-crash-course-in-django
/r/django
https://redd.it/bdyd26
Ceiphr
A Crash Course in Django
This crash course is a quick way to get started making a basic Django website without going in-depth about the underlying concepts.
https://github.com/JaDogg/expressPython - A small Python editor for learning and competitive programming
/r/Python
https://redd.it/bduzsr
/r/Python
https://redd.it/bduzsr
13 Project Ideas for Intermediate Python Developers
https://realpython.com/intermediate-python-project-ideas/
/r/Python
https://redd.it/bdx0jb
https://realpython.com/intermediate-python-project-ideas/
/r/Python
https://redd.it/bdx0jb
Realpython
13 Project Ideas for Intermediate Python Developers – Real Python
In this article, you'll learn how you can get started on 13 Python project ideas that are just right for intermediate Python developers. They'll challenge you enough to help you become a better Pythonista but will still be doable!
[RANT] Fabric 2 jumped the shark with it's complete rewrite
As you may know there's a major new version of [fabric](http://www.fabfile.org/) (out for some months actually); a complete *rewrite to do everything now in the proper way™* in version 2.
I used to love fabric, because
* It fills a gap of doing repetetive task doing manually and using a full-blown automation and provisioning tool like ansible
* It's simple to use, but also powerful enough to do everything you need
Despite all dependencies being ready, there was never a port to Python 3 of the old and beloved fabric 1, so I thought I'd use version 2 for a new project, but damn, does it seem over-engineered now, making everything harder and more annoying:
## No real compatibility with the old fabfiles
Yes, the API is rewritten, and the [changes are major](http://www.fabfile.org/upgrading.html). Since the old fabric won't ever be compatible with Python3, you must use the new fabric (thankfully there's [`fabric3`](https://pypi.org/project/Fabric3/) which was forked from the old fabric to be compatible with Python 3. Apparently, it was not that hard to port, but fabric's original author [preferred to ignore attempts making version 1 Python 3 compatible](https://github.com/fabric/fabric/issues/1378)).
Also, the project is now split into multiple dependencies, like [Invoke](https://www.pyinvoke.org/), [Invocations](https://invocations.readthedocs.io/en/latest/), [Patchwork](https://fabric-patchwork.readthedocs.io/en/latest/).
## No `local` command to run tasks
/r/django
https://redd.it/be193q
As you may know there's a major new version of [fabric](http://www.fabfile.org/) (out for some months actually); a complete *rewrite to do everything now in the proper way™* in version 2.
I used to love fabric, because
* It fills a gap of doing repetetive task doing manually and using a full-blown automation and provisioning tool like ansible
* It's simple to use, but also powerful enough to do everything you need
Despite all dependencies being ready, there was never a port to Python 3 of the old and beloved fabric 1, so I thought I'd use version 2 for a new project, but damn, does it seem over-engineered now, making everything harder and more annoying:
## No real compatibility with the old fabfiles
Yes, the API is rewritten, and the [changes are major](http://www.fabfile.org/upgrading.html). Since the old fabric won't ever be compatible with Python3, you must use the new fabric (thankfully there's [`fabric3`](https://pypi.org/project/Fabric3/) which was forked from the old fabric to be compatible with Python 3. Apparently, it was not that hard to port, but fabric's original author [preferred to ignore attempts making version 1 Python 3 compatible](https://github.com/fabric/fabric/issues/1378)).
Also, the project is now split into multiple dependencies, like [Invoke](https://www.pyinvoke.org/), [Invocations](https://invocations.readthedocs.io/en/latest/), [Patchwork](https://fabric-patchwork.readthedocs.io/en/latest/).
## No `local` command to run tasks
/r/django
https://redd.it/be193q
[AF] Query an existing MySQL view with Flask-SQLAlchemy / SQLAlchemy
I'm working with a schema that I originally created by declaring models and then using the db.create_all() method to generate everything. Since then, I've created a view manually in MySQL Workbench. I tried just declaring the view as its own model after I had run the script containing the .create_all() call, but it has some weird behavior in that query.all() doesn't return all the results. Additionally, if I try to drop and recreate the schema using my database creation script, I get an "Unknown table" error.
What is the best way to approach this?
/r/flask
https://redd.it/bduf0w
I'm working with a schema that I originally created by declaring models and then using the db.create_all() method to generate everything. Since then, I've created a view manually in MySQL Workbench. I tried just declaring the view as its own model after I had run the script containing the .create_all() call, but it has some weird behavior in that query.all() doesn't return all the results. Additionally, if I try to drop and recreate the schema using my database creation script, I get an "Unknown table" error.
What is the best way to approach this?
/r/flask
https://redd.it/bduf0w
reddit
r/flask - [AF] Query an existing MySQL view with Flask-SQLAlchemy / SQLAlchemy
2 votes and 1 comment so far on Reddit
Pyodide: Bringing the scientific Python stack to the browser – Mozilla Hacks - the Web developer blog
https://hacks.mozilla.org/2019/04/pyodide-bringing-the-scientific-python-stack-to-the-browser/
/r/Python
https://redd.it/be0lo9
https://hacks.mozilla.org/2019/04/pyodide-bringing-the-scientific-python-stack-to-the-browser/
/r/Python
https://redd.it/be0lo9
Mozilla Hacks – the Web developer blog
Pyodide: Bringing the scientific Python stack to the browser
Pyodide is an experimental project from Mozilla to create a full Python data science stack that runs entirely in the browser. We think it’s worthwhile to work on moving the ...
[AF] about to learn websockets to send simple data from server to native desktop app. Advice?
Hi all,
I've finally written a little web app that is basically an API server that accepts logins, issues tokens and will allow routes based on the token's correctness and presence. Very exciting!
Now I'm at the stage where I need to:
Create a very small native osx and windows app that sits running all the time on client machines and has a websocket connection to my API server.
The idea is, when an API call is made to the server (from another web app I have), it will send out info to the native app to do a small task. Almost like a messaging system but the native app will do a few more things.
Can I ask advice from those that have done something like this on what tools would be useful for me to investigate? I'm all ears to see what the community thinks might be the best way to go.
Thanks a tonne...
/r/flask
https://redd.it/be4f2m
Hi all,
I've finally written a little web app that is basically an API server that accepts logins, issues tokens and will allow routes based on the token's correctness and presence. Very exciting!
Now I'm at the stage where I need to:
Create a very small native osx and windows app that sits running all the time on client machines and has a websocket connection to my API server.
The idea is, when an API call is made to the server (from another web app I have), it will send out info to the native app to do a small task. Almost like a messaging system but the native app will do a few more things.
Can I ask advice from those that have done something like this on what tools would be useful for me to investigate? I'm all ears to see what the community thinks might be the best way to go.
Thanks a tonne...
/r/flask
https://redd.it/be4f2m
reddit
r/flask - [AF] about to learn websockets to send simple data from server to native desktop app. Advice?
0 votes and 0 comments so far on Reddit
Flask-restly stable version published
Hi all,
​
some time ago I wrote [here](https://www.reddit.com/r/flask/comments/9oqg9k/ive_created_new_rest_api_library_for_flask/) about flask-restly library. I use the library myself, also I see downloads from PyPi everyday and there's no issues either from me or users, so recently I decided to publish flask-restly as stable (1.0.0). Feedback will be appreciated :)
​
[https://github.com/gorzechowski/flask-restly](https://github.com/gorzechowski/flask-restly)
/r/flask
https://redd.it/bdrk1m
Hi all,
​
some time ago I wrote [here](https://www.reddit.com/r/flask/comments/9oqg9k/ive_created_new_rest_api_library_for_flask/) about flask-restly library. I use the library myself, also I see downloads from PyPi everyday and there's no issues either from me or users, so recently I decided to publish flask-restly as stable (1.0.0). Feedback will be appreciated :)
​
[https://github.com/gorzechowski/flask-restly](https://github.com/gorzechowski/flask-restly)
/r/flask
https://redd.it/bdrk1m
reddit
r/flask - I've created new REST API library for Flask
20 votes and 5 comments so far on Reddit
Mozilla bringing Python interpreter to browsers
https://venturebeat.com/2019/04/16/mozilla-details-pyodide-a-project-that-aims-to-bring-python-to-web-browsers/
/r/Python
https://redd.it/be4w97
https://venturebeat.com/2019/04/16/mozilla-details-pyodide-a-project-that-aims-to-bring-python-to-web-browsers/
/r/Python
https://redd.it/be4w97
VentureBeat
Mozilla details Pyodide, which brings Python to browsers
Mozilla's Pyodide is an experimental Python project that's designed to perform computation without the need for a remote kernel.
Django allauth social login for existing user
When I have an existing user in my database but no corresponding social account for that user's email, and I login in using facebook or google, everything works fine and all but on successful connection of my existing user to a new social account, I am redirected to a /accounts/social/connections/ page. I want to avoid getting redirected to this page and I simply want the user to get back to the same page that they were already on. How can that be done?
/r/django
https://redd.it/be5gev
When I have an existing user in my database but no corresponding social account for that user's email, and I login in using facebook or google, everything works fine and all but on successful connection of my existing user to a new social account, I am redirected to a /accounts/social/connections/ page. I want to avoid getting redirected to this page and I simply want the user to get back to the same page that they were already on. How can that be done?
/r/django
https://redd.it/be5gev
reddit
r/django - Django allauth social login for existing user
0 votes and 1 comment so far on Reddit
Looking for help using a Flask server and AJAX
**I am a COMPLETE NOVICE, so apologies in advance about the code and my understanding of how it works.**
If you know of a better way to do this, I would love to know. I'm just hoping that you guys/gals might have done a similar project and will know how to help me.
I have my ESP-01 setup to read whether my door is open or closed, using a hand made switch inside the lock. It then makes a JSON packet and sends this data it to my Raspberry Pi running a Flask server. The Flask server generates a web page that displays whether the toilet door is open or closed. **I can make it work upto this point, using a webpage that shows a 1 or a 0.**
***However,*** I wanted to be all fancy and clever, and have the webpage shows a toilet door "VACANT/OCCUPIED" lock that rotates when the sensor updates, but does not refresh the entire page, maybe using AJAX?
https://i.redd.it/649zlwc35ls21.png
This is where I'm stuck; I've made the lock and dial images, but I don't know how to get the page to do this kind of "fancy" animation stuff.
​
Any and all help is greatly appreciated.
/r/flask
https://redd.it/bdrf0c
**I am a COMPLETE NOVICE, so apologies in advance about the code and my understanding of how it works.**
If you know of a better way to do this, I would love to know. I'm just hoping that you guys/gals might have done a similar project and will know how to help me.
I have my ESP-01 setup to read whether my door is open or closed, using a hand made switch inside the lock. It then makes a JSON packet and sends this data it to my Raspberry Pi running a Flask server. The Flask server generates a web page that displays whether the toilet door is open or closed. **I can make it work upto this point, using a webpage that shows a 1 or a 0.**
***However,*** I wanted to be all fancy and clever, and have the webpage shows a toilet door "VACANT/OCCUPIED" lock that rotates when the sensor updates, but does not refresh the entire page, maybe using AJAX?
https://i.redd.it/649zlwc35ls21.png
This is where I'm stuck; I've made the lock and dial images, but I don't know how to get the page to do this kind of "fancy" animation stuff.
​
Any and all help is greatly appreciated.
/r/flask
https://redd.it/bdrf0c
Django REST Framework with PyMongo
https://medium.com/@princesharzeel.10/django-rest-framework-with-pymongo-8e78fd1c33c3
/r/django
https://redd.it/be63h4
https://medium.com/@princesharzeel.10/django-rest-framework-with-pymongo-8e78fd1c33c3
/r/django
https://redd.it/be63h4
Medium
Django Rest Framework with PyMongo
Let us understand how to use Django Rest Framework with PyMongo. There are enough documentations for using DRF with SQL but scarce in…
[D] Machine Learning - WAYR (What Are You Reading) - Week 60
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|51-60|
|----|-----|-----|-----|-----|-----|
|[Week 1](https://www.reddit.com/4qyjiq)|[Week 11](https://www.reddit.com/57xw56)|[Week 21](https://www.reddit.com/60ildf)|[Week 31](https://www.reddit.com/6s0k1u)|[Week 41](https://www.reddit.com/7tn2ax)|[Week 51](https://reddit.com/9s9el5)||||
|[Week 2](https://www.reddit.com/4s2xqm)|[Week 12](https://www.reddit.com/5acb1t)|[Week 22](https://www.reddit.com/64jwde)|[Week 32](https://www.reddit.com/72ab5y)|[Week 42](https://www.reddit.com/7wvjfk)|[Week 52](https://reddit.com/a4opot)||
|[Week 3](https://www.reddit.com/4t7mqm)|[Week 13](https://www.reddit.com/5cwfb6)|[Week 23](https://www.reddit.com/674331)|[Week 33](https://www.reddit.com/75405d)|[Week 43](https://www.reddit.com/807ex4)|[Week 53](https://reddit.com/a8yaro)||
|[Week 4](https://www.reddit.com/4ub2kw)|[Week 14](https://www.reddit.com/5fc5mh)|[Week 24](https://www.reddit.com/68hhhb)|[Week 34](https://www.reddit.com/782js9)|[Week 44](https://reddit.com/8aluhs)|[Week 54](https://reddit.com/ad9ssz)||
|[Week 5](https://www.reddit.com/4xomf7)|[Week 15](https://www.reddit.com/5hy4ur)|[Week 25](https://www.reddit.com/69teiz)|[Week 35](https://www.reddit.com/7b0av0)|[Week 45](https://reddit.com/8tnnez)|[Week 55](https://reddit.com/ai29gi)||
|[Week 6](https://www.reddit.com/4zcyvk)|[Week 16](https://www.reddit.com/5kd6vd)|[Week 26](https://www.reddit.com/6d7nb1)|[Week 36](https://www.reddit.com/7e3fx6)|[Week 46](https://reddit.com/8x48oj)|[Week 56](https://reddit.com/ap8ctk)||
|[Week 7](https://www.reddit.com/52t6mo)|[Week 17](https://www.reddit.com/5ob7dx)|[Week 27](https://www.reddit.com/6gngwc)|[Week 37](https://www.reddit.com/7hcc2c)|[Week 47](https://reddit.com/910jmh)|[Week 57](https://reddit.com/auci7c)||
|[Week 8](https://www.reddit.com/53heol)|[Week 18](https://www.reddit.com/5r14yd)|[Week 28](https://www.reddit.com/6jgdva)|[Week 38](https://www.reddit.com/7kgcqr)|[Week 48](https://reddit.com/94up0g)|[Week 58](https://reddit.com/azjoht)||
|[Week 9](https://www.reddit.com/54kvsu)|[Week 19](https://www.reddit.com/5tt9cz)|[Week 29](https://www.reddit.com/6m9l1v)|[Week 39](https://www.reddit.com/7nayri)|[Week 49](https://reddit.com/98n2rt)|[Week 59](https://reddit.com/b50r5y)||
|[Week 10](https://www.reddit.com/56s2oa)|[Week 20](https://www.reddit.com/5wh2wb)|[Week 30](https://www.reddit.com/6p3ha7)|[Week 40](https://www.reddit.com/7qel9p)|[Week 50](https://reddit.com/9cf158)||
Most upvoted papers two weeks ago:
/u/sander314: https://arxiv.org/pdf/1708.02002.pdf
/u/dondiegoalonso: https://arxiv.org/abs/1903.10404
/u/groovyJesus: [Convex Neural Networks(pdf)](https://www.iro.umontreal.ca/~lisa/pointeurs/convex_nnet_nips2005.pdf)
Besides that, there are no rules, have fun.
/r/MachineLearning
https://redd.it/bakew0
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|51-60|
|----|-----|-----|-----|-----|-----|
|[Week 1](https://www.reddit.com/4qyjiq)|[Week 11](https://www.reddit.com/57xw56)|[Week 21](https://www.reddit.com/60ildf)|[Week 31](https://www.reddit.com/6s0k1u)|[Week 41](https://www.reddit.com/7tn2ax)|[Week 51](https://reddit.com/9s9el5)||||
|[Week 2](https://www.reddit.com/4s2xqm)|[Week 12](https://www.reddit.com/5acb1t)|[Week 22](https://www.reddit.com/64jwde)|[Week 32](https://www.reddit.com/72ab5y)|[Week 42](https://www.reddit.com/7wvjfk)|[Week 52](https://reddit.com/a4opot)||
|[Week 3](https://www.reddit.com/4t7mqm)|[Week 13](https://www.reddit.com/5cwfb6)|[Week 23](https://www.reddit.com/674331)|[Week 33](https://www.reddit.com/75405d)|[Week 43](https://www.reddit.com/807ex4)|[Week 53](https://reddit.com/a8yaro)||
|[Week 4](https://www.reddit.com/4ub2kw)|[Week 14](https://www.reddit.com/5fc5mh)|[Week 24](https://www.reddit.com/68hhhb)|[Week 34](https://www.reddit.com/782js9)|[Week 44](https://reddit.com/8aluhs)|[Week 54](https://reddit.com/ad9ssz)||
|[Week 5](https://www.reddit.com/4xomf7)|[Week 15](https://www.reddit.com/5hy4ur)|[Week 25](https://www.reddit.com/69teiz)|[Week 35](https://www.reddit.com/7b0av0)|[Week 45](https://reddit.com/8tnnez)|[Week 55](https://reddit.com/ai29gi)||
|[Week 6](https://www.reddit.com/4zcyvk)|[Week 16](https://www.reddit.com/5kd6vd)|[Week 26](https://www.reddit.com/6d7nb1)|[Week 36](https://www.reddit.com/7e3fx6)|[Week 46](https://reddit.com/8x48oj)|[Week 56](https://reddit.com/ap8ctk)||
|[Week 7](https://www.reddit.com/52t6mo)|[Week 17](https://www.reddit.com/5ob7dx)|[Week 27](https://www.reddit.com/6gngwc)|[Week 37](https://www.reddit.com/7hcc2c)|[Week 47](https://reddit.com/910jmh)|[Week 57](https://reddit.com/auci7c)||
|[Week 8](https://www.reddit.com/53heol)|[Week 18](https://www.reddit.com/5r14yd)|[Week 28](https://www.reddit.com/6jgdva)|[Week 38](https://www.reddit.com/7kgcqr)|[Week 48](https://reddit.com/94up0g)|[Week 58](https://reddit.com/azjoht)||
|[Week 9](https://www.reddit.com/54kvsu)|[Week 19](https://www.reddit.com/5tt9cz)|[Week 29](https://www.reddit.com/6m9l1v)|[Week 39](https://www.reddit.com/7nayri)|[Week 49](https://reddit.com/98n2rt)|[Week 59](https://reddit.com/b50r5y)||
|[Week 10](https://www.reddit.com/56s2oa)|[Week 20](https://www.reddit.com/5wh2wb)|[Week 30](https://www.reddit.com/6p3ha7)|[Week 40](https://www.reddit.com/7qel9p)|[Week 50](https://reddit.com/9cf158)||
Most upvoted papers two weeks ago:
/u/sander314: https://arxiv.org/pdf/1708.02002.pdf
/u/dondiegoalonso: https://arxiv.org/abs/1903.10404
/u/groovyJesus: [Convex Neural Networks(pdf)](https://www.iro.umontreal.ca/~lisa/pointeurs/convex_nnet_nips2005.pdf)
Besides that, there are no rules, have fun.
/r/MachineLearning
https://redd.it/bakew0
Way to embed Jupyter Notebook into PowerPoint?
As the title suggests, I’m trying to incorporate notebooks into my PowerPoint presentation. Is there a way to do this? I feel like it can be done by creating an object within the PowerPoint itself, but haven’t been able to find anything online that could point me in the right direction. If this isn’t the right place to post this, sorry! Would be happy for directions to the appropriate sub
/r/JupyterNotebooks
https://redd.it/bdzr3x
As the title suggests, I’m trying to incorporate notebooks into my PowerPoint presentation. Is there a way to do this? I feel like it can be done by creating an object within the PowerPoint itself, but haven’t been able to find anything online that could point me in the right direction. If this isn’t the right place to post this, sorry! Would be happy for directions to the appropriate sub
/r/JupyterNotebooks
https://redd.it/bdzr3x
reddit
r/JupyterNotebooks - Way to embed Jupyter Notebook into PowerPoint?
3 votes and 3 comments so far on Reddit
How to implement two levels of multi-tenancy with some data shared and some private?
My project currently uses a fork of django-organizations to achieve the following for managing utilities companies:
Right now I'm using one database per utilities company, and the client businesses which the utilities company services.
One utilities company:
- Has multiple client businesses (a 'client' model), and certain staff users can add or remove client businesses from the utilities company
- Each client business can have multiple users which manage that client business
- Each user can belong to multiple client businesses, and the person in charge of the client business can invite or remove users
- The utilities company has users that maintain the district
In [this example diagram](https://imgur.com/CYRnRbX), User C belongs to both Client 1 and Client 2. Users G through J maintain the utility company itself.
This has been working great. I have separation of data for my utilities companies (one per database), and the interactions of clients - until now - have been relatively minor. They have a few actions they can take, and can view some reports.
---
*Two things have occurred that are making me consider adjusting the entire structure of my app:*
* Utility companies may serve some of the same clients, and with one utilities company per database, each client would have to have
/r/djangolearning
https://redd.it/bdxwu7
My project currently uses a fork of django-organizations to achieve the following for managing utilities companies:
Right now I'm using one database per utilities company, and the client businesses which the utilities company services.
One utilities company:
- Has multiple client businesses (a 'client' model), and certain staff users can add or remove client businesses from the utilities company
- Each client business can have multiple users which manage that client business
- Each user can belong to multiple client businesses, and the person in charge of the client business can invite or remove users
- The utilities company has users that maintain the district
In [this example diagram](https://imgur.com/CYRnRbX), User C belongs to both Client 1 and Client 2. Users G through J maintain the utility company itself.
This has been working great. I have separation of data for my utilities companies (one per database), and the interactions of clients - until now - have been relatively minor. They have a few actions they can take, and can view some reports.
---
*Two things have occurred that are making me consider adjusting the entire structure of my app:*
* Utility companies may serve some of the same clients, and with one utilities company per database, each client would have to have
/r/djangolearning
https://redd.it/bdxwu7
Imgur
Single Utility Company Per Database