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
tasty
2017-12-16T19:57:39.000032
Corrinne
pythondev_help_Corrinne_2017-12-16T19:57:39.000032
1,513,454,259.000032
104,403
pythondev
help
One thing I still haven't figured out about list comprehensions and such is when to use if at the end or before the `for` portion.
2017-12-16T19:58:18.000098
Myong
pythondev_help_Myong_2017-12-16T19:58:18.000098
1,513,454,298.000098
104,404
pythondev
help
Think you always use it after for as its a conditional statement
2017-12-16T20:00:01.000074
Corrinne
pythondev_help_Corrinne_2017-12-16T20:00:01.000074
1,513,454,401.000074
104,405
pythondev
help
But i could be wrong
2017-12-16T20:00:08.000199
Corrinne
pythondev_help_Corrinne_2017-12-16T20:00:08.000199
1,513,454,408.000199
104,406
pythondev
help
I know you can get pretty complex with some of these comprehensions
2017-12-16T20:00:50.000071
Corrinne
pythondev_help_Corrinne_2017-12-16T20:00:50.000071
1,513,454,450.000071
104,407
pythondev
help
Yeah I did one earlier that nearly took two lines lol
2017-12-16T20:01:08.000020
Myong
pythondev_help_Myong_2017-12-16T20:01:08.000020
1,513,454,468.00002
104,408
pythondev
help
haha
2017-12-16T20:01:14.000110
Corrinne
pythondev_help_Corrinne_2017-12-16T20:01:14.000110
1,513,454,474.00011
104,409
pythondev
help
They're satisfying when you get them right
2017-12-16T20:01:18.000049
Myong
pythondev_help_Myong_2017-12-16T20:01:18.000049
1,513,454,478.000049
104,410
pythondev
help
I remember my professor gave extra points when I first really got into python for doing list comps so that's all I ever did
2017-12-16T20:01:44.000029
Myong
pythondev_help_Myong_2017-12-16T20:01:44.000029
1,513,454,504.000029
104,411
pythondev
help
Yeah totally
2017-12-16T20:01:45.000072
Corrinne
pythondev_help_Corrinne_2017-12-16T20:01:45.000072
1,513,454,505.000072
104,412
pythondev
help
They can really condense a lot of code into a nice one liner
2017-12-16T20:02:09.000065
Corrinne
pythondev_help_Corrinne_2017-12-16T20:02:09.000065
1,513,454,529.000065
104,413
pythondev
help
I did something with that sub. Also used regex to get what i needed. Check out the Post, you may find a piece or two useful. <https://rorixrebel.github.io/reddit-hwswap-flask-app.html>
2017-12-16T20:48:42.000077
Del
pythondev_help_Del_2017-12-16T20:48:42.000077
1,513,457,322.000077
104,414
pythondev
help
Mine works more as a, find what i need rather than notification
2017-12-16T20:51:00.000018
Del
pythondev_help_Del_2017-12-16T20:51:00.000018
1,513,457,460.000018
104,415
pythondev
help
But it also filters by location and type of transaction
2017-12-16T20:51:14.000089
Del
pythondev_help_Del_2017-12-16T20:51:14.000089
1,513,457,474.000089
104,416
pythondev
help
Hello guys.. Is it a good idea to replace rqworker task with python3 async method?
2017-12-17T05:00:54.000022
Nichole
pythondev_help_Nichole_2017-12-17T05:00:54.000022
1,513,486,854.000022
104,417
pythondev
help
<https://github.com/ui/django-rq>
2017-12-17T05:01:22.000034
Nichole
pythondev_help_Nichole_2017-12-17T05:01:22.000034
1,513,486,882.000034
104,418
pythondev
help
<https://docs.python.org/3/library/asyncio.html>
2017-12-17T05:01:53.000023
Nichole
pythondev_help_Nichole_2017-12-17T05:01:53.000023
1,513,486,913.000023
104,419
pythondev
help
I am not getting a valid json object from this url, <http://omniexplorer.info/ask.aspx?api=gettx&amp;txid=5fa342f704ca6a9ae84134de8f2d987c18980de70a744d1aa8472e847555fcbd> how can I convert it to Json?
2017-12-17T07:23:15.000017
Yessenia
pythondev_help_Yessenia_2017-12-17T07:23:15.000017
1,513,495,395.000017
104,420
pythondev
help
Because it's not JSON
2017-12-17T07:27:09.000007
Suellen
pythondev_help_Suellen_2017-12-17T07:27:09.000007
1,513,495,629.000007
104,421
pythondev
help
&gt; Content-Type: text/plain
2017-12-17T07:27:22.000037
Suellen
pythondev_help_Suellen_2017-12-17T07:27:22.000037
1,513,495,642.000037
104,422
pythondev
help
And it doesn't look like JSON: ``` "txid":"394a072ed46088e218ac335cb4106050463960f916d420ca86a13ef1d393d2cb","fee":"0.00199455","sendingaddress":"3MbYQMMmSkC3AgWkj9FMo5LsPTW1zBTwXL","referenceaddress":"1NTMakcgVwQpMdGxRQnFKyb3G1FAJysSfz","ismine":false,"version":0,"typeint":55,"type":"Grant Property Tokens","propertyid...
2017-12-17T07:27:34.000038
Suellen
pythondev_help_Suellen_2017-12-17T07:27:34.000038
1,513,495,654.000038
104,423
pythondev
help
rather, it looks like JSON without curly brackets :)
2017-12-17T07:27:57.000047
Suellen
pythondev_help_Suellen_2017-12-17T07:27:57.000047
1,513,495,677.000047
104,424
pythondev
help
<@Suellen> Yes, that it's what I see too, but how can I convert it to JSON or append curly brackets to it?
2017-12-17T07:29:51.000047
Yessenia
pythondev_help_Yessenia_2017-12-17T07:29:51.000047
1,513,495,791.000047
104,425
pythondev
help
<@Suellen> Nope. didn't work. Thanks :slightly_smiling_face:
2017-12-17T07:35:26.000072
Yessenia
pythondev_help_Yessenia_2017-12-17T07:35:26.000072
1,513,496,126.000072
104,426
pythondev
help
no? why?
2017-12-17T07:36:31.000041
Suellen
pythondev_help_Suellen_2017-12-17T07:36:31.000041
1,513,496,191.000041
104,427
pythondev
help
<@Suellen> the string format wont work
2017-12-17T07:37:14.000019
Yessenia
pythondev_help_Yessenia_2017-12-17T07:37:14.000019
1,513,496,234.000019
104,428
pythondev
help
I would do a split on the `,` and then split on the `:` to load the key/value in a dict
2017-12-17T07:37:41.000014
Ciera
pythondev_help_Ciera_2017-12-17T07:37:41.000014
1,513,496,261.000014
104,429
pythondev
help
Oh no, what I suggested is completely wrong
2017-12-17T07:39:05.000070
Suellen
pythondev_help_Suellen_2017-12-17T07:39:05.000070
1,513,496,345.00007
104,430
pythondev
help
Can you specify JSON as the response from the API?
2017-12-17T07:40:08.000036
Corrinne
pythondev_help_Corrinne_2017-12-17T07:40:08.000036
1,513,496,408.000036
104,431
pythondev
help
<@Corrinne> No I can't, I have no options for that.
2017-12-17T07:41:02.000087
Yessenia
pythondev_help_Yessenia_2017-12-17T07:41:02.000087
1,513,496,462.000087
104,432
pythondev
help
<@Corrinne> There is probably a bug in the API because the docs says it should return a JSON object.
2017-12-17T07:56:24.000084
Yessenia
pythondev_help_Yessenia_2017-12-17T07:56:24.000084
1,513,497,384.000084
104,433
pythondev
help
Hi, is there someone who’s fluent in Celery? :slightly_smiling_face:
2017-12-17T08:34:08.000055
Kina
pythondev_help_Kina_2017-12-17T08:34:08.000055
1,513,499,648.000055
104,434
pythondev
help
I need to build a service that schedule tasks in the future (along with background task processing) Celery’s `eta` and `countdown` is exactly what I’m looking for
2017-12-17T08:35:28.000018
Kina
pythondev_help_Kina_2017-12-17T08:35:28.000018
1,513,499,728.000018
104,435
pythondev
help
The only thing that bothers me is that it seems as if it loads every task to memory and manage ETA in userland
2017-12-17T08:35:46.000046
Kina
pythondev_help_Kina_2017-12-17T08:35:46.000046
1,513,499,746.000046
104,436
pythondev
help
So I load everything to RAM (even though a backend with priority queue could be better fit)
2017-12-17T08:37:11.000016
Kina
pythondev_help_Kina_2017-12-17T08:37:11.000016
1,513,499,831.000016
104,437
pythondev
help
and it isn’t optimal ¯\_(ツ)_/¯
2017-12-17T08:37:29.000045
Kina
pythondev_help_Kina_2017-12-17T08:37:29.000045
1,513,499,849.000045
104,438
pythondev
help
it's 144 if you include the quotes
2017-12-17T12:52:51.000116
Corrinne
pythondev_help_Corrinne_2017-12-17T12:52:51.000116
1,513,515,171.000116
104,439
pythondev
help
Your regex is currently only looking inside the `'''`
2017-12-17T12:53:30.000029
Corrinne
pythondev_help_Corrinne_2017-12-17T12:53:30.000029
1,513,515,210.000029
104,440
pythondev
help
<@Devorah> Just in case you hadn't seen it tools like <https://pythex.org/> have been a real lifesaver for me
2017-12-17T12:54:34.000003
Callie
pythondev_help_Callie_2017-12-17T12:54:34.000003
1,513,515,274.000003
104,441
pythondev
help
<https://regexr.com/>
2017-12-17T13:02:20.000071
Collette
pythondev_help_Collette_2017-12-17T13:02:20.000071
1,513,515,740.000071
104,442
pythondev
help
Interesting I wonder if they meant the quotes for that answer. I just spammed 6 spaces and it let me move on.
2017-12-17T13:05:40.000114
Devorah
pythondev_help_Devorah_2017-12-17T13:05:40.000114
1,513,515,940.000114
104,443
pythondev
help
OpenCV question: I have a large set of images which are cellphone photos taken of the same document type (driver’s license). They come in all shapes and sizes, meaning, different angles of the camera, different distances from the camera to the driver’s license, different lighting, etc.
2017-12-17T16:01:10.000051
Dexter
pythondev_help_Dexter_2017-12-17T16:01:10.000051
1,513,526,470.000051
104,444
pythondev
help
is there any way in OpenCV to identify in each image a known landmark, then crop, resize, rotate, etc each image so that for the final result, I have a set of images that are completely uniform (e.g. driver’s license fills the whole image, they all look the same, etc)?
2017-12-17T16:01:56.000039
Dexter
pythondev_help_Dexter_2017-12-17T16:01:56.000039
1,513,526,516.000039
104,445
pythondev
help
and if it’s possible, would it be monumentally hard to do?
2017-12-17T16:02:05.000017
Dexter
pythondev_help_Dexter_2017-12-17T16:02:05.000017
1,513,526,525.000017
104,446
pythondev
help
<@Dexter> its potentially doable with something like training a haar classifier, difficulty depends on your familiarity with opencv and training sets
2017-12-17T17:41:49.000035
Marcie
pythondev_help_Marcie_2017-12-17T17:41:49.000035
1,513,532,509.000035
104,447
pythondev
help
(caveat: my knowledge around this stuff is pretty old and there's likely better things in the modern machine learning world?)
2017-12-17T17:44:52.000028
Marcie
pythondev_help_Marcie_2017-12-17T17:44:52.000028
1,513,532,692.000028
104,448
pythondev
help
Here, I'm green. On my GitHub it says that 'This branch is 2 commits ahead of pyslackers:master.' 1) I don't understand why I'm ahead. 2) I don't understand how I created a new 'master' fork/branch.
2017-12-17T23:30:22.000229
Deedee
pythondev_help_Deedee_2017-12-17T23:30:22.000229
1,513,553,422.000229
104,449
pythondev
help
Here's my whole interaction w/ this... A couple of days ago, forked it. Yesterday did a PR. Today, before making more changes, attempted to sync newest version of master w/ my local copy.
2017-12-17T23:33:37.000091
Deedee
pythondev_help_Deedee_2017-12-17T23:33:37.000091
1,513,553,617.000091
104,450
pythondev
help
<@Deedee> your branch is ahead because you have changes not present yet in the original master
2017-12-18T02:34:27.000213
Suellen
pythondev_help_Suellen_2017-12-18T02:34:27.000213
1,513,564,467.000213
104,451
pythondev
help
the changes you made a PR for
2017-12-18T02:34:36.000152
Suellen
pythondev_help_Suellen_2017-12-18T02:34:36.000152
1,513,564,476.000152
104,452
pythondev
help
you created a forked master the second you introduced any changes
2017-12-18T02:35:04.000092
Suellen
pythondev_help_Suellen_2017-12-18T02:35:04.000092
1,513,564,504.000092
104,453
pythondev
help
Hmm I have an issue, I’m trying to run some pipe processes with Popen and write the result in a file (That is a bzipped file basically), the application run fine but the bzip2 file cannot be decompressed (It is corrupted apparently)
2017-12-18T09:24:01.000366
Belva
pythondev_help_Belva_2017-12-18T09:24:01.000366
1,513,589,041.000366
104,454
pythondev
help
Here is the part of the related code
2017-12-18T09:24:08.000199
Belva
pythondev_help_Belva_2017-12-18T09:24:08.000199
1,513,589,048.000199
104,455
pythondev
help
It’s the first time I’m piping binary data, maybe there is something specific to do ?
2017-12-18T09:24:30.000504
Belva
pythondev_help_Belva_2017-12-18T09:24:30.000504
1,513,589,070.000504
104,456
pythondev
help
What the difference between the black Python shell and the white IDLE one ?
2017-12-18T10:02:20.000265
Hassie
pythondev_help_Hassie_2017-12-18T10:02:20.000265
1,513,591,340.000265
104,457
pythondev
help
How do I know where I want to run my scripts ?
2017-12-18T10:03:06.000146
Hassie
pythondev_help_Hassie_2017-12-18T10:03:06.000146
1,513,591,386.000146
104,458
pythondev
help
I keep on getting the "SyntaxError: invalid syntax when I try to run python get-pip.py
2017-12-18T10:03:52.000082
Hassie
pythondev_help_Hassie_2017-12-18T10:03:52.000082
1,513,591,432.000082
104,459
pythondev
help
idle is a very simple integradted development environment
2017-12-18T10:05:37.000035
Meg
pythondev_help_Meg_2017-12-18T10:05:37.000035
1,513,591,537.000035
104,460
pythondev
help
python shell is where you write directly to the interpreter
2017-12-18T10:05:46.000766
Meg
pythondev_help_Meg_2017-12-18T10:05:46.000766
1,513,591,546.000766
104,461
pythondev
help
so if you’re getting a syntax error from code you’ve written in idle, then its not going to run
2017-12-18T10:06:10.000771
Meg
pythondev_help_Meg_2017-12-18T10:06:10.000771
1,513,591,570.000771
104,462
pythondev
help
I get that but I am wondering what I am doing wrong. I am geting the syntax directly from Azure
2017-12-18T10:07:09.000410
Hassie
pythondev_help_Hassie_2017-12-18T10:07:09.000410
1,513,591,629.00041
104,463
pythondev
help
syntax error means you’re writing invalid python
2017-12-18T10:07:28.000437
Meg
pythondev_help_Meg_2017-12-18T10:07:28.000437
1,513,591,648.000437
104,464
pythondev
help
post your code
2017-12-18T10:07:29.000275
Corrinne
pythondev_help_Corrinne_2017-12-18T10:07:29.000275
1,513,591,649.000275
104,465
pythondev
help
and without your code, nobody can help
2017-12-18T10:07:38.000128
Meg
pythondev_help_Meg_2017-12-18T10:07:38.000128
1,513,591,658.000128
104,466
pythondev
help
python get-pip.py
2017-12-18T10:08:24.000272
Hassie
pythondev_help_Hassie_2017-12-18T10:08:24.000272
1,513,591,704.000272
104,467
pythondev
help
???
2017-12-18T10:08:32.000801
Meg
pythondev_help_Meg_2017-12-18T10:08:32.000801
1,513,591,712.000801
104,468
pythondev
help
that’s an execution command
2017-12-18T10:08:36.000753
Meg
pythondev_help_Meg_2017-12-18T10:08:36.000753
1,513,591,716.000753
104,469
pythondev
help
Post the code you've written in IDLE
2017-12-18T10:08:45.000334
Corrinne
pythondev_help_Corrinne_2017-12-18T10:08:45.000334
1,513,591,725.000334
104,470
pythondev
help
or pip install virtualenv
2017-12-18T10:08:47.000142
Hassie
pythondev_help_Hassie_2017-12-18T10:08:47.000142
1,513,591,727.000142
104,471
pythondev
help
you need to post what you wrote in `get-pip.py`
2017-12-18T10:08:55.000030
Meg
pythondev_help_Meg_2017-12-18T10:08:55.000030
1,513,591,735.00003
104,472
pythondev
help
Is this the 1st time you've written any code? Not asking that in a mean way
2017-12-18T10:09:54.000195
Corrinne
pythondev_help_Corrinne_2017-12-18T10:09:54.000195
1,513,591,794.000195
104,473
pythondev
help
ok, that’s why
2017-12-18T10:10:10.000040
Meg
pythondev_help_Meg_2017-12-18T10:10:10.000040
1,513,591,810.00004
104,474
pythondev
help
Yes, I'm a DBA who wants to learn Python
2017-12-18T10:10:33.000198
Hassie
pythondev_help_Hassie_2017-12-18T10:10:33.000198
1,513,591,833.000198
104,475
pythondev
help
ok, so you know the difference between terminal and db shell
2017-12-18T10:10:47.000050
Meg
pythondev_help_Meg_2017-12-18T10:10:47.000050
1,513,591,847.00005
104,476
pythondev
help
what you need to do with the above is write in the terminal, not the shell
2017-12-18T10:10:59.000219
Meg
pythondev_help_Meg_2017-12-18T10:10:59.000219
1,513,591,859.000219
104,477
pythondev
help
You have to start somewhere right ? lol
2017-12-18T10:11:00.000012
Hassie
pythondev_help_Hassie_2017-12-18T10:11:00.000012
1,513,591,860.000012
104,478
pythondev
help
equivalent for mysql would be you writing `mysqladmin …. ` in the mysql shell :slightly_smiling_face:
2017-12-18T10:11:18.000305
Meg
pythondev_help_Meg_2017-12-18T10:11:18.000305
1,513,591,878.000305
104,479
pythondev
help
Of course. Have you tried any totorials / courses online?
2017-12-18T10:11:19.000717
Corrinne
pythondev_help_Corrinne_2017-12-18T10:11:19.000717
1,513,591,879.000717
104,480
pythondev
help
Yes, the basis stuff from teach your kids how to program with python and automate the boring stuff... Idle worked for what I needed it to. I also used anaconda notebook to query a sql database
2017-12-18T10:12:19.000184
Hassie
pythondev_help_Hassie_2017-12-18T10:12:19.000184
1,513,591,939.000184
104,481
pythondev
help
OK so you should get yourself familiar with executing python files from the terminal
2017-12-18T10:13:46.000462
Corrinne
pythondev_help_Corrinne_2017-12-18T10:13:46.000462
1,513,592,026.000462
104,482
pythondev
help
no, that’s the python shell
2017-12-18T10:13:57.000471
Meg
pythondev_help_Meg_2017-12-18T10:13:57.000471
1,513,592,037.000471
104,483
pythondev
help
You don'r run a pip command from within the python terminal
2017-12-18T10:14:15.000462
Corrinne
pythondev_help_Corrinne_2017-12-18T10:14:15.000462
1,513,592,055.000462
104,484
pythondev
help
that’s activated when you entered in `python` in the terminal
2017-12-18T10:14:17.000345
Meg
pythondev_help_Meg_2017-12-18T10:14:17.000345
1,513,592,057.000345
104,485
pythondev
help
exit python
2017-12-18T10:14:26.000626
Corrinne
pythondev_help_Corrinne_2017-12-18T10:14:26.000626
1,513,592,066.000626
104,486
pythondev
help
and try pip install virtualenv
2017-12-18T10:14:46.000672
Corrinne
pythondev_help_Corrinne_2017-12-18T10:14:46.000672
1,513,592,086.000672
104,487
pythondev
help
in my cmd window ?
2017-12-18T10:15:05.000523
Hassie
pythondev_help_Hassie_2017-12-18T10:15:05.000523
1,513,592,105.000523
104,488
pythondev
help
yes
2017-12-18T10:15:12.000615
Corrinne
pythondev_help_Corrinne_2017-12-18T10:15:12.000615
1,513,592,112.000615
104,489
pythondev
help
yes
2017-12-18T10:15:30.000178
Meg
pythondev_help_Meg_2017-12-18T10:15:30.000178
1,513,592,130.000178
104,490
pythondev
help
type `exit()` into the python console
2017-12-18T10:15:32.000145
Corrinne
pythondev_help_Corrinne_2017-12-18T10:15:32.000145
1,513,592,132.000145
104,491
pythondev
help
Then from the terminal of your machine. run `pip install virtualenv`
2017-12-18T10:15:55.000466
Corrinne
pythondev_help_Corrinne_2017-12-18T10:15:55.000466
1,513,592,155.000466
104,492
pythondev
help
that worked. So how do I save my multi-line scripts then ?
2017-12-18T10:16:33.000143
Hassie
pythondev_help_Hassie_2017-12-18T10:16:33.000143
1,513,592,193.000143
104,493
pythondev
help
You need to write them in a text editor
2017-12-18T10:16:45.000454
Corrinne
pythondev_help_Corrinne_2017-12-18T10:16:45.000454
1,513,592,205.000454
104,494
pythondev
help
use a text editor or ide
2017-12-18T10:16:50.000138
Meg
pythondev_help_Meg_2017-12-18T10:16:50.000138
1,513,592,210.000138
104,495
pythondev
help
sublime text, atom, etc
2017-12-18T10:16:58.000173
Meg
pythondev_help_Meg_2017-12-18T10:16:58.000173
1,513,592,218.000173
104,496
pythondev
help
save them with .py at the end
2017-12-18T10:17:14.000210
Corrinne
pythondev_help_Corrinne_2017-12-18T10:17:14.000210
1,513,592,234.00021
104,497
pythondev
help
And then I would execute them through cmd line ?
2017-12-18T10:17:16.000239
Hassie
pythondev_help_Hassie_2017-12-18T10:17:16.000239
1,513,592,236.000239
104,498
pythondev
help
yes exactly
2017-12-18T10:17:23.000488
Corrinne
pythondev_help_Corrinne_2017-12-18T10:17:23.000488
1,513,592,243.000488
104,499
pythondev
help
so once you've written some code in a .py file
2017-12-18T10:17:38.000656
Corrinne
pythondev_help_Corrinne_2017-12-18T10:17:38.000656
1,513,592,258.000656
104,500
pythondev
help
navigate to the same directory as that file from your terminal
2017-12-18T10:17:52.000088
Corrinne
pythondev_help_Corrinne_2017-12-18T10:17:52.000088
1,513,592,272.000088
104,501
pythondev
help
and run `python myfile.py`
2017-12-18T10:18:05.000076
Corrinne
pythondev_help_Corrinne_2017-12-18T10:18:05.000076
1,513,592,285.000076
104,502