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
basically `self` == `this`
2017-09-11T12:53:54.000079
Meg
pythondev_help_Meg_2017-09-11T12:53:54.000079
1,505,134,434.000079
93,203
pythondev
help
You example doesn't actually work
2017-09-11T12:54:14.000718
Beula
pythondev_help_Beula_2017-09-11T12:54:14.000718
1,505,134,454.000718
93,204
pythondev
help
weird is what I’ve got too
2017-09-11T12:54:15.000301
Otha
pythondev_help_Otha_2017-09-11T12:54:15.000301
1,505,134,455.000301
93,205
pythondev
help
So I think you need to re-try it or edit it
2017-09-11T12:54:24.000611
Beula
pythondev_help_Beula_2017-09-11T12:54:24.000611
1,505,134,464.000611
93,206
pythondev
help
example was a very quick hack and slash
2017-09-11T12:54:27.000437
Otha
pythondev_help_Otha_2017-09-11T12:54:27.000437
1,505,134,467.000437
93,207
pythondev
help
let me get some real code
2017-09-11T12:54:35.000379
Otha
pythondev_help_Otha_2017-09-11T12:54:35.000379
1,505,134,475.000379
93,208
pythondev
help
We need to see one that we could run locally and repeat the error
2017-09-11T12:54:44.000473
Beula
pythondev_help_Beula_2017-09-11T12:54:44.000473
1,505,134,484.000473
93,209
pythondev
help
I think I might of seen the error of my ways
2017-09-11T12:58:47.000700
Otha
pythondev_help_Otha_2017-09-11T12:58:47.000700
1,505,134,727.0007
93,210
pythondev
help
I have a method, calling a method
2017-09-11T12:58:52.000325
Otha
pythondev_help_Otha_2017-09-11T12:58:52.000325
1,505,134,732.000325
93,211
pythondev
help
in the same class
2017-09-11T12:58:54.000436
Otha
pythondev_help_Otha_2017-09-11T12:58:54.000436
1,505,134,734.000436
93,212
pythondev
help
yep, thats solved it
2017-09-11T13:00:15.000365
Otha
pythondev_help_Otha_2017-09-11T13:00:15.000365
1,505,134,815.000365
93,213
pythondev
help
trying to set self.brand = xxx in a method, which was itself called by a method
2017-09-11T13:00:30.000579
Otha
pythondev_help_Otha_2017-09-11T13:00:30.000579
1,505,134,830.000579
93,214
pythondev
help
if I return a value from the second method, then do self.brand = returned_answer
2017-09-11T13:00:54.000457
Otha
pythondev_help_Otha_2017-09-11T13:00:54.000457
1,505,134,854.000457
93,215
pythondev
help
the value sitcks
2017-09-11T13:00:58.000674
Otha
pythondev_help_Otha_2017-09-11T13:00:58.000674
1,505,134,858.000674
93,216
pythondev
help
never run in to that one before
2017-09-11T13:01:04.000179
Otha
pythondev_help_Otha_2017-09-11T13:01:04.000179
1,505,134,864.000179
93,217
pythondev
help
ah, I can see the full error now
2017-09-11T13:02:34.000598
Otha
pythondev_help_Otha_2017-09-11T13:02:34.000598
1,505,134,954.000598
93,218
pythondev
help
inherited code
2017-09-11T13:02:39.000455
Otha
pythondev_help_Otha_2017-09-11T13:02:39.000455
1,505,134,959.000455
93,219
pythondev
help
I was doing self.brand = self.make_brand()
2017-09-11T13:02:57.000325
Otha
pythondev_help_Otha_2017-09-11T13:02:57.000325
1,505,134,977.000325
93,220
pythondev
help
and
2017-09-11T13:02:58.000713
Otha
pythondev_help_Otha_2017-09-11T13:02:58.000713
1,505,134,978.000713
93,221
pythondev
help
make_brand() would assign the answer to self.band
2017-09-11T13:03:17.000040
Otha
pythondev_help_Otha_2017-09-11T13:03:17.000040
1,505,134,997.00004
93,222
pythondev
help
and have no return
2017-09-11T13:03:23.000163
Otha
pythondev_help_Otha_2017-09-11T13:03:23.000163
1,505,135,003.000163
93,223
pythondev
help
ergo None
2017-09-11T13:03:25.000281
Otha
pythondev_help_Otha_2017-09-11T13:03:25.000281
1,505,135,005.000281
93,224
pythondev
help
so self.band = None
2017-09-11T13:03:31.000543
Otha
pythondev_help_Otha_2017-09-11T13:03:31.000543
1,505,135,011.000543
93,225
pythondev
help
time to go home I think
2017-09-11T13:03:40.000142
Otha
pythondev_help_Otha_2017-09-11T13:03:40.000142
1,505,135,020.000142
93,226
pythondev
help
thankyou all for your help :slightly_smiling_face:
2017-09-11T13:03:48.000444
Otha
pythondev_help_Otha_2017-09-11T13:03:48.000444
1,505,135,028.000444
93,227
pythondev
help
we were just rubber ducks for your debugging :slightly_smiling_face:
2017-09-11T13:04:23.000329
Meg
pythondev_help_Meg_2017-09-11T13:04:23.000329
1,505,135,063.000329
93,228
pythondev
help
I really should invest in a small yellow duck for my desk
2017-09-11T13:08:42.000044
Otha
pythondev_help_Otha_2017-09-11T13:08:42.000044
1,505,135,322.000044
93,229
pythondev
help
can tell the other programmer in the office is away this week!
2017-09-11T13:08:57.000019
Otha
pythondev_help_Otha_2017-09-11T13:08:57.000019
1,505,135,337.000019
93,230
pythondev
help
I got a dolphin. Helps with stress too.
2017-09-11T13:26:49.000711
Long
pythondev_help_Long_2017-09-11T13:26:49.000711
1,505,136,409.000711
93,231
pythondev
help
<@Otha> Why settle for a normal yellow duck when you can have so much more <https://media-cdn.tripadvisor.com/media/photo-s/08/8e/7b/3f/amsterdam-duck-store.jpg>
2017-09-11T15:50:50.000100
Kiersten
pythondev_help_Kiersten_2017-09-11T15:50:50.000100
1,505,145,050.0001
93,232
pythondev
help
<@Beverley> If I remember this correctly, it depends on the name of the module
2017-09-11T16:10:24.000067
Mirian
pythondev_help_Mirian_2017-09-11T16:10:24.000067
1,505,146,224.000067
93,233
pythondev
help
so it looks for `celery_app.py` in `revamp` module
2017-09-11T16:10:59.000053
Mirian
pythondev_help_Mirian_2017-09-11T16:10:59.000053
1,505,146,259.000053
93,234
pythondev
help
that's the funny part I created revamp but ".celery_app" isn't on either as far as I can tell
2017-09-11T16:11:40.000507
Beverley
pythondev_help_Beverley_2017-09-11T16:11:40.000507
1,505,146,300.000507
93,235
pythondev
help
ok, and if you try just `celery worker --app revamp`?
2017-09-11T16:12:50.000307
Mirian
pythondev_help_Mirian_2017-09-11T16:12:50.000307
1,505,146,370.000307
93,236
pythondev
help
ImportError: No module named celery
2017-09-11T16:15:00.000062
Beverley
pythondev_help_Beverley_2017-09-11T16:15:00.000062
1,505,146,500.000062
93,237
pythondev
help
oh, tbh it looks fine to me, maybe it's something wrong with the project structure or virtualenv?
2017-09-11T16:16:26.000481
Mirian
pythondev_help_Mirian_2017-09-11T16:16:26.000481
1,505,146,586.000481
93,238
pythondev
help
(just throwing ideas)
2017-09-11T16:16:49.000320
Mirian
pythondev_help_Mirian_2017-09-11T16:16:49.000320
1,505,146,609.00032
93,239
pythondev
help
noted will see if I can figure out why
2017-09-11T16:17:24.000110
Beverley
pythondev_help_Beverley_2017-09-11T16:17:24.000110
1,505,146,644.00011
93,240
pythondev
help
sometimes old `.pyc` files are messing things up
2017-09-11T16:17:43.000422
Mirian
pythondev_help_Mirian_2017-09-11T16:17:43.000422
1,505,146,663.000422
93,241
pythondev
help
samuel@samuel-pc:~/Documents/code/revamp$ celery worker --app revamp.celery_app ...
2017-09-11T16:18:00.000426
Beverley
pythondev_help_Beverley_2017-09-11T16:18:00.000426
1,505,146,680.000426
93,242
pythondev
help
ImportError: No module named celery_app
2017-09-11T16:18:01.000460
Beverley
pythondev_help_Beverley_2017-09-11T16:18:01.000460
1,505,146,681.00046
93,243
pythondev
help
don't think it's .pyc since I can get it to work on an example project
2017-09-11T16:18:31.000210
Beverley
pythondev_help_Beverley_2017-09-11T16:18:31.000210
1,505,146,711.00021
93,244
pythondev
help
<@Beverley> Are you in the `revamp` module? The module needs to be on your path so it won't look a directory up. If `revamp/` is in `code/` you should do `celery worker --app revamp.celery_app` in `code/`
2017-09-11T16:20:05.000128
Mallie
pythondev_help_Mallie_2017-09-11T16:20:05.000128
1,505,146,805.000128
93,245
pythondev
help
yes working in the module
2017-09-11T16:21:10.000114
Beverley
pythondev_help_Beverley_2017-09-11T16:21:10.000114
1,505,146,870.000114
93,246
pythondev
help
in the same dir with manage.py for django project
2017-09-11T16:22:12.000318
Beverley
pythondev_help_Beverley_2017-09-11T16:22:12.000318
1,505,146,932.000318
93,247
pythondev
help
Oh so revamp is also the name of the project? Gotcha. What are the contents of the 'revamp' module?
2017-09-11T16:22:56.000057
Mallie
pythondev_help_Mallie_2017-09-11T16:22:56.000057
1,505,146,976.000057
93,248
pythondev
help
That should contain your `celery_app`?
2017-09-11T16:23:21.000647
Mallie
pythondev_help_Mallie_2017-09-11T16:23:21.000647
1,505,147,001.000647
93,249
pythondev
help
what i have is in gallery.colorfest this code
2017-09-11T16:23:59.000322
Beverley
pythondev_help_Beverley_2017-09-11T16:23:59.000322
1,505,147,039.000322
93,250
pythondev
help
how I got it this creates a celery worker revamp, I only mimick ".celery_app" since it was the last command an example project i'm porting over. if I try ".full_render" I get a missing module error
2017-09-11T16:26:33.000242
Beverley
pythondev_help_Beverley_2017-09-11T16:26:33.000242
1,505,147,193.000242
93,251
pythondev
help
Hm I'm not sure, you're mentioning several module names here and I don't know what they look like. Basically the `--app` flag expects to be given a module on python path that has a Celery app config
2017-09-11T16:41:23.000208
Mallie
pythondev_help_Mallie_2017-09-11T16:41:23.000208
1,505,148,083.000208
93,252
pythondev
help
So you need to make sure that the path exists as a python module if you pass it to `--app`
2017-09-11T16:41:48.000427
Mallie
pythondev_help_Mallie_2017-09-11T16:41:48.000427
1,505,148,108.000427
93,253
pythondev
help
You don't want to give `--app` "full_render" since that is a task - when you are running a worker it is going to hang out and wait to receive registered tasks for the app, but you don't instantiate it with a task
2017-09-11T16:44:40.000399
Mallie
pythondev_help_Mallie_2017-09-11T16:44:40.000399
1,505,148,280.000399
93,254
pythondev
help
short explanation for this there's channels and sockets supposed to run a background process and return status in between &amp; final result, working with another dev on this, did ask him about it...
2017-09-11T16:49:59.000373
Beverley
pythondev_help_Beverley_2017-09-11T16:49:59.000373
1,505,148,599.000373
93,255
pythondev
help
[9/11/2017 4:05:14 PM] Samuel Muiruri: where's the location of this script? celery worker --app ch.celery_app [9/11/2017 4:06:33 PM] Dev: It should be installed (pip install celery)
2017-09-11T16:50:17.000112
Beverley
pythondev_help_Beverley_2017-09-11T16:50:17.000112
1,505,148,617.000112
93,256
pythondev
help
the "app" isn't in the folder, here's ls from "ch" &gt; ch db.sqlite3 django_cache manage.py requirements.txt
2017-09-11T16:51:33.000355
Beverley
pythondev_help_Beverley_2017-09-11T16:51:33.000355
1,505,148,693.000355
93,257
pythondev
help
<@Beverley> please use code formatting
2017-09-11T16:53:25.000440
Beula
pythondev_help_Beula_2017-09-11T16:53:25.000440
1,505,148,805.00044
93,258
pythondev
help
formatting it
2017-09-11T16:53:48.000340
Beverley
pythondev_help_Beverley_2017-09-11T16:53:48.000340
1,505,148,828.00034
93,259
pythondev
help
thanks!
2017-09-11T16:55:29.000210
Beula
pythondev_help_Beula_2017-09-11T16:55:29.000210
1,505,148,929.00021
93,260
pythondev
help
can't trace "celery_app" but this is what runs on celery
2017-09-11T16:57:43.000005
Beverley
pythondev_help_Beverley_2017-09-11T16:57:43.000005
1,505,149,063.000005
93,261
pythondev
help
Seems like this belongs in <#C0LMFRMB5|django> ?
2017-09-11T16:57:58.000305
Beula
pythondev_help_Beula_2017-09-11T16:57:58.000305
1,505,149,078.000305
93,262
pythondev
help
You may get the best help there for celery + django
2017-09-11T16:58:06.000152
Beula
pythondev_help_Beula_2017-09-11T16:58:06.000152
1,505,149,086.000152
93,263
pythondev
help
re-posted will wait and see
2017-09-11T17:01:43.000229
Beverley
pythondev_help_Beverley_2017-09-11T17:01:43.000229
1,505,149,303.000229
93,264
pythondev
help
Looks like Base64. Decoding gives - '\x04\x01\x9f\xc7;\xa9t\x17\xa9"\xb8_7\x17\x83\xa1'
2017-09-11T19:12:46.000099
Tarra
pythondev_help_Tarra_2017-09-11T19:12:46.000099
1,505,157,166.000099
93,265
pythondev
help
<https://stackoverflow.com/questions/6916805/why-does-a-base64-encoded-string-have-an-sign-at-the-end>
2017-09-11T19:13:51.000225
Tarra
pythondev_help_Tarra_2017-09-11T19:13:51.000225
1,505,157,231.000225
93,266
pythondev
help
guys can someone help me with regex?
2017-09-11T20:56:51.000078
Charlena
pythondev_help_Charlena_2017-09-11T20:56:51.000078
1,505,163,411.000078
93,267
pythondev
help
&gt;| Player | PL | CL | FA | LC | SC | Total | |:-------------------:|:--:|:--:|:--:|:--:|:--:|:-: | **R. Lukaku** | 4 | 0 | 0 | 0 | 1 | **5** | **A. Martial** | 2 | 0 | 0 | 0 | 0 | **2** | **P. Pogba** | 2 | 0 | 0 | 0 | 0 | **2** | **M. Rashford** | 2 | 0 | 0 | 0 | 0 |**2** | **E. Bailly** | 1 | 0 | 0 | 0 | 0 | **1** ------- How do I use regex to turn this into : R. Lukaku 5( this is the final number of each line) A. Martial 2 P. Pogba 2 M. Rashford 2 E. Bailey 1
2017-09-11T20:56:53.000124
Charlena
pythondev_help_Charlena_2017-09-11T20:56:53.000124
1,505,163,413.000124
93,268
pythondev
help
<@Charlena> why regex for this? Seems like you could use the csv module with the right delimiter
2017-09-11T21:01:43.000131
Beula
pythondev_help_Beula_2017-09-11T21:01:43.000131
1,505,163,703.000131
93,269
pythondev
help
Then some basic replaces
2017-09-11T21:01:53.000028
Beula
pythondev_help_Beula_2017-09-11T21:01:53.000028
1,505,163,713.000028
93,270
pythondev
help
Where are you stuck?
2017-09-11T21:02:22.000268
Beula
pythondev_help_Beula_2017-09-11T21:02:22.000268
1,505,163,742.000268
93,271
pythondev
help
... or just explode (<http://php.net/manual/en/function.explode.php>) it.
2017-09-11T21:05:10.000025
Lorna
pythondev_help_Lorna_2017-09-11T21:05:10.000025
1,505,163,910.000025
93,272
pythondev
help
<@Beula> I look into those options guys
2017-09-11T21:22:35.000024
Charlena
pythondev_help_Charlena_2017-09-11T21:22:35.000024
1,505,164,955.000024
93,273
pythondev
help
I think you may be in the wrong slack group for that.
2017-09-11T21:33:08.000020
Beula
pythondev_help_Beula_2017-09-11T21:33:08.000020
1,505,165,588.00002
93,274
pythondev
help
I can give you a regex answer after my meeting - its a relatively simple pattern
2017-09-11T22:05:19.000147
Martha
pythondev_help_Martha_2017-09-11T22:05:19.000147
1,505,167,519.000147
93,275
pythondev
help
Aurille, thank you. I will will be waiting.
2017-09-11T22:58:09.000081
Charlena
pythondev_help_Charlena_2017-09-11T22:58:09.000081
1,505,170,689.000081
93,276
pythondev
help
<@Charlena> ```import re text = '| **R. Lukaku** | 4 | 0 | 0 | 0 | 1 | **5**' data = re.findall('\*\*([\w+\.\s]+)\*\*', text) print(data)```
2017-09-11T23:33:23.000151
Martha
pythondev_help_Martha_2017-09-11T23:33:23.000151
1,505,172,803.000151
93,277
pythondev
help
<@Earline> worked perfect. Thanks so much
2017-09-11T23:33:32.000228
Charlena
pythondev_help_Charlena_2017-09-11T23:33:32.000228
1,505,172,812.000228
93,278
pythondev
help
<@Martha> wow that's perfect.
2017-09-11T23:34:42.000089
Charlena
pythondev_help_Charlena_2017-09-11T23:34:42.000089
1,505,172,882.000089
93,279
pythondev
help
you can also wrap the final in `print(' '.join(data))` to have it come out as `R. Lukaku 5`
2017-09-11T23:35:44.000129
Martha
pythondev_help_Martha_2017-09-11T23:35:44.000129
1,505,172,944.000129
93,280
pythondev
help
I'll use that . Thanks <@Martha>
2017-09-11T23:37:03.000102
Charlena
pythondev_help_Charlena_2017-09-11T23:37:03.000102
1,505,173,023.000102
93,281
pythondev
help
hahaha, totally. And when I wrote that I thought 'hmmm, what's the PHP function for that...'
2017-09-12T00:03:36.000108
Lorna
pythondev_help_Lorna_2017-09-12T00:03:36.000108
1,505,174,616.000108
93,282
pythondev
help
Haha! We have lots of current and former PHPers here :slightly_smiling_face: I think in Python we have `.split` which I think is the same?
2017-09-12T00:31:36.000047
Beula
pythondev_help_Beula_2017-09-12T00:31:36.000047
1,505,176,296.000047
93,283
pythondev
help
Hey, is anyone free to help me out with some fairly basic stuff? :slightly_smiling_face:
2017-09-12T03:11:20.000100
Lanora
pythondev_help_Lanora_2017-09-12T03:11:20.000100
1,505,185,880.0001
93,284
pythondev
help
Would be much appreciated.
2017-09-12T03:11:28.000330
Lanora
pythondev_help_Lanora_2017-09-12T03:11:28.000330
1,505,185,888.00033
93,285
pythondev
help
<@Lanora> sure
2017-09-12T03:12:30.000021
Florentina
pythondev_help_Florentina_2017-09-12T03:12:30.000021
1,505,185,950.000021
93,286
pythondev
help
I'm trying to create a function that draws something in turtle in a different place depending on what information is pulled from a certain nested list.
2017-09-12T03:13:48.000310
Lanora
pythondev_help_Lanora_2017-09-12T03:13:48.000310
1,505,186,028.00031
93,287
pythondev
help
This is the function paste_up(data_sets[52]) - 52 being the list number.
2017-09-12T03:14:29.000152
Lanora
pythondev_help_Lanora_2017-09-12T03:14:29.000152
1,505,186,069.000152
93,288
pythondev
help
Number 52 for example.
2017-09-12T03:14:52.000072
Lanora
pythondev_help_Lanora_2017-09-12T03:14:52.000072
1,505,186,092.000072
93,289
pythondev
help
['X', ['Sheet A', 'Location 1', 'Upright'], ['Sheet B', 'Location 2', 'Upright'], ['Sheet C', 'Location 3', 'Upright'], ['Sheet D', 'Location 4', 'Upright']],
2017-09-12T03:14:53.000079
Lanora
pythondev_help_Lanora_2017-09-12T03:14:53.000079
1,505,186,093.000079
93,290
pythondev
help
can you also provide the body of function?
2017-09-12T03:15:19.000173
Florentina
pythondev_help_Florentina_2017-09-12T03:15:19.000173
1,505,186,119.000173
93,291
pythondev
help
def paste_up(*params): if params[1] == 'Upright': print('Sheet is upright.') else: print('Sheet is upside down.')
2017-09-12T03:15:22.000044
Lanora
pythondev_help_Lanora_2017-09-12T03:15:22.000044
1,505,186,122.000044
93,292
pythondev
help
Just starting off, but trying to check whether it's 'Upright' or 'Upside Down'.
2017-09-12T03:15:46.000048
Lanora
pythondev_help_Lanora_2017-09-12T03:15:46.000048
1,505,186,146.000048
93,293
pythondev
help
<@Lanora> please use formatting for your message <https://get.slack.help/hc/en-us/articles/202288908-Format-your-messages> :slightly_smiling_face:
2017-09-12T03:16:19.000212
Ciera
pythondev_help_Ciera_2017-09-12T03:16:19.000212
1,505,186,179.000212
93,294
pythondev
help
Problem is, the variable in paste_up(data_sets[52]) only specifies the section as a whole and I don't know how to target each individual item in the list
2017-09-12T03:16:36.000073
Lanora
pythondev_help_Lanora_2017-09-12T03:16:36.000073
1,505,186,196.000073
93,295
pythondev
help
Can't be hardcoded, as the paste_up(data_sets[52]) &lt;-- Number is subject to change.
2017-09-12T03:17:10.000247
Lanora
pythondev_help_Lanora_2017-09-12T03:17:10.000247
1,505,186,230.000247
93,296
pythondev
help
Alrighty, one second <@Ciera>
2017-09-12T03:17:17.000117
Lanora
pythondev_help_Lanora_2017-09-12T03:17:17.000117
1,505,186,237.000117
93,297
pythondev
help
'''paste_up(data_sets[52])'''
2017-09-12T03:18:12.000189
Lanora
pythondev_help_Lanora_2017-09-12T03:18:12.000189
1,505,186,292.000189
93,298
pythondev
help
Oops.
2017-09-12T03:18:25.000016
Lanora
pythondev_help_Lanora_2017-09-12T03:18:25.000016
1,505,186,305.000016
93,299
pythondev
help
```paste_up(data_sets[52])```
2017-09-12T03:18:38.000095
Lanora
pythondev_help_Lanora_2017-09-12T03:18:38.000095
1,505,186,318.000095
93,300
pythondev
help
it's backticks ` not quote ' :slightly_smiling_face:
2017-09-12T03:18:49.000083
Ciera
pythondev_help_Ciera_2017-09-12T03:18:49.000083
1,505,186,329.000083
93,301
pythondev
help
```def paste_up(*params): if params[1] == 'Upright': print('Sheet is upright.') else: print('Sheet is upside down.')```
2017-09-12T03:19:01.000214
Lanora
pythondev_help_Lanora_2017-09-12T03:19:01.000214
1,505,186,341.000214
93,302