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
``` Here's my code: import random random.choice(...) ... ```
2018-02-07T05:01:32.000410
Barney
pythondev_help_Barney_2018-02-07T05:01:32.000410
1,517,979,692.00041
33,324
pythondev
help
you can select all the code in your IDE and press TAB
2018-02-07T05:01:57.000302
Barney
pythondev_help_Barney_2018-02-07T05:01:57.000302
1,517,979,717.000302
33,325
pythondev
help
and copy everything after it's been padded with space
2018-02-07T05:02:06.000339
Barney
pythondev_help_Barney_2018-02-07T05:02:06.000339
1,517,979,726.000339
33,326
pythondev
help
s
2018-02-07T05:02:08.000350
Barney
pythondev_help_Barney_2018-02-07T05:02:08.000350
1,517,979,728.00035
33,327
pythondev
help
Okay. Thank you <@Gwyn> and <@Barney>
2018-02-07T05:03:35.000439
Shirleen
pythondev_help_Shirleen_2018-02-07T05:03:35.000439
1,517,979,815.000439
33,328
pythondev
help
TAB :angry: you mean 4 time on the space key :troll:
2018-02-07T05:03:43.000344
Micki
pythondev_help_Micki_2018-02-07T05:03:43.000344
1,517,979,823.000344
33,329
pythondev
help
:open_mouth:
2018-02-07T05:03:55.000083
Barney
pythondev_help_Barney_2018-02-07T05:03:55.000083
1,517,979,835.000083
33,330
pythondev
help
oh you
2018-02-07T05:04:10.000038
Barney
pythondev_help_Barney_2018-02-07T05:04:10.000038
1,517,979,850.000038
33,331
pythondev
help
The thing is <@Barney> ifyou press spaces 4 times it'll just replace the code selected with spaces :confused:
2018-02-07T05:04:27.000563
Gwyn
pythondev_help_Gwyn_2018-02-07T05:04:27.000563
1,517,979,867.000563
33,332
pythondev
help
(Depends on the IDE)
2018-02-07T05:04:34.000158
Gwyn
pythondev_help_Gwyn_2018-02-07T05:04:34.000158
1,517,979,874.000158
33,333
pythondev
help
that's why I'm suggesting to press tab?
2018-02-07T05:04:50.000496
Barney
pythondev_help_Barney_2018-02-07T05:04:50.000496
1,517,979,890.000496
33,334
pythondev
help
Stackoverflow looks for spaces
2018-02-07T05:05:04.000492
Gwyn
pythondev_help_Gwyn_2018-02-07T05:05:04.000492
1,517,979,904.000492
33,335
pythondev
help
...
2018-02-07T05:05:12.000469
Barney
pythondev_help_Barney_2018-02-07T05:05:12.000469
1,517,979,912.000469
33,336
pythondev
help
tab will increase the intendation level
2018-02-07T05:05:22.000043
Barney
pythondev_help_Barney_2018-02-07T05:05:22.000043
1,517,979,922.000043
33,337
pythondev
help
by 4 spaces
2018-02-07T05:05:25.000410
Barney
pythondev_help_Barney_2018-02-07T05:05:25.000410
1,517,979,925.00041
33,338
pythondev
help
tab vs spaces
2018-02-07T05:05:31.000403
Gwyn
pythondev_help_Gwyn_2018-02-07T05:05:31.000403
1,517,979,931.000403
33,339
pythondev
help
you have 4 hours
2018-02-07T05:05:37.000315
Gwyn
pythondev_help_Gwyn_2018-02-07T05:05:37.000315
1,517,979,937.000315
33,340
pythondev
help
what?
2018-02-07T05:05:44.000287
Barney
pythondev_help_Barney_2018-02-07T05:05:44.000287
1,517,979,944.000287
33,341
pythondev
help
tab the key, not tab the character
2018-02-07T05:05:49.000031
Barney
pythondev_help_Barney_2018-02-07T05:05:49.000031
1,517,979,949.000031
33,342
pythondev
help
oh okay
2018-02-07T05:05:58.000207
Gwyn
pythondev_help_Gwyn_2018-02-07T05:05:58.000207
1,517,979,958.000207
33,343
pythondev
help
well that depends on you IDE settings to
2018-02-07T05:06:07.000113
Gwyn
pythondev_help_Gwyn_2018-02-07T05:06:07.000113
1,517,979,967.000113
33,344
pythondev
help
Is there a way to pass a list of tuples to wtforms?
2018-02-07T05:07:15.000572
Milo
pythondev_help_Milo_2018-02-07T05:07:15.000572
1,517,980,035.000572
33,345
pythondev
help
Disclaimer: I have no idea BUT, Maybe you could do a `for` loop ?
2018-02-07T05:09:23.000117
Gwyn
pythondev_help_Gwyn_2018-02-07T05:09:23.000117
1,517,980,163.000117
33,346
pythondev
help
yes I was in the process of doing that, but confused on how to set the class up
2018-02-07T05:14:32.000269
Milo
pythondev_help_Milo_2018-02-07T05:14:32.000269
1,517,980,472.000269
33,347
pythondev
help
This is very bizarre, it seems in flask that I cannot create a wtform that has multiple sets of data in it (each row in db is its own set of data) it looks like I have to create an individual form for each entry in the db. I have created the version I want with all entries within the same form using pure pymysql and no...
2018-02-07T05:30:46.000376
Milo
pythondev_help_Milo_2018-02-07T05:30:46.000376
1,517,981,446.000376
33,348
pythondev
help
Can anyone explain dynamic form composition? <http://wtforms.readthedocs.io/en/latest/specific_problems.html#dynamic-form-composition>
2018-02-07T06:14:47.000254
Milo
pythondev_help_Milo_2018-02-07T06:14:47.000254
1,517,984,087.000254
33,349
pythondev
help
I think this is what I need but super confused
2018-02-07T06:14:57.000356
Milo
pythondev_help_Milo_2018-02-07T06:14:57.000356
1,517,984,097.000356
33,350
pythondev
help
Hello everyone. Does anyone know cool python3 django example project in github?
2018-02-07T06:15:57.000018
Terrilyn
pythondev_help_Terrilyn_2018-02-07T06:15:57.000018
1,517,984,157.000018
33,351
pythondev
help
<https://github.com/heroku/heroku-django-template>
2018-02-07T06:16:34.000436
Brain
pythondev_help_Brain_2018-02-07T06:16:34.000436
1,517,984,194.000436
33,352
pythondev
help
Thanks <@Brain>
2018-02-07T06:17:09.000357
Terrilyn
pythondev_help_Terrilyn_2018-02-07T06:17:09.000357
1,517,984,229.000357
33,353
pythondev
help
Are there any good resources that you know of for printing via tcp/ip to hp printers ? What I'm attempting below for reference. ```# Post JSON to server check if printer exists and print def post(self, request, format=None): data = request.data # Search for printer by name if exists in DB get print...
2018-02-07T07:46:22.000412
Pat
pythondev_help_Pat_2018-02-07T07:46:22.000412
1,517,989,582.000412
33,354
pythondev
help
Hi guys. PLease help, I'm headbanging on this! I have json file saved in home_dir = '...' and I have json file that I just fetched from API as data=bootstrap.json() . Now I need to compare attributes called 'stargazers_count' from those files and if they are the same then I will not save the new fetched json file. If ...
2018-02-07T07:51:45.000302
Vincent
pythondev_help_Vincent_2018-02-07T07:51:45.000302
1,517,989,905.000302
33,355
pythondev
help
where b is pointing on json file that already exists in dir
2018-02-07T07:52:42.000340
Vincent
pythondev_help_Vincent_2018-02-07T07:52:42.000340
1,517,989,962.00034
33,356
pythondev
help
<@Pat> that's pretty specific :slightly_smiling_face: I don't know of anything that exist out of the box. Is your code working at the moment ?
2018-02-07T07:53:19.000063
Micki
pythondev_help_Micki_2018-02-07T07:53:19.000063
1,517,989,999.000063
33,357
pythondev
help
no, syntax error on b = ...
2018-02-07T07:53:31.000244
Vincent
pythondev_help_Vincent_2018-02-07T07:53:31.000244
1,517,990,011.000244
33,358
pythondev
help
jsut says invalid syntax and points at b
2018-02-07T07:53:58.000431
Vincent
pythondev_help_Vincent_2018-02-07T07:53:58.000431
1,517,990,038.000431
33,359
pythondev
help
<@Vincent> please use slack formatting and can you share the whole stacktrace plz
2018-02-07T07:54:33.000202
Micki
pythondev_help_Micki_2018-02-07T07:54:33.000202
1,517,990,073.000202
33,360
pythondev
help
<@Vincent> <https://get.slack.help/hc/en-us/articles/202288908-Format-your-messages#code-blocks>
2018-02-07T07:55:31.000086
Floy
pythondev_help_Floy_2018-02-07T07:55:31.000086
1,517,990,131.000086
33,361
pythondev
help
''' File "test_script_json2.py", line 20 b = with open(os.path.join(home_dir, 'bootstrap_' + timestr + '.json'), 'r') ^ SyntaxError: invalid syntax
2018-02-07T07:56:51.000309
Vincent
pythondev_help_Vincent_2018-02-07T07:56:51.000309
1,517,990,211.000309
33,362
pythondev
help
''' File "test_script_json2.py", line 20 b = with open(os.path.join(home_dir, 'bootstrap_' + timestr + '.json'), 'r') ^ SyntaxError: invalid syntax'''
2018-02-07T07:56:55.000141
Vincent
pythondev_help_Vincent_2018-02-07T07:56:55.000141
1,517,990,215.000141
33,363
pythondev
help
...
2018-02-07T07:57:00.000133
Vincent
pythondev_help_Vincent_2018-02-07T07:57:00.000133
1,517,990,220.000133
33,364
pythondev
help
anyway, i'll work on formating
2018-02-07T07:57:12.000084
Vincent
pythondev_help_Vincent_2018-02-07T07:57:12.000084
1,517,990,232.000084
33,365
pythondev
help
<@Micki> It runs fine the request is recieved processed etc, but the socket code doesnt seem to do anything like nothing prints. Tried sending . I can ping the printer and view its inbuilt server via http. I am basically using this as a test to send raw commands to Zebra printers with ZPL. However I work remotely and a...
2018-02-07T07:57:21.000154
Pat
pythondev_help_Pat_2018-02-07T07:57:21.000154
1,517,990,241.000154
33,366
pythondev
help
Tried sending ```&lt;ESC&gt;EHello World``` in the socket stream but still nothing. *
2018-02-07T07:58:13.000123
Pat
pythondev_help_Pat_2018-02-07T07:58:13.000123
1,517,990,293.000123
33,367
pythondev
help
so it's sending correctly to the printer but nothing print ?
2018-02-07T07:59:11.000068
Micki
pythondev_help_Micki_2018-02-07T07:59:11.000068
1,517,990,351.000068
33,368
pythondev
help
```with open(os.path.join(home_dir, 'bootstrap_' + timestr + '.json'), 'r') as b: data = b.read(...) ```
2018-02-07T07:59:14.000421
Kay
pythondev_help_Kay_2018-02-07T07:59:14.000421
1,517,990,354.000421
33,369
pythondev
help
Yes as far as I can tell.
2018-02-07T07:59:40.000062
Pat
pythondev_help_Pat_2018-02-07T07:59:40.000062
1,517,990,380.000062
33,370
pythondev
help
Well that's going to be hard to debug. Your best bet might be to find your printer documentation :confused:
2018-02-07T08:00:16.000364
Micki
pythondev_help_Micki_2018-02-07T08:00:16.000364
1,517,990,416.000364
33,371
pythondev
help
Haha yes it is indeed! Thanks for the help will try dig through it some more maybe its an authorisation issue or something.
2018-02-07T08:01:52.000380
Pat
pythondev_help_Pat_2018-02-07T08:01:52.000380
1,517,990,512.00038
33,372
pythondev
help
'File "test_script_json2.py", line 20 with open(os.path.join(home_dir, 'bootstrap_' + timestr + '.json'), 'r') as b: ^ SyntaxError: invalid syntax'
2018-02-07T08:02:10.000048
Vincent
pythondev_help_Vincent_2018-02-07T08:02:10.000048
1,517,990,530.000048
33,373
pythondev
help
<@Pat> Have you tried sending the contents of a PDF file directly to the printer? Some more recent printers can handle them.
2018-02-07T08:02:56.000327
Kay
pythondev_help_Kay_2018-02-07T08:02:56.000327
1,517,990,576.000327
33,374
pythondev
help
<@Kay> No I haven't yet. The problem I am trying to solve is to get a website to print Labels in our in our warehouse. The server will need to send a raw print command of ZPL to the zebra printers. But as I don't have one trying to send something to an HP printer to see if the concept is viable.
2018-02-07T08:06:13.000354
Pat
pythondev_help_Pat_2018-02-07T08:06:13.000354
1,517,990,773.000354
33,375
pythondev
help
hi
2018-02-07T08:59:38.000485
Wynona
pythondev_help_Wynona_2018-02-07T08:59:38.000485
1,517,993,978.000485
33,376
pythondev
help
i have problem with using with angular
2018-02-07T08:59:58.000329
Wynona
pythondev_help_Wynona_2018-02-07T08:59:58.000329
1,517,993,998.000329
33,377
pythondev
help
when i use Post method without copying paste data
2018-02-07T09:00:16.000514
Wynona
pythondev_help_Wynona_2018-02-07T09:00:16.000514
1,517,994,016.000514
33,378
pythondev
help
it is working now
2018-02-07T09:00:20.000501
Wynona
pythondev_help_Wynona_2018-02-07T09:00:20.000501
1,517,994,020.000501
33,379
pythondev
help
but when i copy and paste data, it has error CORS then post data
2018-02-07T09:00:40.000206
Wynona
pythondev_help_Wynona_2018-02-07T09:00:40.000206
1,517,994,040.000206
33,380
pythondev
help
in the server i already set CORS
2018-02-07T09:00:52.000226
Wynona
pythondev_help_Wynona_2018-02-07T09:00:52.000226
1,517,994,052.000226
33,381
pythondev
help
I have figured out how to get form data using dynamic form composition, however I am having trouble understanding how to display a wtform in jinja
2018-02-07T10:06:42.000368
Milo
pythondev_help_Milo_2018-02-07T10:06:42.000368
1,517,998,002.000368
33,382
pythondev
help
So, what’s the difference between mypy and type annotations?
2018-02-07T10:41:16.000159
Lai
pythondev_help_Lai_2018-02-07T10:41:16.000159
1,518,000,076.000159
33,383
pythondev
help
is MyPy still worth using, or has it fallen off?
2018-02-07T10:41:31.000102
Lai
pythondev_help_Lai_2018-02-07T10:41:31.000102
1,518,000,091.000102
33,384
pythondev
help
MyPy is used to do type checking
2018-02-07T10:42:04.000077
Micki
pythondev_help_Micki_2018-02-07T10:42:04.000077
1,518,000,124.000077
33,385
pythondev
help
and rely on type annotations to do so
2018-02-07T10:42:12.000618
Micki
pythondev_help_Micki_2018-02-07T10:42:12.000618
1,518,000,132.000618
33,386
pythondev
help
Thought I solved this problem last night by adding a profile to the SSH but the problem is back again when trying to Push changes to BItBucket via Sourcetree. Here is the error ```git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags origin refs/heads/reorganize:refs/he...
2018-02-07T12:31:04.000786
Nohemi
pythondev_help_Nohemi_2018-02-07T12:31:04.000786
1,518,006,664.000786
33,387
pythondev
help
either the private key set in your credential manager for `sourcetree` is incorrect, or the public key on the repo is incorrect
2018-02-07T12:33:44.000005
Jacquelyn
pythondev_help_Jacquelyn_2018-02-07T12:33:44.000005
1,518,006,824.000005
33,388
pythondev
help
<@Jacquelyn> That is what I thought at first but this works. <http://share.redwhale.co/pNI2>
2018-02-07T12:37:14.000351
Nohemi
pythondev_help_Nohemi_2018-02-07T12:37:14.000351
1,518,007,034.000351
33,389
pythondev
help
And I tried readding key to Bitbucket from Sourcetree and it is already present.
2018-02-07T12:37:58.000285
Nohemi
pythondev_help_Nohemi_2018-02-07T12:37:58.000285
1,518,007,078.000285
33,390
pythondev
help
Then when I readded the identity just now the Push works. <http://share.redwhale.co/pN07>
2018-02-07T12:39:58.000060
Nohemi
pythondev_help_Nohemi_2018-02-07T12:39:58.000060
1,518,007,198.00006
33,391
pythondev
help
can anyone help me find solution to send ethereum transactions from cmd
2018-02-07T12:52:26.000111
Shaniqua
pythondev_help_Shaniqua_2018-02-07T12:52:26.000111
1,518,007,946.000111
33,392
pythondev
help
i want to make a bot but cant figure it out
2018-02-07T12:52:56.000336
Shaniqua
pythondev_help_Shaniqua_2018-02-07T12:52:56.000336
1,518,007,976.000336
33,393
pythondev
help
<@Shaniqua> depends on what wallet you are using
2018-02-07T13:12:11.000480
Denisha
pythondev_help_Denisha_2018-02-07T13:12:11.000480
1,518,009,131.00048
33,394
pythondev
help
Anyone used adapt parser? <https://github.com/MycroftAI/adapt> I'm having a strange issue trying to match a quoted value with the regex entity. I'm trying to match a value in quotes with "= '(?P&lt;SearchVal&gt;.*)'". It works fine with the re module but won't match in adapt
2018-02-07T19:18:51.000198
Zulma
pythondev_help_Zulma_2018-02-07T19:18:51.000198
1,518,031,131.000198
33,395
pythondev
help
has anyone used python to control adobe acrobat on macOS? I want to use acrobat to do a bunch of bulk operations like ocr a bunch of documents or crop them by certain dimensions etc.
2018-02-07T22:42:26.000083
Desire
pythondev_help_Desire_2018-02-07T22:42:26.000083
1,518,043,346.000083
33,396
pythondev
help
need small help with elasticsearch i’m taking an input from user (in a html form) and store in a variable called `q` now i want to search that in elasticsearch. in ES all documents have 2 fields {“name”: “xxxxxx”, “id”: 3456} { “query”: { “bool”: { “should”: [ ...
2018-02-08T01:01:25.000128
Mafalda
pythondev_help_Mafalda_2018-02-08T01:01:25.000128
1,518,051,685.000128
33,397
pythondev
help
Hello, I want to join Django/ Django-REST-Framework channel
2018-02-08T01:30:30.000130
Eulalia
pythondev_help_Eulalia_2018-02-08T01:30:30.000130
1,518,053,430.00013
33,398
pythondev
help
where and How can I join
2018-02-08T01:30:44.000088
Eulalia
pythondev_help_Eulalia_2018-02-08T01:30:44.000088
1,518,053,444.000088
33,399
pythondev
help
Click here: <#C0LMFRMB5|django>
2018-02-08T01:31:17.000070
Rafael
pythondev_help_Rafael_2018-02-08T01:31:17.000070
1,518,053,477.00007
33,400
pythondev
help
<@Mafalda> take a look at <http://www.nltk.org/>
2018-02-08T01:54:08.000004
Aleida
pythondev_help_Aleida_2018-02-08T01:54:08.000004
1,518,054,848.000004
33,401
pythondev
help
<https://www.found.no/play/gist/326941e143b4507a68506023b08201a1> The error message is pretty clear
2018-02-08T02:01:13.000260
Aleida
pythondev_help_Aleida_2018-02-08T02:01:13.000260
1,518,055,273.00026
33,402
pythondev
help
I’m getting 500: Internal Server Error on above url
2018-02-08T02:18:59.000127
Mafalda
pythondev_help_Mafalda_2018-02-08T02:18:59.000127
1,518,056,339.000127
33,403
pythondev
help
Sorry, we can't help you if you just throw http errors at us. Can you provide the context, what have you done?
2018-02-08T02:22:57.000311
Aleida
pythondev_help_Aleida_2018-02-08T02:22:57.000311
1,518,056,577.000311
33,404
pythondev
help
Has anyone worked with wav files in python?
2018-02-08T02:59:16.000332
Lizette
pythondev_help_Lizette_2018-02-08T02:59:16.000332
1,518,058,756.000332
33,405
pythondev
help
a little bit with the `wave` module but not much
2018-02-08T03:01:43.000023
Micki
pythondev_help_Micki_2018-02-08T03:01:43.000023
1,518,058,903.000023
33,406
pythondev
help
I'm trying to learn it, so for now, I'm just trying to read a wav file and write it in another file in so that it can be played. I need the data in the byte format. But I'm just lost. Can you give me some sample code?
2018-02-08T03:03:26.000369
Lizette
pythondev_help_Lizette_2018-02-08T03:03:26.000369
1,518,059,006.000369
33,407
pythondev
help
take a look at the documentation here <https://docs.python.org/3/library/wave.html>
2018-02-08T03:05:26.000099
Micki
pythondev_help_Micki_2018-02-08T03:05:26.000099
1,518,059,126.000099
33,408
pythondev
help
somehting like that might work
2018-02-08T03:07:49.000315
Micki
pythondev_help_Micki_2018-02-08T03:07:49.000315
1,518,059,269.000315
33,409
pythondev
help
but not tested
2018-02-08T03:07:53.000164
Micki
pythondev_help_Micki_2018-02-08T03:07:53.000164
1,518,059,273.000164
33,410
pythondev
help
thats what i posted above.. what have i tried.. i mean the query
2018-02-08T03:14:10.000265
Mafalda
pythondev_help_Mafalda_2018-02-08T03:14:10.000265
1,518,059,650.000265
33,411
pythondev
help
First you posted 400 error, now you say it's 500. Sorry, I'm confused
2018-02-08T03:15:53.000042
Aleida
pythondev_help_Aleida_2018-02-08T03:15:53.000042
1,518,059,753.000042
33,412
pythondev
help
need `rb` and `wb` according to docu
2018-02-08T03:25:42.000187
Jacquelyn
pythondev_help_Jacquelyn_2018-02-08T03:25:42.000187
1,518,060,342.000187
33,413
pythondev
help
Hey guys! does anyone know how to convert mp3 to flac or linear16?
2018-02-08T04:12:55.000072
Corrinne
pythondev_help_Corrinne_2018-02-08T04:12:55.000072
1,518,063,175.000072
33,414
pythondev
help
`avconv` <https://libav.org/documentation/avconv.html>
2018-02-08T04:22:15.000183
Kay
pythondev_help_Kay_2018-02-08T04:22:15.000183
1,518,063,735.000183
33,415
pythondev
help
Hello, I have one question which relate to `pytest` for example, I used one `fixture` for all my test cases, but for one test case I don’t need use a `fixture` how I to skip a `fixture` for a one test case?
2018-02-08T04:36:20.000024
Pei
pythondev_help_Pei_2018-02-08T04:36:20.000024
1,518,064,580.000024
33,416
pythondev
help
<@Pei> don't use it?
2018-02-08T04:38:37.000137
Aleida
pythondev_help_Aleida_2018-02-08T04:38:37.000137
1,518,064,717.000137
33,417
pythondev
help
Yes
2018-02-08T04:38:51.000120
Pei
pythondev_help_Pei_2018-02-08T04:38:51.000120
1,518,064,731.00012
33,418
pythondev
help
``` @pytest.fixture def used(): pass @pytest.fixture def unused(): pass def test_something(used): # "used" fixture is used # "unused" is not ```
2018-02-08T04:39:15.000488
Aleida
pythondev_help_Aleida_2018-02-08T04:39:15.000488
1,518,064,755.000488
33,419
pythondev
help
Hey, I keep getting a gai error in django when trying to send mail to a user. Any ideas?
2018-02-08T04:40:25.000329
Aimee
pythondev_help_Aimee_2018-02-08T04:40:25.000329
1,518,064,825.000329
33,420
pythondev
help
<@Aimee> <https://www.mikeash.com/getting_answers.html>
2018-02-08T04:41:29.000330
Aleida
pythondev_help_Aleida_2018-02-08T04:41:29.000330
1,518,064,889.00033
33,421
pythondev
help
<@Aleida> Thank you:slightly_smiling_face: I’ll check it a little bit later
2018-02-08T04:41:46.000323
Pei
pythondev_help_Pei_2018-02-08T04:41:46.000323
1,518,064,906.000323
33,422
pythondev
help
Thanks! Is there some library for python?
2018-02-08T04:44:56.000363
Corrinne
pythondev_help_Corrinne_2018-02-08T04:44:56.000363
1,518,065,096.000363
33,423