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
SyntaxError: unexpected EOF while parsing
2017-06-19T15:02:51.080889
Rona
pythondev_help_Rona_2017-06-19T15:02:51.080889
1,497,884,571.080889
82,403
pythondev
help
<@Rona> can you give more context? Are you trying to read from user input, or check a value?
2017-06-19T15:06:48.166203
Beula
pythondev_help_Beula_2017-06-19T15:06:48.166203
1,497,884,808.166203
82,404
pythondev
help
read from a user
2017-06-19T15:13:42.307182
Rona
pythondev_help_Rona_2017-06-19T15:13:42.307182
1,497,885,222.307182
82,405
pythondev
help
So what do you have now
2017-06-19T15:16:18.360266
Beula
pythondev_help_Beula_2017-06-19T15:16:18.360266
1,497,885,378.360266
82,406
pythondev
help
recent = int(raw_input("Provide a number: ") or num_len )
2017-06-19T15:20:16.440515
Rona
pythondev_help_Rona_2017-06-19T15:20:16.440515
1,497,885,616.440515
82,407
pythondev
help
trying to learn also shutil.copy
2017-06-19T15:20:44.449355
Rona
pythondev_help_Rona_2017-06-19T15:20:44.449355
1,497,885,644.449355
82,408
pythondev
help
Please be sure to use code formatting
2017-06-19T15:20:44.449532
Beula
pythondev_help_Beula_2017-06-19T15:20:44.449532
1,497,885,644.449532
82,409
pythondev
help
oh
2017-06-19T15:20:50.451279
Rona
pythondev_help_Rona_2017-06-19T15:20:50.451279
1,497,885,650.451279
82,410
pythondev
help
Break down your problem into small components, what is the current issue? "Provide a number" suggests to me that you are not looking for "yes"
2017-06-19T15:21:14.459174
Beula
pythondev_help_Beula_2017-06-19T15:21:14.459174
1,497,885,674.459174
82,411
pythondev
help
nope
2017-06-19T15:21:27.463256
Rona
pythondev_help_Rona_2017-06-19T15:21:27.463256
1,497,885,687.463256
82,412
pythondev
help
I am looking to see if some number was provided, if not use the full legth of the array
2017-06-19T15:22:00.474488
Rona
pythondev_help_Rona_2017-06-19T15:22:00.474488
1,497,885,720.474488
82,413
pythondev
help
"the array" is pretty vague, I think you need to expand on your issue a bit more
2017-06-19T15:22:24.482455
Beula
pythondev_help_Beula_2017-06-19T15:22:24.482455
1,497,885,744.482455
82,414
pythondev
help
<https://stackoverflow.com/help/how-to-ask>
2017-06-19T15:22:32.484912
Beula
pythondev_help_Beula_2017-06-19T15:22:32.484912
1,497,885,752.484912
82,415
pythondev
help
let me think about this more on my own
2017-06-19T15:23:05.495691
Rona
pythondev_help_Rona_2017-06-19T15:23:05.495691
1,497,885,785.495691
82,416
pythondev
help
thanks <@Beula>
2017-06-19T15:23:10.497288
Rona
pythondev_help_Rona_2017-06-19T15:23:10.497288
1,497,885,790.497288
82,417
pythondev
help
Sounds like you are trying to do an if statement
2017-06-19T15:23:31.504308
Cleo
pythondev_help_Cleo_2017-06-19T15:23:31.504308
1,497,885,811.504308
82,418
pythondev
help
I think I figured a better way
2017-06-19T15:25:16.539397
Rona
pythondev_help_Rona_2017-06-19T15:25:16.539397
1,497,885,916.539397
82,419
pythondev
help
brb
2017-06-19T15:25:17.539930
Rona
pythondev_help_Rona_2017-06-19T15:25:17.539930
1,497,885,917.53993
82,420
pythondev
help
anyone worked with PyMC?
2017-06-19T16:27:59.825530
Lucilla
pythondev_help_Lucilla_2017-06-19T16:27:59.825530
1,497,889,679.82553
82,421
pythondev
help
So, I broke our mysql cluster, how's everyone else's day going?
2017-06-19T16:31:11.892227
Meghan
pythondev_help_Meghan_2017-06-19T16:31:11.892227
1,497,889,871.892227
82,422
pythondev
help
Apparently a query caused a table to lock and never unlock.
2017-06-19T16:31:22.896169
Meghan
pythondev_help_Meghan_2017-06-19T16:31:22.896169
1,497,889,882.896169
82,423
pythondev
help
We had that during a deploy once <@Meghan> - someone's console had a lock on a table during a deploy and it got stuck.
2017-06-19T16:32:07.911742
Beula
pythondev_help_Beula_2017-06-19T16:32:07.911742
1,497,889,927.911742
82,424
pythondev
help
You may ask "why does someone have production access to have a console open" - but that's beside the point :joy:
2017-06-19T16:32:32.920192
Beula
pythondev_help_Beula_2017-06-19T16:32:32.920192
1,497,889,952.920192
82,425
pythondev
help
With the data we are working with, it wouldn't surprise me if we ended up doing that.
2017-06-19T16:33:15.934791
Meghan
pythondev_help_Meghan_2017-06-19T16:33:15.934791
1,497,889,995.934791
82,426
pythondev
help
We have weekly cron jobs that truncate then insert hundreds of thousands of records.
2017-06-19T16:33:34.940900
Meghan
pythondev_help_Meghan_2017-06-19T16:33:34.940900
1,497,890,014.9409
82,427
pythondev
help
Unfortunately, much of the data we are working with isn't indexed when we get the data.
2017-06-19T16:35:16.975250
Meghan
pythondev_help_Meghan_2017-06-19T16:35:16.975250
1,497,890,116.97525
82,428
pythondev
help
Dang, that is a bit of data.
2017-06-19T16:35:41.984268
Beula
pythondev_help_Beula_2017-06-19T16:35:41.984268
1,497,890,141.984268
82,429
pythondev
help
Would be nice to index it, but then those bulk inserts become insert or updates and would likely take a long time.
2017-06-19T16:38:30.042304
Meghan
pythondev_help_Meghan_2017-06-19T16:38:30.042304
1,497,890,310.042304
82,430
pythondev
help
Was the fix pretty difficult today?
2017-06-19T16:39:27.061620
Beula
pythondev_help_Beula_2017-06-19T16:39:27.061620
1,497,890,367.06162
82,431
pythondev
help
Don't think he has it fixed yet. Thankfully, not my baby.
2017-06-19T16:39:42.066582
Meghan
pythondev_help_Meghan_2017-06-19T16:39:42.066582
1,497,890,382.066582
82,432
pythondev
help
Any reason to roll your own test framework? It looks like one big issue is that you don't handle exceptions in the runner, so cleanup won't be guaranteed
2017-06-19T17:12:35.724418
Beula
pythondev_help_Beula_2017-06-19T17:12:35.724418
1,497,892,355.724418
82,433
pythondev
help
has anyone used pyflot? how is compared to bokeh?
2017-06-19T17:26:06.962261
Thelma
pythondev_help_Thelma_2017-06-19T17:26:06.962261
1,497,893,166.962261
82,434
pythondev
help
Can anyone explain why this works? ``` with open(path, 'rb') as file_: for chunk in iter(lambda: file_.read(4096), b""): hash_obj.update(chunk) ``` Specifically the `b""`?
2017-06-19T19:48:01.768547
Ouida
pythondev_help_Ouida_2017-06-19T19:48:01.768547
1,497,901,681.768547
82,435
pythondev
help
<@Ouida> the docs for `iter` explain it pretty well (<https://docs.python.org/3/library/functions.html#iter>). The second argument is a "sentinel" value, which will create the stop condition when the result of the callable (the lambda function) equals that value
2017-06-19T20:01:06.895198
Beula
pythondev_help_Beula_2017-06-19T20:01:06.895198
1,497,902,466.895198
82,436
pythondev
help
So each iteration it will check the result of the lambda against that value, if they're equal it raises `StopIteration`, a special built in exception to exit a loop.
2017-06-19T20:03:18.916710
Beula
pythondev_help_Beula_2017-06-19T20:03:18.916710
1,497,902,598.91671
82,437
pythondev
help
<@Beula> I handle exceptions in the real code, they are included in the "do some stuff, execute the actual test" comment. In any event, I thought it made sense to execute the tests this way, and I have a Jenkins job that that does so by executing main.py (each test case being called from within the main file). Really I'm just curious if that goes against any conventions or industry practices because I want to correct any bad habits. I don't really have a reason for rolling my own framework other than to get better at coding (this is my first coding job).
2017-06-19T20:04:53.931470
Noemi
pythondev_help_Noemi_2017-06-19T20:04:53.931470
1,497,902,693.93147
82,438
pythondev
help
I'd say that, from experience, don't ever roll your own at work. That's free time stuff until you find a deficiency in community accepted frameworks (unittest or pytest, in the python world for the big couple). Every time I have rolled my own it has bitten me hard.
2017-06-19T20:06:16.944144
Beula
pythondev_help_Beula_2017-06-19T20:06:16.944144
1,497,902,776.944144
82,439
pythondev
help
<@Yessenia> - the `illegal byte sequence` is from stderr of the subprocess, one of the pipes is getting something it can't handle. From the try local it's the `cut -c30`.
2017-06-19T20:16:28.034983
Beula
pythondev_help_Beula_2017-06-19T20:16:28.034983
1,497,903,388.034983
82,440
pythondev
help
If you know you don't want whatever is from that, you can just use `stderr=subprocess.PIPE` and it will be captured (and not printed to the python console). Since from the console you will get bytes back, you'll need to decode and probably strip them
2017-06-19T20:18:02.048628
Beula
pythondev_help_Beula_2017-06-19T20:18:02.048628
1,497,903,482.048628
82,441
pythondev
help
<@Beula> sure, but what is `b`? it’s not an identifier?
2017-06-19T20:18:23.051963
Ouida
pythondev_help_Ouida_2017-06-19T20:18:23.051963
1,497,903,503.051963
82,442
pythondev
help
`b''` is a bytes object
2017-06-19T20:18:48.055466
Beula
pythondev_help_Beula_2017-06-19T20:18:48.055466
1,497,903,528.055466
82,443
pythondev
help
ohh
2017-06-19T20:19:06.058048
Ouida
pythondev_help_Ouida_2017-06-19T20:19:06.058048
1,497,903,546.058048
82,444
pythondev
help
okay yeah that makes sense… ha
2017-06-19T20:19:25.061120
Ouida
pythondev_help_Ouida_2017-06-19T20:19:25.061120
1,497,903,565.06112
82,445
pythondev
help
You have a few of those: `r''` -&gt; raw, `b''` -&gt; bytes, `f''` -&gt; f (format)-string
2017-06-19T20:19:42.063604
Beula
pythondev_help_Beula_2017-06-19T20:19:42.063604
1,497,903,582.063604
82,446
pythondev
help
so `b''` is basically an empty byte object?
2017-06-19T20:21:46.080860
Ouida
pythondev_help_Ouida_2017-06-19T20:21:46.080860
1,497,903,706.08086
82,447
pythondev
help
Are there any that you recommend for UI testing?
2017-06-19T20:22:35.087395
Noemi
pythondev_help_Noemi_2017-06-19T20:22:35.087395
1,497,903,755.087395
82,448
pythondev
help
Pretty much
2017-06-19T20:23:33.095434
Beula
pythondev_help_Beula_2017-06-19T20:23:33.095434
1,497,903,813.095434
82,449
pythondev
help
I use pytest for everything
2017-06-19T20:24:34.103682
Beula
pythondev_help_Beula_2017-06-19T20:24:34.103682
1,497,903,874.103682
82,450
pythondev
help
hi, all…i’ve got a strange problem with sqlalchemy, the full description is here <https://stackoverflow.com/questions/44615074/sqlalchemy-increasing-memory-on-simple-query>
2017-06-20T03:22:26.336120
Anna
pythondev_help_Anna_2017-06-20T03:22:26.336120
1,497,928,946.33612
82,451
pythondev
help
but I don’t understand if this problem is due to sqlalchemy or something related to python memory management
2017-06-20T03:22:34.337668
Anna
pythondev_help_Anna_2017-06-20T03:22:34.337668
1,497,928,954.337668
82,452
pythondev
help
Hey guys does anyone know what `-rin` does in the context of `grep -rin "email" */log`
2017-06-20T04:11:08.012187
Robbin
pythondev_help_Robbin_2017-06-20T04:11:08.012187
1,497,931,868.012187
82,453
pythondev
help
<@Robbin> `man grep`
2017-06-20T04:14:28.061359
Collette
pythondev_help_Collette_2017-06-20T04:14:28.061359
1,497,932,068.061359
82,454
pythondev
help
Then press `h` to learn how to navigate and search
2017-06-20T04:15:06.070426
Collette
pythondev_help_Collette_2017-06-20T04:15:06.070426
1,497,932,106.070426
82,455
pythondev
help
<@Robbin> -r = recursive / -i = ignore case / -n = print line number
2017-06-20T07:24:27.898083
Daniella
pythondev_help_Daniella_2017-06-20T07:24:27.898083
1,497,943,467.898083
82,456
pythondev
help
<@Daniella> Thank you so much for that :slightly_smiling_face:
2017-06-20T07:25:56.917350
Robbin
pythondev_help_Robbin_2017-06-20T07:25:56.917350
1,497,943,556.91735
82,457
pythondev
help
you are welcome
2017-06-20T07:33:09.012943
Daniella
pythondev_help_Daniella_2017-06-20T07:33:09.012943
1,497,943,989.012943
82,458
pythondev
help
Hey guys I'm a bit stuck with converting a string date to a datetime object getting this error: ``` time data '2017-06-20T15:07:12+01:00' does not match format '%Y-%m-%dT%H:%M:%S%z' ``` CODE: ``` current_action_date = datetime.strptime(request.data['date'], "%Y-%m-%dT%H:%M:%S%z" ) ``` request.data['date'] printed gives ``` 2017-06-20T15:07:12+01:00 ``` Useing Django RestFramework on 3.6 Any ideas what I am doing wrong? Thanks for any help you can provide ! I'm really baffled by this one !
2017-06-20T10:25:30.384514
Cristine
pythondev_help_Cristine_2017-06-20T10:25:30.384514
1,497,954,330.384514
82,459
pythondev
help
Do you control the client code for this? Looks like the timestamp offset is the wrong format for `%z`. `+01:00` should be `+0100` iirc for that one
2017-06-20T10:28:51.472542
Beula
pythondev_help_Beula_2017-06-20T10:28:51.472542
1,497,954,531.472542
82,460
pythondev
help
Yeah its from an android app. Ahhh thanks a million will figure out a way to change that !
2017-06-20T10:29:54.500560
Cristine
pythondev_help_Cristine_2017-06-20T10:29:54.500560
1,497,954,594.50056
82,461
pythondev
help
that’s completely valid ISO 8601 formatting
2017-06-20T10:30:52.527756
Patty
pythondev_help_Patty_2017-06-20T10:30:52.527756
1,497,954,652.527756
82,462
pythondev
help
<https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior>
2017-06-20T10:31:11.535976
Ciera
pythondev_help_Ciera_2017-06-20T10:31:11.535976
1,497,954,671.535976
82,463
pythondev
help
you might want to check here if there is something for the `:`
2017-06-20T10:31:49.553048
Ciera
pythondev_help_Ciera_2017-06-20T10:31:49.553048
1,497,954,709.553048
82,464
pythondev
help
For datetime reference: <https://docs.python.org/2/library/datetime.html>
2017-06-20T10:31:54.555207
Deedee
pythondev_help_Deedee_2017-06-20T10:31:54.555207
1,497,954,714.555207
82,465
pythondev
help
` UTC offset in the form +HHMM or -HHMM (empty string if the object is naive).`
2017-06-20T10:32:14.564530
Patty
pythondev_help_Patty_2017-06-20T10:32:14.564530
1,497,954,734.56453
82,466
pythondev
help
way to not conform to ISO standards :confused:
2017-06-20T10:32:30.572018
Patty
pythondev_help_Patty_2017-06-20T10:32:30.572018
1,497,954,750.572018
82,467
pythondev
help
Yeah Joe is right, the colon should be valid, per the spec :(
2017-06-20T10:32:54.582542
Beula
pythondev_help_Beula_2017-06-20T10:32:54.582542
1,497,954,774.582542
82,468
pythondev
help
<@Deedee> <@Cristine> is using 3.6, not python 2 :slightly_smiling_face:
2017-06-20T10:33:19.593745
Patty
pythondev_help_Patty_2017-06-20T10:33:19.593745
1,497,954,799.593745
82,469
pythondev
help
well looks like an opportunity to be a python contributor haha
2017-06-20T10:34:04.613629
Patty
pythondev_help_Patty_2017-06-20T10:34:04.613629
1,497,954,844.613629
82,470
pythondev
help
yeah i have no idea this isn't working !
2017-06-20T10:34:15.618280
Cristine
pythondev_help_Cristine_2017-06-20T10:34:15.618280
1,497,954,855.61828
82,471
pythondev
help
it should do it just going to filter the string on client side before marshaling it
2017-06-20T10:34:38.628961
Cristine
pythondev_help_Cristine_2017-06-20T10:34:38.628961
1,497,954,878.628961
82,472
pythondev
help
<@Patty> you'll have to hack in both cases unless you want to break a *lot* of code
2017-06-20T10:35:01.638835
Vada
pythondev_help_Vada_2017-06-20T10:35:01.638835
1,497,954,901.638835
82,473
pythondev
help
yeah i havent even looked at the source but im sure its not pretty
2017-06-20T10:36:56.689365
Patty
pythondev_help_Patty_2017-06-20T10:36:56.689365
1,497,955,016.689365
82,474
pythondev
help
also i aint got no time for that i get married in 2 months from today
2017-06-20T10:37:07.693991
Patty
pythondev_help_Patty_2017-06-20T10:37:07.693991
1,497,955,027.693991
82,475
pythondev
help
or add another letter for the `:`
2017-06-20T10:37:28.703620
Ciera
pythondev_help_Ciera_2017-06-20T10:37:28.703620
1,497,955,048.70362
82,476
pythondev
help
like `%z` and `%Z`
2017-06-20T10:37:46.711277
Ciera
pythondev_help_Ciera_2017-06-20T10:37:46.711277
1,497,955,066.711277
82,477
pythondev
help
<@Patty> congrats
2017-06-20T10:37:59.716791
Deedee
pythondev_help_Deedee_2017-06-20T10:37:59.716791
1,497,955,079.716791
82,478
pythondev
help
Why is pycharm treating the name config as if it was a link?
2017-06-20T14:59:13.103205
Meghan
pythondev_help_Meghan_2017-06-20T14:59:13.103205
1,497,970,753.103205
82,479
pythondev
help
<@Meghan> can you provide more context?
2017-06-20T14:59:55.119222
Beula
pythondev_help_Beula_2017-06-20T14:59:55.119222
1,497,970,795.119222
82,480
pythondev
help
```help(config) Traceback (most recent call last): File "&lt;input&gt;", line 1, in &lt;module&gt; NameError: name 'config' is not defined``` Opened the console, type config, and it becomes a link.
2017-06-20T15:00:30.134445
Meghan
pythondev_help_Meghan_2017-06-20T15:00:30.134445
1,497,970,830.134445
82,481
pythondev
help
I do have a module in a directory named config, but other modules dont' get that treatment.
2017-06-20T15:01:05.148323
Meghan
pythondev_help_Meghan_2017-06-20T15:01:05.148323
1,497,970,865.148323
82,482
pythondev
help
If you click the link, does it take you there? Seems like that may be what they are _trying_ to do, and just miss the mark for others?
2017-06-20T15:01:31.159227
Beula
pythondev_help_Beula_2017-06-20T15:01:31.159227
1,497,970,891.159227
82,483
pythondev
help
Clicking on the link doesn't do anything.
2017-06-20T15:01:32.159596
Meghan
pythondev_help_Meghan_2017-06-20T15:01:32.159596
1,497,970,892.159596
82,484
pythondev
help
weird ¯\_(ツ)_/¯
2017-06-20T15:01:39.162120
Beula
pythondev_help_Beula_2017-06-20T15:01:39.162120
1,497,970,899.16212
82,485
pythondev
help
huh, funny
2017-06-20T15:04:37.230985
Suellen
pythondev_help_Suellen_2017-06-20T15:04:37.230985
1,497,971,077.230985
82,486
pythondev
help
In the above, dreamer is the other library, so, idk. Interesting anyway. There is also a config.ini file in the directory.
2017-06-20T15:07:09.287237
Meghan
pythondev_help_Meghan_2017-06-20T15:07:09.287237
1,497,971,229.287237
82,487
pythondev
help
That is weird, mine doesn't for anything I see in my project
2017-06-20T15:07:12.288093
Beula
pythondev_help_Beula_2017-06-20T15:07:12.288093
1,497,971,232.288093
82,488
pythondev
help
Hi to all! Can you help with my code, please? I cant upload images, thnks! """def client_registration(request): form = ClientForm(data=<http://request.POST|request.POST> or None) userform = UserForm(data=<http://request.POST|request.POST> or None) all_fintessclubs = Fitnessclub.objects.filter(is_active=True) competitions = Competition.objects.filter(is_active=True) if <http://request.POST|request.POST> and form.is_valid() and userform.is_valid(): userpost = userform.save() post = form.save(commit=False) upload_images = ['client_avatar' or 'image_portrait' or 'image_profile' or 'image_back'] for image in upload_images: try: post.image = request.FILES['%s'] % image except KeyError: pass post.user = userpost post.save()"""
2017-06-20T15:07:31.295355
Britta
pythondev_help_Britta_2017-06-20T15:07:31.295355
1,497,971,251.295355
82,489
pythondev
help
Sooo, what happens when you DO upload something?
2017-06-20T15:10:13.353259
Suellen
pythondev_help_Suellen_2017-06-20T15:10:13.353259
1,497,971,413.353259
82,490
pythondev
help
<@Britta> can you please format your code (add three backticks on each side: ` ``` `)
2017-06-20T15:11:30.380757
Beula
pythondev_help_Beula_2017-06-20T15:11:30.380757
1,497,971,490.380757
82,491
pythondev
help
read the intro doc for our standards :slightly_smiling_face:
2017-06-20T15:11:49.387572
Beula
pythondev_help_Beula_2017-06-20T15:11:49.387572
1,497,971,509.387572
82,492
pythondev
help
oh
2017-06-20T15:11:57.390147
Suellen
pythondev_help_Suellen_2017-06-20T15:11:57.390147
1,497,971,517.390147
82,493
pythondev
help
what the..
2017-06-20T15:12:01.391698
Suellen
pythondev_help_Suellen_2017-06-20T15:12:01.391698
1,497,971,521.391698
82,494
pythondev
help
Going to run into a loop with these bots competing. :slightly_smiling_face:
2017-06-20T15:12:42.406280
Meghan
pythondev_help_Meghan_2017-06-20T15:12:42.406280
1,497,971,562.40628
82,495
pythondev
help
haha, looks like we haven't deprecated the slack response
2017-06-20T15:13:09.415310
Beula
pythondev_help_Beula_2017-06-20T15:13:09.415310
1,497,971,589.41531
82,496
pythondev
help
<@Suellen> everything is up (text data) except images
2017-06-20T15:13:52.430286
Britta
pythondev_help_Britta_2017-06-20T15:13:52.430286
1,497,971,632.430286
82,497
pythondev
help
did you try to log the variables while you upload an image?
2017-06-20T15:15:55.473264
Suellen
pythondev_help_Suellen_2017-06-20T15:15:55.473264
1,497,971,755.473264
82,498
pythondev
help
e. g. at which point the state becomes different from what you expect?
2017-06-20T15:16:22.483305
Suellen
pythondev_help_Suellen_2017-06-20T15:16:22.483305
1,497,971,782.483305
82,499
pythondev
help
I check in admin and there is no any
2017-06-20T15:17:02.497171
Britta
pythondev_help_Britta_2017-06-20T15:17:02.497171
1,497,971,822.497171
82,500
pythondev
help
what does `upload_images` look like? (log it to console) does the for loop work alright?
2017-06-20T15:17:05.498149
Suellen
pythondev_help_Suellen_2017-06-20T15:17:05.498149
1,497,971,825.498149
82,501
pythondev
help
how many times does it iterate, log it too
2017-06-20T15:17:24.505072
Suellen
pythondev_help_Suellen_2017-06-20T15:17:24.505072
1,497,971,844.505072
82,502