Prototype of Python-powered IoT device, gets how many subs are in r/Python plays sound when new ones are added: https://www.reddit.com/r/Python/comments/aqapmb/prototype_of_pythonpowered_iot_device_gets_how/
reddit
r/Python - Prototype of Python-powered IoT device, gets how many subs are in r/Python plays sound when new ones are added
1 vote and 0 comments so far on Reddit
How to efficiently use asyncio when calling a method on a BaseProxy?: https://stackoverflow.com/questions/54636691/how-to-efficiently-use-asyncio-when-calling-a-method-on-a-baseproxy
Stack Overflow
How to efficiently use asyncio when calling a method on a BaseProxy?
I'm working on an application that uses LevelDB and that uses multiple long-lived processes for different tasks.
Since LevelDB does only allow a single process maintaining a database connection, a...
Since LevelDB does only allow a single process maintaining a database connection, a...
How to serialize umongo documents: https://stackoverflow.com/questions/54570321/how-to-serialize-umongo-documents
Stack Overflow
How to serialize umongo documents
Let's say I have the following example:
from datetime import datetime
import dill
from pymongo import MongoClient
from umongo import Instance, Document, fields, validate
db = MongoClient().test
from datetime import datetime
import dill
from pymongo import MongoClient
from umongo import Instance, Document, fields, validate
db = MongoClient().test
Update Sharepoint 2013 using Python3: https://stackoverflow.com/questions/51351647/update-sharepoint-2013-using-python3
Stack Overflow
Update Sharepoint 2013 using Python3
I am currently trying to update a Sharepoint 2013 list.
This is the module that I am using using to accomplish that task. However, when I run the post task I receive the following error:
"b'{"er...
This is the module that I am using using to accomplish that task. However, when I run the post task I receive the following error:
"b'{"er...
Python Weekly - Issue 384: https://mailchi.mp/pythonweekly/python-weekly-issue-384
How to replicate Google Maps distance using Python: https://www.reddit.com/r/Python/comments/aqjr3c/how_to_replicate_google_maps_distance_using_python/
reddit
r/Python - How to replicate Google Maps distance using Python
7 votes and 0 comments so far on Reddit
Jupyter Lab hide vertical navigation pane: https://stackoverflow.com/questions/54640350/jupyter-lab-hide-vertical-navigation-pane
Stack Overflow
Jupyter Lab hide vertical navigation pane
There's an answer here showing how to minimize the navigation pane to make it show the icons only. Basically, you just need to click the first folder icon on the left.
How can I hide the vertical
How can I hide the vertical
Multiple Bounding Box in numpy array: https://stackoverflow.com/questions/54638817/multiple-bounding-box-in-numpy-array
Stack Overflow
Multiple Bounding Box in numpy array
I have a 2D numpy array which looks like
array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
[0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
[0., 0., ...
array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
[0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
[0., 0., ...
Python multiprocessing crashes docker container: https://stackoverflow.com/questions/54650904/python-multiprocessing-crashes-docker-container
Stack Overflow
Python multiprocessing crashes docker container
There is simple python multiprocessing code that works like a charm, when I run it in console:
# mp.py
import multiprocessing as mp
def do_smth():
print('something')
if __name__ == '__main__...
# mp.py
import multiprocessing as mp
def do_smth():
print('something')
if __name__ == '__main__...
How to determine if numba's prange actually works correctly?: https://stackoverflow.com/questions/54583152/how-to-determine-if-numbas-prange-actually-works-correctly
Stack Overflow
How to determine if numba's prange actually works correctly?
In another Q+A (Can I perform dynamic cumsum of rows in pandas?) I made a comment regarding the correctness of using prange about this code (of this answer):
from numba import njit, prange
@njit
...
from numba import njit, prange
@njit
...
Can you learn Python on your own through books and online videos to get a job? If so, how long did it take you?: https://www.reddit.com/r/Python/comments/aqnlvl/can_you_learn_python_on_your_own_through_books/
reddit
r/Python - Can you learn Python on your own through books and online videos to get a job? If so, how long did it take you?
1 vote and 0 comments so far on Reddit
For those of you who got hired to work with Python, what coding challenges did they have have you do during the interviewing process?: https://www.reddit.com/r/Python/comments/aqrz1a/for_those_of_you_who_got_hired_to_work_with/
reddit
For those of you who got hired to work with Python, what coding...
I'd also appreciate knowing whether you thought those challenges accurately accessed the coding skills you needed to do your job.
allowing django-oauth-toolkit to issue jwt instead of random strings: https://stackoverflow.com/questions/54623930/allowing-django-oauth-toolkit-to-issue-jwt-instead-of-random-strings
Stack Overflow
allowing django-oauth-toolkit to issue jwt instead of random strings
I understand that django-oauth-toolkit is using oauthlib and oauthlib provides an example on the implementation of using jwt instead of random strings. however i don't understand how i can get django-
Sequential execution of commands using paramiko: https://stackoverflow.com/questions/54649389/sequential-execution-of-commands-using-paramiko
Stack Overflow
Sequential execution of commands using paramiko
Using Paramiko, I am running a set of commands but few commands return output in a long time which in turn hamper execution of remaining commands.
How can I program so that until and unless execut...
How can I program so that until and unless execut...
Is it possible to subclass a collection in motor?: https://stackoverflow.com/questions/54664297/is-it-possible-to-subclass-a-collection-in-motor
Stack Overflow
Is it possible to subclass a collection in motor?
So I'm using Motor in my application and I'm looking to create helper functions for interacting with the database, I initially looked into using MongoTurbine but I'm biased against using an ORM, al...
Web application Kerberos authentication: Is the proper way to combine with cookies?: https://stackoverflow.com/questions/54653735/web-application-kerberos-authentication-is-the-proper-way-to-combine-with-cooki
Stack Overflow
Web application Kerberos authentication: Is the proper way to combine with cookies?
The scenario:
An enterprise, behind-the-firewall Python web application.
Kerberos should be used to authenticate the users.
I have working code that sends the correct responses from the server (the
An enterprise, behind-the-firewall Python web application.
Kerberos should be used to authenticate the users.
I have working code that sends the correct responses from the server (the
GitHub - encode/databases: Async database support for Python. 🗄: https://www.reddit.com/r/Python/comments/aqjrcd/github_encodedatabases_async_database_support_for/
reddit
r/Python - GitHub - encode/databases: Async database support for Python. 🗄
1 vote and 0 comments so far on Reddit
Making my first program ever! Recently finished tutorials on python and spent forever attempting to brainstorm ideas about where to go next. I decided to do something useful and automate some of the things I do at work every day! It’s incomplete but I am wayyyy too excited to keep it to myself 😅.: https://www.reddit.com/r/Python/comments/ar0fcf/making_my_first_program_ever_recently_finished/
reddit
r/Python - Making my first program ever! Recently finished tutorials on python and spent forever attempting to brainstorm ideas…
503 votes and 98 comments so far on Reddit