workspace
stringclasses
1 value
channel
stringclasses
1 value
sentences
stringlengths
1
3.93k
ts
stringlengths
26
26
user
stringlengths
2
11
sentence_id
stringlengths
44
53
timestamp
float64
1.5B
1.56B
__index_level_0__
int64
0
106k
pythondev
help
I thought ORM was an abstraction over Core which by itself does nothing
2017-09-02T06:29:46.000013
Suellen
pythondev_help_Suellen_2017-09-02T06:29:46.000013
1,504,333,786.000013
91,803
pythondev
help
Or it's just too complex to sort out at once?
2017-09-02T06:29:56.000002
Suellen
pythondev_help_Suellen_2017-09-02T06:29:56.000002
1,504,333,796.000002
91,804
pythondev
help
no idea
2017-09-02T06:30:12.000041
Ciera
pythondev_help_Ciera_2017-09-02T06:30:12.000041
1,504,333,812.000041
91,805
pythondev
help
Well, if you call a function that returns some objects, that function doesn't return until the objects are available, so that counts as blocking in some sense
2017-09-02T06:30:27.000035
Gabriele
pythondev_help_Gabriele_2017-09-02T06:30:27.000035
1,504,333,827.000035
91,806
pythondev
help
I think people are trying to focus on core first as it's the most important part
2017-09-02T06:30:56.000018
Ciera
pythondev_help_Ciera_2017-09-02T06:30:56.000018
1,504,333,856.000018
91,807
pythondev
help
true that, even Core is fantastic
2017-09-02T06:31:11.000037
Suellen
pythondev_help_Suellen_2017-09-02T06:31:11.000037
1,504,333,871.000037
91,808
pythondev
help
I think Core is now async and only ORM is the problem. Also there is a great article by Mike: <http://techspot.zzzeek.org/2015/02/15/asynchronous-python-and-databases/>
2017-09-02T06:36:47.000069
Adalberto
pythondev_help_Adalberto_2017-09-02T06:36:47.000069
1,504,334,207.000069
91,809
pythondev
help
great article, in which he says he doesn't care about async and nobody should :confused:
2017-09-02T06:37:38.000038
Suellen
pythondev_help_Suellen_2017-09-02T06:37:38.000038
1,504,334,258.000038
91,810
pythondev
help
<@Suellen> yes, it's a bit strange that he says that. But he also recommends gevent to solve the same problems, and some long time Python users told me that using gevent is insane in production.
2017-09-02T06:38:51.000051
Adalberto
pythondev_help_Adalberto_2017-09-02T06:38:51.000051
1,504,334,331.000051
91,811
pythondev
help
It's pretty clear from the Core docs that it's not intrinsically an async API
2017-09-02T06:39:23.000040
Gabriele
pythondev_help_Gabriele_2017-09-02T06:39:23.000040
1,504,334,363.00004
91,812
pythondev
help
gevent isn't really insane, it has a looong history and is stable
2017-09-02T06:39:41.000044
Suellen
pythondev_help_Suellen_2017-09-02T06:39:41.000044
1,504,334,381.000044
91,813
pythondev
help
This reply: <https://groups.google.com/d/msg/pylons-discuss/hI9zY4JYBU4/yNGGbE-IAgAJ>
2017-09-02T06:39:45.000056
Adalberto
pythondev_help_Adalberto_2017-09-02T06:39:45.000056
1,504,334,385.000056
91,814
pythondev
help
but it IS a very non-native approach
2017-09-02T06:39:53.000001
Suellen
pythondev_help_Suellen_2017-09-02T06:39:53.000001
1,504,334,393.000001
91,815
pythondev
help
funny that he says it's inappropriate to use async with databases
2017-09-02T06:42:38.000054
Suellen
pythondev_help_Suellen_2017-09-02T06:42:38.000054
1,504,334,558.000054
91,816
pythondev
help
when threads are just async functions from the POV of the OS
2017-09-02T06:42:48.000067
Suellen
pythondev_help_Suellen_2017-09-02T06:42:48.000067
1,504,334,568.000067
91,817
pythondev
help
fyi this might be more a topic for <#C07G5276F|async> :slightly_smiling_face:
2017-09-02T06:43:16.000041
Ciera
pythondev_help_Ciera_2017-09-02T06:43:16.000041
1,504,334,596.000041
91,818
pythondev
help
sorry mr admin
2017-09-02T06:43:50.000009
Suellen
pythondev_help_Suellen_2017-09-02T06:43:50.000009
1,504,334,630.000009
91,819
pythondev
help
haha well it's also that I'm sure some people in <#C07G5276F|async> might have good arguments on this topic and not sure they are all in here
2017-09-02T06:59:13.000021
Ciera
pythondev_help_Ciera_2017-09-02T06:59:13.000021
1,504,335,553.000021
91,820
pythondev
help
anyone have a full proof method installing ffmpeg and opencv on a mac using make or brew combination that actually works?
2017-09-02T09:55:22.000003
Johana
pythondev_help_Johana_2017-09-02T09:55:22.000003
1,504,346,122.000003
91,821
pythondev
help
hmm, what’s the error you are getting?
2017-09-02T10:08:41.000006
Junita
pythondev_help_Junita_2017-09-02T10:08:41.000006
1,504,346,921.000006
91,822
pythondev
help
(what about docker though?)
2017-09-02T10:09:29.000001
Suellen
pythondev_help_Suellen_2017-09-02T10:09:29.000001
1,504,346,969.000001
91,823
pythondev
help
yeah that was my first thought too. :slightly_smiling_face:
2017-09-02T10:09:44.000015
Junita
pythondev_help_Junita_2017-09-02T10:09:44.000015
1,504,346,984.000015
91,824
pythondev
help
<https://stackoverflow.com/questions/46015606/pil-set-pixel-as-transparent-blank>
2017-09-02T12:04:29.000003
Beverley
pythondev_help_Beverley_2017-09-02T12:04:29.000003
1,504,353,869.000003
91,825
pythondev
help
Does `print(img.mode)` show ARGB?
2017-09-02T12:05:48.000101
Suellen
pythondev_help_Suellen_2017-09-02T12:05:48.000101
1,504,353,948.000101
91,826
pythondev
help
it's rgb
2017-09-02T12:06:37.000017
Beverley
pythondev_help_Beverley_2017-09-02T12:06:37.000017
1,504,353,997.000017
91,827
pythondev
help
`img = img.convert('ARGB')`
2017-09-02T12:07:25.000064
Suellen
pythondev_help_Suellen_2017-09-02T12:07:25.000064
1,504,354,045.000064
91,828
pythondev
help
otherwise there is no transparency channel
2017-09-02T12:07:36.000055
Suellen
pythondev_help_Suellen_2017-09-02T12:07:36.000055
1,504,354,056.000055
91,829
pythondev
help
is this before or after saving, note I have two saves; one for creating the file the other for editing to transparent
2017-09-02T12:09:50.000018
Beverley
pythondev_help_Beverley_2017-09-02T12:09:50.000018
1,504,354,190.000018
91,830
pythondev
help
what do you mean?
2017-09-02T12:10:03.000087
Suellen
pythondev_help_Suellen_2017-09-02T12:10:03.000087
1,504,354,203.000087
91,831
pythondev
help
you can't set a transparent pixel on an image that doesn't have a transparency (alpha) channel
2017-09-02T12:10:22.000001
Suellen
pythondev_help_Suellen_2017-09-02T12:10:22.000001
1,504,354,222.000001
91,832
pythondev
help
you need to convert from RBG to ARBG before you put a tranparent pixel there
2017-09-02T12:10:58.000045
Suellen
pythondev_help_Suellen_2017-09-02T12:10:58.000045
1,504,354,258.000045
91,833
pythondev
help
and obviously when you save, you should use a format that supports alpha channels. For example png.
2017-09-02T12:11:29.000024
Suellen
pythondev_help_Suellen_2017-09-02T12:11:29.000024
1,504,354,289.000024
91,834
pythondev
help
ValueError: conversion from RGB to ARGB not supported
2017-09-02T12:11:48.000007
Beverley
pythondev_help_Beverley_2017-09-02T12:11:48.000007
1,504,354,308.000007
91,835
pythondev
help
img.convert('ARGB') img.save(random_name, "PNG")
2017-09-02T12:11:58.000135
Beverley
pythondev_help_Beverley_2017-09-02T12:11:58.000135
1,504,354,318.000135
91,836
pythondev
help
try RGBA
2017-09-02T12:12:36.000065
Suellen
pythondev_help_Suellen_2017-09-02T12:12:36.000065
1,504,354,356.000065
91,837
pythondev
help
I forgot a proper name :slightly_smiling_face:
2017-09-02T12:12:46.000094
Suellen
pythondev_help_Suellen_2017-09-02T12:12:46.000094
1,504,354,366.000094
91,838
pythondev
help
`img.convert('RGBA')` -- the image gets converted to RGBA and you throw the result away
2017-09-02T12:21:41.000011
Suellen
pythondev_help_Suellen_2017-09-02T12:21:41.000011
1,504,354,901.000011
91,839
pythondev
help
`img = img.convert('RGBA')`
2017-09-02T12:21:50.000080
Suellen
pythondev_help_Suellen_2017-09-02T12:21:50.000080
1,504,354,910.00008
91,840
pythondev
help
yes that was it works :slightly_smiling_face:
2017-09-02T12:24:21.000045
Beverley
pythondev_help_Beverley_2017-09-02T12:24:21.000045
1,504,355,061.000045
91,841
pythondev
help
I am writing a Python program part of which authenticates with OAuth 1.0 to access a privileged API. I have figured out how to get the authorization URL. After signing in, the browser redirects to <http://localhost> which I registered as the callback with the provider. How do I get the request to localhost and continue with my bot? I figure I need to have a http server of some sort. I would rather not install a full Apache server. What is a lightweight alternative that can receive the request and forward the token to my bot code to continue with API calls?
2017-09-02T18:03:24.000007
Sidney
pythondev_help_Sidney_2017-09-02T18:03:24.000007
1,504,375,404.000007
91,842
pythondev
help
<@Sidney> <https://docs.python.org/3/library/http.server.html#module-http.server>
2017-09-02T18:12:14.000001
Suellen
pythondev_help_Suellen_2017-09-02T18:12:14.000001
1,504,375,934.000001
91,843
pythondev
help
you can spin up a simple http server using only stdlib
2017-09-02T18:12:28.000003
Suellen
pythondev_help_Suellen_2017-09-02T18:12:28.000003
1,504,375,948.000003
91,844
pythondev
help
are you sure you even need to accept a request at all?
2017-09-02T18:13:47.000064
Suellen
pythondev_help_Suellen_2017-09-02T18:13:47.000064
1,504,376,027.000064
91,845
pythondev
help
AFAIK, yes, the result of the authorization comes to me as a HTTP request to the callback URL.
2017-09-02T18:14:46.000062
Sidney
pythondev_help_Sidney_2017-09-02T18:14:46.000062
1,504,376,086.000062
91,846
pythondev
help
There's a chance I misunderstand how OAuth 1.0 works.
2017-09-02T18:15:48.000014
Sidney
pythondev_help_Sidney_2017-09-02T18:15:48.000014
1,504,376,148.000014
91,847
pythondev
help
I only ask because, for example, you can auth on Reddit using OAuth without a redirect or a callback
2017-09-02T18:16:09.000026
Suellen
pythondev_help_Suellen_2017-09-02T18:16:09.000026
1,504,376,169.000026
91,848
pythondev
help
Is it OAuth 1.0 or 2.0?
2017-09-02T18:16:27.000011
Sidney
pythondev_help_Sidney_2017-09-02T18:16:27.000011
1,504,376,187.000011
91,849
pythondev
help
2.0
2017-09-02T18:16:45.000021
Suellen
pythondev_help_Suellen_2017-09-02T18:16:45.000021
1,504,376,205.000021
91,850
pythondev
help
That might be one of the differences.
2017-09-02T18:16:54.000022
Sidney
pythondev_help_Sidney_2017-09-02T18:16:54.000022
1,504,376,214.000022
91,851
pythondev
help
Or more likely, I'm completely misunderstanding how this works.
2017-09-02T18:17:26.000015
Sidney
pythondev_help_Sidney_2017-09-02T18:17:26.000015
1,504,376,246.000015
91,852
pythondev
help
<@Suellen> Thanks for the link. Keeping everything in python and in the same codebase will definitely make this easier to manage. I'll look into that library further.
2017-09-02T18:28:11.000039
Sidney
pythondev_help_Sidney_2017-09-02T18:28:11.000039
1,504,376,891.000039
91,853
pythondev
help
<@Sidney> There are often 2 different authentication flows available - one for clients, and one for servers. Make sure you're using the right one for your situation
2017-09-02T19:47:55.000034
Gabriele
pythondev_help_Gabriele_2017-09-02T19:47:55.000034
1,504,381,675.000034
91,854
pythondev
help
<@Gabriele> I don't follow. From what I understand all authentication flows require a client **and** a server, each playing a different role in the exchange.
2017-09-02T21:17:03.000015
Sidney
pythondev_help_Sidney_2017-09-02T21:17:03.000015
1,504,387,023.000015
91,855
pythondev
help
I'm in the middle of writing a simple process priority script, and I'm running into "access is denied" even in an admin cmd window for processes that are ran by System. Would anyone be able to access me?
2017-09-02T22:00:48.000050
Taryn
pythondev_help_Taryn_2017-09-02T22:00:48.000050
1,504,389,648.00005
91,856
pythondev
help
assist rather
2017-09-02T22:01:46.000024
Taryn
pythondev_help_Taryn_2017-09-02T22:01:46.000024
1,504,389,706.000024
91,857
pythondev
help
I need a little help with Django... please ping me
2017-09-03T01:18:59.000006
Galen
pythondev_help_Galen_2017-09-03T01:18:59.000006
1,504,401,539.000006
91,858
pythondev
help
anybody in here use jetbrains products?
2017-09-03T02:57:08.000032
Clarine
pythondev_help_Clarine_2017-09-03T02:57:08.000032
1,504,407,428.000032
91,859
pythondev
help
yes
2017-09-03T03:35:24.000032
Eliza
pythondev_help_Eliza_2017-09-03T03:35:24.000032
1,504,409,724.000032
91,860
pythondev
help
<@Clarine>
2017-09-03T03:35:34.000012
Eliza
pythondev_help_Eliza_2017-09-03T03:35:34.000012
1,504,409,734.000012
91,861
pythondev
help
can anybody help me with Interpretabiliy models in Deep Learning??
2017-09-03T05:45:18.000054
Augusta
pythondev_help_Augusta_2017-09-03T05:45:18.000054
1,504,417,518.000054
91,862
pythondev
help
What's up with people not just posting their problems? :grimacing: how is anyone supposed to help that way
2017-09-03T06:32:27.000052
Ramona
pythondev_help_Ramona_2017-09-03T06:32:27.000052
1,504,420,347.000052
91,863
pythondev
help
right
2017-09-03T06:52:43.000054
Suellen
pythondev_help_Suellen_2017-09-03T06:52:43.000054
1,504,421,563.000054
91,864
pythondev
help
<@Galen> post in <#C0LMFRMB5|django>, they are much more likely to help
2017-09-03T06:53:32.000034
Suellen
pythondev_help_Suellen_2017-09-03T06:53:32.000034
1,504,421,612.000034
91,865
pythondev
help
<@Augusta> also we have a <#C2J4B66PK|machine_learning> channel where you can post your problem
2017-09-03T06:54:03.000046
Suellen
pythondev_help_Suellen_2017-09-03T06:54:03.000046
1,504,421,643.000046
91,866
pythondev
help
<@Suellen> thanks for the lead brother :)
2017-09-03T06:55:36.000015
Galen
pythondev_help_Galen_2017-09-03T06:55:36.000015
1,504,421,736.000015
91,867
pythondev
help
does anybody use PyCharm? When I switch tabs, I want Run/Debug in the upper right corner to change automatically. Now I have to manually select the file which I want to Run/Debug everytime I switch a tab.
2017-09-03T09:18:16.000061
Monty
pythondev_help_Monty_2017-09-03T09:18:16.000061
1,504,430,296.000061
91,868
pythondev
help
it won’t
2017-09-03T09:19:30.000052
Meg
pythondev_help_Meg_2017-09-03T09:19:30.000052
1,504,430,370.000052
91,869
pythondev
help
pycharm usually has the last run execution as the top option in the dropdown
2017-09-03T09:19:54.000016
Meg
pythondev_help_Meg_2017-09-03T09:19:54.000016
1,504,430,394.000016
91,870
pythondev
help
but you can right click in the file after changing the tab and select Run or Debug
2017-09-03T09:20:17.000012
Meg
pythondev_help_Meg_2017-09-03T09:20:17.000012
1,504,430,417.000012
91,871
pythondev
help
if that’s something that you would find handy to have, you can submit a feature request at <https://youtrack.jetbrains.com/issues/PY>
2017-09-03T09:22:06.000026
Meg
pythondev_help_Meg_2017-09-03T09:22:06.000026
1,504,430,526.000026
91,872
pythondev
help
but a major problem for that is most run configurations are project based, not file based
2017-09-03T09:25:59.000024
Meg
pythondev_help_Meg_2017-09-03T09:25:59.000024
1,504,430,759.000024
91,873
pythondev
help
yes, but don't you agree that it is silly for PyCharm, which is one of the best Python IDE's, to not have that option?
2017-09-03T09:27:02.000008
Monty
pythondev_help_Monty_2017-09-03T09:27:02.000008
1,504,430,822.000008
91,874
pythondev
help
¯\_(ツ)_/¯
2017-09-03T09:27:23.000081
Meg
pythondev_help_Meg_2017-09-03T09:27:23.000081
1,504,430,843.000081
91,875
pythondev
help
make a feature request
2017-09-03T09:27:30.000050
Meg
pythondev_help_Meg_2017-09-03T09:27:30.000050
1,504,430,850.00005
91,876
pythondev
help
How many times have I ran the wrong file :slightly_smiling_face:
2017-09-03T09:27:46.000044
Monty
pythondev_help_Monty_2017-09-03T09:27:46.000044
1,504,430,866.000044
91,877
pythondev
help
right click -&gt; run
2017-09-03T09:27:55.000083
Meg
pythondev_help_Meg_2017-09-03T09:27:55.000083
1,504,430,875.000083
91,878
pythondev
help
and then the list will be re-ordered
2017-09-03T09:28:07.000052
Meg
pythondev_help_Meg_2017-09-03T09:28:07.000052
1,504,430,887.000052
91,879
pythondev
help
yeah, I know, I'am using that option...I will submit a request
2017-09-03T09:29:13.000043
Monty
pythondev_help_Monty_2017-09-03T09:29:13.000043
1,504,430,953.000043
91,880
pythondev
help
for me, it would be an absolutely useless feature
2017-09-03T09:29:19.000057
Meg
pythondev_help_Meg_2017-09-03T09:29:19.000057
1,504,430,959.000057
91,881
pythondev
help
because I’m project-based, not file based
2017-09-03T09:29:26.000059
Meg
pythondev_help_Meg_2017-09-03T09:29:26.000059
1,504,430,966.000059
91,882
pythondev
help
why is that?
2017-09-03T09:29:31.000060
Monty
pythondev_help_Monty_2017-09-03T09:29:31.000060
1,504,430,971.00006
91,883
pythondev
help
so, if I keep changing files and tabs in a project, I don’t want to run the current file
2017-09-03T09:29:44.000006
Meg
pythondev_help_Meg_2017-09-03T09:29:44.000006
1,504,430,984.000006
91,884
pythondev
help
I want to run the entire project
2017-09-03T09:29:52.000041
Meg
pythondev_help_Meg_2017-09-03T09:29:52.000041
1,504,430,992.000041
91,885
pythondev
help
so if I have a django or flask project going on, and I edit the models file. I don’t want the run configuration to automatically switch to running that file, vs the project run configuration I already have active
2017-09-03T09:30:56.000020
Meg
pythondev_help_Meg_2017-09-03T09:30:56.000020
1,504,431,056.00002
91,886
pythondev
help
ohh...I am a absolute beginner, so I find that lack of option strange and unintuitive
2017-09-03T09:31:26.000024
Monty
pythondev_help_Monty_2017-09-03T09:31:26.000024
1,504,431,086.000024
91,887
pythondev
help
ah, ok. for you, it might make more sense to have that kind of option. But I would suspect that for the vast majority of pycharm users, that would result in unintended side effects like how I described above
2017-09-03T09:32:45.000004
Meg
pythondev_help_Meg_2017-09-03T09:32:45.000004
1,504,431,165.000004
91,888
pythondev
help
also, consider the fact that each file might have different interpreter and run arguments
2017-09-03T09:33:00.000014
Meg
pythondev_help_Meg_2017-09-03T09:33:00.000014
1,504,431,180.000014
91,889
pythondev
help
so that would require you to create a run configuration for each file
2017-09-03T09:33:15.000073
Meg
pythondev_help_Meg_2017-09-03T09:33:15.000073
1,504,431,195.000073
91,890
pythondev
help
if you switch over to a file that has no configuration set up, how would it behave?
2017-09-03T09:34:05.000043
Meg
pythondev_help_Meg_2017-09-03T09:34:05.000043
1,504,431,245.000043
91,891
pythondev
help
different interpreter? Why would someone want to change the interpreter?
2017-09-03T09:35:14.000028
Monty
pythondev_help_Monty_2017-09-03T09:35:14.000028
1,504,431,314.000028
91,892
pythondev
help
one file runs on 3.5
2017-09-03T09:35:25.000006
Meg
pythondev_help_Meg_2017-09-03T09:35:25.000006
1,504,431,325.000006
91,893
pythondev
help
other runs on 3.6.2
2017-09-03T09:35:29.000063
Meg
pythondev_help_Meg_2017-09-03T09:35:29.000063
1,504,431,329.000063
91,894
pythondev
help
or you need to pass in a different argument to the interpreter
2017-09-03T09:35:47.000028
Meg
pythondev_help_Meg_2017-09-03T09:35:47.000028
1,504,431,347.000028
91,895
pythondev
help
backward compatible?
2017-09-03T09:36:00.000035
Monty
pythondev_help_Monty_2017-09-03T09:36:00.000035
1,504,431,360.000035
91,896
pythondev
help
so, what pycharm lets you do is define interpreter configurations, where you can define interpeter executable paths or virtualenvs
2017-09-03T09:37:11.000025
Meg
pythondev_help_Meg_2017-09-03T09:37:11.000025
1,504,431,431.000025
91,897
pythondev
help
and then apply in run config
2017-09-03T09:37:16.000060
Meg
pythondev_help_Meg_2017-09-03T09:37:16.000060
1,504,431,436.00006
91,898
pythondev
help
so, for one project, if you need it to be backwards compatible, you can have a run config pointing to your 3.6 environment
2017-09-03T09:37:46.000034
Meg
pythondev_help_Meg_2017-09-03T09:37:46.000034
1,504,431,466.000034
91,899
pythondev
help
named `project 3.6`
2017-09-03T09:37:54.000058
Meg
pythondev_help_Meg_2017-09-03T09:37:54.000058
1,504,431,474.000058
91,900
pythondev
help
and another `project 3.5`
2017-09-03T09:38:02.000056
Meg
pythondev_help_Meg_2017-09-03T09:38:02.000056
1,504,431,482.000056
91,901
pythondev
help
now, if you’re flipping from file to file intending to run it against a specific interpreter version, re-ordering the run configuration options will mess you up
2017-09-03T09:38:44.000055
Meg
pythondev_help_Meg_2017-09-03T09:38:44.000055
1,504,431,524.000055
91,902