After trying to learn from multiple tutorials I’m so frustrated. I’ll pay someone to tutor me.
Pm me your rates. Must speak English. I have hosting and already know python.
/r/djangolearning
https://redd.it/7lpzcy
Pm me your rates. Must speak English. I have hosting and already know python.
/r/djangolearning
https://redd.it/7lpzcy
reddit
After trying to learn from multiple tutorials... • r/djangolearning
Pm me your rates. Must speak English. I have hosting and already know python.
Add more or remove Feature with ManyToManyField?
[take this link for example,](https://bootsnipp.com/snippets/featured/dynamic-form-fields-add-amp-remove) I want to implement on my site.
I am using Many to Many field, which is connected to a different table, I have explained the issue [here](https://www.reddit.com/r/django/comments/7l88th/how_to_implement_manytomany_field_in_front_end/)
https://www.reddit.com/r/django/comments/7l88th/how_to_implement_manytomany_field_in_front_end/.
can someone help me here?
/r/djangolearning
https://redd.it/7lnmly
[take this link for example,](https://bootsnipp.com/snippets/featured/dynamic-form-fields-add-amp-remove) I want to implement on my site.
I am using Many to Many field, which is connected to a different table, I have explained the issue [here](https://www.reddit.com/r/django/comments/7l88th/how_to_implement_manytomany_field_in_front_end/)
https://www.reddit.com/r/django/comments/7l88th/how_to_implement_manytomany_field_in_front_end/.
can someone help me here?
/r/djangolearning
https://redd.it/7lnmly
Bootsnipp.com
Dynamic Form Fields - Add & Remove
High quality Bootstrap 2.3.2 Snippet by cgrdavies. Share yours today!
django-admin.py or django-admin without .py?
When I first started using Django, I picked up the habit of writing
django-admin.py startproject my_project .
Now I'm seeing this written without the .py:
django-admin startproject my_project .
I noticed this changed in the tutorial starting with Django 1.8, but keeping the .py works on my system in 2.0.
Is there a clear recommendation to use the `django-admin` command without the .py?
/r/django
https://redd.it/7mg8q7
When I first started using Django, I picked up the habit of writing
django-admin.py startproject my_project .
Now I'm seeing this written without the .py:
django-admin startproject my_project .
I noticed this changed in the tutorial starting with Django 1.8, but keeping the .py works on my system in 2.0.
Is there a clear recommendation to use the `django-admin` command without the .py?
/r/django
https://redd.it/7mg8q7
reddit
django-admin.py or django-admin without .py? • r/django
When I first started using Django, I picked up the habit of writing django-admin.py startproject my_project . Now I'm seeing this written...
Microsoft Considers Adding Python as an Official Scripting Language to Excel
https://www.bleepingcomputer.com/news/microsoft/microsoft-considers-adding-python-as-an-official-scripting-language-to-excel/
/r/Python
https://redd.it/7mebxa
https://www.bleepingcomputer.com/news/microsoft/microsoft-considers-adding-python-as-an-official-scripting-language-to-excel/
/r/Python
https://redd.it/7mebxa
BleepingComputer
Microsoft Considers Adding Python as an Official Scripting Language to Excel
Microsoft is considering adding Python as one of the official Excel scripting languages, according to a topic on Excel's feedback hub opened last month.
Best Python setup for young programmer
We got my young (13 y/o) sibling (who has a strong math interest) a computer, so naturally I bought the [Python for Kids](https://www.nostarch.com/pythonforkids) book (as well as [Doing Math With Python](https://www.nostarch.com/doingmathwithpython)).
The problem now is the python setup. I initially installed Anaconda and PyCharm, but realized that it was a bit more complicated (for a 13 year old) that I anticipated (virtual environments and what-not).
Whats the recommended python setup for kids (on windows 10). Im assuming IDLE? But what about installing modules? Is there any super user friendly IDE (or the like) software that they can use?
Edit: the issue isn't editing code, Notepad++, atom, sublime, or any of non-IDE text editors should do fine. The issue is easily (think push-button) running the code. I learned C/C++ on Bloodshead C++ IDE if that gives a better picture of what I'm thinking.
/r/Python
https://redd.it/7mhs16
We got my young (13 y/o) sibling (who has a strong math interest) a computer, so naturally I bought the [Python for Kids](https://www.nostarch.com/pythonforkids) book (as well as [Doing Math With Python](https://www.nostarch.com/doingmathwithpython)).
The problem now is the python setup. I initially installed Anaconda and PyCharm, but realized that it was a bit more complicated (for a 13 year old) that I anticipated (virtual environments and what-not).
Whats the recommended python setup for kids (on windows 10). Im assuming IDLE? But what about installing modules? Is there any super user friendly IDE (or the like) software that they can use?
Edit: the issue isn't editing code, Notepad++, atom, sublime, or any of non-IDE text editors should do fine. The issue is easily (think push-button) running the code. I learned C/C++ on Bloodshead C++ IDE if that gives a better picture of what I'm thinking.
/r/Python
https://redd.it/7mhs16
Nostarch
Python for Kids, 2nd Edition
The second edition of the best-selling Python for Kids—which brings you (and your parents) into the world of programming—has been completely updated to use the latest version of Python, along with
Webapp with DRF: ending up with too many view-specific serializers?
As stated in the title, my webapp is built on DRF, and though I **love** how easy serializers are to use, I feel like I'm almost creating specialized serializers for the data each view needs. The alternative seems to be to have one serializer that returns an overkill amount of data and have the front end deal with sorting out what it needs vs doesnt need.
for example: I have a Client (C) model and it has a related OnboardingStatus (OS) model and a AccountStatistics (AS) model. I can either make 3 serializers to send C alone/C+OS/C+AS
**OR** I can make 1 serializer that sends C+OS+AS all the time. (I simplified here, my data is bigger and a bit more nested)
How do the fine redditors of /r/django deal with this issue? Is there a smarter way that I'm not seeing?
/r/django
https://redd.it/7me9f8
As stated in the title, my webapp is built on DRF, and though I **love** how easy serializers are to use, I feel like I'm almost creating specialized serializers for the data each view needs. The alternative seems to be to have one serializer that returns an overkill amount of data and have the front end deal with sorting out what it needs vs doesnt need.
for example: I have a Client (C) model and it has a related OnboardingStatus (OS) model and a AccountStatistics (AS) model. I can either make 3 serializers to send C alone/C+OS/C+AS
**OR** I can make 1 serializer that sends C+OS+AS all the time. (I simplified here, my data is bigger and a bit more nested)
How do the fine redditors of /r/django deal with this issue? Is there a smarter way that I'm not seeing?
/r/django
https://redd.it/7me9f8
reddit
Webapp with DRF: ending up with too many view-specific... • r/django
As stated in the title, my webapp is built on DRF, and though I **love** how easy serializers are to use, I feel like I'm almost creating...
Dramatiq: Fast, Reliable, and Simple Distributed Task Queue for Python 3 (Interview)
https://www.podcastinit.com/dramatiq-with-bogdan-popa-episode-141/
/r/Python
https://redd.it/7mgbi5
https://www.podcastinit.com/dramatiq-with-bogdan-popa-episode-141/
/r/Python
https://redd.it/7mgbi5
Podcast.__init__('Python')
Dramatiq: Distributed Task Queue For Python 3 with Bogdan Popa - Episode 141
A majority of projects will eventually need some way of managing periodic or long-running tasks outside of the context of the main application. This is where a distributed task queue becomes useful. For many in the Python community the standard option is…
[D] Superhuman AI for heads-up no-limit poker: Libratus beats top professionals
https://youtu.be/2dX0lwaQRX0
/r/MachineLearning
https://redd.it/7mg73w
https://youtu.be/2dX0lwaQRX0
/r/MachineLearning
https://redd.it/7mg73w
YouTube
Superhuman AI for heads-up no-limit poker: Libratus beats top professionals
This talk gives a high-level explanation of Libratus, the first AI to defeat top humans in no-limit poker. A paper on the AI was published in Science in 2017.
No-limit Texas hold’em is the most popular form of poker. Despite AI successes in perfect-information…
No-limit Texas hold’em is the most popular form of poker. Despite AI successes in perfect-information…
Matplot lib - how to replicate Exzel ability to display (x,y) when you mouse over a data point?
Is this even a possibility? Thanks.
/r/Python
https://redd.it/7mjv0j
Is this even a possibility? Thanks.
/r/Python
https://redd.it/7mjv0j
reddit
Matplot lib - how to replicate Exzel ability to display... • r/Python
Is this even a possibility? Thanks.
Can fields have attributes?
A quick introduction for my question:
Creating a financial app. Main model is Company, with a child called Balancesheet. In the balancesheet I have fields like "cash", "goodwill" and other accounting stuff.
Items in the balancesheet can be classified into financial and operating assets. Cash is a financial asset. I want a way to give cash that attribute. And other fields might have the attribute of an operating asset.
Do I really have to create a child model for every item on the balancesheet just to give them this attribute?
/r/django
https://redd.it/7mkk35
A quick introduction for my question:
Creating a financial app. Main model is Company, with a child called Balancesheet. In the balancesheet I have fields like "cash", "goodwill" and other accounting stuff.
Items in the balancesheet can be classified into financial and operating assets. Cash is a financial asset. I want a way to give cash that attribute. And other fields might have the attribute of an operating asset.
Do I really have to create a child model for every item on the balancesheet just to give them this attribute?
/r/django
https://redd.it/7mkk35
reddit
Can fields have attributes? • r/django
A quick introduction for my question: Creating a financial app. Main model is Company, with a child called Balancesheet. In the balancesheet I...
Creating a .exe file from a .py file keeps failing
I'm about to lose my mind here. I've become quite proficient in Python over the past few months but for the life me I cannot create a .exe file from my Python files. I have tried watching dozens of YouTube tutorials, looked at 100s of examples, websites and forums and absolutely nothing works. I tried using setup.py examples from the internet, pyinstaller, cx_Freeze, pyBuilder, py2exe and pynsist.
Pynsist is the only one that never gave me errors but it did not create a .exe file for my application. All the other applications either give me blank folders, IndexError: tuple out of range errors, or no commands supplied errors. I tried the command: python setup.py build and the exe it created just produces a ModuleNotFoundError message.
What could I be doing wrong or where can I go to get this done properly. Because right now I'm beginning to think this impossible to do. Is there a tool that can be used to do this that ACTUALLY works and actually explains how to do this? What can I do?
I am running Python 3.6, and the ".exe" files these modules create only seem to work on my computer, not on anyone elses', even if they have Python on them. At best it opens Code Writer on other computers I have tested my .exes on.
/r/Python
https://redd.it/7mliro
I'm about to lose my mind here. I've become quite proficient in Python over the past few months but for the life me I cannot create a .exe file from my Python files. I have tried watching dozens of YouTube tutorials, looked at 100s of examples, websites and forums and absolutely nothing works. I tried using setup.py examples from the internet, pyinstaller, cx_Freeze, pyBuilder, py2exe and pynsist.
Pynsist is the only one that never gave me errors but it did not create a .exe file for my application. All the other applications either give me blank folders, IndexError: tuple out of range errors, or no commands supplied errors. I tried the command: python setup.py build and the exe it created just produces a ModuleNotFoundError message.
What could I be doing wrong or where can I go to get this done properly. Because right now I'm beginning to think this impossible to do. Is there a tool that can be used to do this that ACTUALLY works and actually explains how to do this? What can I do?
I am running Python 3.6, and the ".exe" files these modules create only seem to work on my computer, not on anyone elses', even if they have Python on them. At best it opens Code Writer on other computers I have tested my .exes on.
/r/Python
https://redd.it/7mliro
reddit
Creating a .exe file from a .py file keeps failing • r/Python
I'm about to lose my mind here. I've become quite proficient in Python over the past few months but for the life me I cannot create a .exe file...
ELI5: What are the benefits of Redis, and how do you use it with RDBMS?
Let's say I have a PostGIS database with a lot related models. Would I have to basically aggregate that data into NoSQL type models to store them in redis? At what point do you move the data from models to Redis?
Note that I am a redis nooblet, so my understanding may be wrong... Just trying to figure out if it even makes sense for me to learn and implement redis. Thanks.
Ninja edit: Also, I guess geographical searches should still be handled by Django's GIS rather than me rewriting it all in Redis, if I go ahead and use that. How do you guys manage it?
/r/django
https://redd.it/7mm71s
Let's say I have a PostGIS database with a lot related models. Would I have to basically aggregate that data into NoSQL type models to store them in redis? At what point do you move the data from models to Redis?
Note that I am a redis nooblet, so my understanding may be wrong... Just trying to figure out if it even makes sense for me to learn and implement redis. Thanks.
Ninja edit: Also, I guess geographical searches should still be handled by Django's GIS rather than me rewriting it all in Redis, if I go ahead and use that. How do you guys manage it?
/r/django
https://redd.it/7mm71s
reddit
ELI5: What are the benefits of Redis, and how do you... • r/django
Let's say I have a PostGIS database with a lot related models. Would I have to basically aggregate that data into NoSQL type models to store them...
Parsing “Ask HN: Who is hiring?” with Python and Hacker News API
https://www.alexkras.com/parse-ask-hn-who-is-hiring-python-and-hacker-news-api/
/r/Python
https://redd.it/7mlqil
https://www.alexkras.com/parse-ask-hn-who-is-hiring-python-and-hacker-news-api/
/r/Python
https://redd.it/7mlqil
alexkras.com
Parsing “Ask HN: Who is hiring?” with Python and Hacker News API
Have you heard of Hacker News? It’s a great mini social network dedicated to all things tech. Once a month they post a thread called “Ask HN: Who is hiring?”, where anyone can list their job openings.
Jupyter Notebook in the cloud with browser-based Linux UI
http://engineering.paiza.io/entry/paizacloud_jupyter_notebook
/r/IPython
https://redd.it/7mn9pw
http://engineering.paiza.io/entry/paizacloud_jupyter_notebook
/r/IPython
https://redd.it/7mn9pw
Paiza Engineering Blog
Jupyter Notebook online in 3 seconds with PaizaCloud Cloud IDE - Paiza Engineering Blog
(English article is here) Hello I'm Tsuneo(@yoshiokatsuneo). Python is one of the most popular programming languages for data processing, Web service, Web scrap…
3D isotropic wavelets, texture features, and contour interpolation available via pip / conda with ITK 4.13.0 release
https://blog.kitware.com/itk-4-13-0-has-been-released/
/r/IPython
https://redd.it/7mn7f6
https://blog.kitware.com/itk-4-13-0-has-been-released/
/r/IPython
https://redd.it/7mn7f6
The Kitware Blog
ITK 4.13.0 has been released
On behalf of the Insight Segmentation and Registration Toolkit (ITK) Community, we are happy to announce the release of ITK 4.13.0! Download ITK Here are a few selected highlights for this release:…
[AF] Convert Oracle query to SQLAlchemy ORM
I have been trying to convert Oracle query to SQLAlchemy specifically ORM Here is the SQL I want to convert:
SELECT p.id,
p.name,
p.address,
to_char(t.s_time, 'mm/dd/yyyy hh:mi:ss AM') date_s,
t.date_h,
FROM p_table p,
(SELECT t_id,
dept,
ROW_NUMBER() OVER(PARTITION BY t_id ORDER BY dept) AS row_id
FROM t_table
WHERE t_id = :t_id
AND actual_time IS NULL) t
WHERE p.id = :id_var
AND row_id = 1
ORDER BY date_c DESC
Here is my attempt on converting this:
row_id = func.row_number().over(partition_by=TModel.t_id, order_by=TModel.dept)
sub_query = db.session.query(TModel.t_id, TModel.dept)\
.add_column(row_id)\
.from_self().filter(row_id == 1)\
.filter(TModel.t_id == t_id)\
.filter(TModel.actual_time == None)\
.label("sub_query")
q = db.session.query(PModel.id, PModel.name,
PModel.address, TModel.s_time, TModel.temp, sub_query)\
.filter(PModel.t_id == t_id)\
.order_by(PModel.date_complete.desc())\
.all()
print q
It seems I didn't correctly convert it into sqlalchemy it returns more than it is expecting for example running the SQL (5 rows) vs SQL(20+ rows) . Any help is greatly appreciated. Thank you!
/r/flask
https://redd.it/7mmjwi
I have been trying to convert Oracle query to SQLAlchemy specifically ORM Here is the SQL I want to convert:
SELECT p.id,
p.name,
p.address,
to_char(t.s_time, 'mm/dd/yyyy hh:mi:ss AM') date_s,
t.date_h,
FROM p_table p,
(SELECT t_id,
dept,
ROW_NUMBER() OVER(PARTITION BY t_id ORDER BY dept) AS row_id
FROM t_table
WHERE t_id = :t_id
AND actual_time IS NULL) t
WHERE p.id = :id_var
AND row_id = 1
ORDER BY date_c DESC
Here is my attempt on converting this:
row_id = func.row_number().over(partition_by=TModel.t_id, order_by=TModel.dept)
sub_query = db.session.query(TModel.t_id, TModel.dept)\
.add_column(row_id)\
.from_self().filter(row_id == 1)\
.filter(TModel.t_id == t_id)\
.filter(TModel.actual_time == None)\
.label("sub_query")
q = db.session.query(PModel.id, PModel.name,
PModel.address, TModel.s_time, TModel.temp, sub_query)\
.filter(PModel.t_id == t_id)\
.order_by(PModel.date_complete.desc())\
.all()
print q
It seems I didn't correctly convert it into sqlalchemy it returns more than it is expecting for example running the SQL (5 rows) vs SQL(20+ rows) . Any help is greatly appreciated. Thank you!
/r/flask
https://redd.it/7mmjwi
reddit
[AF] Convert Oracle query to SQLAlchemy ORM • r/flask
I have been trying to convert Oracle query to SQLAlchemy specifically ORM Here is the SQL I want to convert: SELECT p.id, p.name, ...
Compiling Jinja2 templates?
Hello there,
I have a flask app and i use pyinstaller to make a stndalone version. My problem is that i have to serve the static files and the templates on a separate folder or else the app cannot find them. Is there a way o compile the html jinja templates as well ?
/r/flask
https://redd.it/7mgahs
Hello there,
I have a flask app and i use pyinstaller to make a stndalone version. My problem is that i have to serve the static files and the templates on a separate folder or else the app cannot find them. Is there a way o compile the html jinja templates as well ?
/r/flask
https://redd.it/7mgahs
reddit
Compiling Jinja2 templates? • r/flask
Hello there, I have a flask app and i use pyinstaller to make a stndalone version. My problem is that i have to serve the static files and the...
[P]style2paintsII: The Most Accurate, Most Natural, Most Harmonious Anime Sketch Colorization and the Best Anime Style Transfer
/r/MachineLearning
https://redd.it/7mlwf4
/r/MachineLearning
https://redd.it/7mlwf4